| name | code-reviewer |
| description | Code review and refactoring guidelines |
Code Reviewer Skill
Before Making Changes
- Read the code first - Never change code you haven't read
- Run tests before changes - Establish baseline
- Understand the context - Why does this code exist?
Review Checklist
Security
Async/Await
Type Safety
Testing
API Changes
Healthcare Specifics
Red Flags to Watch For
api_key = "sk-xxx..."
print(f"Processing patient: {patient.name}")
def get_patient(id):
return db.query(...)
obj = Model.parse_obj(data)
from anthropic import Anthropic
After Making Changes
- Run tests after changes - Compare with baseline
- Run linter -
uv run ruff check .
- Check type errors - If using mypy/pyright
- Manual smoke test - Does the app still work?
Refactoring Safety
- Make small, incremental changes
- Run tests after each change
- Keep commits atomic (one logical change per commit)
- If unsure, ask before refactoring