Expert code review for quality, security, and maintainability. Use after writing or modifying code, or when user asks for review.
Install
npx skillscat add htlin222/dotfiles/code-review Install via the SkillsCat registry.
The code‑review skill analyzes recent code changes for quality, security, and maintainability, identifying critical, warning, and suggestion items. It helps developers ensure correctness and safety before committing or when concerns arise. Use it after writing or modifying code, or when a review is requested.
Code Review
Review code for quality, security, and maintainability with prioritized feedback.
When to Use
- After writing or modifying code
- User asks "review this code" or "check my changes"
- Before committing significant changes
- When code quality concerns arise
Review Process
- Run
git diffto see recent changes - Read modified files to understand context
- Analyze against checklist below
- Provide prioritized feedback
Review Checklist
Critical (Must Fix)
- Security vulnerabilities (exposed secrets, injection risks)
- Logic errors that cause incorrect behavior
- Missing error handling for critical paths
- Race conditions or data corruption risks
Warnings (Should Fix)
- Code duplication that harms maintainability
- Missing input validation
- Poor error messages
- Performance issues in hot paths
- Missing or inadequate tests
Suggestions (Consider)
- Naming improvements for clarity
- Simplification opportunities
- Better abstractions
- Documentation gaps
Output Format
## Code Review Summary
**Files Reviewed:** [list files]
**Overall Assessment:** [Good/Needs Work/Critical Issues]
### Critical Issues
- [file:line] Issue description → Fix suggestion
### Warnings
- [file:line] Issue description → Recommendation
### Suggestions
- [file:line] Improvement opportunityExamples
Input: "Review my changes"
Action: Run git diff, analyze changes, provide structured feedback
Input: "Check this function for issues"
Action: Read the function, check for bugs/security/quality, report findings