mcpField
A
audit-anything

audit-anything

github.com/mercatorprojTesting & quality043 installsUpdated 3w ago
Repository

About audit-anything

A structured audit skill for agents that defines scope, evidence standards, severity, coverage, verdicts, and report persistence. It pairs with a domain-specific skill while keeping the work focused on assessment rather than implementation.

Key features

  1. 01Select an audit mode and scope
  2. 02Pair with a relevant domain skill
  3. 03Establish a baseline with read-only checks
  4. 04Evaluate findings using evidence and severity
  5. 05Report coverage and verdict honestly
  6. 06Persist audit reports

Use cases

  1. 01Audit a code change with its surrounding behavior
  2. 02Assess a system or API contract
  3. 03Review a live product or document
  4. 04Produce a findings report with a clear verdict

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mercatorproj/audit-anything --skill audit-anything

After installing, type/audit-anythingin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
LICENSE
agents/
openai.yaml
references/
compositions.md

Details

From the project README

Audit Anything

Run a structured audit, not a general code review. The audit skill owns scope, evidence discipline, severity, coverage, verdict, and report persistence. A paired domain skill supplies domain vocabulary and inspection criteria. Do not let a domain skill turn the audit into implementation work.

Pairing flow

flowchart TD
    A["Audit request"] --> B{"Named domain skill?"}
    B -- "Yes" --> C["Pair audit + domain skill"]
    B -- "No" --> D{"Domain obvious?"}
    D -- "Yes" --> E["Select best matching skill"]
    D -- "No" --> F["Ask one concise question"]
    C --> G{"Skill available and allowed?"}
    E --> G
    G -- "Yes" --> H["Load domain instructions"]
    G -- "No or explicit-only" --> I["Use composition checklist"]
    F --> I
    H --> J["Run audit loop"]
    I --> J

Pairing contract

  1. Identify the audit domain from the request or target artifact. If the user named another skill, read and use it together with this skill.
  2. If no domain skill is named but the domain is obvious, use the best available matching skill; for example, pair with frontend-design for visual/UI design review, improve-codebase-architecture for architecture review when explicitly requested, database-schema-designer for schema review, or ai-agent-workflow for agent workflow review.
  3. If the domain is genuinely ambiguous, ask one concise question before spending effort on the wrong target.
  4. Do not silently invoke a skill that is marked explicit-only or model-disabled. Ask the user to invoke it or proceed with the corresponding checklist in references/compositions.md.
  5. Keep the paired skill's creative or planning workflow subordinate to audit mode. Do not redesign, refactor, install dependencies, or fix code unless the user explicitly asks for fixes.

Audit modes

Select the narrowest mode that satisfies the request:

ModeTargetMinimum evidence
Change auditDiff, commit, or PRFull diff, surrounding call paths, tests
Module auditFile, component, service, or workflowEntrypoints, dependencies, state flow, tests
System auditArchitecture or domain modelDirectory map, module boundaries, data/control flow, ADRs or docs
Live product auditRunning appReal interaction, screenshots, console/network output where applicable
Contract auditAPI, schema, event, or data modelInterfaces, callers, constraints, migrations, failure cases
Document auditPlan, spec, IA, user flow, reportFull artifact, referenced sources, consistency with implementation

For code-change reviews where the user only wants defect findings, prefer review-agent. Use this skill when the user asks for a broader audit, domain assessment, or a persisted report.

Execution loop

flowchart LR
    A["Frame audit"] --> B["Read local conventions"]
    B --> C["Establish baseline"]
    C --> D["Collect evidence"]
    D --> E["Apply domain checklist"]
    E --> F{"Hard evidence satisfied?"}
    F -- "No" --> G["Downgrade or mark incomplete"]
    F -- "Yes" --> H["Classify findings"]
    G --> H
    H --> I["Assign verdict"]
    I --> J["Persist report"]

Process

  1. Frame the audit. Record target, domain, pairing, mode, intended user, constraints, and whether the scope is a change, module, system, live product, contract, or document.
  2. Read local conventions. Read applicable AGENTS.md, README, docs, ADRs, glossaries, and existing audit reports before judging the target.
  3. Establish a baseline. Run relevant read-only checks such as tests, typecheck, lint, build, schema validation, or dependency inspection. Do not run destructive commands or request external services without authorization.
  4. Inspect with evidence. Read the complete requested artifact plus enough surrounding code or docs to understand behavior. For live products, interact with real flows and capture observable proof.
  5. Evaluate across the paired lens. Use the domain checklist from references/compositions.md. Common dimensions are correctness, security, reliability, performance, maintainability, state handling, testability, observability, accessibility, and documented intent.
  6. Report only actionable findings. A finding needs concrete impact, evidence, and a smallest viable fix direction. Do not include speculative concerns, pre-existing issues outside the stated scope, or style nits that do not obscure behavior.
  7. State coverage honestly. List what was inspected, what was sampled, and what could not be verified. Missing access, credentials, services, or runnable state makes the verdict incomplete rather than pass.
  8. Persist the report. Unless the user asks for chat-only output, write the full report to docs/audits/YYYY-MM-DD-<domain>-<target>.md when a docs/ directory exists. If there is no docs/ directory, save to the OS temp directory and provide the absolute path.
  9. Summarize in chat. Lead with the verdict and highest-impact findings, then mention the report path and recommended next action.

Evidence gate

flowchart TD
    A["Evidence"] --> B{"Source-backed and reproducible?"}
    B -- "No" --> C["Discard or mark speculative"]
    B -- "Yes" --> D{"Hard gate passed?"}
    D -- "No" --> E["Fail or incomplete"]
    D -- "Yes" --> F{"Any P0 or P1 finding?"}
    F -- "Yes" --> G["Fail"]
    F -- "No" --> H{"Only P3 gaps?"}
    H -- "Yes" --> I["Pass"]
    H -- "No" --> J["Conditional pass"]

Findings and verdict

Use these priorities:

  • P0: release blocker or critical correctness/security/data-loss issue.
  • P1: high-impact defect or risk that should be fixed soon.
  • P2: ordinary defect, gap, or maintainability issue.
  • P3: worthwhile polish or documentation improvement.

Use one verdict:

  • Pass: no P0/P1 findings and all agreed hard gates are green.
  • Conditional Pass: no P0/P1 findings, but P2/P3 gaps remain.
  • Fail: one or more P0/P1 findings or a failed hard gate.
  • Incomplete: required access, interaction, build, test, or evidence is missing.

Every finding must have:

  1. A one-line imperative title with priority.
  2. Evidence with file/line, command output, request/response, screenshot, schema, or artifact quote.
  3. Affected scenario or user workflow.
  4. Why it matters in the paired domain's terms.
  5. The smallest concrete next change, not a vague suggestion.

Report format:

# <Domain> Audit: <Target>

Date: YYYY-MM-DD
Scope: <artifact or boundary>
Pairing: audit + <skill or explicit lens>
Mode: <audit mode>

## Verdict

<Pass / Conditional Pass / Fail / Incomplete>

## Flow evidence

Use one or more Mermaid diagrams when they clarify state, sequence, ownership, trust boundary, or failure path. Prefer a diagram for any workflow that spans multiple components or decision points.

## Findings

### [P1] <Imperative finding title>

- Evidence: <path:line, output, screenshot, or quote>
- Impact: <affected workflow and why it matters>
- Next change: <smallest concrete fix direction>

## Coverage

- Inspected: <list>
- Sampled: <list>
- Not verified: <list and why>

## Roadmap

1. <Immediate / P0-P1 action>
2. <Structural action>
3. <Polish or documentation action>

Read references/compositions.md for domain-specific pairing, inspection questions, and hard evidence requirements.

Comments

Markdown supported