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.
npx skills add theafh/ai-modules --skill guardrail_auditgit clone --depth 1 https://github.com/theafh/ai-modulesWrote 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.
[](https://agentmods.dev/skills/theafh/ai-modules/guardrail_audit)<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>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.
| Model | Per session | Once 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 |
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.
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>
- 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. - 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. - 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). - 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. - 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. - 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.
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.
- today Changed · +1 tokens per session 12a1573c02c2
- 7d ago First seen · 90 lines · 155 tokens per session scan A d4970d6b6b88
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.
Other skills, from other repositories
autoreview
Pre-commit/ship code review: Codex default; optional Claude or Pi.
rework-rate
Measure and interpret PR rework rate — the emerging 5th DORA metric.
omh-code-review
This is a Hermes-native code-review workflow skill.
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
code-reviewer
Code review specialist focused on patterns, bugs, security, and performance.
full-repo-review
Comprehensive four-wave review of all repo source files, producing a prioritized issue backlog.