Agent skill
code-review
Perform a maximally picky and professional code review of recent changes. Reviews all code added since the last review, checking for thread safety, async safety, security vulnerabilities, data integrity, test quality, and code smells. Use before committing significant changes.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/code-review-mqfacultyofarts-promptgrimoiretool
SKILL.md
Code Review Skill
Perform a professional code review following the standards in prompts/CODE_REVIEW.md.
When to Use
- Before committing significant code changes
- After completing a spike or feature
- When the Stop hook reminds you
- When explicitly requested by user
Process
-
Identify scope - Determine what code needs review:
- Check
git statusandgit difffor uncommitted changes - Check
git logto find commits since last review - Look for any existing code review documents to find the last review point
- Check
-
Read the review template - Load
prompts/CODE_REVIEW.mdfor the full criteria -
Perform the review - Apply all criteria from the template:
- MANDATORY: No Quick Hacks policy
- Race Condition Audit Checklist
- Critical issues (thread safety, async safety, security, data integrity)
- High priority (type hints, input validation, logging, test coverage)
- Medium priority (magic numbers, hard-coded config, duplication)
- Test quality (primary use cases tested, no anti-patterns)
-
Write the review document - Save to
.claude/plans/with:- Executive summary
- Issues grouped by severity with file:line references
- Specific code fixes (before/after)
- Checklist of items to fix
- Verification steps
- Notes for future work
-
Report the path - Tell the user where to find the review document
Key Principles
- Be specific and critical
- Every issue needs a file:line reference
- Provide concrete fixes, not just descriptions
- Consider whether code enables future architectural goals
- Quick hacks are absolutely forbidden
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?