audit-baseline

A tool that checks whether the baseline files on disk still match the documented setup. It compares component names, counts, wiring, configuration keys, servers, licenses, and helper scripts.

In plain words
What is it for?
For validating the baseline on demand, during project initialization, or in continuous integration, with deterministic pass-or-fail checks.
Why use it?
It finds drift when the implementation and its documentation no longer describe the same hooks, agents, skills, commands, or settings.

Skill for Claude CodeCodex

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/friedbotstudio/baseline/audit-baseline
Any agent
npx skills add friedbotstudio/baseline --skill audit-baseline
Clone the repo
git clone --depth 1 https://github.com/friedbotstudio/baseline

Made for: Claude Code, Codex.

Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,120 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.00103 $0.01120
Opus 5 $0.00051 $0.00560
Sonnet 5 $0.00021 $0.00224
Haiku 4.5 $0.00010 $0.00112

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

Security

Grade A, and why

audit-baseline 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 2d ago.

The scan reads SKILL.md. This mod also ships 29 executable files (audit.mjs, character.mjs, checks/constitution.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/audit-baseline/SKILL.md · 83 lines

How it starts

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

audit-baseline — drift defender

Mechanical check that the baseline implementation matches its specification. Deterministic, not LLM judgment — pattern matches and file presence only. Run on demand, by /init-project Step 8, or in CI.

What it checks

Category Check
Counts Hooks, agents, skills, commands on disk match the count claimed in seed.md
Names Each component's name matches the canonical list in seed.md §4
Helper scripts validate.mjs, swarm_merge.mjs, render.mjs, lint.mjs, archive.sh present + executable
settings.json Every baseline hook is wired in the correct event/matcher block
project.json Every key listed in seed.md §13 Step 8 exists (values may be null pre-init)
.mcp.json the declared documentation provider and the plantuml server present
Vendored licenses claude-automation-recommender/{LICENSE,NOTICE} present (Apache 2.0 attribution)
Cross-doc counts Numeric claims in CLAUDE.md, README.md, and docs/init/seed.md match disk

Invocation

/audit-baseline — model-invocable and user-invocable.

Calls audit.mjs. Output is a compact pass/fail table with a final verdict. Exits 0 on a clean audit, 1 on any failure. WARN-level findings (advisory; e.g., a doc with no relevant claims) don't fail the audit.

When to run

  • End of /init-project — Step 8. A fresh baseline should pass.
  • Before /approve-direction — confirm the baseline hasn't drifted.
  • In CI — fail the build on drift.
  • On demand — when something feels off, when adding a component, or after a long gap in baseline maintenance.

When the audit reports drift

  • Counts mismatch → add the missing component or update seed.md to match the new count. Don't update one without the other.
  • Name mismatch → a component was renamed, added, or removed. Update the canonical lists in seed.md §4 and the expected sets in audit.mjs.
  • Helper missing or non-executablechmod +x or restore from history.
  • Hook unwired → add the entry to .claude/settings.json.
  • project.json key missing → re-run /init-project, or add the key manually.
  • License missing (vendored skills) → restore from upstream; this is a license-compliance gap.
  • Cross-doc stale numbers → update the docs. seed.md is the source of truth.

Read the full file on GitHub · 83 lines

Files

What ships with it

35 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. 2d ago First seen · 83 lines · 103 tokens per session scan A a39bae8d5f48

Subscribe to this mod's changes

audit-baseline is a skill published in the GitHub repository friedbotstudio/baseline (11 stars, last pushed 6d ago), licensed Apache-2.0. It adds 103 tokens to every session and 1,120 once invoked, about $0.0005 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.