Skip to content

fix(catalog): generate skill listings and detect drift (#539) - #548

Open
DEOWL-kan wants to merge 1 commit into
addyosmani:mainfrom
DEOWL-kan:fix/539-generated-skill-catalog
Open

DEOWL-kan wants to merge 1 commit into
addyosmani:mainfrom
DEOWL-kan:fix/539-generated-skill-catalog

Conversation

@DEOWL-kan

Copy link
Copy Markdown
Contributor

Fixes #539.

Adding a skill currently leaves several catalogs to update by hand: constraint-driven-development is missing from the CLAUDE phase list, meta-skill quick reference, and issue dropdown, while the README heading still says 24 skills. This generates those regions and README counts/tables from the actual skills/ membership plus a small editorial presentation file, and adds --check to CI. --write preserves surrounding prose; the authored project/discovery trees are checked for membership rather than rewritten.

The generator reuses the existing frontmatter parser, adds no dependencies, and rejects invalid or overlapping markers before writing any target. Eighteen regression tests cover drift, additions/removals, read-only checking, idempotence, prose preservation, and malformed/overlapping regions. No new skill or shared-validator rewrite is introduced.

Validation

  • PASS: node --test scripts/*-test.js scripts/lib/*-test.js — 61 tests.
  • PASS: node scripts/sync-catalog.js --check; skill, command, artifact-path, reference-link, and version validators; node scripts/run-evals.js --min-rank1 80 (86% rank-1); git diff --check.
  • PASS: independent read-only review, including eight in-memory overlap cases that attempted zero writes; actual SessionStart envelope, embedded meta-skill content, and isolated no-jq fallback assertions.
  • Known baseline failure: bash hooks/session-start-test.sh expects the retired priority payload and fails identically on unchanged main. test(hooks): assert SessionStart hookSpecificOutput envelope #510 already addresses that test; hooks and the test are unchanged here.

Open PRs were checked before submission. This keeps existing validator and hook work separate and preserves the authored content around generated regions.

@addyosmani addyosmani left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strong implementation of Joan's #539, and I verified it works: --check passes (the generated surfaces match what's on main today, so it's a faithful capture, not a reformat), the tests pass, validate-skills and validate-commands stay green, and --check is wired into CI. That closes the drift problem cleanly. One design point that's really Joan's call since it's his proposal: this introduces scripts/catalog.json as the single curated source (phases plus per-skill metadata) and generates the surfaces from it, rather than deriving everything straight from skills/. That's a reasonable read of #539 (phase, summary, and order aren't in SKILL.md frontmatter, so they have to live somewhere), and one catalog.json plus generated output beats N hand-maintained lists. But I'd want @nucliweb's sign-off on catalog.json as the source of truth before it lands. Mechanics are verified and green; over to Joan on the design.

@ibisovelmeddin411-maker

Copy link
Copy Markdown

Hu

ayobamiseun added a commit to ayobamiseun/agent-skills that referenced this pull request Oct 10, 2026
docs/developer-onboarding.md promises that everything CI runs can be run
locally, then lists three validators, the eval runner and one hook test.
CI runs six validators, seven unit-test files and three hook suites on
three operating systems, so a contributor following the doc can fail
several steps they never ran. The Tier 1 row in evals/README.md names
two validators where there are five, and Tier 2 omits the rank-1 floor.

List every workflow command in the onboarding block in workflow order,
note the PowerShell glob caveat, state the cross-platform leg, name the
workflow file as the source of truth, and align Path 3 and the pre-PR
checklist. Update both tier rows in evals/README.md. CLAUDE.md's stale
line is left for later because addyosmani#548 edits that file.

Every command in the new block was run from this branch and passes, and
every command in the workflow appears in the block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate the skill catalog instead of hand-maintaining it across surfaces

3 participants