audit

audit is a skill for Claude Code from epicsagas/epic-harness. It costs 37 tokens per session (2,161 once invoked), scanned A, original, Apache-2.0.

An audit procedure that reviews a software change for code quality, security, tests, and whether it meets the specification. It can run these review areas separately and combine their findings into a final result.

In plain words
What is it for?
Use it after implementing a feature to run code, security, and test reviews, verify acceptance criteria, and receive PASS, WARN, or FAIL results.
Why use it?
It finds defects, security risks, missing tests, and incomplete requirements before a change is accepted.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the epic plugin — 27 skills, 6 hooks 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/epicsagas/epic-harness/audit
Any agent
npx skills add epicsagas/epic-harness --skill audit
Clone the repo
git clone --depth 1 https://github.com/epicsagas/epic-harness

Made for: Claude Code.

Or install epic, the plugin that ships this one along with the rest of its 27 skills, 6 hooks.

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 audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/epicsagas/epic-harness/audit.svg)](https://agentmods.dev/skills/epicsagas/epic-harness/audit)
Your own site
<a href="https://agentmods.dev/skills/epicsagas/epic-harness/audit"><img src="https://agentmods.dev/badge/skills/epicsagas/epic-harness/audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,161 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.1 $0.00037 $0.02161
Opus 5 $0.00018 $0.01081
Sonnet 5 $0.00007 $0.00432
Haiku 4.5 $0.00004 $0.00216

Measured 6d ago against content hash 236504b1a35c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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 6d 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.

skills/audit/SKILL.md · 245 lines

How it starts

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

Audit — Verify Everything

CRITICAL: Run HARNESS_DIR=$(epic path) first. NEVER use .harness/ in the project directory.

Execution Modes

This skill has 3 internal modes that run in parallel:

  1. audit:code — Code quality, logic, style, test coverage, spec coverage
  2. audit:security — OWASP Top 10 + performance (N+1, leaks)
  3. audit:test — Full test suite, AC verification, coverage delta

--strict Mode (Trust Boundary Isolation)

When invoked with --strict (or when .harness/engagement.md has mode: strict), the audit enforces independence between verification agents to prevent reward hacking:

  • Artifact-only delivery: Each mode receives only the code diff and spec — no builder context, no session history, no prior agent conclusions.
  • Cross-check independence: audit:code and audit:security run without visibility into each other's findings. Results are combined only during synthesis (Step 4).
  • Blind scoring: No mode can see another mode's verdict until synthesis. This prevents anchoring bias where a clean code review inflates the security score.
  • No self-review: If the same agent built the code (via /go), a different agent instance must run audit. The builder's session ID is checked and excluded.

Use --strict for security-sensitive projects, compliance requirements, or when the build phase had ambiguous outcomes.


Process

Step 0: Prerequisites

Confirm go has run:

git symbolic-ref --short HEAD  # must NOT be main/master

Load the spec to know what was supposed to be built:

ls -t $HARNESS_DIR/specs/SPEC-*.md | head -1

Read the Requirements and Acceptance Criteria sections.

Step 1: Gather Scope

git diff --stat $(git merge-base HEAD main)
git diff --name-only $(git merge-base HEAD main)

Step 2: Scope Detection

Pattern Scope Extra checks
*.api.*, *route*, *controller*, *handler* API + Contract testing, request validation
*.tsx, *.jsx, *.vue, *.svelte, *.css Frontend + Accessibility, semantic HTML
*.sql, *migration*, *schema* Database + Migration safety, rollback plan
*.rs, Cargo.toml, *.go, go.mod Backend + Build verification, type safety
*.test.*, *.spec.*, __tests__/ Tests + Coverage delta, flaky test detection
Dockerfile*, *.yml, *.yaml, Makefile Infra + Config validation, secret detection
*.md, *.txt Docs + Link checking, freshness

Read the full file on GitHub · 245 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. 6d ago First seen · 245 lines · 37 tokens per session scan A 236504b1a35c

Subscribe to this mod's changes

audit is a skill published in the GitHub repository epicsagas/epic-harness (18 stars, last pushed yesterday), licensed Apache-2.0. It adds 37 tokens to every session and 2,161 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-30.