/ai_dev:guardrail_auditfrom ai_dev
Read-only audit of existing guardrail docs (CHARTER.md, ARCHITECTURE.md, TESTING.md, SECURITY.md) against each other and the codebase. Surfaces contradictions and divergences ranked by hierarchy, plus grounded missing-doc proposals. Edits nothing.
Ships in ai_dev. 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.
None: SKILL.md is the whole skill.
<guardrail_audit_skill>
guardrail_audit is the read-only audit sibling of the `guardrail` hub: it surfaces divergences among a repository's *existing* guardrail docs, and between those docs and the established codebase, ranked by the hub's hierarchy, and proposes grounded missing docs where repo substance plainly warrants an absent type. It edits nothing; every finding and proposal carries evidence and a reconcile recommendation, and the run ends by asking the user how to proceed. Its main use case is retrofitting: a guardrail freshly adopted into a mature repository, where the audit flags the pre-existing divergences that forward-looking enforcement cannot reach.<when_to_activate> Activate when the user wants the repo's existing guardrail docs audited:
Route to the guardrail hub when the user wants the system explained, a suggestion of which docs to adopt, or a draft of a new doc. Route to the task family for backlog work.
</when_to_activate>
<audit_bound> Keep gap detection and missing-doc proposals to obvious, high-confidence cases. Exhaustive coverage analysis stays outside this skill's job: chasing every possible claim, every possible absent doc, and every speculative mismatch. Prefer a short ranked list of clear findings over a long list of thin ones. </audit_bound>
<normative_reading>
Read every statement that carries guarding force as a guarding statement, including a mixed sentence that both guards and describes. Apply the hub's <role> and <format_contract> normative obligations whenever guarding force is present. Report code short of a rule as unmet work, name the code as the side to move, and propose no softening of the rule. Read a target in ARCHITECTURE.md's ## Direction in the declared-direction register the hub defines (its <hierarchy> spectrum, its <format_contract>, and its <consumption> "Steer work toward the declared direction" behaviour): a target the code has not reached is drive-toward work, reported by naming how the code moves toward the target or how the target is revised deliberately, and softening or deleting the target to match today's code is not among the directions offered. Keep the neutral both-directions presentation only for purely descriptive statements, present-tense description of what stands, where bringing the doc back to the repository is a legitimate fix per the hub's <consumption> "Surface, never auto-resolve" behaviour.
</normative_reading>
<orient> first: resolve the project root, read the repository's nature, and inventory which guardrail docs, peers, and harness rule files are present. Presence-gate every doc read per the hub's <consumption>: audit exactly the docs that exist, and raise no missing-doc error for an absent type.<hierarchy> defines, harness rule files included, for contradictions and obvious gaps. Name the higher-tier doc as authoritative and flag the subordinate passage as the one to reconcile.<normative_reading>: for a guarding statement, report unmet work with the code named as the side to move and offer no softening of the rule; for a declared direction target the code has not reached, report drive-toward work naming how the code moves toward the target or how the target is revised deliberately, and offer no softening or deletion of the target; for a purely descriptive statement, present-tense description of what stands, offer both reconcile directions (bring the doc back to the code, or evolve the code toward the doc).<audit_bound>, also surface the three finding classes in <finding_classes> when the evidence is obvious and high-confidence.<suggest> flow with the audit's evidence: describe what the doc would capture, name nature mismatches instead of proposing an ill-fitting type, and create nothing.<output_contract>, leave every audited file byte-for-byte unchanged, and ask the user how to proceed.
<finding_classes>
Three targeted finding classes sit inside the <audit_bound> and cite the hub rather than restating it:
<format_contract> keeps out of a guarding statement. The fix rewrites the statement as a plain rule, since the qualifier goes stale while the rule does not.## Direction target the code has not reached, which the hub's declared-direction register reads as drive-toward work. It misleads twice: it describes a stack the repository does not have, and an agent reading it will build to the named convention believing it matches existing practice. Evidence pairs the naming passage with the absence of any use in the code.<hierarchy>.
</finding_classes><finding_shape> Every finding carries:
<hierarchy>Rank findings by the hub's hierarchy: charter conflicts first, then tier-2, then harness-file conflicts (including the empty-or-harness-locked tier-3 class below tier-2). </finding_shape>
<output_contract> Structure the report as:
## Findings section ranked by hierarchy. When clean, write exactly No findings. Otherwise list each finding with its evidence, authority direction, and reconcile recommendation.## Missing-doc proposals section when the hub's <suggest> tests pass for an absent type; omit the section when nothing warrants a proposal, and name a nature mismatch instead of proposing an ill-fitting type.Edit nothing. The audited docs and code leave the run byte-for-byte unchanged. </output_contract>
This skill is the read-only audit sibling in the `guardrail_*` family; the `guardrail` hub holds the shared rules and this skill wires them in:guardrail, the hub: explain, assess, suggest, and draft on requestguardrail_audit, read-only audit of existing guardrail docs (this skill)These ship together; a sibling may be absent if a deployment excluded it. The family is a sibling of the task family, not a member.
</guardrail_audit_skill>
What SKILL.md sets; muted values are Claude Code's defaults
27 skills in this plugin
/agent_spinnerRun helper agents from an orchestrating agent under one quality contract, whatever the host offers. Establishes the capability tier, declares a phase plan, picks an orchestration shape and width, contains each helper to one path, checks work refute-by-default, and merges cited findings into one verdict-first report. Use when deciding how to run helper agents, sub-agents, or subagents: sizing a fan-out over files, spawning parallel helpers, splitting a review into lenses, running a judge or verifier pass, cross-checking agents' work, containing concurrent writers, aggregating helper reports, recovering failed helpers, or running a serial implement-then-audit loop until the task is stamped audited, in sub-agents. Use it for a multi-agent run plan. Route a backlog-only request to task_* and a wiki request to wiki_fix unless the user names agent_spinner or asks for helpers; those families keep their own contracts. Per-harness facts stay with harness_portability.
/ai_instruction_formattingOrganize AI-consumed content (prompts, rules, skills, commands, agents, system instructions) into pseudo-XML by wrapping each semantic concern in a dedicated tag for role, policy, inputs, and output contract. Use when structuring or reorganizing the body of a SKILL.md, agent or sub-agent definition, command file, rules document (.mdc), CLAUDE.md, AGENTS.md, or GEMINI.md configuration, prompt template, or system prompt into semantic tags, when choosing tag boundaries, or when checking whether an instruction file follows the pseudo-XML convention. This is the structure-and-tags skill; its sibling ai_instruction_writing governs the wording.npx claudepluginhub theafh/ai-modules --plugin ai_devOther plugins' skills for the same job