reviewing-code
Reviews PRs for quality, correctness, and adherence to project patterns.
Install
mkdir -p .claude/skills/reviewing-code-prefecthq && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12184" && unzip -o skill.zip -d .claude/skills/reviewing-code-prefecthq && rm skill.zipInstalls to .claude/skills/reviewing-code-prefecthq
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Review code for quality, maintainability, and correctness. Use when reviewing pull requests, evaluating code changes, or providing feedback on implementations. Focuses on API design, patterns, and actionable feedback.Key capabilities
- →Evaluate code changes for alignment with project goals
- →Assess dependency version compatibility
- →Review API design and naming for clarity
- →Provide actionable feedback on code improvements
How it works
The skill reviews code changes against established patterns, API design principles, and project goals to provide specific, actionable feedback.
Inputs & outputs
When to use reviewing-code
- →Review pull request
- →Evaluate code changes
- →Provide feedback on implementation
- →Check API consistency
About this skill
Code Review
Philosophy
Code review maintains a healthy codebase while helping contributors succeed. The burden of proof is on the PR to demonstrate it adds value. Your job is to help it get there through actionable feedback.
Critical: A perfectly written PR that adds unwanted functionality must still be rejected. The code must advance the codebase in the intended direction. When rejecting, provide clear guidance on how to align with project goals.
Be friendly and welcoming while maintaining high standards. Call out what works well. When code needs improvement, be specific about why and how to fix it.
What to Focus On
Does this advance the codebase correctly?
Even perfect code for unwanted features should be rejected.
Dependency version compatibility
When a PR adapts code to a new version of a dependency (e.g., removing a parameter that was dropped upstream, using a new API):
- The version pin in
pyproject.tomlmust match. If the change breaks compatibility with the previously-pinned minimum version, the minimum version must be bumped. Otherwise users on the old version get a regression. - If backwards compatibility with the old version is desired, the code must handle both versions (e.g., try/except, version check). Simply deleting the old API usage without bumping the pin is always wrong — it silently breaks users on the old version.
- Lock file (
uv.lock) changes should be scoped to the PR's purpose. A PR fixing a ty compatibility issue should not also include unrelated dependency version bumps (anthropic, google-auth, etc.) from runninguv sync --upgrade. These create noise and make the diff harder to review.
API design and naming
Identify confusing patterns or non-idiomatic code:
- Parameter values that contradict defaults
- Mutable default arguments
- Unclear naming that will confuse future readers
- Inconsistent patterns with the rest of the codebase
Specific improvements
Provide actionable feedback, not generic observations.
User ergonomics
Think about the API from a user's perspective. Is it intuitive? What's the learning curve?
For Agent Reviewers
- Read the full context: Examine related files, tests, and documentation before reviewing
- Check against established patterns: Look for consistency with codebase conventions
- Verify functionality claims: Understand what the code actually does, not just what it claims
- Consider edge cases: Think through error conditions and boundary scenarios
What to Avoid
- Generic feedback without specifics
- Hypothetical problems unlikely to occur
- Nitpicking organizational choices without strong reason
- Summarizing what the PR already describes
- Star ratings or excessive emojis
- Bikeshedding style preferences when functionality is correct
- Requesting changes without suggesting solutions
- Focusing on personal coding style over project conventions
Tone
- Acknowledge good decisions: "This API design is clean"
- Be direct but respectful
- Explain impact: "This will confuse users because..."
- Remember: Someone else maintains this code forever
Decision Framework
Before approving, ask:
- Does this PR achieve its stated purpose?
- Is that purpose aligned with where the codebase should go?
- Would I be comfortable maintaining this code?
- Have I actually understood what it does, not just what it claims?
- Does this change introduce technical debt?
If something needs work, your review should help it get there through specific, actionable feedback. If it's solving the wrong problem, say so clearly.
Comment Examples
Good comments:
| Instead of | Write |
|---|---|
| "Add more tests" | "The handle_timeout method needs tests for the edge case where timeout=0" |
| "This API is confusing" | "The parameter name data is ambiguous - consider message_content to match the MCP specification" |
| "This could be better" | "This approach works but creates a circular dependency. Consider moving the validation to utils/validators.py" |
Checklist
Before approving, verify:
- All required development workflow steps completed (uv sync, prek, pytest)
- Changes align with repository patterns and conventions
- API changes are documented and backwards-compatible where possible
- Error handling follows project patterns (specific exception types)
- Tests cover new functionality and edge cases
- The change advances the codebase in the intended direction
When not to use it
- →When providing generic feedback without specifics
- →When nitpicking organizational choices without strong reasons
- →When focusing on personal coding style over project conventions
Limitations
- →Feedback should not be generic
- →Avoid hypothetical problems unlikely to occur
- →Do not summarize what the PR already describes
How it compares
This skill focuses on critical aspects like dependency compatibility and API design, providing structured feedback rather than subjective opinions.
Compared to similar skills
reviewing-code side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| reviewing-code (this skill) | 0 | 5mo | No flags | Advanced |
| deepwiki-rs | 25 | 9mo | Review | Intermediate |
| python-code-style | 9 | 6mo | Review | Intermediate |
| code-review-excellence | 19 | 5mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
deepwiki-rs
sopaco
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.
python-code-style
wshobson
Python code style, linting, formatting, naming conventions, and documentation standards. Use when writing new code, reviewing style, configuring linters, writing docstrings, or establishing project standards.
code-review-excellence
wshobson
Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.
code-walk-thru
pchalasani
Use this when user wants you to walk through (code or text) files in a EDITOR to either explain how some code works, or to show the user what changes you made, etc. You would typically use this repeatedly to show the user your changes or code files one by one, sometimes with specific line-numbers. This way the user is easily able to follow along in their favorite EDITOR as you point at various files possibly at specific line numbers within those files.
cookbook-audit
anthropics
Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.
schema-markup
davila7
When the user wants to add, fix, or optimize schema markup and structured data on their site. Also use when the user mentions "schema markup," "structured data," "JSON-LD," "rich snippets," "schema.org," "FAQ schema," "product schema," "review schema," or "breadcrumb schema." For broader SEO issues, see seo-audit.