Audit

From openreachtech/hora-skills-ort-core · View interactive version

Audit is an AI agent skill from the GitHub repository openreachtech/hora-skills-ort-core. Repository-specific check that every skill sits directly under kit/skills/, carries its `hoc-` prefix, and declares a `name:` equal to its own folder name, and that both skill catalogs carry a row for every one of them and a row for nothing else — the layout rules the build aborts on plus the catalo

How to use this skill

Skill file

Audit

A skill's folder name is its name: and the folder name it is installed under — one string, three places. Consuming repositories install every skill of this library, and of its sibling libraries, side by side under .claude/skills/, so all of those names live in one flat namespace, and the source layout is what protects it: one level of skill folders directly under kit/skills/, the hoc- prefix that no sibling library uses, and a filesystem that will not hold two folders of one name in one directory.

That protection is only as real as the layout. A skill placed one directory deeper, a name: edited without renaming its folder, a folder renamed without editing name: — none of these look wrong in the file they occur in, and each breaks the one guarantee the whole scheme rests on. This audit makes the state of the layout visible from outside any single file.

What is checked

For every entry directly under kit/skills/:

And, once per run, what the catalogs claim:

No document states a skill count any more, so none is checked. A count is derivable from kit/skills/, and restating it by hand bought a number a reader never acts on — the catalog beside it already shows the skills. What a catalog cannot show about itself is whether it is complete, and that is what the row check settles.

Duplicate names are not checked, because they cannot occur. Two skills of this library would need two folders of one name in one directory, and a sibling library's skills carry a prefix of their own — so once each name: is confirmed equal to its folder name, uniqueness follows from the filesystem rather than from a comparison.

Nothing else is checked here. Description length, quoting, and the rest of how a SKILL.md is written belong to the skill-writing convention, which owns them.

The walk starts at kit/skills/ and goes nowhere else. This repository's own skills under .claude/skills/ — this audit and the build — are tooling for maintaining the library, not library content: they are never installed into a consuming repository, so they never enter the flat namespace being protected here, and none of the rules above apply to them. That is why they are free to carry an unprefixed one-word name of their own.

These are exactly the failures the build aborts on, and they are stated identically in both places on purpose. The build enforces them because a violation would destroy or misplace its output; this audit enforces them so a CI job can reject the commit before anyone runs a build. Neither is a substitute for the other, so the rule is written out in both rather than shared through an import that would tie one skill's script to the other's — and a test pins the two copies of the name pattern to each other, so changing it in one place alone fails.

Every problem found is reported, grouped by kind, in one run: fixing a layout mistake often surfaces the next one, and a report that stops at the first failure would take as many runs as there are mistakes.

Running

npm run skill-names

Or directly:

node .claude/skills/audit/scripts/audit.js

It exits 0 when every skill sits directly under kit/skills/ and declares a name: equal to its folder name, and 1 on any of the failures above, so it can gate a commit or a CI job.

Resolving a mismatch

For a name: that disagrees with its folder name, decide which of the two is the name the skill should ship under, then make the other match it. The folder name is what a consuming repository installs and invokes, so the choice is about the installed command name, not about tidiness in the tree.

For a skill in the wrong place — nested too deep, or carrying a prefix this library does not own — move the folder to the library its prefix names, or change both the prefix and name: to hoc-. Renaming is the deliberate part: an installed skill's name is what consuming repositories invoke, so a rename is a breaking change for them.

Renaming a skill breaks no references inside this library: the skill-writing convention prohibits referring to another skill by name or by relative path, requiring a descriptive reference to the concept instead. That prohibition exists so a rename stays local to the one folder.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.