Create collection

From RHEcosystemAppEng/agentic-plugins · View interactive version

Create collection is an AI agent skill from the GitHub repository RHEcosystemAppEng/agentic-plugins. Author or refresh `<plugin>/.catalog/collection.yaml` and related `.catalog/` artifacts from golden sources (SKILL.md, README, AGENTS.md, Lola marketplace). Use when: - Adding a new plugin or refreshing the collection catalog for GitHub Pages / tooling - Aligning catalog narrative, sample workflows,

How to use this skill

Skill file

Create collection catalog

Audience: Maintainers and assistants updating per-plugin .catalog/ data.

Goal: Produce a coherent collection.yaml that passes make validate-collection-compliance, using human judgment for synthesis—not a blind dump of frontmatter.

Prerequisites

When to Use

Workflow

  1. Resolve plugin — directory name must appear in union(marketplace/modules[].path, docs/plugins.json keys) and exist on disk.
  1. Read sources in order (precedence):
  1. Classify skills — place each skill in contents.skills or contents.orchestration_skills using maintainer judgment. Optional hint: metadata.collection.role: orchestration in SKILL.md frontmatter. Names in YAML must match the skills/<name>/ directory name.
  1. Write <plugin>/.catalog/collection.yaml — start with the standard # banner (see COLLECTION_SPEC). Include every field required by catalog/schema.yaml. Keep inline strings under 500 Unicode code points for monitored fields (summary, documentation_section, mcp_section, security_model, and inline deploy_and_use); otherwise move prose to a sibling .md and set the same field to a one-line ref, e.g. documentation_section: '#documentation_section.md' or deploy_and_use: '#deploy_and_use.md' (see COLLECTION_SPEC). Do not use parallel documentation_section_file / mcp_section_file / security_model_file keys.

deploy_and_use / install prose: Follow COLLECTION_SPEC.md deploy_and_use content (install + env + MCP). If mcps.json defines MCP servers, document prerequisites, export lines for every ${VAR} name used there, Lola + marketplace path:, optional Claude/Cursor install when those marketplaces are listed, and an MCP configuration subsection. Prefer deploy_and_use: '#deploy_and_use.md' plus deploy_and_use.md structured like rh-sre/.catalog/deploy_and_use.md (see rh-virt/.catalog/deploy_and_use.md for a kubeconfig-focused variant).

YAML multiline style (| literal blocks): For contents.description, every summary_markdown (regular and orchestration skills), and every sample_workflows[].workflow, use a literal block scalar (field: |) instead of a single-quoted string that continues across many YAML lines with spacer blanks. Indent each body line one level deeper than the key line. Inside the block, keep consecutive lines without empty lines between the intro, **Use when:**, list items, and **What it does:** (and similar headings) unless you intentionally want extra paragraph breaks in rendered markdown—reference rh-sre and rh-developer .catalog/collection.yaml for the house style. Prose with apostrophes (e.g. What's) stays readable in | without '' escaping.

  1. Mirror JSON — from repo root: uv run python scripts/catalog_yaml_to_json.py --plugin <plugin> (or make catalog-mirror-json).
  1. Self-review checklist
  1. Validate — make validate-collection-compliance before commit.

Dependencies

Common Issues

Example usage

uv run python scripts/scaffold_catalog.py rh-sre
uv run python scripts/catalog_yaml_to_json.py --plugin rh-sre
make validate-collection-compliance
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.