Build
Consuming repositories install skills as a single flat list directly under .claude/skills/, with no subdirectories. dist/skills/ is the build output of this repository that already has that flat shape, ready to be installed as-is.
kit/skills/ holds the skill folders at that same depth, each already named exactly as it will be installed. Copying is therefore the whole of the build: everything goes through untouched.
Source layout
kit/skills/ contains skill folders and nothing else. Every one carries this library's hoc- prefix, and what the library holds is the conventions and procedures that apply to any project, regardless of stack.
The sibling libraries lay their own kit/skills/ out the same way, so a skill moves between them by moving its folder, and the build and the audit read the same tree in every one of them.
Every skill is therefore at exactly this depth:
kit/skills/<name>/SKILL.md
A skill folder may hold its own subdirectories (references/, scripts/), but no SKILL.md below its top level — those subdirectories are the skill's own files, never more skills. There are no intermediate grouping directories: no declarations/classes/, no classes/members/.
The folder name is the skill's name
A skill folder's name is the skill's name:, and the folder name it gets under dist/skills/, all one string:
kit/skills/hoc-code-review/ name: hoc-code-review → dist/skills/hoc-code-review/
The prefix is part of the name: the skill is invoked as /hoc-code-review. The ho stands for hora, from Hora Kit — the Open Reach Tech product this skill library is part of — and the third character names the library: c for this library, against r for the renchan backend one and f for the Furo frontend one.
Those three characters buy two things. A consuming repository installs these skills side by side with its own, and with the sibling libraries' — a project equips whichever domains it works in — all in one flat list, and the prefix is what tells a reader at a glance which skills came from this library. And because every prefix belongs to exactly one library and a filesystem cannot hold two folders of one name in one directory, no two installed skills can end up with the same name — the flat namespace is protected by the source layout itself, with nothing to check.
The build
node .claude/skills/build/scripts/build.js
It validates the whole source tree first (below), then deletes dist/skills/ outright and recreates it: dist/ is a function of the current source alone. Without the deletion, a skill renamed or removed at the source would keep its stale folder in dist/ indefinitely, and the build would go on shipping a skill that no longer exists — a failure invisible in a diff, because nothing about the stale folder changes.
Each skill folder is then copied to dist/skills/<folder name>/ byte for byte. Nothing is rewritten:
- The
name:line stays. The field and the folder name are the same string by construction, so there is no second, divergent source of truth to remove. - No source note is appended. The source path is
kit/skills/<name>/, and the prefix names the library, so an installedhoc-code-review/already says where it came from. A footer repeating it would be text to maintain that carries nothing.
Validation runs before the deletion, so a source tree that cannot produce a valid flat namespace leaves the previous output untouched rather than half-replaced. Every problem found is reported at once, not one per run:
| Aborts the build | Why |
|---|---|
| A non-directory entry directly under kit/skills/ | Only skill folders belong there. |
| A skill folder with no SKILL.md | There is nothing to install. |
| A SKILL.md below a skill folder's top level | The one-level layout is the guarantee that the folder name is the skill name; a nested skill would have no name of its own. |
| A folder name that is not hoc- followed by 1–60 characters of [a-z0-9-] | The prefix belongs to this library alone, so a sibling's skill dropped in here would claim a name that is not this package's to publish. The name is joined onto dist/skills/ as a path segment, so a value containing / or .. would put the folder somewhere other than directly under dist/skills/. 64 characters is the limit an installed skill name has to stay within, which the 4-character prefix leaves 60 of. |
| A SKILL.md with no parsable name: | Nothing declares what the installed skill is called. |
| A name: that differs from its folder name | This is the check the whole scheme rests on. The two are one string by convention; only an enforced comparison keeps them one string in fact. |
The name rule recognizes this library's prefix alone, so a skill dropped in from a sibling library is reported as carrying an invalid folder name rather than being published under a name this package does not own.
Restricting names to a single case is what lets the folder-name comparison be exact, and what keeps two names from folding onto one folder on a case-insensitive filesystem (macOS, Windows default).
Naming a new skill
Choose the name for the reader who sees a flat list of skills and never sees this repository — then create the folder under kit/skills/, and declare the same string as name:.
The existing names came from the source tree as it was before this layout: a nested, topic-subdivided tree flattened one time by an algorithm that took the domain and the last two path segments, dropped the classifying words in between, and shortened a few of them. The conventions that fell out of it are worth keeping for new names:
| Convention | Examples |
|---|---|
| Drop structural words that only place a skill within its domain (declarations, shared, members) | hoc-async, hoc-accessors, hoc-methods |
| Keep a classifying word when it is what a reader would search for | hoc-classes-constructor, hoc-modules-exports |
| Two or more words read better as a command name than one | hoc-code-review over hoc-review |