agentleFS
madebywildmadebywild/agent-harness/.claude/skills/critical-review/SKILL.md

critical-review

Skill16 starsChanged 7 months agoMITView on GitHub

Run a multi-round critical review loop using specialized subagents. Use when the user asks to review changes, harden code, or ensure quality before merge. Spawns parallel review agents across security, core-logic, tests, CLI integration, and API surface, then iterates fix-and-re-review rounds until all agents report clean.

We split this skill into the rules it gives an agent

12 rules. 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a comprehensive, multi-round critical review of recent changes using specialized subagents.

    line 8
  2. Very specific:

    Use $ARGUMENTS as a scope hint when provided (e.g., a module name, file glob, or feature area).

    line 10
  3. Distinctive:

    Ask the agent to report "No findings." if everything is clean.

    line 28
  4. Distinctive:

    Run git diff --name-only (staged + unstaged) and git log --oneline to determine which files changed.

    line 33
  5. Very specific:

    If $ARGUMENTS narrows the scope, filter the file list accordingly.

    line 34
  6. Distinctive:

    Read each changed file to have full context before spawning reviewers.

    line 35
  7. Very specific:

    Run quality gates after fixes: pnpm check:write, pnpm typecheck, and relevant tests.

    line 49
  8. Distinctive:

    If any HIGH or MEDIUM findings were fixed, go back to step 2 for the next round.

    line 52
  9. Distinctive:

    Stay in scope: Do not refactor code unrelated to the changes under review.

    line 64
  10. Distinctive:

    Run these after every fix round, before spawning the next review:

    line 71
  11. Distinctive:

    All five agents report zero HIGH and zero MEDIUM findings on the changes.

    line 82
  12. Distinctive:

    All quality gates pass.

    line 83

“Common” is measured: kept by at least 6 in 10 of the 5 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

critical-review

Run a comprehensive, multi-round critical review of recent changes using specialized subagents.

Use $ARGUMENTS as a scope hint when provided (e.g., a module name, file glob, or feature area). When omitted, review all uncommitted or recently committed changes on the current branch.

Review agents

Spawn these five review agents in parallel each round:

Agent typeFocus
security-reviewerPath traversal, injection, symlinks, deletion safety, permission checks, DoS vectors
core-logic-reviewerDRY violations, type safety, edge cases, error propagation, maintainability
test-reviewerCoverage gaps, assertion quality, test isolation, DRY in tests, E2E reliability
cli-integration-reviewerCommand registry, renderer, interactive adapter, commander adapter consistency
api-docs-reviewerNaming conventions, documentation completeness, barrel exports, breaking change risk

Each agent prompt must:

  • List the specific files to review (use git diff --name-only against the base branch to identify them).
  • Describe what was already fixed in prior rounds so the agent does not re-report resolved issues.
  • Request findings categorized as HIGH / MEDIUM / LOW / INFO with clear descriptions.
  • Ask the agent to report "No findings." if everything is clean.

Steps

  1. Identify scope.
    • Run git diff --name-only (staged + unstaged) and git log --oneline to determine which files changed.
    • If $ARGUMENTS narrows the scope, filter the file list accordingly.
    • Read each changed file to have full context before spawning reviewers.
  2. Round N: Spawn review agents.
    • Launch all five agents in parallel using the Agent tool with the appropriate subagent_type.
    • Each agent prompt must be self-contained: include file paths, prior-round context, and what to check.
    • Collect all findings.
  3. Triage findings.
    • Aggregate results into a table: | Reviewer | HIGH | MEDIUM | LOW | INFO |.
    • Identify all HIGH and MEDIUM findings that are actionable and specific to the changes (ignore pre-existing codebase issues not introduced by the changes).
  4. Fix findings.
    • Apply fixes for all HIGH findings and all MEDIUM findings that represent real bugs, behavioral inconsistencies, or security issues.
    • For MEDIUM findings that are stylistic or pre-existing patterns, note them but do not fix unless they are trivially addressable.
    • Run quality gates after fixes: pnpm check:write, pnpm typecheck, and relevant tests.
  5. Iterate.
    • If any HIGH or MEDIUM findings were fixed, go back to step 2 for the next round.
    • In each subsequent round, tell agents what was fixed so they verify the fixes and look for new issues.
    • Continue until all agents report no remaining HIGH or MEDIUM findings.
  6. Report.
    • Summarize all rounds: what was found, what was fixed, what was intentionally deferred.
    • Present the final findings table showing all agents clean.

Rules

  • Never skip a round. Even if only one agent had findings, re-run all five to catch regressions.
  • Fix, don't suppress. Address root causes. Do not silence findings by removing tests or weakening assertions.
  • Stay in scope. Do not refactor code unrelated to the changes under review.
  • Permission-dependent tests that fail when running as root should use skip: process.getuid?.() === 0 && "root bypasses file permissions".
  • Pre-existing failures (e.g., tests in other modules that were already failing) should be noted but not counted against the review.
  • Track progress with TodoWrite so the user can see round-by-round status.

Quality gates

Run these after every fix round, before spawning the next review:

pnpm check:write          # Biome lint + format with auto-fix
pnpm typecheck            # Type-check all packages
pnpm test                 # Unit tests (or targeted test file)

Exit criteria

The review loop is complete when:

  1. All five agents report zero HIGH and zero MEDIUM findings on the changes.
  2. All quality gates pass.
  3. Changes are committed and pushed.

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.

Reviews can't be read right now.

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.