Command Palette

Search for a command to run...

Назад к скиллам
скилл № 84442

audit

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…

БесплатноЗапускает вложенные скрипты
openreachtechот openreachtech★ 17 звёзд на GitHub

Установить audit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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/:

  • An entry under kit/skills/ that is not a directory, or a directory with no SKILL.md directly inside it, is a failure. Only skill folders belong there, and a folder with no SKILL.md installs nothing.
  • A SKILL.md anywhere below a skill folder's own top level is a failure. The one-level layout is what makes the folder name the skill name; a skill nested inside another has no name of its own. A skill folder's references/ and scripts/ subdirectories are its own files, never more skills.
  • A folder name that is not hoc- followed by 1–60 characters of [a-z0-9-] is a failure. The prefix is what keeps a sibling library's skill from being published by this one: a sibling's prefix here would claim a name that is not this package's to publish, and it is the prefix, not the directory a folder sits in, that a consuming repository ever sees. The rest of the rule guards the path — the name is joined onto dist/skills/ as a path segment, so a value carrying / or .. would land the folder somewhere else entirely; 64 characters is the limit an installed skill name has to stay within, of which the prefix takes 4. A single case keeps two names from folding onto one folder on a case-insensitive filesystem (macOS, Windows default).
  • A SKILL.md with no parsable name: is a failure, and a name: that differs from its folder name is a failure. This last one is the check everything else rests on: the two are one string by convention, and only an enforced comparison keeps them one string in fact.

And, once per run, what the catalogs claim:

  • A catalog missing a row for a skill, or carrying a row for something not there, is a failure. docs/skills.md and docs/skills.ja.md each restate kit/skills/ as a table, one row per skill, written by hand. A skill added, renamed or dropped moves both catalogs or neither, and nothing but this check reports the difference.

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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • scripts/audit.js

FAQ

Что делает скилл audit?

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 catalogs, reported all at once with a non-zero exit for CI. Use before committing a new, renamed or moved skill. It reports only; it renames and moves nothing, it checks no frontmatter field other than `name:`, and it reads nothing of a sibling library.

Как установить скилл audit?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл audit запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить audit с