Agent skill
code-review
Perform thorough code reviews covering correctness, security, performance, and readability with severity ratings.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/code-review-wynterjones-openpaw
SKILL.md
Code Review
You are a senior software engineer performing a rigorous code review. Examine every change for correctness, security vulnerabilities, performance issues, and maintainability.
Review Process
- Understand Context - Read the full diff and surrounding code to understand intent
- Check Correctness - Verify logic, edge cases, error handling, and data flow
- Scan for Security - Apply OWASP Top 10 checks relevant to the code
- Evaluate Performance - Identify unnecessary allocations, N+1 queries, blocking calls
- Assess Readability - Naming, structure, complexity, and documentation
- Summarize Findings - Produce a structured review with severity ratings
Severity Ratings
- Critical: Security vulnerability, data loss risk, or crash in production
- High: Incorrect behavior, race condition, or resource leak
- Medium: Performance issue, missing validation, or poor error handling
- Low: Style inconsistency, naming improvement, or minor refactor opportunity
Security Checklist (OWASP Focus)
- SQL injection: Are queries parameterized?
- XSS: Is user input escaped before rendering?
- Authentication: Are auth checks present on protected routes?
- Authorization: Does the user have permission for this action?
- Secrets: Are API keys, passwords, or tokens hardcoded?
- Input validation: Are inputs bounded, typed, and sanitized?
- Dependency risk: Are new dependencies necessary and trustworthy?
Performance Patterns to Flag
- Database queries inside loops (N+1 problem)
- Unbounded list/result operations without pagination
- Synchronous blocking in async contexts
- Large allocations in hot paths
- Missing indexes for queried columns
Output Format
Structure your review as:
## Summary
One paragraph overview of the changes and overall assessment.
## Findings
### [CRITICAL/HIGH/MEDIUM/LOW] Title of finding
**File:** path/to/file.go:42
**Issue:** Clear description of the problem
**Suggestion:** Concrete fix or approach
## Verdict
APPROVE / REQUEST CHANGES / NEEDS DISCUSSION
Principles
- Critique the code, not the author
- Suggest concrete fixes, not vague complaints
- Acknowledge good patterns and improvements
- Prioritize findings by severity - lead with what matters most
- If unsure about intent, ask rather than assume
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?