code-review
Code review — local uncommitted changes or GitHub PR (pass PR number/URL for PR mode)
- Kind
- Prompt
- Works with
- Claude Code, Codex
- Source
- affaan-m/ECC @ d3b8a3e90890
- Path
- commands/code-review.md
- License
- MIT
- Jobs
- Git workflow, Review
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Code Review > PR review mode adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series. **Input**: $ARGUMENTS --- ## Mode Selection If `$ARGUMENTS` contains a PR number, PR URL, or `--pr`: → Jump to **PR Review Mode** below. Otherwise: → Use **Local Review Mode**. --- ## Local Review Mode Comprehensive security and quality review of uncommitted changes. ### Phase 1 — GATHER ```bash git diff --name-only HEAD ``` If no changed files, stop: "Nothing to review." ### Phase 2 — REVIEW Read each changed file in full. Check for: **Security Issues (CRITICAL):** - Hardcoded credentials, API keys, tokens - SQL injection vulnerabilities - XSS vulnerabilities - Missing input validation - Insecure dependencies - Path traversal risks **Code Quality (HIGH):** - Functions > 50 lines - Files > 800 lines - Nesting depth > 4 levels - Missing error handling - console.log statements - TODO/FIXME comments - Missing JSDoc for public APIs **Best Practices (MEDIUM):** - Mutation patterns (use immutable instead) - Emoji usage in code/comments - Missing tests for new code - Accessibility issues (a11y) ### Phase 3 — REPORT Generate report with: …