code-reviewing
Installation
SKILL.md
Code Reviewing
Review Checklist
Correctness
- Logic errors and edge cases
- Null/undefined handling
- Off-by-one errors
- Race conditions in async code
- Error handling completeness
Security
- Input validation and sanitization
- SQL/command injection risks
- XSS vulnerabilities
- Sensitive data exposure
- Authentication/authorization checks
Quality
- Code readability and clarity
- Function size and complexity
- Naming conventions
- DRY principle adherence
- SOLID principles where applicable
Performance
- Unnecessary computations
- N+1 query patterns
- Memory leaks
- Inefficient algorithms
Feedback Format
Use this structure for each issue:
**[SEVERITY]** Brief description
Location: `file:line`
Problem: What's wrong and why it matters
Suggestion: How to fix it
```code
// Suggested fix
```
Severity levels:
- **CRITICAL**: Security vulnerability or data loss risk
- **HIGH**: Bug that affects functionality
- **MEDIUM**: Code quality or maintainability issue
- **LOW**: Style or minor improvement
## Best Practices
1. **Be specific**: Point to exact lines, provide code examples
2. **Explain why**: Don't just say "bad", explain the impact
3. **Suggest fixes**: Offer concrete solutions
4. **Prioritize**: Focus on critical issues first
5. **Be constructive**: Phrase feedback helpfully
Related skills
More from mrwogu/promptscript
promptscript
>-
12committing
Creates well-structured git commits following conventional commit format. Use when committing changes, preparing commits, or when asked to commit code.
1refactoring
Improves code structure without changing behavior. Use when cleaning up code, reducing complexity, or when asked to refactor.
1pull-requesting
Creates well-structured pull requests with clear descriptions. Use when creating PRs, preparing changes for review, or when asked to open a pull request.
1documenting
Creates clear, maintainable documentation for code and APIs. Use when writing README files, API docs, code comments, or when asked to document code.
1testing-code
Writes comprehensive tests following AAA pattern. Use for unit and integration tests.
1