with one click
review-code
Review code for quality and bugs
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Review code for quality and bugs
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Finish feature with tests, commit, and session closure
Start feature with branch and session tracking
Interactive wizard to configure the project
System-wide code audit with 8 modules
Environment-aware deployment with pre/post checks
Methodical codebase exploration and understanding
| name | review-code |
| description | Review code for quality and bugs |
| context | fork |
| agent | Explore |
| allowed-tools | Read, Grep, Glob |
Read .claude/project.config.json for project conventions, limits, and quality settings.
Variables to load:
{maxFileLines} = config.workflow.maxFileLines (default: 400){maxFunctionLines} = config.workflow.maxFunctionLines (default: 50){externalSkills} = config.quality.externalSkills (default: [])Check for active session in context/tmp/session-*.md:
!git diff --stat HEAD~5
Group changes by category:
| Category | Files | Count |
|---|---|---|
| Backend (API/services) | src/api/, src/services/ | {N} |
| Frontend (UI/components) | src/components/, src/pages/ | {N} |
| Tests | tests/, *.test.*, *.spec.* | {N} |
| Database (models/migrations) | src/database/, migrations/ | {N} |
| Configuration | *.config.*, .env*, package.json | {N} |
| Documentation | docs/, *.md, context/ | {N} |
If externalSkills are configured AND changes include relevant file types:
For each skill in externalSkills:
.claude/skills/{skill-name}/SKILL.md exists (via symlink or direct)For each available skill that matches the change type (e.g., frontend skill for component changes):
Include the list of invoked/pending/missing quality skills in the final report.
See .claude/docs/QUALITY-SKILLS-CONTRACT.md for the expected output format of quality skills.
For each changed file, apply the relevant checklists:
should {action} when {condition})## Code Review Report
**Scope**: {N} files across {categories}
**Branch**: {current branch}
**Session**: {session ID if active}
### Quality Skills Status
| Skill | Status | Notes |
|-------|--------|-------|
| {skill name} | Invoked / Pending / N/A | {details} |
### Summary
| Category | Critical | Important | Suggestion |
|----------|----------|-----------|------------|
| Correctness | {N} | {N} | {N} |
| Security | {N} | {N} | {N} |
| Performance | {N} | {N} | {N} |
| Tests | {N} | {N} | {N} |
| Documentation | {N} | {N} | {N} |
| Maintainability | {N} | {N} | {N} |
| Frontend | {N} | {N} | {N} |
| E2E Tests | {N} | {N} | {N} |
| **Total** | **{N}** | **{N}** | **{N}** |
### Issues
| # | Category | Priority | File:Line | Description |
|---|----------|----------|-----------|-------------|
| 1 | {cat} | CRITICAL | `file:line` | {description} |
| 2 | {cat} | IMPORTANT | `file:line` | {description} |
### Issue Details
#### Issue #1: [{PRIORITY}] {Title}
**File**: `{path}:{line}`
**Category**: {category}
**Problem**: {clear description}
**Solution**: {actionable suggestion}
---
### Verdict: **READY** | **PENDING** | **CONDITIONAL**
- **READY**: No critical issues found. Safe to merge.
- **PENDING**: {N} critical issues must be resolved before merge.
- **CONDITIONAL**: No critical issues, but {N} important issues should be tracked. Can merge with follow-up plan.
**Quality skills invoked**: {list of skills consulted during this review cycle}
| Verdict | Condition |
|---|---|
| READY | 0 CRITICAL issues AND 0-2 IMPORTANT issues |
| CONDITIONAL | 0 CRITICAL issues AND >2 IMPORTANT issues |
| PENDING | Any CRITICAL issue present |
| Problem | Recovery |
|---|---|
| No recent commits to diff | Use git diff --stat HEAD or ask user for scope |
| Quality skill not installed | Note as "configured but not installed" and continue review |
| Session not found | Review without session context — note this in report |
| Too many files to review | Group by category, focus on CRITICAL checks first |