/skill-builder:skill-builder [command] [skill] [--execute]from skill-builder
Creates, audits, and optimizes Claude Code skills (SKILL.md files). Supports commands for listing, verifying, converting, and managing hooks, agents, and skill metadata.
Ships in skill-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Command | Action |
|---|---|
/skill-builder | Full audit: disclaimer → scan + report → auto-executes recommended fixes (Audit Autonomy Gate) |
/skill-builder audit | Same as above |
/skill-builder audit --review | Full scan + report + would-be Execution Plan, zero writes |
/skill-builder audit --quick | Lightweight audit: frontmatter + line counts; auto-fixes mechanical findings |
/skill-builder cascade [skill] | Validation cascade analysis: detect over-validation suppressing output |
/skill-builder dev [command] | Run any command with skill-builder itself included |
"When a decision needs to be made that isn't overtly obvious, and guesses are involved, AGENTS ARE MANDATORY, in order to provide additional input in decision making."
— Added 2026-02-22, source: user directive
"Each agent being created by this system always has to have an appropriate persona that is not being used anywhere else."
— Added 2026-02-22, source: user directive
"When deploying a Team, one of the team member's persona is a research assistant who will research the issue using read-only reference tools. Other team members may also make requests from the research assistant to help augment the outcome."
— Added 2026-02-23, source: user directive (tool specifics in references/agents-teams.md)
"When the dev flag gets called, you ALWAYS concentrate on the distribution files first, then sync changes to the .claude directory after."
— Added 2026-05-08, source: user directive (after dev edits repeatedly landed in the runtime copy instead of the source distribution)
"No hooks! We don't distribute hooks. The project only makes hooks on the host system."
— Added 2026-05-08, source: user directive
"Exception to the no-hooks-distribution rule: skill-builder's own load-bearing enforcement hooks — protect-directives.sh and unique-persona.sh — DO ship in the source distribution and the installer fetches them. They protect two sacred user directives (no rewording of immutable blocks; persona uniqueness across agents). Without them, every fresh install silently loses load-bearing enforcement. The general no-distribute rule still applies to every other hook on the host system. Wiring into settings.local.json remains host-local."
— Added 2026-05-11, source: user directive (after the regenerate-and-rewire loop revealed that no-distribute leaves load-bearing enforcement off on every fresh host).
"Bifurcate jobs based on the currently selected model — split jobs between creative work (ie image generation, content generation, and design generation) and coding (everything else, including testing). When we run an audit, I want to make sure it's fluid in managing switching between models, with prompting, or not."
— Added 2026-06-01, source: user directive (the lane→model mapping is intentionally arbitrary/configurable because models change constantly; the model IDs live in references/model-lanes.md, never inside this immutable block).
"It shouldn't make any decisions based on performance, but the full completion of integrity of skills expected to be performed by the user. Don't make decisions based on 'shortcut' mentality."
— Added 2026-06-04, source: user directive (governs the reconcile command: redundancy is never the target; only completion-breaking conflict is actionable; integrity over performance, never a shortcut).
"When a project is audited and the model switching setup is deciding what is most likely creative, I want to make sure to flag any skill that has to do with communication, language translation, text evaluation, etc as creative."
"Anything that has to do with research must be performed by the coding model before being handed off to creative."
— Added 2026-06-06, source: user directive (widens the creative lane of the 2026-06-01 bifurcation directive to communication / language-translation / text-evaluation skills, with research explicitly staying on the coding model and taking precedence over creative signals; the signal lists implementing this live in references/model-lanes.md § Advisory Lane Suggestion, never inside this immutable block).
"Why option 3 is important, and this should be a directive moving forward, there are usually explicit directions on directing the text-evaluator workflow. These workflows may include routing points to other skills, so agents should be highly focused as to preserve the original intentent of the skill and preserve its workflow as the highest priority. There are no shortcuts. We aren't doing this for token efficiency. We're doing this to actually preserve the workflow and make the main model most effective at its task."
— Added 2026-06-06, source: user directive (captured verbatim from the lane-delegation workshop; "option 3" refers to the workshop's fleet-design choice of bespoke per-skill agents over a shared generic fleet. Governs lane-pinned excursion delegation: agents are designed per skill from that skill's reviewed material; workflow preservation — including routing points to other skills — is the highest priority; token efficiency is never a valid rationale. The delegation machinery lives in references/lane-delegation.md and references/procedures/agents.md, never inside this immutable block.)
"All agents created or modified during the audit should have a model specified, per the user's choice of creativity model and everything else model."
— Added 2026-06-06, source: user directive (every AGENT.md that audit — or any command running under audit — creates or modifies must carry an explicit model: field, resolved from the user's Lane→Model choices in references/model-lanes.md: creative-lane work gets the creativity model, everything else gets the everything-else/coding model. The assignment mechanics live in references/lane-delegation.md § Audit Model-Assignment Rule, never inside this immutable block.)
"The system is a 2-brain harness that balances between creativity and analytics: at the audit's single onboarding question, the user picks the creative model and the model for everything else. /route is the preferred smart door that matches the orchestrator to the work's lane with at most one prompt per endeavor. If the user wants to hand run skills, that's absolutely fine — hand-run skills stay lane-aware through their own slim gates, which go silent when route already covered the endeavor."
— Added 2026-06-06, source: user directive (ratified from the 2-Brain Harness workshop; see ledger DEC-2026-06-06-two-brain-harness and INC-2026-06-06-silent-lane-correctness. Drafted from the user's verbatim session wording and ratified as a unit. The gate/dispatch mechanics live in references/procedures/route.md and references/model-lanes.md, never inside this immutable block.)
"When the user asks to create skills, route looks for a similar skill and modifies that or builds a new one — and the skill creation decision is part of the skill-builder skill. The system gives Claude Code as much creative leeway as possible to propose; the user ratifies. Skill management is risk-tiered to the analytical brain: high-risk commands prompt for it, low-risk additions run wherever the session is."
— Added 2026-06-06, source: user directive (ratified from the 2-Brain Harness workshop. Route's no-match path hands off to skill-builder's intent-router, which owns the modify-vs-create decision; route never synthesizes the dev prefix; direct /skill-builder invocation remains the always-legal maintenance hatch. The handoff and risk-tier mechanics live in references/procedures/route.md and references/procedures/intent-router.md, never inside this immutable block.)
"The orchestrator has an army of minions, bounded to a platoon: delegation is justified only by model-fit (cross-lane work) or context isolation (unbiased evaluation), never by token efficiency or speed. Every minion is pinned to one of the two brains. A minion that discovers ambiguity returns the question to the orchestrator — it never guesses."
— Added 2026-06-06, source: user directive (ratified from the 2-Brain Harness workshop, panel-bounded from "army" to "platoon" per the fleet-mechanics review. The delegation rationale vocabulary, AMBIGUOUS sentinel, and fleet-hardening mechanics live in references/lane-delegation.md, never inside this immutable block.)
"No user should ever be asked this question. No model switching should be requested during the audit process or any function of skill-builder. However, I would like to mention that there be a disclaimer that must be accepted by the user before proceeding with audit. The disclaimer should mention that skill-builder is designed to be used with Opus 4.7 or higher model. However, skill created with skill-builder are backwards compatible with earlier models. Please backup your CLAUDE.md and .claude directory before proceeding."
— Added 2026-06-06, source: user directive (issued in reaction to the audit Step 4f batched switch prompt — "this question" refers to that AskUserQuestion instructing the user to run /model. Eliminates every model-switch request across skill-builder: the audit 4f switch prompt, route's dispatch-time lane preflight prompt, the embedded MODEL-LANE-GATE preflight prompt, and route's high-risk analytical-brain prompt all become report-only advisories. Supersedes prompting mechanics only, newest-wins, user-ratified 2026-06-06: the 2026-06-01 "with prompting, or not" resolves permanently to "or not"; the 2026-06-06 "at most one prompt per endeavor" resolves to zero switch prompts; the 2026-06-06 "high-risk commands prompt for it" becomes a one-line advisory. The lane system, the audit's single onboarding question, and the every-audit Lane→Model picker are unchanged per the same ratification — they configure the mapping and never request a switch. The disclaimer-acceptance checkpoint lives at the top of references/procedures/audit.md; advisory mechanics live in audit.md § Step 4f and references/procedures/route.md, never inside this immutable block.)
"likewise, I would like to prevent questions like this from happening, too. ... The audit command should be as automated and streamlined as possible. There shouldn't be any hard questions like this for the user."
"I don't mind the two questions for choosing the creative model and analytical model. that needs asked every time audit is ran, regardless. Just limit any additional questions. Always do the work, instead of suggestion to skip work that will improve the system."
— Added 2026-06-06, source: user directive (first clause issued in reaction to audit Step 6's batched execution menu — "questions like this" refers to that Fixes/System multi-select AskUserQuestion; "likewise" extends the same-day no-switch-prompt directive from model-switch prompts to execution menus. Second clause is the user's clarification in the same session: the Lane→Model picker's two model questions are asked on EVERY audit run, regardless; everything else is limited; improvement work is DONE, never offered as skippable. Together they abolish audit's Step 6 execution menu and every mid-audit decision question: disclaimer acceptance (audit Step 0, whose backup warning is the consent instrument) authorizes the run — audit scans, reports, then auto-executes its recommended fixes and terminal route tasks as a sequential TaskCreate list, including bootstrap-mode CLAUDE.md extraction at high confidence and Awareness Ledger creation, with agent panels — never user menus — resolving judgment; ambiguity resolves to the conservative alternative or DEFERS to the report's Deferred Items table with a ready-to-run command, never a guess, never a question, never a silent skip. Only genuinely destructive or ratification-gated work defers: strip deletions, convert/migration (inline sacred gates), quarantine repairs of hand-authored files, protective/unrecoverable dead wiring, and git-dependent fixes in no-VCS projects. The only questions any audit may ask are exactly three: the Step 0 disclaimer, the one-time 4f-setup onboarding, and the every-audit Lane→Model picker. Supersedes execution-menu mechanics only, newest-wins: Rule 3's "offers the user a choice", the Step 6 menu, the bootstrap extraction menu, quick-audit's per-item y/n offer, and the under-audit post-action-chain menu all become automatic; standalone commands invoked outside audit keep their own menus. The AUTO/DEFER tiering and execution mechanics live in references/procedures/audit.md § Step 6, never inside this immutable block.)
"The 2026-05-11 hooks-in-source exception extends to the PowerShell companions of the same two hooks — protect-directives.ps1 and unique-persona.ps1 — so Windows hosts keep the mechanical backstop. The exception set is exactly these four files: the two bash originals and their two PowerShell ports. Nothing else about the no-hooks-distribution rule changes; wiring into settings.local.json remains host-local, and the hooks procedure wires the OS-appropriate variant."
— Added 2026-06-06, source: user directive (ratified via AskUserQuestion — "Ship .ps1 companions" — during the cross-platform installer session; see ledger DEC-2026-06-06-cross-platform-installer. Drafted from the ratified option's stated scope and ratified as a unit. Amends the 2026-05-11 exception's file set only; that directive's text above stays verbatim. The .ps1 ports are fail-open and remain dormant on any host until wired via /skill-builder hooks; the port implementations live in skill-builder/hooks/, never inside this immutable block.)
"When you give route a task, it reads the whole course of action it's been handed and picks the dominant hemisphere for the job — the brain the main loop will mostly run in — and relies on the agents for the rest. Route can't switch the model itself, but it's the one door allowed to ask: when the dominant hemisphere doesn't match the current session model, route asks the user to run
/modeland waits before dispatching. This doesn't override bringing up a skill manually — hand-run skills stay advisory-only. This restores route's dispatch-time ask, superseding (newest-wins) only the route clause of the 2026-06-06 No-Switch-Prompt directive; audit and the per-skill gates stay report-only."
— Added 2026-06-07, source: user directive (ratified "ratify" after a 3-agent fidelity/conflict/premortem panel tightened the verbatim wording. Restores route's dispatch-time ask ONLY: when the dominant hemisphere — the matched entry skill's PRIMARY lane, or the task's lane on the no-match path — does not match the active model, /route alone may ask the user to run /model and wait. Route can never switch the model itself; a tie/UNCONFIRMED lane resolves to the analytical brain and never asks; off-hemisphere steps delegate to lane-pinned agents. Supersedes newest-wins ONLY the route-dispatch-prompt clause of the 2026-06-06 No-Switch-Prompt directive — audit Step 4f, the per-skill MODEL-LANE-GATE, and hand-run invocation stay report-only/advisory-only. The ask mechanics, dominant-hemisphere resolution, tie default, and assessment-based endeavor coverage live in references/procedures/route.md § Canonical Dispatch CHECKPOINT clause 2, never inside this immutable block.)
"Hand-run skills stay non-blocking on a lane mismatch, but the advisory must name the exact remedy: state the preferred model and the literal command — run
/model <preferred>and re-invoke — then proceed as-is. Never a question, never blocking, and the skill still can never switch the model itself."
— Added 2026-06-11, source: user directive (ratified via AskUserQuestion — "Strengthen the advisory (Recommended)" — after a 3-agent research/skeptic/premortem panel reviewed the hand-run vs route-door asymmetry; drafted from the ratified option's stated scope and ratified as a unit. Amends ADVISORY WORDING ONLY, superseding (newest-wins) the 2026-06-06 No-Switch-Prompt directive's never-name-/model mechanic for the per-skill MODEL-LANE-GATE advisory line alone: naming the command informationally is now REQUIRED there; asking a question, blocking, or switching remains forbidden. The 2026-06-07 route-ask directive's door ask, audit Step 4f's report-only advisories, and the hand-run advisory-only rule are all unchanged. The advisory template lives in references/procedures/route.md § Step 8c clause 4, never inside this immutable block.)
"build that scrub loop for text and images.. and make sure we do research around these topics an explicitely update, through audit, these mechanisms for any skill that manages this type of workflow"
"But, i'd like item #2 to build new skills or funciton within existing skills of the project to facilitate all these points?"
— Added 2026-06-11, source: user directive (the scrub-loop build order, issued with nine accompanying scrub principles — detection philosophy: clustering, not signals; three tiers of tells; the subtle tells that survive review; fixes introduce new tells; protect the voice, don't just hunt AI; context-isolated validation; severity architecture; SEO/snippet text conflicts with voice; keep the pattern library living. The nine principles are preserved VERBATIM in references/creative-integrity.md § The Nine Scrub Principles — user-origin, immutable there — never paraphrased into this block. The second clause ("item #2" refers to the Creative Integrity audit check) was issued the same day after the first implementation shipped report-only: it upgrades audit Step 4c-bis from report-and-defer to BUILDING the missing scrub machinery — new functions within existing skills, and new evaluator skills where none exist. Build mechanics were premortem-hardened and ratified as a unit: builds are strictly ADDITIVE (a build never rewords hand-authored text and never touches an immutable block); build-into-existing fires only when the loop leg is demonstrably absent (equivalence-uncertain degrades to DEFER, never to a competing chain); whole-new-skill scaffolding fires only on DECLARED creative-lane evidence, never inferred classification; voice-dependent gates in built scaffolds are advisory-only when the project has no voice profile; builds are atomic-or-absent with code-eval-grade modifiable-true seams. Scrub loops themselves stay per the design panel's conservative scope (auto-fix MUST FIX + hard-directive flags only; best-so-far + divergence abort; humanity floor; fixability classifier; provenance guard). Research around these topics runs on the coding model per the 2026-06-06 research-precedence directive. The compliance checklist, canonical loop spec, build policy, scaffolds, and research digest live in references/creative-integrity.md, never inside this immutable block.)
"Okay, we have a problem with the text-eval not being installed if nothing yet exists... check out this correspondence..."
"... and I also want to make sure that existing skills that do the function of text-eval get updated with audit, no questions asked."
"yeah, keep in mind, we may be adding more "signs" to flag in the future, so everything will need to be forceably upgraded."
— Added 2026-06-12, source: user directive (issued with an attached audit transcript in which an all-coding-lane project received no evaluator — zero declared creative lanes meant the 2026-06-11 new-skill tier never fired, and the audit defended the non-build as correct; the user rejects that defense. First clause: audit installs the text-eval evaluator scaffold whenever nothing serving that function yet exists — the precondition is ABSENCE ALONE: the signal-based, never name-based existence test finds no skill performing the evaluator function AND no text-eval skill directory exists (mirroring the code-evaluator ensure-exists precedent, audit.md § Step 4a-bis). Lane declarations no longer gate the build; the scaffold's own lane: creative frontmatter is authored by the build, never inferred from any existing skill, and the project's Skill→Lane table is never touched. Supersedes newest-wins ONLY the "declared creative-lane evidence" precondition of the 2026-06-11 build clause's new-skill tier (and its inferred-only→DEFER row); every other hardening of that clause stands unchanged — strictly additive builds, demonstrably-absent panel confirmation for build-into-existing, equivalence-uncertain→DEFER, atomic-or-absent, name-collision guard, advisory-only voice gates absent a voice profile. Panel-adopted guards ratified with this directive: a project-level <!-- creative-scrub-build: off --> marker in references/model-lanes.md silently suppresses the new-skill build (declarative opt-out, never a question); lanes unconfigured → the scaffold's agent ships with model: absent and flagged, never an invented ID (Audit Agent Model-Assignment Gate clause 4). Second clause: skills qualify for updates by FUNCTION — the lane-free § Scope signals (evaluator, scrub, voice machinery) already implement this — and "no questions asked" means audit APPLIES the updates instead of deferring them: pattern-library gap appends into hand-authored libraries move from DEFER to AUTO, written only as ONE machine-owned origin: skill-builder | modifiable: true appendix region at the end of the library file — existing bytes never modified, structural fit verified before the write (no parseable fit → paste-ready DEFER row, the atomic-or-absent discipline), the .scrub-gaps.acked sidecar is the sole dedup authority (acked slugs never re-append even if equivalence misses a user-moved row), and the append fires only when the skill's evaluator demonstrably grounds against the full library file (else DEFER — the inert-sidecar lesson, DEC-2026-06-08). Immutable blocks stay FLAG-NEVER-TOUCH; equivalence-uncertain stays silently skipped. Third clause (same session): the shipped signs catalog will keep growing, and growth propagates FORCIBLY — whenever the shipped catalog version anchor (references/creative-integrity/version.md) is newer than what an installed evaluator or library was last checked against, audit MUST run the gap comparison and apply the AUTO appends in that same run (never skipped, never offered, never a question); scaffold-generated libraries' machine-owned regions are version-synced to the current catalog the same way code-eval sync refreshes its shipped references; the ack sidecar suppresses only slugs whose shipped entry is unchanged — new signs are never acked and always land. Design panels are agents, never user questions, per the 2026-02-22 agents directive. The build and tiering mechanics live in references/creative-integrity.md § Audit Policy / § Pattern-Library Gap Check and references/procedures/audit.md § Step 4c-bis and § Step 6, never inside this immutable block.)
"I would like to add a gatekeeping item to the audit process. After the initial question, asking for approval to edit Claude files, I would like to have a separate gatekeeping question. but I would like to have this be a check box item that people check boxes and move forward. here is what I'd like to accomplish. Not everyone wants text-eval or code-eval installed into their project skills. There may be other evaluations or helpers that we might want to add to this list. You might check on that, but I think those are the main culprits. The user may already have intricate skills sets for this that we don't want to manage or mess up too bad or cause undo processing when what they have works already. I envision a notice that comes up and asks if you would like to have these installed the user will have a check box by each one they want. if the items are already present in the project there will be checkmarks by those items already as ready to push forward. If an item is unchecked, then audit should remove that skill set from the project."
"Yeah, this question should be moved to second in line right after the acknowledgment question."
"If route is in this list, just make sure that in parentheses next to it it shows as recommended item. The same goes for ledger."
"Always defer to strip. But the removal process should be smart enough to go through all of the rest of the skills and remove it completely so that no one is connected to it referring to it at all. That's why this question comes up second in line, because the route index and rote embedding will affect the outcome too."
— Added 2026-06-24, source: user directive (ratified after a 3-agent design panel — supersession cartographer / demolition-safety inspector / intent steward — mapped the conflict surface, and the user ratified the removal semantics via AskUserQuestion: "Always defer to strip"). Adds a SECOND audit question, the Companion-Skill Selection Gate, fired immediately after the Step 0 disclaimer (audit.md § Step 0.3): a multi-select checkbox of the evaluator/helper companion skills audit force-installs — text-eval, code-evaluator, route (recommended), awareness-ledger (recommended) — pre-checked by a signal-based (never name-based) presence test, with the recommended pair labeled in parentheses per the user's wording. CHECKED + absent → the existing AUTO install task fires (this gate now AUTHORIZES the install-on-absence / ensure-exists appends of Steps 4a, 4a-bis, 4c-bis, and 4g; they no longer fire unconditionally). UNCHECKED → the install is suppressed and, if the skill is present, removal is DEFERRED to /skill-builder strip <skill> in the Deferred Items table (never an AUTO delete: the user ratified "Always defer to strip"); strip performs the complete cross-reference disconnection across every other skill plus the route index / embed refresh, which is why this gate fires SECOND, before the audit commits its terminal route tasks. A provenance guard limits removal to skills skill-builder itself scaffolded; a user's hand-authored evaluator is detected-as-present (so no duplicate is offered) but never offered for removal. Choices persist in a per-project <!-- companion-skills: … --> marker in references/model-lanes.md (back-compat: a legacy creative-scrub-build: off marker reads as text-eval=off). Supersedes newest-wins ONLY: (a) the "absence alone" auto-install trigger of the 2026-06-12 install-on-absence directive for text-eval, and the "by default, not opt-in" auto-append of code-eval create / ledger / the route bootstrap, which now gate on the checkbox/marker; (b) the "exactly three questions" count of the 2026-06-06 Audit Autonomy directive, since the audit now asks FOUR sanctioned questions (disclaimer, this companion gate, the one-time 4f-setup onboarding, the every-audit Lane→Model picker). Every other hardening of those directives stands verbatim and untouched, and the destructive-work-DEFERS floor (strip deletions never auto-run; deletion is delegated to strip, never reimplemented) is honored rather than superseded. The gate is suppressed in headless / non-interactive / audit --quick runs (no checkbox can render, and absence of an answer NEVER means remove: headless honors the existing marker or the install-on-absence default and removes nothing). The gate, marker scheme, provenance guard, and DEFER-removal mechanics live in references/procedures/audit.md § Step 0.3 and § Step 6 and references/model-lanes.md § Companion Skills, never inside this immutable block.)
"Actually, I'd like to add one more feature first. And I would like to add this feature to the second question slot, pushing the rest of the questions down. I would like Claude to ask if we would like to back up or not. The backup process would create a new zip file of the CLAUDE.md and the claude directory with the current date as part of the name. I'm not sure what we should call the directory that we put the zip files in, but there should be a rotation of the last three files and no more. This process will also need to check .getignore if it exists and make sure that this directory is excluded from the repository."
"Likewise, we also need a restore function that will restore one of the three files. If this is a new project where the audit is running for the first time we will want to make sure that this backup is special and never removed by the rotation of the three saves. That way if you choose Claude uninstall, it will restore this original Claude and skill set etc.."
"Something else that we should probably add is updating the disclaimer. It should probably be rewarded to let the person know that there is a backup process available. The user will be asked about it making use of this backup process will allow for a clean uninstall of Claude enforcer."
— Added 2026-06-24, source: user directive (ratified after a 3-agent design panel — portable-mechanism engineer / recovery-integrity inspector / procedure cartographer — resolved the cross-platform, data-loss, and flow-placement decisions; the user directed the build with "Do it"). Adds the Step 0.2 Backup Offer as the new SECOND audit question, pushing the Companion-Skill Selection Gate to THIRD and raising the sanctioned-question count to FIVE (disclaimer, backup, companion gate, one-time 4f-setup onboarding, every-audit Lane→Model picker). On "yes," a zip of CLAUDE.md + the .claude/ directory, date-stamped, is written under .claude-backups/ at the repo root (a sibling of .claude/, never nested — so the zip cannot swallow its own output; the user left the directory name to skill-builder's choice). Rotation keeps the last 3 rotating snapshots; the FIRST-EVER backup (a project's first audit) is a pinned baseline that rotation never removes, so the original CLAUDE.md and skill set survive forever and a later clean uninstall of claude-enforcer can be restored from it. .gitignore is updated to exclude .claude-backups/ only if a .gitignore already exists. A standalone restore command restores CLAUDE.md + .claude/ from a chosen snapshot (baseline, rotating, or a pre-restore safety snapshot). Restore is HIGH-RISK/DESTRUCTIVE — strip's mirror image (overwrite, not delete) — so it is display-default + --execute + a confirmation gate, takes an automatic pre-restore snapshot first (its own undo), checks VCS like audit Step 0.5, shows a blast-radius diff before overwriting, verifies the source's integrity before trusting it, and is NEVER auto-fired by audit (the destructive-work-DEFERS floor). The audit Step 0 disclaimer's machinery-disclosure bullet is extended to announce the backup offer and that taking it enables a clean uninstall/restore — the first three disclaimer bullets stay sacred-verbatim (2026-06-06 directive) and are not touched. The backup zip runs FIRST in the Step 6 auto-execution phase (before any AUTO edit, code-eval/route, or deferred strip) so it captures pre-audit state; it is skipped in headless / non-interactive / audit --quick and never blocks. Supersedes newest-wins ONLY the question COUNT — the 2026-06-24 Companion-Skill directive's "FOUR sanctioned questions" and the 2026-06-06 Audit Autonomy directive's "exactly three" become FIVE — and the Companion gate's "fires SECOND" framing (it now fires THIRD, displaced by the backup offer; that earlier directive's verbatim text stays byte-for-byte unchanged, superseded only in this prose). No script is shipped: the backup/restore mechanics are markdown procedures driving host-generated commands (the checksums precedent), and the restore kit (RESTORE-README.md + restore.sh/.ps1) is host-generated into .claude-backups/, never added to the manifest — so the baseline restores even after the skill is uninstalled. The mechanics live in references/procedures/backup.md and references/procedures/restore.md and references/procedures/audit.md § Step 0.2 and § Step 6, never inside this immutable block.)
"I like the idea of breaking up the list between Evaluators and Helpers."
— Added 2026-06-25, source: user directive (ratified after a 3-agent panel — regression-hunter / premortem-analyst / skeptic — mapped the conflict surface). Reshapes the Step 0.3 Companion-Skill Selection Gate into TWO grouped multi-selects — Evaluators (text-eval, code-evaluator) and Helpers (route, awareness-ledger) — rendered as two question objects inside ONE AskUserQuestion call. Two question objects in one call is one question slot (the Lane→Model picker precedent — two model questions, one call, one slot), so the sanctioned-question count stays FIVE — this directive adds ZERO new audit questions; it only restructures the existing one. The split's render mechanics live in references/procedures/audit.md § Step 0.3 + § Step 6 and references/model-lanes.md § Companion Skills, never inside this immutable block.)
"I'd like to adjust the checkboxes for audit that is meant to install/uninstall custom skills built by this package. I'd like to make this much easier. I'd like to check the boxes of what people want to install, (or update). uninstall can happen manually. This will remove some of the confusion. ... also, claude-fable-5 is not part of the advisor pool for that check area. All model selections should work off the same pool to choose from."
— Added 2026-07-17, source: user directive (design vetted by a 3-agent panel — regression-hunter / premortem-analyst / skeptic — before authoring). Reshapes the Step 0.3 Companion-Skill Selection Gate into a NATURAL install-only widget: a checked box means INSTALL; an unchecked box means nothing happens; the gate never uninstalls — removal is exclusively the user's own manual /skill-builder strip <name> --execute, whenever they choose. Only ABSENT companions render as checkbox options (a present companion has nothing a checkbox could authorize: its updates — code-eval sync, forced catalog propagation, the terminal route tasks — already run unconditionally, satisfying the directive's "(or update)" clause; present companions are listed informationally with the exact strip command named, per the 2026-06-11 named-command advisory). A group with no absent members is omitted; all four present → the gate is a one-line notice, not a question. The empty default is inert SYMMETRICALLY: an interactive empty submission installs nothing, and the headless/--quick marker-absent fallback likewise installs nothing (a user-ordered reversal of the install-on-absence default, so the two modes can never disagree; a persisted <name>=on marker still authorizes headless installs). Marker semantics: on = installed/authorized; off = "do not auto-install while absent," NEVER "remove"; a present-but-not-rendered companion PRESERVES its existing marker value (a prior hand-set off is never silently flipped — the INC-2026-07-01 keep-semantics lesson), and a missing key resolves on. The "(recommended)" labels on route and awareness-ledger are RESTORED — the original 2026-06-24 parenthetical wording reads correctly again once a check means install. Supersedes newest-wins ONLY: (a) the 2026-06-24 directive's removal clause ("If an item is unchecked, then audit should remove that skill set from the project") and its "Always defer to strip" DEFER-row mechanic — strip remains the sole deletion path, now user-initiated only, so the destructive-work-DEFERS floor is honored by subtraction; (b) the 2026-06-24 inversion follow-up's inverted-widget and no-"(recommended)" rendering mechanics; (c) the 2026-06-12 install-on-absence default as an unconsented trigger in BOTH interactive-empty and headless-marker-absent states. The 2026-06-25 Evaluators/Helpers split, the one-call/one-slot rendering, the FIVE-question ceiling (now a ceiling the gate may come in under), the headless suppression rule, the marker persistence, and the provenance/no-duplicate guard all stand unchanged. Second clause (advisor pool): every model-choosing question — the two lane questions AND the global advisor question — draws from the ONE shared pool defined at lane-delegation.md § Lane→Model Picker (statics newest-first plus the live-discovered latest; claude-fable-5 always offered in the advisor question and never dropped); consumer files must reference that pool, never restate a private option list. The gate, marker scheme, and pool mechanics live in references/procedures/audit.md § Step 0.3 and § Step 6, references/model-lanes.md § Companion Skills, and references/lane-delegation.md § Lane→Model Picker + § Global Advisor Model, never inside this immutable block.)
"All deferred actions need to be automatically taken care of without user permission or prompting."
— Added 2026-07-22, source: user directive (issued in reaction to audit runs that produce Deferred Items tables requiring new users to manually discover and run follow-up commands — "That's too much to ask, especially for new users of this tool"). Eliminates the DEFER tier from audit's AUTO/DEFER classification: every item that previously deferred to a manual follow-up command now auto-executes in the Step 6 phase under the Step 0 disclaimer consent. Agent panels — never user questions — provide the judgment that deferred items previously pushed to the user: strip redundancy confirmation (with BREAKING detection still firing; agent panel replaces the --confirm-breaking user gate), quarantine repair determination, dead-wiring recover-vs-unwire calls, AMBIGUOUS bootstrap candidate resolution (conservative on panel disagreement), directive-protection sidecar generation and hook wiring, code-eval enforcement wiring and refresh, convert ratification decisions, and creative-integrity guard-failure adjudication. The Step 0.2 backup is the recovery mechanism for destructive operations and for git-dependent operations in no-VCS projects (backup taken → proceed; backup declined → proceed with warning). Failed auto-execution tasks land in the Execution Summary as ✗ items with explanations — never as "run this command" deferrals. Supersedes newest-wins ONLY the DEFER tier and "destructive-work-DEFERS floor" of every prior directive that defined them: the 2026-06-06 Audit Autonomy Gate's clause 4 DEFER list, the 2026-06-24 "Always defer to strip" DEFER-row mechanic (strip auto-runs under agent-confirmed redundancy when reconcile confirms a completion-breaking conflict; the companion gate's non-removal stance is unchanged — it authorizes installs only; strip fires from RECONCILE findings, never from the companion gate), the code-eval enforce and directive-protection "deliberate host act" DEFER framing (the audit IS running on the host; the Step 0 disclaimer IS the deliberate consent), and the creative-integrity DEFER tiers for guard-failed and equivalence-uncertain items. Every other hardening stands: immutable blocks remain FLAG-NEVER-TOUCH, builds are strictly additive, agent panels fire as written, the backup-before-mutation sequence is preserved, VCS preflight still warns, headless runs remain scan-only, restore is never auto-fired (distinct from strip — overwrites not deletes), standalone command gates keep their own --execute requirements when invoked outside audit, and the FIVE sanctioned audit questions are unchanged (no new questions added — agent panels replaced the judgment that DEFERRALS previously pushed to manual follow-up). The execution mechanics live in references/procedures/audit.md § Step 6, never inside this immutable block.)
"the setup questions during an audit should never be skipped"
— Added 2026-07-24, source: user directive (issued after a run where the Step 0.4 picker fired with two question objects instead of three. The pasted diagnosis attributed the drop to an <!-- advisor-setup: declined --> marker; verification during authoring found NO such marker anywhere in the project — a missing marker reads unset, which asks — so the object was dropped by executor omission, not by any spec branch. Both paths are closed here: the object-level assertion is the load-bearing fix, and the marker demotion removes the one remaining sanctioned way to reach the same skip. Design vetted by a 3-agent panel — regression-hunter / premortem-analyst / skeptic — which converged on the narrow scope stated here). Establishes an OBJECT-LEVEL floor: once a sanctioned audit question renders, every question object inside it is UNCONDITIONAL. The batched Lane→Model picker call — at § Step 0.4 and inside the 4f-setup onboarding alike — ALWAYS carries all three objects: creative lane model, coding (everything-else) lane model, and the global advisor model. No marker may drop an object from a call that renders. advisor-setup: declined is demoted from a suppression switch to a STATE RECORD ONLY: it pre-selects the literal "No advisor" option as that question's default — the same "asked every audit, current value pre-selected" contract the two lane questions already carry — so declining stays one click and is never a skip. On declined the default is forced to "No advisor" regardless of any user-scope advisorModel, and re-confirming "No advisor" writes nothing (single-write discipline: no marker churn, no settings churn). The Step 6 pre-execution picker assertion is hardened from picker-level to OBJECT-level — it asserts all three objects were demonstrably asked this run, not merely that the picker fired. Supersedes newest-wins ONLY the advisor-question suppression clause of the 2026-07-08 global-advisor design ("declined → suppress the advisor question only"); every other part of that design stands verbatim — the marker itself, the host-local advisorModel write, the full-official-ID shared option pool, the pairing filter, "No advisor" as an offered option, fleet inheritance, and the one-call/one-slot FIVE-question ceiling (this directive adds ZERO questions; it restores a question OBJECT). Explicitly NOT superseded, and unchanged: the separate model-lane-setup: declined state remains a real per-project opt-out that silences lane management entirely (a total, legible opt-out with no in-question decline path, unlike the advisor's); the headless / non-interactive / audit --quick suppression of the picker itself (no widget can render there, and an object can never be forced past a question that does not render); the one-time nature of the 4f-setup onboarding; and the Step 0.3 companion gate's absent-only rendering. Both picker callers move together — audit and the standalone model-map — since they share one normative spec. The mechanics live in references/lane-delegation.md § Global Advisor Model, references/model-lanes.md § Advisor-setup marker, and references/procedures/audit.md § Step 0.4 + § Step 6, never inside this immutable block.)
"don't prevent or warn agasint the user selecting an older, less capabile model as an advisor"
— Added 2026-07-24, source: user directive (quoted verbatim, typos included, per the never-reword rule; issued alongside a refresh of the picker's static pool). The advisor question offers the WHOLE shared pool: no option is filtered out on capability grounds, and no option label, question copy, report line, or advisory may caution that a chosen advisor is older or less capable than the main model. The user's choice of advisor is theirs — including a deliberately smaller, cheaper, or older one. Supersedes newest-wins ONLY the option-filtering and capability-caveat mechanics of the 2026-07-08 global-advisor design ("filter that list by the Pairing rule against the DETECTED main model"; "the advisor must be at least as capable as the main model"; the Fable-family-main narrowing). Claude Code's own attach-time validation still exists and is retained in the spec as IMPLEMENTATION RATIONALE for why an unfiltered list fails safe — it is never surfaced to the user as a warning. Everything else about the advisor stands verbatim: the marker, the host-local advisorModel write, FULL official model IDs (never aliases), the ONE shared pool, the four-option ceiling with "No advisor" always keeping a slot, the 2026-07-24 always-renders rule, and the platform version/provider caveats (Claude Code ≥ 2.1.98; Anthropic API only), which are factual requirements rather than capability judgements and are unaffected. The unfiltered-pool mechanics live in references/lane-delegation.md § Global Advisor Model → § No capability filter, never inside this immutable block.)
"for item number 4, instead of leatest released model, discoverable live, replace that with a manual entry so they can type in the one they want"
— Added 2026-07-24, source: user directive (quoted verbatim, typos included, per the never-reword rule; "item number 4" is the fourth option of the shared Lane→Model pool). Retires the live latest-model discovery ladder — the GET /v1/models call, the models-overview docs fallback, the omit-with-notice failure branch, the dedupe-against-statics step, and the never-cache rule that governed them. The fourth option is now MANUAL ENTRY: AskUserQuestion's auto-appended "Other", where the user types any model ID they want. Every question rendering this pool must ANNOUNCE manual entry in its copy (e.g. "…or choose Other to type any model ID") — an unannounced "Other" is not a usable fourth option, and it is the only path to a model the shipped statics do not name. What the user types is taken VERBATIM as the full official ID: no alias translation, no capability judgement (§ No capability filter), normalized only by stripping a [1m]/[200k] suffix per model-lanes.md § Active-Model Detection. The never-fabricate rule is unchanged and now load-bearing: the shipped statics are the only IDs skill-builder itself may ever propose, and any other ID reaches the mapping by being typed by the user, never guessed by the assistant — discovery existed to serve that rule, and manual entry serves it without a network call that can fail. Consequence to preserve: with three statics and no discovered fourth, nothing is ever dropped — the lane questions sit under the four-option ceiling and the advisor question exactly fills it once "No advisor" is added, so the peel-the-oldest-static mechanic is retired too; a future change that would exceed four STOPS and reports rather than silently dropping an option. Supersedes newest-wins ONLY the fourth-option/discovery mechanics of the 2026-07-04 and 2026-07-15 picker designs; the static list itself, newest-first ordering, the ONE-shared-pool rule, full-official-IDs-never-aliases, "No advisor", the always-renders rule, and § No capability filter all stand unchanged. The option-list mechanics live in references/lane-delegation.md § Lane→Model Picker, never inside this immutable block.)
CHECKPOINT — Non-Obvious Decision Gate:
CHECKPOINT — Persona Assignment Gate:
.claude/skills/*/agents/*.md (flat-file agents like agents/failure-triage.md), .claude/skills/*/agents/*/AGENT.md (subdirectory-form agents like agents/optimize-diff-auditor/AGENT.md), AND .claude/agents/*.md (project-registered agents — dereference symlinks and dedupe by resolved target, since registration symlinks point back into the skill forms). Union the globs — agents may live in any form, and dropping one form silently drops uniqueness coverage for that slice of the population./skill-builder hooks dev skill-builder --execute, which builds an OS-appropriate hook locally without shipping it.CHECKPOINT — Team Research Assistant Gate:
CHECKPOINT — Source-First Ordering Gate (fires when dev_mode == true):
${CLAUDE_PROJECT_DIR}/skill-builder/SKILL.md exist?
skill-builder/<path> files have been edited so far in this session? Maintain a mental ledger of source paths touched..claude/skills/skill-builder/<path> or skill-builder/<path>:
skill-builder/<path> → CONTINUE. This is the canonical first-pass edit..claude/skills/skill-builder/<path>:
skill-builder/<path> has already been edited in this session → CONTINUE. This is the mirror phase.skill-builder/<path> has NOT been edited in this session → STOP. REWRITE the target to skill-builder/<path> BEFORE issuing the call. Edit source first.git status --short -- skill-builder/. Empty when changes were expected = FAIL. Report: "Source-first ordering violated. Edits landed in the runtime only. Reverse order and retry."CHECKPOINT — No-Distribute-Hooks Gate:
{ protect-directives.sh, unique-persona.sh, protect-directives.ps1, unique-persona.ps1 } (the two bash originals per the 2026-05-11 directive, plus their PowerShell companions per the 2026-06-06 extension). Every step below applies to all hooks EXCEPT those in this set; the exception steps (1b, 3b) cover the named hooks explicitly.skill-builder/hooks/ whose basename is NOT in EXCEPTION_HOOKS → STOP. The source distribution MUST NOT contain hook scripts other than the named exceptions. Hooks live only in the runtime copy on the host system.
skill-builder/hooks/ is PERMITTED and REQUIRED per the 2026-05-11 sacred directive and its 2026-06-06 PowerShell-companion extension. These ship in source.hooks: frontmatter block to source skill-builder/SKILL.md → STOP. Source SKILL.md MUST NOT declare hooks. The runtime SKILL.md may declare hooks the host has generated locally; source must not.
type: command echo emitting additionalContext, no script file) IS permitted in source frontmatter and ships. It is directive-protection machinery of the same class as EXCEPTION_HOOKS. Any other frontmatter hook declaration remains forbidden; extending or adding to the block re-enters clause 3.manifest.txt (the shared file list consumed by both install and install.ps1) or any fetch line to either installer script → check against EXCEPTION_HOOKS.
.sh pair with the hook flag for the unix executable bit; the .ps1 pair as plain entries). Confirm the destination resolves to .claude/skills/skill-builder/hooks/ on the host..claude/skills/skill-builder/hooks/) and in runtime SKILL.md frontmatter, but only when generated on the host system via /skill-builder hooks <skill> --execute or maintained by hand by the host operator. The two EXCEPTION_HOOKS additionally arrive via the installers' manifest-driven fetch. Runtime hooks NOT in EXCEPTION_HOOKS never propagate back to the source distribution.skill-builder/, or declaring hooks in source frontmatter beyond the clause-3b PostCompact exception → REFUSE and report: "No-distribute-hooks directive violated. Hooks are made on the host system only — only protect-directives.{sh,ps1}, unique-persona.{sh,ps1}, and the inline PostCompact directive-awareness frontmatter block are permitted in source per the 2026-05-11 exception, its 2026-06-06 extension, and the 2026-07-01 frontmatter exception."RELOCATED GATE: the CHECKPOINT "Model-Lane Routing Gate" now lives VERBATIM in references/procedures/audit.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires during audit (Step 4f). Read references/procedures/audit.md and execute that CHECKPOINT literally BEFORE the trigger runs; nothing about the gate changed except its location.
CHECKPOINT — Integrity-Over-Performance Gate (governs the reconcile command; see reconcile.md):
reconcile finding and for any cross-skill remediation decision.<!-- origin: user | immutable: true --> block downgrades to FLAG-ONLY, overriding its class default. Never reword, reorder, or delete to "resolve" a directive conflict./skill-builder strip (with its BREAKING detection and --confirm-breaking gate) — reconcile never deletes.RELOCATED GATE: the CHECKPOINT "Creative-Scope Classification Gate" now lives VERBATIM in references/procedures/audit.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires wherever a lane suggestion is emitted (audit Step 4f advisories and the Step 4f-setup onboarding). Read references/procedures/audit.md and execute that CHECKPOINT literally BEFORE the trigger runs; nothing about the gate changed except its location.
RELOCATED GATE: the CHECKPOINT "Bespoke Excursion-Agent Gate" now lives VERBATIM in references/procedures/agents.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires whenever a lane-pinned excursion agent is designed or its delegation entry is woven into a skill (agents.md Step 4d, and audit's legacy-revamp path). Read references/procedures/agents.md and execute that CHECKPOINT literally BEFORE the trigger runs; nothing about the gate changed except its location.
RELOCATED GATE: the CHECKPOINT "Audit Agent Model-Assignment Gate" now lives VERBATIM in references/procedures/audit.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires whenever audit, or any command running under audit, creates or modifies an AGENT.md. Read references/procedures/audit.md and execute that CHECKPOINT literally BEFORE the trigger runs; nothing about the gate changed except its location.
CHECKPOINT — Two-Brain Harness Gate (governs audit onboarding, /route dispatch, and every per-skill model gate):
/model command can), otherwise a silent match; a tie/UNCONFIRMED lane resolves to the analytical brain and never asks → dispatch with endeavor coverage recorded (route having assessed the lane this turn is the coverage signal, whether it asked or matched).model-lane-gate: off honored). The gate's output is a one-line advisory that names the remedy informationally per the 2026-06-11 named-command advisory directive ("to align, run /model <preferred> and re-invoke; proceeding as-is") — never an AskUserQuestion, never a blocking wait, never a switch performed by the skill (the per-skill gate stays advisory-only; the 2026-06-07 route-ask carve-out applies to the /route door ONLY). IF any change proposes removing a skill's gate without the route-coverage no-op already in place → STOP. Invariant: ≥1 checkpoint on every entry path; ≤1 lane interaction per endeavor (one ASK at the /route door, or one advisory on a hand-run path); 0 switch prompts on every NON-route surface (audit Step 4f, per-skill gates). /route is the one sanctioned door that may ask, and it still cannot switch the model itself.RELOCATED GATE: the CHECKPOINT "Skill-Creation Ownership Gate" now lives VERBATIM in references/procedures/route.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires on /route's no-match path and any route-to-skill-builder dispatch. Read references/procedures/route.md and execute that CHECKPOINT literally BEFORE the trigger runs; nothing about the gate changed except its location.
CHECKPOINT — Platoon Gate (fires before any minion spawn and during fleet design in agents.md § Step 4d):
model: frontmatter carries one of the two ratified brain IDs from the Lane→Model table. Never invent an ID; lanes unconfigured or cell blank → leave model: absent and flag (Audit Agent Model-Assignment Gate applies in full).AMBIGUOUS: <question> — the orchestrator owns the resolution. Under audit (Audit Autonomy Gate + 2026-07-22 no-deferrals directive): agent panel → conservative alternative → auto-execute — never a mid-run user question, never a deferral. Outside audit, AskUserQuestion remains available per Rule 8. A minion NEVER guesses, and INCOMPLETE: still covers missing inputs.CHECKPOINT — No-Switch-Prompt Gate (fires on EVERY skill-builder command, embed template, and generated block):
/model or otherwise change the session model? IF YES → FORBIDDEN. Do not emit it. Replace with a one-line report advisory, e.g. "Lane advisory: <skill> declares the <lane> lane (preferred <preferred>); session is on <active>." Then proceed without blocking. (Per the 2026-06-11 named-command advisory directive, the per-skill MODEL-LANE-GATE's advisory line additionally NAMES the remedy — "to align, run /model <preferred> and re-invoke; proceeding as-is" — naming the command informationally in that one advisory line is not a switch request and stays non-blocking.) EXCEPTION (2026-06-07 route-ask directive, newest-wins): /route's dispatch-time lane preflight (route.md § Canonical Dispatch CHECKPOINT clause 2) MAY ask the user to switch the session model — at most one ask per endeavor, at the /route door ONLY, and route still cannot switch the model itself. Every OTHER surface (audit Step 4f, the per-skill MODEL-LANE-GATE, the high-risk skill-builder advisory, all embed templates) stays report-only per this clause.model: stamping, and excursion delegation are all unchanged./model, "switch", AskUserQuestion options like "switched") → that text is stale; fix the template and reconcile via route embed rather than honoring it at runtime. EXCEPT /route's § Canonical Dispatch CHECKPOINT clause 2, whose /model ask is INTENTIONAL per the 2026-06-07 route-ask directive — it is not stale and must NOT be removed. ALSO EXCEPT the per-skill MODEL-LANE-GATE advisory template (route.md § Step 8c clause 4) and its embedded copies, whose informational "run /model <preferred> and re-invoke" naming is INTENTIONAL per the 2026-06-11 named-command advisory directive — informational naming in a non-blocking advisory is not a switch request.--model-prompt) is retired; --no-model-prompt is accepted as a harmless no-op for backward compatibility.CHECKPOINT — Audit Disclaimer Gate (fires at the START of every audit run, including audit --quick and bare /skill-builder, BEFORE any scan, sub-command, or write):
question field and carry the four bullets verbatim in the question body, with the two exact options below. (Rendering discipline lives in audit.md § Step 0 clause 1.)
Disclaimer — acceptance required before the audit proceeds:
- skill-builder is designed to be used with Opus 4.7 or higher model.
- However, skills created with skill-builder are backwards compatible with earlier models.
- Please backup your CLAUDE.md and .claude directory before proceeding. A backup process is available right after this — you'll be asked whether to snapshot it (kept under .claude-backups/, the last 3 plus a permanent first-run baseline). Taking it lets you cleanly uninstall claude-enforcer later and restore your original setup with
/skill-builder restore.- Accepting runs the audit and automatically applies all recommended fixes; advisory notes are listed for review. Options EXACTLY: Accept and proceed / Cancel audit. On Cancel → STOP the audit entirely; report nothing was scanned or written.
<!-- audit-disclaimer: accepted --> marker in references/model-lanes.md (next to the model-lane-setup marker; same update-preserved, per-project mechanism), then proceed with the audit. Acceptance is the run's consent: it authorizes the scan AND the auto-execution phase (Audit Autonomy Gate clause 2).audit-disclaimer: accepted marker exists → print the disclaimer text into the report and proceed with the SCAN ONLY — a marker never authorizes writes; the full fix plan lands in the report as would-be tasks (auto-execution requires a live interactive acceptance this run). IF NO marker → print the disclaimer and REFUSE: "Audit disclaimer not yet accepted — run one interactive audit first." Acceptance cannot be assumed or auto-granted.RELOCATED GATE: the CHECKPOINT "Audit Autonomy Gate" now lives VERBATIM in references/procedures/audit.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires on every audit run, full and --quick, Step 0 through completion. Read references/procedures/audit.md and execute that CHECKPOINT literally BEFORE the trigger runs; nothing about the gate changed except its location.
RELOCATED GATE: the CHECKPOINT "Route Dominant-Hemisphere Ask Gate" now lives VERBATIM in references/procedures/route.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires ONLY at /route dispatch (route-door only). Read references/procedures/route.md and execute that CHECKPOINT literally BEFORE the trigger runs; nothing about the gate changed except its location.
RELOCATED GATE: the CHECKPOINT "Named-Command Advisory Gate" now lives VERBATIM in references/procedures/route.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires wherever the per-skill MODEL-LANE-GATE advisory line is emitted, and wherever its template text is written or refreshed (route embed). Read references/procedures/route.md and execute that CHECKPOINT literally BEFORE the trigger runs; nothing about the gate changed except its location.
CHECKPOINT — Creative-Integrity Gate (fires during audit Step 4c-bis, and whenever any skill-builder command creates or modifies a skill that manages a detect/evaluate/revise creative workflow):
CREATIVE-SCRUB-EMBED pointer region (grounding link only — never gating logic spliced into the workflow body). Equivalence-UNCERTAIN → agent panel adjudicates (2026-07-22 no-deferrals directive); conservative on disagreement, never a competing chain.text-eval skill directory exists AND model-lanes.md carries no <!-- creative-scrub-build: off --> marker → scaffold the evaluator from § Build Scaffolds (persona + model gates apply in full; lanes unconfigured → model: absent + flagged, never an invented ID). Lane declarations do not gate the build — the precondition is absence alone; the scaffold authors its own lane: creative frontmatter and never touches the project's Skill→Lane table.origin: skill-builder | modifiable: true appendix region at the end of the library file. Existing bytes never modified; structural fit verified before the write (no parseable fit → agent panel adjudicates the placement per the 2026-07-22 no-deferrals directive); .scrub-gaps.acked is the sole dedup authority; the append fires only when the skill's evaluator grounds against the full library file (else agent panel adjudicates — inert-sidecar lesson). Equivalence-uncertain stays silently skipped. Forced upgrade on catalog growth (2026-06-12 third clause): a shipped version anchor newer than what a library was last checked against → the gap comparison RUNS and its AUTO appends APPLY in that same audit (never skipped, never offered); scaffold-generated libraries' machine-owned regions version-sync to the current catalog; the ack sidecar suppresses only slugs whose shipped entry is unchanged — new signs always land.modifiable: true machine bytes (code-eval-grade user seam); creative-scrub: off frontmatter opts a skill out entirely, and the project-level <!-- creative-scrub-build: off --> marker in model-lanes.md suppresses the new-skill scaffold.<!-- origin: user | immutable: true --> block is FLAG-NEVER-TOUCH (quoted verbatim). Voice-dependent gates in BUILT scaffolds (humanity floor) are advisory-only when the project has no documented voice profile — never blocking on non-English or technical content.RELOCATED GATE: the CHECKPOINT "Companion-Skill Selection Gate" now lives VERBATIM in references/procedures/audit.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires THIRD in every full interactive audit (audit.md Step 0.3). Read references/procedures/audit.md and execute that CHECKPOINT literally BEFORE the trigger runs; nothing about the gate changed except its location.
RELOCATED GATE: the CHECKPOINT "Audit Backup Gate" now lives VERBATIM in references/procedures/audit.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires SECOND in every full interactive audit (audit.md Step 0.2). Read references/procedures/audit.md and execute that CHECKPOINT literally BEFORE the trigger runs; nothing about the gate changed except its location.
RELOCATED GATE: the CHECKPOINT "Question-Object Completeness Gate" lives in references/procedures/audit.md under "Sacred-Directive Enforcement Gates (relocated from SKILL.md, 2026-07-01)". It fires whenever a sanctioned audit question is assembled — in practice the batched Lane→Model picker at audit.md § Step 0.4 and § Step 4f-setup — and again at the § Step 6 pre-execution assertion. Read references/procedures/audit.md and execute that CHECKPOINT literally BEFORE the trigger runs.
When dev_mode == true AND ${CLAUDE_PROJECT_DIR}/skill-builder/SKILL.md exists (this repo IS the skill-builder source distribution), every Edit/Write on a skill-builder file MUST target the source path under skill-builder/... BEFORE any mirror to the runtime copy at .claude/skills/skill-builder/....
The runtime is gitignored. It gets overwritten on every bash install. Runtime-only edits never reach end users.
Mandatory order — non-negotiable:
skill-builder/<path> first (the source distribution under repo root)..claude/skills/skill-builder/<path> so the running session matches source. The mirror is a content sync, not a wholesale overwrite. Preserve runtime-only content the source intentionally lacks: local hooks frontmatter, .directives.sha sidecars, generated artifacts.Hooks-in-source exception: Four skill-builder hooks ship in the source distribution — protect-directives.sh and unique-persona.sh per the 2026-05-11 sacred directive, plus their PowerShell companions protect-directives.ps1 and unique-persona.ps1 per the 2026-06-06 extension. When dev mode targets any of these files, the canonical source path is skill-builder/hooks/<name> — edit there first, then mirror to .claude/skills/skill-builder/hooks/<name>. Every other hook file remains runtime-only and follows the original no-distribute rule.
CHECKPOINT — fires before any skill-builder Read/Edit/Write when dev is in the invocation:
${CLAUDE_PROJECT_DIR}/skill-builder/SKILL.md exist?
.claude/skills/skill-builder/:
.claude/skills/skill-builder/ with skill-builder/. The source path is the canonical first-pass edit target..claude/skills/skill-builder/hooks/<name> where <name> is one of protect-directives.sh, unique-persona.sh, protect-directives.ps1, unique-persona.ps1 rewrite to skill-builder/hooks/<name> (these four ship in source per the 2026-05-11 directive and its 2026-06-06 extension). Any OTHER .claude/skills/skill-builder/hooks/* path stays runtime-only — do NOT rewrite to source for those.skill-builder/<path> so planning grounds on canonical source. Reads from runtime are allowed but second choice — the runtime may be stale.skill-builder/<path> modified in this session, replicate the same change to .claude/skills/skill-builder/<path>. Touch only the changed sections; do not overwrite runtime-only frontmatter, hook scripts, or sidecars.git status --short -- skill-builder/. Empty output when changes were expected = FAIL. The edits landed in the runtime only. Reverse order and retry from step 2.No hook backstop for this gate. Per the user directive "No hooks! We don't distribute hooks. The project only makes hooks on the host system" (see § Directives), there is no shipped hook for Phase 0 enforcement. The CHECKPOINT above IS the enforcement and must run during authorship. A maintainer who wants a local mechanical backstop on their own host can generate one via /skill-builder hooks dev skill-builder --execute, but that is a host-system action and is never part of the source distribution.
All commands operate in display mode by default. Add --execute to apply changes.
Before executing any command, read its procedure file from references/procedures/.
| Command | Procedure | Summary |
|---|---|---|
audit | audit.md | Full system audit |
audit --quick | audit.md | Lightweight: frontmatter + line counts |
cascade [skill] | cascade.md | Validation cascade analysis (diagnostic only) |
reconcile [skill] | reconcile.md | Cross-skill conflict detection + integrity-preserving remediation |
convert [skill] | convert.md | Convert 4.6-era skill to 4.7-compatible (annotations + explicit steps) |
optimize [skill] | optimize.md | Restructure for context efficiency |
optimize claude.md | claude-md.md | Extract domain content to skills |
agents [skill] | agents.md | Analyze/create agents |
hooks [skill] | hooks.md | Inventory/create hooks |
new [name] | new.md | Create skill from template |
strip [skill] | strip.md | Delete a skill and remove all cross-references |
backup | backup.md | Snapshot CLAUDE.md + .claude into .claude-backups/ (rotate last 3, pinned first-run baseline, gitignore) |
restore [snapshot] | restore.md | Restore CLAUDE.md + .claude from a .claude-backups/ snapshot (destructive; display-default + --execute) |
inline [skill] [directive] | inline.md | Quick-add directive |
skills | skills.md | List local skills |
list [skill] | list.md | Show modes/options |
verify | verify.md | Health check (headless-compatible) |
ledger | ledger.md | Create Awareness Ledger |
checksums [skill] | checksums.md | Generate/verify directive checksums |
shell-safety [mode] [path] | shell-safety.md | Write / audit / lint shell code and JSON-embedded shell for pitfalls |
route [mode] | route.md | Maintain /route skill index and embed route-consultation hooks into other skills |
code-eval [mode] | code-eval.md | Scaffold/maintain the code-evaluator skill (create / review / sweep / sync) |
model-map | model-map.md | Choose the creative + coding/everything-else model + global advisor (Lane→Model picker + fleet rewrite), no audit |
local-mode [--execute] | local-mode.md | Audit project for local LLM compatibility (classify skills, trim, install local infrastructure) |
update | update.md | Update to latest version |
version | version.md | Print the installed version (--check compares against main) |
The skill-builder skill MUST be excluded from all actions (audit, optimize, agents, hooks, skills list) unless the command is prefixed with dev.
/skill-builder audit → audits all skills EXCEPT skill-builder/skill-builder optimize some-skill → works normally/skill-builder optimize skill-builder → REFUSED. Say: "skill-builder is excluded from its own actions. Use dev prefix: /skill-builder dev optimize skill-builder"/skill-builder dev audit → includes skill-builder in the audit/skill-builder dev optimize skill-builder → allowedDetection: If the first argument after the command is dev, strip it and proceed with self-inclusion enabled. Otherwise, skip any skill whose name is skill-builder when iterating skills, and refuse if skill-builder is explicitly named as a target.
CHECKPOINT — apply before dispatching to any procedure (Opus 4.7 literal-execution gate):
dev?
dev_mode = true; strip dev from the argument list; continue.dev_mode = false.first_arg.{ audit, optimize, agents, hooks, new, strip, inline, skills, list, verify, ledger, cascade, reconcile, checksums, convert, shell-safety, route, code-eval, model-map, local-mode, backup, restore, update, version }.first_arg is empty (no arguments remaining) → dispatch to the default full-audit flow per § Quick Commands. Do NOT invoke the intent router. STOP this CHECKPOINT.first_arg is in the known-command set → treat it as the command name. Determine whether a skill target was specified in the remaining arguments. CONTINUE to step 7.first_arg is NOT in the known-command set AND the remaining argument string is non-empty →
first_arg) as the freeform intent, and dev_mode as context.dev_mode == false:
skill-builder → REFUSE and STOP. Print: "skill-builder is excluded from its own actions. Use dev prefix: /skill-builder dev [command] skill-builder". Do not dispatch.skill-builder filtered out before any per-skill iteration begins.dev_mode == true → skill-builder is included normally.This CHECKPOINT fires every invocation. Procedure files repeat it in their own preflight blocks for defense in depth — 4.7 executes each file literally, so both gates matter.
Dev Path Discipline (defense-in-depth pointer): Phase 0 at the top of this SKILL.md is the primary gate for source-vs-runtime path resolution in maintainer mode. It fires BEFORE this CHECKPOINT in document order. If Phase 0 ran cleanly, the path was already rewritten to the source location before reaching dispatch. If you reached this point and a planned Edit/Write still targets .claude/skills/skill-builder/..., STOP and re-read § Phase 0.
Post-dev check: After any dev command that modifies skill-builder files, run BOTH of the following:
skill-builder/**/*.md. Compare against the paths listed in the repo-root manifest.txt — the single authoritative shipped-file list consumed by BOTH installers (install for bash, install.ps1 for PowerShell). Flag any new/renamed/removed files the manifest doesn't list. This prevents drift between the repo and what users receive on install, on every platform at once. (The only shipped hook scripts are the two 2026-05-11 exceptions, listed in the manifest with the hook flag; users generate all other per-system hooks via /skill-builder hooks.)git status --short -- skill-builder/. If the dev session was expected to produce changes and the output is empty, the edits landed in the runtime copy. Report the failure with the runtime/source diff so the user can mirror canonical changes back to source.Commands are classified by risk level, which determines their default mode:
| Risk | Commands | Default Mode |
|---|---|---|
| Low-risk (additive, non-destructive) | new, inline, skills, list, verify, version, ledger, checksums, route index, route lane-status, code-eval create, code-eval sync, model-map, backup | Execute directly |
| Single-consent auto (2026-06-06 Audit Autonomy Gate) | audit, audit --quick | Scan + report, then auto-execute under the Step 0 disclaimer consent; --review/--dry-run = report-only; --execute = harmless no-op |
| High-risk (restructuring, modifying) | optimize, agents, hooks, cascade, reconcile, convert, route embed, code-eval review, code-eval sweep, code-eval enforce, local-mode | Display mode (requires --execute) when invoked standalone; under audit they run in the auto-execution phase |
| Destructive (deletes files irreversibly) | strip | Display mode (requires --execute; --confirm-breaking if dependents exist) when invoked standalone; under audit, auto-fires with agent-panel confirmation per the 2026-07-22 no-deferrals directive |
| Destructive (overwrites files irreversibly) | restore | Display mode (requires --execute + confirmation; auto-snapshots current state first) — NEVER auto-fired by audit |
| Mode | Behavior | Flag |
|---|---|---|
| Display | Read-only plan of what would change | (default for high-risk) |
| Execute | Apply changes to files | --execute or (default for low-risk) |
new, inline, skills, list, verify, ledger, checksums, and route index do their work directly without requiring --execute. They are additive or read-only — there is nothing to preview. (route index is auto-generated content inside the /route skill only — idempotent regeneration.) model-map is the one low-risk command that mutates files (Lane→Model cells + generated agents' model: lines): it is low-risk because its core action is an interactive picker whose answer IS the consent — there is no meaningful display mode for an AskUserQuestion — exactly the single-consent pattern audit's 4f-setup already uses./skill-builder optimize my-skill shows what would change without modifying anything. Add --execute to apply.audit --review is the zero-write opt-out.--execute, the command MUST:
new, inline, adding directives) automatically chains into a scoped mini-audit for the affected skill — running optimize, agents, and hooks in display mode, then offering execution choices. Additionally (2-Brain Harness, 2026-06-06), EVERY skill-mutating execute path (new, inline, convert --execute, agents --execute, optimize --execute, code-eval create) chains a scoped route reconciliation for the affected skill(s) — route index row refresh + four-family embed reconciliation per post-action-chain.md § Step 1a — so new skills and newly generated functions are indexed and gated the moment they exist. Use --no-chain to suppress.audit finds a skill whose declared lane's preferred model differs from the active session model (see § Directives → Model-Lane Routing Gate and audit.md § Step 4f), it reports the mismatch as a one-line advisory and proceeds — never an AskUserQuestion, never an instruction to run /model. --model-prompt is retired; --no-model-prompt is a harmless no-op. Disclaimer (every audit): before any audit work begins, the user must accept the audit disclaimer (designed for Opus 4.7+; skills created are backwards compatible with earlier models; back up CLAUDE.md and .claude first) — see § Directives → Audit Disclaimer Gate and audit.md § Step 0. Headless runs require a prior interactive acceptance marker. Onboarding: when a project has no lanes configured yet, a full interactive audit offers a one-time setup question (Set it up now / Not now / Never ask in this project), tracked per project via the model-lane-setup marker in model-lanes.md — this configures the mapping; it never requests a switch. Bootstrap audits on fresh projects included (2026-06-07 fix — bootstrap mode runs Step 4f after its auto-execution phase; see audit.md § Step 2.5). See audit.md § Step 4f-setup and model-lanes.md § Setup State. Picker (every full audit): once configured, every full interactive audit re-confirms the Lane→Model mapping via a batched picker — options exactly claude-fable-5, claude-opus-5, claude-opus-4-6 (newest-first) plus manual entry via AskUserQuestion's auto-appended "Other" — announced in the question copy, and the only path to an ID skill-builder does not ship (it never fabricates one; see lane-delegation.md § Lane→Model Picker — the ONE shared pool every model question draws from, lane and advisor alike). Nothing is dropped: three statics fit the four-option ceiling, and exactly fill it on the advisor question once "No advisor" is added. Current values pre-selected. A confirmed remap fans out to every generated lane-pinned: agent's model: frontmatter (Fleet Rewrite). The picker fires UP FRONT in the question cluster (audit.md § Step 0.4), not mid-scan — it was being skipped when buried at the old "Step 4f step 2-bis" location. See audit.md § Step 0.4 and references/lane-delegation.md. Advisor (2026-07-08): the picker call carries a third question object — the global advisor model (Claude Code's advisor tool: a second, at-least-as-capable model consulted at decision points). Options are FULL OFFICIAL MODEL IDs (the Lane→Model Picker's static IDs plus the live-discovered latest, never the fable/opus/sonnet aliases) plus "No advisor", offered UNFILTERED — never narrowed on capability and never annotated with a capability caveat (2026-07-24 directive; Claude Code does its own attach-time validation, which is rationale, not something to surface). ONE global advisor, never per-lane; lane-pinned agents inherit it and the platform re-validates per agent on its own. All three objects always render (2026-07-24 no-skipped-questions directive): advisor-setup: declined is a state record that pre-selects "No advisor" as that question's default — it never drops the object from the call, and re-confirming it writes nothing. Configuring it writes the advisor-setup marker in model-lanes.md plus a host-local advisorModel (the full model ID) in .claude/settings.local.json and names /advisor <full-model-id> for immediate effect — a configuration carve-out like the picker itself, never a switch prompt. Spec: lane-delegation.md § Global Advisor Model. Excursions never advise: cross-lane mid-workflow steps delegate to lane-pinned agents instead (§ Directives → Bespoke Excursion-Agent Gate).audit the only permitted questions are the Step 0 disclaimer, the Step 0.2 backup offer (fired second), the Step 0.3 Companion-Skill Selection Gate (up to two grouped multi-selects — Evaluators / Helpers, absent companions only, check-to-install per the 2026-07-17 directive — in one AskUserQuestion call, one question slot; fired third; renders as an informational line instead when every companion is installed), the one-time 4f-setup onboarding, and the every-audit Lane→Model picker — audit makes no other decision handoffs; it does ALL the work, with agent panels resolving judgment calls and failed tasks reported in the Execution Summary (informational prose, not a handoff). Over-fire guard: if you cannot name at least two concrete options, it is not a decision handoff — ask in prose (open-ended freeform like "paste the error text" stays prose; in-turn status, progress narration, bare acknowledgements, and audit's terminal Execution Summary never prompt). Option floor: every decision menu offers at least the recommended path, one genuine alternative, and an explicit "Skip / not now" so the user is never trapped into authorizing an action (AskUserQuestion's auto-appended "Other" preserves freeform on top of these). Style on the update CHECKPOINT (references/procedures/update.md).Read references/principles.md before running any high-risk command (optimize, agents, hooks, audit, cascade, convert). That file contains the full Core Principles, Sacred Directive Pattern, Output Discipline rules, and Grounding Protocol. It was split out of SKILL.md during the 4.7 upgrade to reduce always-loaded context weight.
IMPORTANT: Never break anything. Optimization is RESTRUCTURING, not REWRITING. MOVE content, don't rewrite it. PRESERVE all directives exactly. KEEP all workflows intact. If the original author reviewed the result, they should say "this does exactly what mine did, just organized differently."
Grounding protocol (read-before-use, state which pattern will be used) is documented in references/principles.md § "Grounding Protocol".
Reference files:
text-eval scaffolds and baselining the Step 4c-bis gap check)/route skill bootstrap templatecode-evaluator skillcode-evaluator skill: version.md (drift anchor), cross-file-detection.md, guards.md, mistake-taxonomy.md, native-tool-map.md, gotchas.md, skill-template.mdagents/intent-router/AGENT.md (opens in a new tab)agents/optimize-diff-auditor/AGENT.md (opens in a new tab)hooks/protect-directives.ps1 (opens in a new tab)hooks/protect-directives.sh (opens in a new tab)hooks/unique-persona.ps1 (opens in a new tab)hooks/unique-persona.sh (opens in a new tab)references/agents-personas.md (opens in a new tab)references/agents-teams.md (opens in a new tab)references/agents.md (opens in a new tab)references/code-evaluator/cross-file-detection.md (opens in a new tab)references/code-evaluator/gotchas.md (opens in a new tab)references/code-evaluator/guards.md (opens in a new tab)references/code-evaluator/mistake-taxonomy.md (opens in a new tab)references/code-evaluator/native-tool-map.md (opens in a new tab)references/code-evaluator/skill-template.md (opens in a new tab)references/code-evaluator/version.md (opens in a new tab)references/creative-integrity.md (opens in a new tab)references/creative-integrity/text-tells.md (opens in a new tab)references/creative-integrity/version.md (opens in a new tab)references/enforcement.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
When creating, auditing, or optimizing Claude Code skills, or when working with SKILL.md files, hooks, or agents
echo '{"additionalContext": "REMINDER: Directives are sacred. Never reword, paraphrase, or summarize text between <!-- origin: user | immutable: true --> markers. Optimization is restructuring, not rewriting. Move content — never rewrite it."}'Generated from the plugin's indexed repository (odysseyalive/claude-enforcer) — no native marketplace selected
npx claudepluginhub p/odysseyalive-skill-builder-skill-builderOther plugins' skills for the same job