Audit
The build refuses to write dist/skills/ while the source tree is invalid. This skill reports the same problems without touching anything, so the tree can be fixed before a build, and so CI can fail a pull request that breaks the layout.
npm run skill-names
or
node .claude/skills/audit/scripts/audit.js
It prints how many skills it checked, then one group per kind of problem, and exits non-zero when there is at least one. A clean tree prints No problem found.
What it reports
| Group | Meaning |
|---|---|
Not a skill directory | Something that is not a directory sits directly under kit/skills/. |
No SKILL.md | A skill folder holds no SKILL.md, so there is nothing to install. |
Nested skill below a skill directory | A SKILL.md below a skill's own top level: a skill hidden inside a skill. |
Folder name is not ... | The folder name does not read hos-<name>, and the folder name is the installed name. |
Missing name: | The frontmatter declares no name:. |
name: does not match the folder name | The two disagree, so a reader cannot tell which one the skill is. |
Catalogs do not match ... | A catalog is missing a row or a boundary bullet for a skill, or carries one for something not under kit/skills/. |
docs/skills.md and docs/skills.ja.md each restate kit/skills/ twice, written by hand: a table with one row per skill, and a boundary section with one bullet per skill. A skill added, renamed or dropped moves all four or none of them, and each of the four is checked in both directions. No document states a skill count any more, so none is checked: a count is derivable from the directory, and the catalog beside it already shows the skills.
The rule for a valid name is written out in this script and in the build's, rather than shared through an import, so that neither has to reach into the other's skill folder. A test pins the two copies to each other: changing the rule in one place alone fails it.
What it does not report
It says nothing about a skill's content — its wording, its structure, whether its description would make an agent pick it. This is the layout keeper, not the reviewer.


