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
- Repository root as cwd.
- Read COLLECTION_SPEC.md and catalog/schema.yaml.
- Optional: run
uv run python scripts/scaffold_catalog.py <plugin>for a stdout draft roster.
When to Use
- New marketplace module or new plugin directory needs
.catalog/. - Skills were added/removed/renamed and roster parity must match disk.
- Marketplace
description/versionchanged and catalog should reflect it (still edit marketplace in git separately).
Workflow
- Resolve plugin — directory name must appear in
union(marketplace/modules[].path, docs/plugins.json keys)and exist on disk.
- Read sources in order (precedence):
skills/*/SKILL.md(frontmatter + body for summaries and orchestration hints)<plugin>/README.md<plugin>/AGENTS.md(intent routing →skills_decision_guideideas)- Matching row in
marketplace/rh-agentic-collection.ymlin agentic-catalog (path== plugin)
- Classify skills — place each skill in
contents.skillsorcontents.orchestration_skillsusing maintainer judgment. Optional hint:metadata.collection.role: orchestrationinSKILL.mdfrontmatter. Names in YAML must match theskills/<name>/directory name.
- 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 inlinedeploy_and_use); otherwise move prose to a sibling.mdand set the same field to a one-line ref, e.g.documentation_section: '#documentation_section.md'ordeploy_and_use: '#deploy_and_use.md'(see COLLECTION_SPEC). Do not use paralleldocumentation_section_file/mcp_section_file/security_model_filekeys.
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.
- Mirror JSON — from repo root:
uv run python scripts/catalog_yaml_to_json.py --plugin <plugin>(ormake catalog-mirror-json).
- Self-review checklist
- Every on-disk
skills/<n>/SKILL.mdappears exactly once inskills∪orchestration_skills(orchestration-only skills such as/remediationstill live underskills/<name>/; list them only undercontents.orchestration_skillswhen they orchestrate others). - No
TODO:/TBDinsample_workflows.workflow; each workflow includesUser:and-bullets. skills_decision_guideempty if the plugin has no skills; otherwise eachskill_to_usematches a skill dir.resources[].urlset;embedded_doconly if that path exists under the plugin.- Install / deploy (
deploy_and_use): inline (≤ 500 code points) or one-line#deploy_and_use.mdref (see COLLECTION_SPEC.md install + env + MCP). Ifmcps.jsonhas MCP servers: fragment (or inline) must include prerequisites,exportexamples for each${VAR}name frommcps.json, Lola/marketplacepath:, and MCP configuration notes; add Claude Code / Cursor install whenmarketplaceslists them. Fragments use the HTML provenance banner. Usemcps.json, not.mcp.json. - Other long blocks:
documentation_section,mcp_section, andsecurity_modelfollowdeploy_and_use: inline markdown (≤ 500 code points) or one-line#fragment.mdon that same key (sibling under.catalog/; no.catalog/prefix in the YAML string). - Publication-style metadata:
maturity(required) —GREEN(listed on GitHub Pages catalog) orORANGE(in-repo only until promoted). Also when useful:support_level,author,homepage,keywords,legal_resources(URLs only). version/ listing fields: Alignversionand core listing copy with the matchingmarketplace/rh-agentic-collection.ymlrow in agentic-catalog (path== plugin); do not bump marketplace YAML from the catalog workflow.- Multiline fields:
contents.description, allsummary_markdown, and allsample_workflows[].workflowuse|block scalars (not long single-quoted multiline); content lines are compact unless extra blank lines are deliberate for markdown.
- Validate —
make validate-collection-compliancebefore commit.
Dependencies
make validate-collection-complianceuv run python scripts/scaffold_catalog.py <plugin>(optional)
Common Issues
- CI:
collection.jsondrift — regenerate withmake catalog-mirror-json. - Roster errors — YAML
namemust equal the skill folder name, not a display alias. - Empty support plugin — if there are no
skills/, use emptyskills,orchestration_skills, andskills_decision_guide: []. - Unreadable multiline YAML — replace spanning
'…'blocks withfield: |and indented lines; see step 4 YAML multiline style. - Thin
deploy_and_use— plugin hasmcps.jsonbut catalog only says “see README”; add Environment setup (exportfor each${VAR}) and MCP configuration per COLLECTION_SPEC (use#deploy_and_use.mdlike rh-sre / rh-virt).
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