agentleFS
vltingvlting/claude-skills/skills/audit/SKILL.md

audit

Skill2 starsChanged 9 months agoMITView on GitHub

Run the repo's reviewer agent fan-out on a branch, worktree, or PR. Parses each reviewer's Output Contract JSON and aggregates into a single verdict.

164 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use overdrive, delight and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nikafastovets-langSkill

    overdrive

    Push interfaces past conventional limits with technically ambitious implementations. Whether that's a shader, a 60fps virtual table, spring physics on a dialog, or scroll-driven reveals — make users ask "how did they do that?

    Also in 12 projects that use this

  • mtctSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful.

    Also in 18 projects that use this

  • mtctSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 12 projects that use this

  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 10 projects that use this

  • tdiminoSkill

    shape

    Plan the UX and UI for a feature before writing code. Run a structured discovery interview, then produce a design brief (.design-context.md) that guides implementation. Establishes design direction, constraints, and strategy before any code is written. Triggers on plan the design, design brief, shape the UX, before we build, design discovery.

    Also in 8 projects that use this

  • +4 more from mtct
  • +1 more from nikafastovets-lang

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 147 edited versions we read keep these.

  • 5

    Distinctive

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    If no changed files → report "No changes to audit" and exit.

    line 53
  2. Distinctive:

    When in doubt, include. Prefer noise to missed findings.

    line 66
  3. Very specific:

    If nothing blocking, no action.

    line 134
  4. Distinctive:

    If the target was a PR fetched into a temp worktree:

    line 138
  5. Distinctive:

    Read-only: Never edit files, never commit, never merge.

    line 146
  6. Distinctive:

    Parallel only: All reviewers spawn in a single message.

    line 150

“Common” is measured: kept by at least 6 in 10 of the 147 edited versions of this file we could read. “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

Audit

Runs the repo's contract reviewer agents in parallel and aggregates their verdicts.

/audit                   — audit current branch vs its merge-base with origin/main
/audit <branch>          — audit <branch> vs its merge-base with origin/main
/audit <worktree-path>   — audit uncommitted state in worktree (HEAD~1..HEAD)
/audit <PR#>             — fetch PR head, audit it (requires gh CLI)

Non-destructive, read-only. No commits, no merges. This is the standalone version of the review gate that /q, /do, and /run call internally.

What it runs

Contract reviewers (emit fenced JSON block — parsed):

  • stl-enforcer — token usage, styled()/stl prop discipline
  • a11y-reviewer — ARIA, keyboard nav, focus management
  • design-critic — spacing rhythm, visual hierarchy, composition
  • bundle-checker — build delta, new exports, dep churn

Reviewers must live at .claude/agents/<name>.md in the target repo. If an agent is missing, audit skips it with a warning rather than failing.

Execution

Step 1: RESOLVE TARGET

Parse the argument:

ShapeResolution
(empty)Current branch at cwd; diff vs git merge-base HEAD origin/main
bare integer (e.g. 123)gh pr checkout <n> in a temp worktree, diff vs PR base
path exists & is a worktreeUse that worktree; diff = HEAD~1..HEAD (most recent commit)
starts with / or ./ and path existsTreat as worktree path, same as above
otherwiseTreat as branch name; diff vs git merge-base <branch> origin/main

Compute changed files:

git -C {target} diff --name-only {base}..{head}

If no changed files → report "No changes to audit" and exit.

Step 2: SELECT REVIEWERS

Include all 4 contract reviewers by default. Skip one only when clearly irrelevant given changed files:

SkipWhen
stl-enforcerNo packages/stl* edits AND no .tsx/.ts imports of styled() or stl prop
a11y-reviewerNo .tsx files changed AND no ARIA/role-related changes
design-criticNo .tsx files changed (pure logic/config/build scripts)
bundle-checkerNo package.json diff AND no new exports in src/index.ts equivalents

When in doubt, include. Prefer noise to missed findings.

Step 3: SPAWN IN PARALLEL

Send all selected reviewers in a single message with multiple Agent tool calls:

Agent(
  subagent_type: "{reviewer}",
  name: "{reviewer}-audit",
  prompt: "Review changes in {target path}. Changed files: {list}. Diff range: {base}..{head}. End your response with the Output Contract JSON block."
)

Step 4: PARSE

For each reviewer response, extract the fenced ```json block at the end:

{
  "severity": "ok|warning|error",
  "blocking": true,
  "summary": "...",
  "findings": [
    { "file": "...", "line": 0, "rule": "...", "severity": "error|warning", "message": "..." }
  ]
}
  • Missing reviewer agent file → record as skipped
  • Malformed or missing JSON → record as severity: "warning", synthetic finding
  • Empty findings with severity: "ok" → pass

Step 5: AGGREGATE

Compute top-line verdict:

ConditionVerdict
Any reviewer returned blocking: true❌ BLOCKING
Any warnings, none blocking⚠️ WARNINGS
All ok, no findings✅ CLEAN

Step 6: REPORT

Print a single markdown block:

## Audit — {target summary}

**Verdict:** {emoji} {verdict-label}
**Changed files:** {N}
**Reviewers:** {ran}/{selected} (skipped: {skipped-list})

### Findings ({total})

#### {reviewer-name} — {severity}
{summary line}

- `{file}:{line}` — `{rule}` — {message}
- ...

(repeat per reviewer that returned findings)

### Clean
{reviewers that returned ok, comma-separated}

If nothing blocking, no action. If any blocking: true, the user should fix those before merging — this skill does not auto-retry; that's the caller skills' job (/q, /do, /run).

Step 7: CLEANUP (PR mode only)

If the target was a PR fetched into a temp worktree:

git worktree remove {temp-path} --force 2>/dev/null
git branch -D {temp-branch} 2>/dev/null

Rules

  1. Read-only. Never edit files, never commit, never merge.
  2. No auto-fix. Report findings; the user (or /q//do) decides whether to remediate.
  3. Never spawn non-contract reviewers. ui-tester and test-writer are separate tools — call them explicitly when needed, not from /audit.
  4. Skip silently on missing agent files. Record in the skipped list; do not error.
  5. Parallel only. All reviewers spawn in a single message. Serial review defeats the point.

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.