Repository navigation
feat(catalog): review skills against the Agent Skills spec, add --strict and --format json #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6e1e1e9
feat(catalog): review skills against the spec and flag identical copies
napetrov 1868f79
fix(catalog): spec errors exit 0 without --strict; name broken YAML
napetrov 7e1d17e
Catch OSError when loading a skill so unreadable files become error rows
antonwolfy 1ed1cfb
Update scan example header and explain the broken-YAML row
antonwolfy 67b683e
fix(catalog): stringify manifest status in JSON; skip name-mismatch f…
napetrov 9ec812d
Note that a root SKILL.md skips the directory-name check in docs
antonwolfy 5ec24f7
Merge remote-tracking branch 'intel/main' into un1023-163
napetrov a3bb3c4
refactor(catalog): split cmd_catalog_scan and read_skill_manifest und…
napetrov 29e767f
fix(catalog): compare skill paths resolved so a symlinked root does n…
napetrov f3c8fbc
fix(catalog): leave out templates and keep discover_skills' mirror or…
xaleryb 0b92036
fix(catalog): do not quote a SKILL.md outside the root in the frontma…
xaleryb 4e295ca
test(catalog): pin the default-kind exit code and the unreadable-skil…
xaleryb a213659
Merge intel/main into fix/skill-gap-W6
xaleryb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
dokimi/changelog.d/20261021_150000_napetrov_catalog-scan-spec-review.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| ### Added | ||
|
|
||
| - **`catalog scan` reviews each skill against the Agent Skills spec** — a loaded skill | ||
| whose `name` is not its directory name or not kebab-case (at most 64 characters), or | ||
| whose `description` is over 1024 characters, is an `error`; a `name` missing from the | ||
| frontmatter, or a `SKILL.md` byte-identical to another skill's (a mirror, named with | ||
| the copy nearest the root, the one the `skill-catalog:` arm offers), is a `warn`. `disable-model-invocation: true` is printed as a | ||
| note, since the model is never offered that skill. Each finding is printed under its | ||
| skill. | ||
| - **`catalog scan --strict`** — exits 1 on a skill spec error as well as on a skill that | ||
| does not load. Without it a spec error is printed and the exit code stays 0. | ||
| - **`catalog scan --format json`** — one object with a row per skill (`state` is | ||
| `ok`, `warn` or `error`, `findings`, `content_sha256`, `duplicate_of`) and per task | ||
| (`state` is `ok`, `skipped` or `error`), for a CI gate or a script. | ||
|
|
||
| ### Fixed | ||
|
|
||
| - **`catalog scan` names broken YAML frontmatter** — a `SKILL.md` whose frontmatter is not | ||
| valid YAML (a bare colon in `description:`, say) is reported as a `frontmatter-parse` | ||
| error with the YAML message, and exits 1. The scan showed only "missing a description" | ||
| before. `parse_frontmatter` is unchanged for other callers. | ||
| - **`catalog scan` without a `skills.yaml` no longer stops at the first broken skill** — each | ||
| `SKILL.md` under the root is an entry, so a skill that does not load is an error row and | ||
| the rest are still reviewed. A `SKILL.md` under `template/` or `templates/` is still left out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.