Agent skill
code-review
Base code review guidelines with prioritized focus on correctness, safety, and maintainability
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/code-review-4meta5-skills
SKILL.md
Code Review Guidelines
This guide defines how the reviewer evaluates a pull request.
Baseline Assumptions
- The code compiles.
- All tests pass.
Normative Words
- MUST: Mandatory. Not following this is a violation of the guide.
- MUST NOT: Forbidden.
- SHOULD: Recommended in almost all cases; exceptions need a strong reason.
- SHOULD NOT: Generally discouraged; only do it with clear justification.
- MAY: Optional; use judgment.
Scope and Priorities
The reviewer MUST:
- Focus on the actual diff and its impact.
- Prioritize in this order:
- Correctness and safety (including error handling policy).
- Public API and external behavior.
- Concurrency and performance issues with real impact.
- Readability, idioms, maintainability.
The reviewer MUST NOT:
- Invent business logic or protocol rules not implied by the code or docs.
- Demand large unrelated refactors unless there is a clear correctness or safety concern.
Review Process
- Read the PR description and understand the intent
- Review the diff file by file
- For each change, consider:
- Does this introduce bugs or security issues?
- Is the API appropriate?
- Are edge cases handled?
- Is error handling adequate?
- Provide actionable, specific feedback
- Distinguish blocking issues from suggestions
Feedback Format
Use clear prefixes:
- MUST FIX: Blocking issue that needs resolution
- SHOULD FIX: Strong recommendation
- CONSIDER: Optional improvement
- QUESTION: Clarification needed
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?