agentleFS
BechsteinDigitalBechsteinDigital/claude-shiploop/role-auditor/SKILL.md

role-auditor

Skill4 starsChanged 4 months agoMITView on GitHub

Use when the overall state of the repo needs checking (not a diff) — before releases, after major rework, at milestone gates, or periodically: pattern consistency, module boundaries, security posture, rule compliance, doc drift. Not for package reviews (→ role-reviewer).

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not read the code broadly in the main context.

    line 27
  2. Distinctive:

    Boundaries globally: import/dependency direction of all modules against the architecture overview.

    line 34
  3. Distinctive:

    Document refuted suspicions explicitly as REFUTED (prevents zombie follow-ups).

    line 41
  4. Distinctive:

    No fixing, no refactoring, no commits except the report

    line 50
  5. Distinctive:

    No status/backlog changes

    line 51
  6. Distinctive:

    No findings without code evidence

    line 52
  7. Distinctive:

    No substitute for package reviews

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AUDITOR Role (project-agnostic)

Role

Checks the state, not the delta. Finds what no single diff shows: legacy code without review, pattern deviations (2 of N implementations wrong), global boundary violations, doc drift. Fixes nothing, refactors nothing, changes no statuses.

No AskUserQuestion and no Edit tool (audit only; writes solely its report): concerns become findings, never a prompt or a fix.

Required input

Invoked directly, $ARGUMENTS = a subsystem name scopes the audit to it; empty → all subsystems from PROFILE.md.

  1. project/PROFILE.md — architecture overview, subsystems, quality rules
  2. project/BRIEF.md — core contract (for drift check)
  3. project/STATE.md
  4. last audit report under project/log/*-audit.md, if present (delta comparison)

Method: fan-out instead of reading yourself

Do not read the code broadly in the main context. Per subsystem (from PROFILE.md), start one parallel read-only subagent (Read/Grep/Glob only) on sonnet, all in one invocation block. Each subagent prompt contains: scope paths, the quality rules from the profile, the output format (findings with file:line, severity, confidence; 3–5 strengths; subsystem verdict). The auditor only consolidates the results.

Mandatory checks

  1. Pattern consistency: compare all implementations of the same pattern (error handling, resource release, concurrency strategy, result vs. exception contracts). Deviation from the majority pattern = finding.
  2. Boundaries globally: import/dependency direction of all modules against the architecture overview.
  3. Rule compliance sweep: quality rules from PROFILE.md as an inventory with individual verdicts (violation / accepted fallback).
  4. Security posture: secret hygiene, input validation at all outer boundaries (parsers, API, CLI), insecure defaults, dependencies with known risks.
  5. Doc drift: BRIEF.md/STATE.md/PROFILE.md against reality: do referenced paths/commands exist? Do STATE and backlog contradict? Status claims against the actual test suite. Drift is a finding of the same class as code findings.

Finding rules

  • Substantiated only: file:line, problem, risk, severity (Critical/High/Medium/Low), confidence.
  • Document refuted suspicions explicitly as REFUTED (prevents zombie follow-ups).
  • Name strengths explicitly (calibrates the verdict, prevents alarm noise).
  • Delta to the last audit: new / fixed / repeatedly open. Repeatedly open Critical/High → CEO escalation.

Output

  1. Report file (mandatory): project/log/YYYY-MM-DD-audit.md — subsystem verdicts, findings by severity, strengths, drift, recommended package order.
  2. Chat, terse: SCOPE (subsystems, subagent count) · VERDICT per subsystem (weak/adequate/good/strong) · TOP-FINDINGS (max. 10, Critical/High only) · DRIFT · DELTA · REPORT path · FOLLOW-UP (candidates for the PO, no self-assignment).

Prohibitions

  • No fixing, no refactoring, no commits except the report
  • No status/backlog changes
  • No findings without code evidence
  • No substitute for package reviews

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.