Audit Trail

Audit Trail is a skill for Claude Code from reggiechan74/cc-plugins. It costs 64 tokens per session (1,003 once invoked), scanned A, original, MIT.

A record of why code decisions were made and what happened afterward. It can keep this information in the current session, files, and Git commit messages.

In plain words
What is it for?
Use it to view a verification session, search decision records, investigate rejected changes, or check the downstream effects of a file change.
Why use it?
It helps you trace a change back to the original requirement or see which later work depends on it.

Skill for Claude Code

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

Part of the code-coherence plugin — 5 skills, 7 agents shipped together

Good fit Use it to view a verification session, search decision records, investigate rejected changes, or check the downstream effects of a file change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/reggiechan74/cc-plugins/audit-trail
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 reggiechan74/cc-plugins --skill audit-trail
Clone the repo
git clone --depth 1 https://github.com/reggiechan74/cc-plugins

Made for: Claude Code.

Or install code-coherence, the plugin that ships this one along with the rest of its 5 skills, 7 agents.

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 Trail

README.md
[![agentmods](https://agentmods.dev/badge/skills/reggiechan74/cc-plugins/audit-trail/github.svg)](https://agentmods.dev/skills/reggiechan74/cc-plugins/audit-trail)
Your own site
<a href="https://agentmods.dev/skills/reggiechan74/cc-plugins/audit-trail"><img src="https://agentmods.dev/badge/skills/reggiechan74/cc-plugins/audit-trail/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Audit Trail

Your own site · 80×15
<a href="https://agentmods.dev/skills/reggiechan74/cc-plugins/audit-trail"><img src="https://agentmods.dev/badge/skills/reggiechan74/cc-plugins/audit-trail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,003 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.00064 $0.01003
Opus 5.5 $0.00026 $0.00401
Sonnet 5.5 $0.00013 $0.00201
Haiku 4.5 $0.00006 $0.00100

Measured 3mo ago against content hash d43a1607393e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Audit Trail 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 3mo 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.

code-coherence/skills/audit-trail/SKILL.md · 173 lines

How it starts

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

Audit Trail: Decision History and Traceability

Purpose

Provide bidirectional traversal of decision history, enabling users to understand why decisions were made, what happened after them, and search for specific patterns across verification sessions.

Capabilities

Bidirectional Traversal

Forward: "What happened after this decision?" Backward: "Why did we make this decision?" Search: "Show all security critic rejections"

Persistence Layers

  1. In-memory - Current session only
  2. File-based - .claude/coherence-audit/ directory
  3. Git commits - Decision rationale in commit messages

Usage Patterns

View Session Audit Trail

/audit-trail show session-abc123

Returns complete decision history for verification session.

Search by Criteria

/audit-trail search security critic rejections

Finds all sessions where security critic vetoed.

Backward Trace

/audit-trail why was token storage changed to httpOnly

Traces decision back through critic evaluations to original requirement.

Forward Trace

/audit-trail what files depend on auth/middleware.ts

Shows downstream impacts of changes (exposure analysis).

Audit Log Format

{
  "session_id": "session-abc123",
  "timestamp": "2026-02-03T14:30:00Z",
  "user": "reggie",
  "operation": "coherence-check",
  "scope": {
    "files": ["src/auth/login.ts"],
    "operation": "refactor to JWT"
  },
  "plan": {
    "acceptance_criteria": [
      "All tests pass",
      "No OWASP violations",
      "httpOnly cookies used"
    ],
    "critics": ["code", "security", "domain"]
  },
  "iterations": [
    {
      "iteration": 1,
      "code_critic": {"verdict": "approve", "reason": "..."},
      "security_critic": {"verdict": "veto", "reason": "XSS in error msgs"},
      "domain_critic": {"verdict": "approve", "reason": "..."}
    },
    {
      "iteration": 2,
      "code_critic": {"verdict": "approve", "reason": "..."},
      "security_critic": {"verdict": "approve", "reason": "Fixed XSS"},
      "domain_critic": {"verdict": "veto", "reason": "Missing audit log"}
    },
    {
      "iteration": 3,
      "all_critics": "approve"
    }
  ],
  "final_status": "approved",
  "cost": {"tokens": 15420, "overhead_pct": 38.6},
  "files_changed": ["src/auth/login.ts", "src/auth/middleware.ts"]
}

Read the full file on GitHub · 173 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. 3mo ago First seen · 173 lines · 64 tokens per session scan A d43a1607393e

Subscribe to this mod's changes

Audit Trail is a skill published in the GitHub repository reggiechan74/cc-plugins (7 stars, last pushed 1mo ago), licensed MIT. It adds 64 tokens to every session and 1,003 once invoked, about $0.0003 per session on Opus 5.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

Audit Trail compared with skills from other repositories

Audit Trail next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Audit Trailreggiechan74/cc-pluginsSkill71mo agoMITA64Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91k4d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15kyesterdayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.8ktodayMITA20Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k2d agoMITA51Claude Code
comet-githubrpamis/cometSkill3.3k2d agoMITA72Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex