Agent skill
code-review
Systematic code review checklist
Install this agent skill to your Project
npx add-skill https://github.com/JacobFV/me/tree/main/me/agent/skill_templates/templates/code-review
SKILL.md
Overview
A systematic approach to reviewing code changes, whether self-review before committing or reviewing others' pull requests.
When to Use
- Before committing code
- Reviewing pull requests
- Auditing existing code
- After making significant changes
Review Checklist
1. Correctness
- Does the code do what it's supposed to do?
- Are edge cases handled?
- Are there any obvious bugs?
- Do tests pass?
2. Security
- No hardcoded secrets or credentials
- Input validation present
- SQL injection prevention (parameterized queries)
- XSS prevention (output encoding)
- Authentication/authorization checks
3. Performance
- No N+1 query problems
- Appropriate caching
- No unnecessary loops or allocations
- Reasonable algorithmic complexity
4. Maintainability
- Clear naming (variables, functions, classes)
- Single responsibility (each function does one thing)
- No excessive complexity
- Reasonable file/function length
5. Testing
- Tests cover happy path
- Tests cover edge cases
- Tests are readable and maintainable
- No flaky tests
6. Documentation
- Complex logic is commented
- Public APIs are documented
- README updated if needed
Steps
- Understand the context - What problem is being solved?
- Read the diff - Understand what changed
- Run through checklist - Check each category
- Test locally - If significant changes
- Provide feedback - Be constructive and specific
Watch Out For
- Being too nitpicky about style (use linters)
- Missing the forest for the trees
- Not understanding the broader context
- Rubber-stamping without actually reviewing
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
debugging
Systematic approach to debugging software issues
memory-management
Managing agent memory for effective recall
git-workflow
Standard git workflow for feature development
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
Didn't find tool you were looking for?