Agent skill
code-review
Review code changes with security, performance, and style checks
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/code-review-coakenfold-p-100226
SKILL.md
Code Review Workflow
PROSE constraint: Orchestrated Composition — chains multiple analysis steps into a complete review process.
Context Loading Phase
- Get the changes to review:
- If
$ARGUMENTSis provided, review that file or directory - Otherwise, review uncommitted changes via
git diff
- If
- Read the relevant
.claude/rules/files for applicable standards
Review Process
1. Security Scan
Check for OWASP Top 10 issues:
- SQL injection (string concatenation in queries)
- XSS (unescaped output)
- Hardcoded secrets or credentials
- Missing input validation
- Insecure direct object references
2. Code Quality
- Type safety (no
any, proper null checks) - Error handling (try-catch at boundaries, custom error types)
- Naming clarity (functions describe actions, variables describe values)
- DRY violations (duplicated logic that should be extracted)
3. Performance
- Render-blocking resources (JS without defer, large CSS)
- Unoptimized images (missing width/height, wrong format)
- N+1 query patterns in database code
- Unbounded list operations
4. Test Coverage
- Are new code paths tested?
- Do tests cover both success and error cases?
- Are edge cases addressed?
Output Format
Organize findings by severity:
## Review: [scope]
### Critical (must fix)
- [finding]
### Warning (should fix)
- [finding]
### Suggestion (nice to have)
- [finding]
### Looks Good
- [positive observation]
Validation Gate
If critical issues are found, clearly state they must be resolved before merging.
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?