Code Review Instructions
Review the code for:
- Correctness: Logic errors, edge cases, null handling
- Security: Injection, XSS, secrets exposure, auth issues
- Performance: N+1 queries, unnecessary loops, memory leaks
- Maintainability: Complexity, naming, documentation
- Tests: Coverage, edge cases, meaningful assertions
Dynamic Context
- Recent changes: !
git diff HEAD~5 --stat 2>/dev/null || echo "No recent changes"
- Current branch: !
git branch --show-current 2>/dev/null || echo "unknown"
- Uncommitted changes: !
git status --short 2>/dev/null || echo "Not a git repo"
Review Process
Gather Context
- Check
git status for current state
- Review
git diff for recent changes
- Identify the most modified files
Analyze Code
- Focus on files with recent changes
- Check for security issues (hardcoded secrets, SQL injection, XSS)
- Look for performance problems
- Evaluate code organization and readability
Provide Feedback
- Be specific with file paths and line numbers
- Explain why something is an issue
- Suggest concrete fixes
- Rate severity
Severity Ratings
Format: Provide feedback as:
- Critical: Must fix before merge
- Important: Should fix, but not blocking
- Suggestion: Nice to have improvements
Output Format
Return a structured report:
{
"summary": "Brief overview of code health",
"files_reviewed": ["list of files"],
"issues": [
{
"file": "path/to/file.py",
"line": 42,
"severity": "critical|important|suggestion",
"category": "security|performance|correctness|maintainability",
"description": "What's wrong",
"suggestion": "How to fix it"
}
],
"recommendations": [
"General improvement suggestions"
],
"metrics": {
"total_issues": 5,
"critical": 0,
"important": 1,
"suggestions": 4
}
}
$ARGUMENTS
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: review-133description: Comprehensive code review for PRs or recent changes. Checks correctness, security, performance, maintainability, and tests. Use when this capability is needed.4---56# Code Review Instructions78Review the code for:9- **Correctness**: Logic errors, edge cases, null handling10- **Security**: Injection, XSS, secrets exposure, auth issues11- **Performance**: N+1 queries, unnecessary loops, memory leaks12- **Maintainability**: Complexity, naming, documentation13- **Tests**: Coverage, edge cases, meaningful assertions1415## Dynamic Context16- Recent changes: !`git diff HEAD~5 --stat 2>/dev/null || echo "No recent changes"`17- Current branch: !`git branch --show-current 2>/dev/null || echo "unknown"`18- Uncommitted changes: !`git status --short 2>/dev/null || echo "Not a git repo"`1920## Review Process21221. **Gather Context**23 - Check `git status` for current state24 - Review `git diff` for recent changes25 - Identify the most modified files26272. **Analyze Code**28 - Focus on files with recent changes29 - Check for security issues (hardcoded secrets, SQL injection, XSS)30 - Look for performance problems31 - Evaluate code organization and readability32333. **Provide Feedback**34 - Be specific with file paths and line numbers35 - Explain why something is an issue36 - Suggest concrete fixes37 - Rate severity3839## Severity Ratings4041Format: Provide feedback as:42- Critical: Must fix before merge43- Important: Should fix, but not blocking44- Suggestion: Nice to have improvements4546## Output Format4748Return a structured report:49```json50{51 "summary": "Brief overview of code health",52 "files_reviewed": ["list of files"],53 "issues": [54 {55 "file": "path/to/file.py",56 "line": 42,57 "severity": "critical|important|suggestion",58 "category": "security|performance|correctness|maintainability",59 "description": "What's wrong",60 "suggestion": "How to fix it"61 }62 ],63 "recommendations": [64 "General improvement suggestions"65 ],66 "metrics": {67 "total_issues": 5,68 "critical": 0,69 "important": 1,70 "suggestions": 471 }72}73```7475$ARGUMENTS7677---78> Converted and distributed by [TomeVault](https://tomevault.io/claim/dontizi) — claim your Tome and manage your conversions.79<!-- tomevault:4.0:skill_md:2026-04-13 -->