self-audit

self-audit is a skill for Claude Code, Codex from nick-railsback/skill-engine. It costs 45 tokens per session (1,344 once invoked), scanned A, original, MIT.

A read-only checklist for finding drift in a project contextualizer, such as outdated dates, broken links, and disagreements between catalogue entries and content. A contextualizer is the project information that helps an agent understand and maintain the work.

In plain words
What is it for?
Use it every two to four weeks to check dates, URLs, references, catalogue rows, review status, cross-references, permalink density, and citation coverage.
Why use it?
It helps reveal information that has quietly gone stale or inconsistent between reviews. Deterministic fixes are only proposed after the findings are shown and approved.

Skill for Claude CodeCodex

Part of the skill-engine plugin — 12 skills shipped together

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.

agentmods
npx agentmods add skills/nick-railsback/skill-engine/self-audit
Any agent
npx skills add nick-railsback/skill-engine --skill self-audit
Clone the repo
git clone --depth 1 https://github.com/nick-railsback/skill-engine

Made for: Claude Code, Codex.

Or install skill-engine, the plugin that ships this one along with the rest of its 12 skills.

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 self-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/nick-railsback/skill-engine/self-audit.svg)](https://agentmods.dev/skills/nick-railsback/skill-engine/self-audit)
Your own site
<a href="https://agentmods.dev/skills/nick-railsback/skill-engine/self-audit"><img src="https://agentmods.dev/badge/skills/nick-railsback/skill-engine/self-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,344 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00045 $0.01344
Opus 5 $0.00023 $0.00672
Sonnet 5 $0.00009 $0.00269
Haiku 4.5 $0.00005 $0.00134

Measured 3d ago against content hash ce2d6a46fed6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

self-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 3d ago.

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.

plugin/skill-engine/skills/self-audit/SKILL.md · 121 lines

How it starts

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

Self-audit

Run the eight drift checks against the contextualizer's current state: stale date, broken URL, long-untouched reference, catalog-vs-content disagreement, cross-reference-vs-content disagreement, review-state staleness, paragraph→permalink density, grounded-citation rate. Read-only by default; after the findings table prints, offers an opt-in propose → validate → approve gate for the three deterministic checks (stale dates, catalog-row drift, review-state staleness). The other five checks remain advisory — they print a one-line recommendation each and the human acts manually.

Contextualizer root

Engine workflows operate inside a contextualizer installed as a project skill at one of three install levels:

  • User-level: ~/.claude/skills/<slug>-context/
  • Local-user-level: ~/.claude/local/skills/<slug>-context/ (when in use)
  • Project-level: <repo>/.claude/skills/<slug>-context/

Every path below — research/..., references/..., verify.sh — resolves relative to whichever directory matches. Before reading anything, locate the root by searching all three install levels in order:

Run the script in shared/locator-block.md verbatim before proceeding.

Selecting a contextualizer

/skill-engine:self-audit <name> names the contextualizer to audit: <name> is the directory name without the -context suffix, the same grammar review/apply/discard use. Substitute it (or the empty string) for <name> in the locator above. With no argument, auto-detection applies — it succeeds when exactly one contextualizer is installed and lists the matches and exits when more than one is.

Read every subsequent research/foo path as $CTX_ROOT/research/foo, every references/foo as $CTX_ROOT/references/foo, and verify.sh as $CTX_ROOT/verify.sh.

Doctrine surface

The complete SELF-AUDIT protocol — what the eight drift checks do, what they emit, how the reviewer acts on findings — lives in chapter 03-engine.md under ## SELF-AUDIT (drift audit) and the ## Workflow: SELF-AUDIT section of maintenance-agent.md.template.

Read the full file on GitHub · 121 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 121 lines · 45 tokens per session scan A ce2d6a46fed6

Subscribe to this mod's changes

self-audit is a skill published in the GitHub repository nick-railsback/skill-engine (2 stars, last pushed 27d ago), licensed MIT. It adds 45 tokens to every session and 1,344 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

erpaval

Workflow for autonomous software development with the Kiro CLI (open Agent Skills standard). Classifiers route scope, complexity, directory state, and spec readiness before committing to Explore / Research / Plan / Act / Validate, then close the loop with a Compound step that persists lessons to .erpaval/solutions/…

theagenticguy/erpaval · 174 tokens

product-discovery

File-first orchestrator for product discovery and spec frameworks. Frames the problem with a Discovery Lead, Product Analyst, or System Architect role. Spawns parallel framework agents (Double Diamond, How Might We, Jobs to Be Done, user stories with INVEST, EARS for AI-coder specs, Gherkin), synthesizes into a PRD or…

theagenticguy/erpaval · 242 tokens

agent-ux-patterns

Agent UX patterns and human-in-the-loop design: Twilio A2H protocol, Levels of Autonomy (L0-L5), inbox pattern, progressive trust, decision journal, gate reviews, autonomous work reports. Six-phase methodology from vague pain point to concrete data model via landscape research and multi-direction brainstorming. Use…

theagenticguy/erpaval · 182 tokens

meta-prompt-optimizer

Audit and rewrite prompts against Claude Opus 4.7 instruction-following best practices. Produces a scored audit plus a rewritten prompt. Use when the user asks to audit, review, critique, rewrite, improve, optimize, tighten, score, fix, migrate, or draft a prompt — including system prompts, CLAUDE.md files, Claude…

theagenticguy/erpaval · 230 tokens

product-strategy

File-first orchestrator for business and product strategy frameworks. Frames the challenge with a CPO / CSO / VP Design role, spawns parallel framework agents (Rumelt kernel + Crux, Wardley Maps, Minto Pyramid as thinking structure, Working Backwards PR-FAQ as discovery artifact), synthesizes outputs into one strategy…

theagenticguy/erpaval · 216 tokens

tech-stack-builder

Opinionated tech stack recommendations and settled library references. Two modes: (1) /build-stack runs parallel researcher agents to compare candidates and emit a stack report + ADRs for greenfield projects; (2) direct reference routing for coding with settled defaults. Use when the user asks to recommend a stack…

theagenticguy/erpaval · 274 tokens