Code review checklist

From curiositech/windags-skills · View interactive version

Code review checklist is an AI agent skill from the GitHub repository curiositech/windags-skills. Generates comprehensive, context-aware code review checklists tailored to the specific codebase, programming language, and team standards. Analyzes PR diffs and suggests what reviewers should focus on.

How to use this skill

Skill file

Code Review Checklist Generator

Generate thorough, contextual code review checklists that route attention to highest-risk areas based on what actually changed, not generic advice.

Decision Points: Route by Change Type

Step 1: Scan PR title, description, and git diff summary to classify change type

Step 2: Apply corresponding decision tree, checking items in priority order

IF New Feature:
├─ Security First: Does change touch auth, user input, or data access?
│  ├─ YES → Check input validation, auth boundaries, SQL injection vectors
│  └─ NO → Skip to API review
├─ API Surface: New public methods minimal? Could interface be smaller?
├─ Edge Cases: Test null/empty/max inputs, concurrent access, network failures
└─ Backwards Compatibility: Migration path for breaking changes?

IF Bug Fix:
├─ Triage Severity: Critical (security/data loss) vs Normal vs Cosmetic
│  ├─ CRITICAL → Verify fix addresses root cause, add regression test
│  ├─ NORMAL → Check blast radius, search for similar patterns
│  └─ COSMETIC → Ensure fix doesn't introduce complexity
├─ Root Cause: Comment explains WHY bug occurred, not just what changed
└─ Test Coverage: Regression test fails on old code, passes on new

IF Refactoring:
├─ Behavior Preservation Check: Do existing tests pass unmodified?
│  ├─ YES → Focus on performance implications
│  └─ NO → Require explanation for each test change
├─ No Feature Smuggling: Are behavior changes documented/intentional?
├─ Incremental Safety: Could split into smaller PRs to reduce risk?
└─ Performance Impact: New allocations, DB calls, or O(n) changes?

IF Dependencies:
├─ Version Jump Size: Patch vs Minor vs Major update
│  ├─ MAJOR → Read breaking changes, check for API usage
│  ├─ MINOR → Verify new features don't auto-enable unsafely
│  └─ PATCH → Quick security scan, verify lockfile consistency
├─ Security Focus: Does update address CVE? Check for new vulnerabilities
└─ Bundle Impact: Frontend deps - check bundle size growth

IF Config/Infrastructure:
├─ Secret Exposure: Scan for API keys, passwords, tokens in plain text
├─ Rollback Safety: Can revert without data loss or downtime?
├─ Environment Consistency: Does change work across dev/staging/prod?
└─ Deployment Dependencies: Required manual steps documented?

Failure Modes

Rubber Stamp Review

Logic Blindness

Authorization Gap Miss

Test Theater Approval

Scope Creep Review

Worked Examples

Example 1: SQL Injection in User Search

PR: "Add advanced user search with role filtering"

Files: routes/users.js, services/userSearch.js, test/search.test.js

Decision Tree Application:

  1. Change Type: New Feature → Check security first
  2. Security Scan: Route accepts user input → Examine query construction
  3. Code Analysis: userSearch.js line 23: SELECT * FROM users WHERE name LIKE '%${req.query.name}%'
  4. Vulnerability Found: Direct string interpolation in SQL query

What Novice Misses:

Expert Catches:

Example 2: Race Condition in Payment Flow

PR: "Remove transaction wrapper for better performance"

Files: services/payment.js - removes database transaction

Decision Tree Application:

  1. Change Type: Refactoring → Check behavior preservation
  2. Test Analysis: Existing tests still pass → Dig deeper into what changed
  3. Code Diff: Removed db.transaction() wrapper around payment operations
  4. Race Condition: Status update and balance deduction now separate operations

What Novice Misses:

Expert Catches:

Quality Gates

Mark review complete only when ALL conditions verified:

NOT-FOR Boundaries

This skill should NOT be used for:

Delegate when:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.