guardrail_audit

guardrail_audit is a skill for Claude Code from theafh/ai-modules. It costs 156 tokens per session (2,160 once invoked), scanned A, original, MIT.

A read-only checker for documents that define a repository's rules, design, testing, and security practices.

In plain words
What is it for?
Use it to audit guardrail documents and suggest clearly missing documentation when the repository supports it.
Why use it?
It finds contradictions between these documents and differences between the documents and the actual code, then ranks the findings.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the ai_dev plugin — 24 skills, 5 agents, 1 hook shipped together

Good fit Use it to audit guardrail documents and suggest clearly missing documentation when…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/theafh/ai-modules/guardrail_audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add theafh/ai-modules --skill guardrail_audit
Clone the repo
git clone --depth 1 https://github.com/theafh/ai-modules

Made for: Claude Code.

Or install ai_dev, the plugin that ships this one along with the rest of its 24 skills, 5 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for guardrail_audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/theafh/ai-modules/guardrail_audit.svg)](https://agentmods.dev/skills/theafh/ai-modules/guardrail_audit)
Your own site
<a href="https://agentmods.dev/skills/theafh/ai-modules/guardrail_audit"><img src="https://agentmods.dev/badge/skills/theafh/ai-modules/guardrail_audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,160 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00156 $0.02160
Opus 5 $0.00078 $0.01080
Sonnet 5 $0.00031 $0.00432
Haiku 4.5 $0.00016 $0.00216

Measured today against content hash 12a1573c02c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

guardrail_audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai_dev/skills/guardrail_audit/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

guardrail_audit

<guardrail_audit_skill>

<when_to_activate> Activate when the user wants the repo's existing guardrail docs audited:

  • "Audit the guardrails" / "do the guardrail docs still match the code?" / "health-check CHARTER.md against the repo."
  • "Retrofit a charter into this mature repo, so what already diverges?"
  • "Are ARCHITECTURE.md / TESTING.md / SECURITY.md consistent with each other and with CLAUDE.md?"

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>

  1. Orient. Run the hub's <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.
  2. Doc-vs-doc. Compare the present docs across all three tiers the hub's <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.
  3. Doc-vs-code. Compare the present docs against the established codebase. Drive the scan from the falsifiable claims, taking the charter's DOES NOT boundaries and Key Invariants first, then the tier-2 docs' concrete assertions, so the assessment stays tractable on a large repo. Apply <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).
  4. Format and coverage findings. Within the <audit_bound>, also surface the three finding classes in <finding_classes> when the evidence is obvious and high-confidence.
  5. Missing-doc proposals. Where repo substance plainly warrants an absent doc, apply the hub's <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.
  6. Report and ask. Emit the ranked findings per <output_contract>, leave every audited file byte-for-byte unchanged, and ask the user how to proceed.

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +1 tokens per session 12a1573c02c2
  2. 7d ago First seen · 90 lines · 155 tokens per session scan A d4970d6b6b88

Subscribe to this mod's changes

guardrail_audit is a skill published in the GitHub repository theafh/ai-modules (38 stars, last pushed yesterday), licensed MIT. It adds 156 tokens to every session and 2,160 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.