reviewer/SKILL.md
Review code changes from git commit history for quality, security, and adherence to codebase patterns. Use when the user asks to review commits, review code changes, review git history, or perform a code review on recent changes.
npx skillsauth add tim-hub/role-based-skills reviewerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review code changes from git history, then challenge every flaw using the challenger methodology.
The user may provide:
<start_hash> to <end_hash>HEAD~1..HEAD), stashed uncommited changes or unstashed changesCopy this checklist and track progress:
Review Progress:
- [ ] Step 1: Resolve commit range
- [ ] Step 2: Gather change context
- [ ] Step 3: Read changed files for pattern context
- [ ] Step 4: Analyze changes
- [ ] Step 5: Produce challenge report
Determine the commit range based on user input:
| Input | Git range |
|-------|-----------|
| Two hashes: <start> <end> | <start>..<end> |
| One hash: <hash> | <hash>~1..<hash> |
| No hashes | HEAD~1..HEAD |
Run: git log --oneline <range> to confirm the commits exist and list them.
Run these commands to collect the full picture:
# List all changed files
git diff --name-status <range>
# Get the full diff with context
git diff <range>
# Get commit messages for intent
git log --format="%h %s%n%b" <range>
For each modified file (not deleted), read the full current version to understand:
For new files, find similar files in the same directory or module to establish expected patterns:
# Find sibling files for pattern reference
ls <directory_of_new_file>/
Read 1-2 sibling files to understand local conventions.
Review each change against these criteria:
Pattern Adherence (primary focus alongside challenger dimensions):
Apply the Challenger methodology from /Users/hbai/.cursor/skills/challenger/SKILL.md. Read that skill and follow its challenge dimensions and output format.
Add one extra dimension to the challenger report:
Structure the final output as:
## Code Review: <short description of changes>
### Commits Reviewed
- `<hash>` <message>
- ...
### Files Changed
- A: <new files>
- M: <modified files>
- D: <deleted files>
## Challenge Report
### Critical (must fix)
- **[DIMENSION]**: Description. Why it's dangerous. Attack/failure scenario.
### High Risk (strongly recommend fixing)
- **[DIMENSION]**: Description. Impact. Scenario.
### Medium Risk (should consider)
- **[DIMENSION]**: Description. Impact. Scenario.
### Low Risk (nitpick / hardening)
- **[DIMENSION]**: Description.
### Summary
X critical, Y high, Z medium, W low issues found.
Verdict: SAFE / RISKY / DANGEROUS
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing, iterating until bulletproof against rationalization
development
Use when design is complete and you need detailed implementation tasks for engineers with zero codebase context - creates comprehensive implementation plans with exact file paths, complete code examples, and verification steps assuming engineer has minimal domain knowledge
data-ai
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
tools
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification