Collection compliance
Audience: Contributors fixing .catalog/ CI failures.
Goal: Clear reported violations from scripts/validate_collection_compliance.py and scripts/validate_collection_schema.py, then perform AI semantic alignment review against golden sources.
Prerequisites
- Run from repository root.
- Read COLLECTION_SPEC.md.
When to Use
- After
make validate-collection-compliancefails locally or in GitHub Actions.
Workflow
- Re-run
uv run python scripts/validate_collection_compliance.pyand capture errors (plugin path + message).
- Classify
- Missing file — create
.catalog/collection.yamlvia create-collection skill (oruv run python scripts/bootstrap_catalog.py --plugin <plugin>for bootstrap baseline). - Schema — align YAML with catalog/schema.yaml (includes required
maturity:GREENorORANGE; site listing usesGREENonly perpack_registry.get_docs_pack_dirs()). - Roster — every
skills/<n>/SKILL.mdmust appear once undercontents.skillsorcontents.orchestration_skillswithname == <n>. - Banner —
collection.yamlmust mentioncreate-collectionandGolden sourcesin the opening#block. collection.jsondrift — runuv run python scripts/catalog_yaml_to_json.py --plugin <plugin>ormake catalog-mirror-json.- Fragment refs / length —
deploy_and_use,documentation_section,mcp_section, andsecurity_modelmay be inline or a one-line#…mdref naming a sibling file under.catalog/(e.g.#install.md). Refs must start with#. Inline monitored fields over 500 code points must move to a fragment on that same key (see COLLECTION_SPEC). - Fragment provenance (
.catalog/*.md) — each referenced fragment must start with a leading HTML<!-- … -->block with the same intent as thecollection.yamlbanner: create-collection workflow and Golden sources (SKILL, README, CLAUDE, marketplace). See COLLECTION_SPEC.md Provenance banners (CI does not yet assert this text; fix when reviewing fragments). - Thin
deploy_and_use(manual review) — if the plugin hasmcps.jsonMCP servers,deploy_and_use(inline or#deploy_and_use.md) should meet COLLECTION_SPEC.md install + env + MCP (prerequisites,exportfor each${VAR}name, Lolapath:, MCP notes, optional Claude/Cursor install). CI may not fail; fix via create-collection when reviewing PRs.
- AI semantic alignment review (required)
- Treat scripts as structural guards only; they do not fully verify semantic alignment.
- Compare each plugin's catalog metadata and referenced fragments against golden sources:
skills/*/SKILL.md(names, descriptions, scope, orchestration intent)README.md(installation, prerequisites, env variables, usage caveats)AGENTS.md(persona, routing, global rules, MCP posture)marketplace/rh-agentic-collection.ymlin agentic-catalog (modulepath, module name/description/tags)- Fail review if any of these drift conditions are found:
- Installation steps differ in substance (for example Lola module IDs/paths mismatch)
- Required env vars in
mcps.jsonare missing or inconsistent indeploy_and_use - Skill inventory/routing intent in catalog contradicts
skills/+AGENTS.md - Fragment prose overstates/understates capabilities versus README/skills
- Remediate via create-collection workflow and then regenerate JSON mirror.
- Re-validate —
make validate-collection-compliance.
Dependencies
- create-collection skill (sibling under
.cursor/skills/)
Common Issues
skills_decision_guidewith no skills — guide must be[]if the plugin has noskills/tree.- Orchestration miscount — move skills that delegate end-to-end flows to
orchestration_skillsper COLLECTION_SPEC judgment rules. - Install drift —
README.mdand.catalog/deploy_and_use(.md)disagree on Lola commands/module IDs. - Env drift —
${VAR}names inmcps.jsonare not fully represented indeploy_and_use.
Example usage
make validate-collection-compliance
uv run python scripts/catalog_yaml_to_json.py --plugin rh-developer
make validate-collection-compliance