| name | code-review |
| description | Generate a focused code review checklist based on language, framework, and change type. Outputs specific items to check, not generic advice. |
| argument-hint | ["language/framework","change description","risk level"] |
| allowed-tools | Read, Write |
Code Review Checklist Generator
Generate a targeted code review checklist from the change context. No boilerplate — every item should be specific to the language, framework, and type of change being reviewed.
Process
- Parse change context. Identify language, framework, change type (new feature, bug fix, refactor, performance).
- Assess risk. Database migration? Auth changes? Payment flow? Flag high-risk areas.
- Generate language-specific checks. Memory management (C/C++), null safety (Kotlin), async correctness (JavaScript/Python).
- Add framework-specific checks. React hooks dependencies, Django ORM N+1 queries, SQL injection in raw queries.
- Include security checks. Input validation, auth bypass, data exposure.
- Check performance impact. O(n²) loops, unindexed queries, missing pagination.
- Verify tests. Coverage for new code, edge cases, integration tests.
- Structure as actionable checklist. Group by category, priority order.
Output Format
Code Review Checklist: [Change Title]
Language: [Python/JavaScript/Java/Go/etc.]
Framework: [Django/React/Spring Boot/etc.]
Change Type: [New Feature/Bug Fix/Refactor/Performance]
Risk Level: [Low/Medium/High/Critical]
Critical Issues (Must Fix)
Security
Data Integrity
Correctness
High Priority
Performance
Code Quality
Testing
Medium Priority
Framework-Specific (React)
Framework-Specific (Django)
Observability
Low Priority
Style & Conventions
Documentation
Risk-Specific Checks
If Database Migration:
If Payment/Financial:
If Authentication:
How to Use This Checklist
- Read the code. Understand what it does before checking boxes.
- Check Critical first. Stop review if critical issues found.
- High Priority next. Request changes if multiple High items fail.
- Medium/Low are suggestions. Author can push back with rationale.
- Not every item applies. Skip irrelevant checks, but note why.
- Add custom items. If you spot issues not on list, add them.
Rules
- Checklist must be specific to the language and framework (React checks for React PRs, Django checks for Django PRs).
- Group by risk level: Critical > High > Medium > Low.
- Critical items are blockers — PR should not merge if these fail.
- Include realistic examples in brackets [like this] when useful.
- If change involves high-risk areas (auth, payments, migrations), include dedicated risk sections.
- Every checkbox must be actionable ("Check for X") not vague ("Code is good").
- Maximum 40 checklist items — more than that is noise.
- If change type is unclear, list questions to clarify before generating checklist.