agentleFS
faizkhairifaizkhairi/claude-code-blueprint/skills/review-full/SKILL.md

review-full

Skill73 starsChanged 4 months agoMITView on GitHub

Run a comprehensive multi-perspective code review on recent changes. Also triggers on 'is this secure?', 'security review', 'check for vulnerabilities', 'could this be exploited?' for security-focused review. Produces: GO/NO-GO verdict + findings table (Severity | Category | File:Line | Issue | Recommendation) grouping CRITICAL/HIGH/MEDIUM/LOW across code quality (patterns, error handling, types), security (OWASP Top 10, auth gaps, hardcoded secrets), and database logic (N+1 queries, soft-delete violations, missing models).

  • Reads credentials

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    If $ARGUMENTS is empty: review uncommitted changes (staged + unstaged via git diff + git diff --cached)

    line 12
  2. Very specific:

    If $ARGUMENTS is a file path: review that file only

    line 13
  3. Very specific:

    If $ARGUMENTS is a branch or range: review diff against that ref

    line 14
  4. Very specific:

    If $ARGUMENTS is "security": run security-only review (skip to step 3)

    line 15
  5. Distinctive:

    If changes are small (<50 lines), run code-reviewer only.

    line 29
  6. Distinctive:

    Dependency CVEs: Check for known vulnerabilities in changed dependencies

    line 50
  7. Distinctive:

    Run only when the change reshapes structure (new modules, files moved across layers, a multi-directory refactor).

    line 63
  8. Distinctive:

    Dependency direction: do inner layers avoid importing outer ones?

    line 64
  9. Distinctive:

    GO with notes: Only MEDIUM/LOW findings → safe to proceed, address in follow-up

    line 90
  10. Distinctive:

    GO: No findings → clean review

    line 91

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

This is a COMPREHENSIVE multi-agent code review. For quick anti-pattern scanning (seconds, not minutes), use review-diff instead.

Step 0: Detect scope and project

  • If $ARGUMENTS is empty: review uncommitted changes (staged + unstaged via git diff + git diff --cached)
  • If $ARGUMENTS is a file path: review that file only
  • If $ARGUMENTS is a branch or range: review diff against that ref
  • If $ARGUMENTS is "security": run security-only review (skip to step 3)
  • Detect project type from cwd/CLAUDE.md and the project manifest (any language/framework), or fall back to inspecting the file structure

Step 1: Spawn review agents in parallel

Launch up to 4 agents based on what the changes touch:

Changes TouchAgent to SpawnFocus
Any codecode-reviewerQuality, patterns, naming, DRY, error handling, consistency
API endpoints, auth, user inputsecurity-reviewerOWASP Top 10, injection, auth gaps, secrets, CORS
Database queries, ORM models, migrationsdb-analystN+1, undefined vs null, missing models, query performance
New modules, moved files, cross-layer imports, large refactorsarchitecture-reviewerDependency direction, circular deps, god files, dead code, modularity

If changes are small (<50 lines), run code-reviewer only. If security argument, run security-reviewer only. Add architecture-reviewer when the change reshapes structure (new module boundaries, files moved across layers, a refactor spanning several directories) rather than editing within existing files.

Step 2: Code quality review (via code-reviewer agent)

The agent checks:

  • Readability and naming conventions (matches project patterns?)
  • DRY: duplicated logic that should be extracted
  • Error handling: all async paths covered? Consistent error shapes?
  • Component/function size: single responsibility?
  • Static-typing discipline where the language has it: no unchecked escapes (TypeScript any, Java raw Object, Go interface{}, etc.)

Step 3: Security review (via security-reviewer agent)

The agent checks OWASP Top 10 plus project-specific patterns (read from CLAUDE.md):

  • Injection: SQL injection (raw queries without parameterization), command injection, XSS (unsanitized user input in templates)
  • Auth gaps: New endpoints/handlers without auth middleware (@UseGuards, defineMiddleware, session check)
  • Soft-delete violations: Hard DELETE/destroy used instead of soft-delete pattern (check CLAUDE.md for convention, e.g., is_active=false + deleted_at=new Date())
  • Secrets exposure: Hardcoded tokens, passwords, API keys in code (not .env)
  • API call patterns: Direct low-level fetch calls instead of the project's API composable (check CLAUDE.md)
  • Navigation patterns: Raw router calls instead of the framework-specific navigation function (check CLAUDE.md)
  • CORS/headers: Missing security headers, overly permissive CORS
  • Dependency CVEs: Check for known vulnerabilities in changed dependencies

Step 4: Database review (via db-analyst agent, if applicable)

The agent checks:

  • ORM null-handling: many ORMs distinguish "skip field" from "set NULL" (e.g. Prisma's undefined vs null); mixing them causes bugs
  • Schema/code drift: unmodeled tables can be dropped by destructive sync commands (e.g. prisma db push); verify every table is represented
  • N+1 queries: findMany/findFirst inside loops; should use include or batch queries
  • Relation loading: Missing include for needed relations, or over-fetching with deep includes
  • Migration safety: Schema changes that could drop data, rename columns, or break existing queries

Step 4b: Structural review (via architecture-reviewer agent, if applicable)

Run only when the change reshapes structure (new modules, files moved across layers, a multi-directory refactor). The agent checks:

  • Dependency direction: do inner layers avoid importing outer ones? (domain/core should not depend on UI/framework)
  • Circular dependencies: modules that import each other, directly or through a cycle
  • God files/modules: single files accumulating unrelated responsibilities
  • Dead code: exports/modules no longer imported anywhere
  • Modularity: are boundaries between features/layers clear, or is logic leaking across them?

This is language-agnostic: it calibrates to the project's own conventions (read from CLAUDE.md and the manifest), so it applies equally to any stack.

Step 5: Synthesize findings

Collect all agent findings into a single severity-rated table:

| # | Severity | Category | File:Line | Finding | Recommendation |
|---|----------|----------|-----------|---------|----------------|

Severity levels:

  • CRITICAL: Security vulnerability, data loss risk, auth bypass
  • HIGH: Logic bug, missing error handling, N+1 query, soft-delete violation
  • MEDIUM: Code quality, naming, DRY, missing types
  • LOW: Style, minor improvements, suggestions

Step 6: GO/NO-GO verdict

  • NO-GO: Any CRITICAL or HIGH finding present → must fix before merge/deploy
  • GO with notes: Only MEDIUM/LOW findings → safe to proceed, address in follow-up
  • GO: No findings → clean review

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.