agentleFS
aksheywaksheyw/claude-code-deep-review/SKILL.md

deep-review

Skill1 starsChanged 9 days agoMITView on GitHub

Deep review using 14-lens methodology. Use when reviewing ANY plan, code review, architecture doc, test plan, or security assessment, before claiming it is complete. Runs fourteen lenses from different analysis angles in one pass by default. On request it repeats the full set until a whole pass finds nothing new, and it offers that loop for work that gates a release. Each lens catches issues invisible to previous lenses. Found 14 production bugs (2 ship-stoppers) in its first use. ALWAYS use this when the user asks to review something thoroughly, verify completeness, audit a document, or check if anything was missed. Also triggers on "did you miss anything", "is this thorough", "are you sure", "check again", or similar phrases.

48 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react, testing-strategy 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.
  • VercelSkill

    react

    React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.

    Also in 3 projects that use this

  • BlockSkill

    testing-strategy

    Guidelines for writing effective tests in this project

    Also in 3 projects that use this

  • SentrySkill

    deslop

    Strip AI-generated noise from the diff before pushing — extra comments a human wouldn't write, defensive try/catch in trusted code paths, casts to any, inline imports in Python, and other style inconsistencies with the surrounding file. Use this immediately before commit so the diff stays clean.

    Also in 4 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 6 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    humanizer

    Tone enforcement patterns for external-facing community responses

    Also in 4 projects that use this

  • +1 more from getsentry
  • Other versions48 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 48

    1. lobehub/lobe-chat★ 86ksame name
    2. lobehub/lobehub★ 86ksame name
    3. dyad-sh/dyad★ 22ksame name
    4. coder/coder★ 18ksame name
    5. tikv/tikv★ 17ksame name
    6. apache/cassandra★ 10ksame name
    7. gitkraken/vscode-gitlens★ 10ksame name
    8. compozy/compozy★ 2.9ksame name
    9. pedronauck/skills★ 659same name
    10. microsoft/regorus★ 376same name

    38 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run specific checks for that lens — use code tools (grep, find) if available, otherwise reason systematically through each item

    line 13
  2. Distinctive:

    Document every finding with specific references (file:line if code, section name if document)

    line 14
  3. Distinctive:

    Stop after one complete pass of all fourteen, unless the user asked for the loop

    line 17
  4. Distinctive:

    Every state machine in the system: free to premium, active to deleted, consented to revoked, draft to published.

    line 43
  5. Distinctive:

    Every config file read cover-to-cover.

    line 49
  6. Distinctive:

    Default: one pass: Run all fourteen lenses once, then report.

    line 87
  7. Distinctive:

    The loop, on request: If the user asks for the loop, repeat full passes of all fourteen until one produces zero new findings.

    line 90

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

Deep Review: 14-Lens Methodology

Apply 14 sequential lenses to the target artifact. Each lens examines the work from a different angle. By default, run one full pass of all fourteen. Run the loop (repeat full passes until one produces ZERO new findings) only when the user asks for it. See When to Stop.

Rules

  1. State which lens you are applying at the start of each round
  2. Run specific checks for that lens — use code tools (grep, find) if available, otherwise reason systematically through each item
  3. Document every finding with specific references (file:line if code, section name if document)
  4. Flag CRITICAL/ship-stopper issues immediately — do not wait until all lenses are done
  5. Save findings after every round
  6. Stop after one complete pass of all fourteen, unless the user asked for the loop

The 14 Lenses

Lens 1: File / Section Completeness

Does the artifact cover every relevant file, feature, section, or topic? Cross-reference against the actual codebase, spec, or requirements. Anything missing entirely?

Lens 2: Function / Item-Level Audit

For items that ARE covered — is each individual function, endpoint, component, or requirement actually addressed? Or just the file/section name listed without the details?

Lens 3: Category Gaps

Are entire CATEGORIES of concerns missing? For test plans: unit, integration, E2E, smoke, regression, performance, security, accessibility, cleanup, config. For architecture reviews: scalability, monitoring, disaster recovery. For code reviews: correctness, security, robustness, maintainability.

Lens 4: Cleanup, Performance, and Resource Management

Timers without cleanup. Listeners without removal. Memory leaks. O(n^2) in hot paths. Connections not closed. Caches that grow unbounded.

Lens 5: Client-Server Contract Alignment

Does the client send what the server expects? Headers, auth tokens, field names, body shapes. This is where ship-stoppers hide — one side changes but the other does not.

Lens 6: Platform / Environment-Specific Paths

Code that behaves differently on different platforms (mobile vs web, native vs browser, dev vs prod). Are BOTH paths covered? Is the primary platform tested more, not less?

Lens 7: Network and Error Conditions

Offline behavior. Rate limiting UX. Timeout handling. What does the user see when things fail? Generic errors or helpful messages?

Lens 8: Business Logic State Transitions

Every state machine in the system: free to premium, active to deleted, consented to revoked, draft to published. Is each transition AND its reverse covered?

Lens 9: UX and Interaction Details

Back button in modals. Image load failures. Double-tap prevention. Form data loss on navigation. Loading-to-data transitions (not just "loading renders"). Empty states for every list.

Lens 10: Infrastructure and Configuration

Every config file read cover-to-cover. Version numbers, security settings, stale references, deprecated flags, missing entries.

Lens 11: Security and Secrets

Credentials in source or docs. Git history leaks. CORS misconfigurations. Missing security headers. External links without noopener. User input not sanitized.

Lens 12: Data Layer and Access Rules

Database security rules, access controls, CORS configs. Every collection AND subcollection must have explicit rules. Default-deny means missing rules = silently broken features.

Lens 13: Existing Work Quality

Things that appear to be covered but are actually wrong. Tests that pass but test the wrong thing. Documentation that references moved files. Stale assertions that no longer match the code.

Lens 14: Internal Consistency

Does the document contradict itself? Do numbers add up? Does the table of contents match the actual sections? Do cross-references point to real targets?

Output Format

After each round:

## Round N: [Lens Name]
Findings: X new
- Finding 1 — Reference: [specific location] — Severity: CRITICAL/HIGH/MEDIUM/LOW
- Finding 2 — ...

Running total: Y findings, Z bugs

When complete:

## Deep Review Complete
- Rounds completed: N (one pass = 14 rounds; a loop stops at the first empty pass)
- Total findings: X
- Bugs found: Y (Z ship-stoppers)

When to Stop

Default: one pass. Run all fourteen lenses once, then report. A review cannot finish before one complete pass has run, so every run is at least fourteen rounds.

The loop, on request. If the user asks for the loop, repeat full passes of all fourteen until one produces zero new findings. If the work gates a release or a build and the user did not ask, finish the pass, then offer the loop in one line.

Every pass of the loop does the work again. A pass after the first is a fresh run of all fourteen lenses, not a recap of pass 1. Each lens in that pass gets its own round in the output format, with a Checks: line just above Findings:. That line names what the lens ran in this pass: the files or sections it re-read, the greps or searches it ran, and what it looked for. Use the code tools when you have them. Do not reuse pass 1's checks word for word: look from a new angle, such as the symbols a finding touched, the callers of a changed function, or the files pass 1 read least. Every finding cites file:line for code, or a section name for a document. "0 new" counts only when the Checks: line above it is filled in. If any lens in a pass shows no checks, that pass has not run, and the loop cannot stop on it.

Name only checks you ran in that pass. A search or read you ran counts. Thinking again about a file you read earlier also counts, but say so: "reasoned over routes/orders.ts from pass 1, no new search". When you have code tools, each pass after the first runs at least one search or read that no earlier pass ran, and names it in the Checks: line of the lens it served. Write up each pass before you start the next one, so the next pass can start from what this one found.

Why one pass is the default. On product specs with planted defects, a plain review caught 95% of them, one pass of the fourteen lenses 99%, and the loop 100%. The loop found about 23% more confirmed issues, but cost 2.7 times as much as one pass and raised about 50% more false alarms.

Never stop immediately after finding a ship-stopper. There is usually a second one nearby: they cluster around contract boundaries and security rules.

Origin

This methodology came out of writing a test plan for a production React app. Twenty-eight rounds turned up 14 production bugs, including 2 ship-stoppers that would have broken every API call and every image upload in production. A ten-agent code review had already run on the same codebase that day and caught none of them. They surfaced from writing the test cases, not from reading the code.

In that run, one of the two ship-stoppers took more than fourteen rounds to find. Round 5 caught the missing auth token. The storage setting that would have blocked image uploads only surfaced in round 25.

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.