Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Structured code review workflow for comparing branches. Fetches diffs, evaluates against 14 quality criteria, and produces prioritised issues grouped by severity. Use when the user says "Review '[branch1]' against '[branch2]'" or asks for a code review between branches.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 567% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-06 | ✓→✗ | ▼ Worse | -29% | 0% |
| case-24 | ✓→✗ | ▼ Worse | -20% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 15% | 0% |
Code reviews catch more than bugs - they enforce consistency, surface architectural drift, and share knowledge across the team. This skill runs a structured review workflow that evaluates diffs against 14 quality criteria and produces a prioritised, actionable report.
Trigger when the user provides a prompt matching:
Do NOT trigger for:
In 2-3 sentences, describe:
git fetch origin and check out the remote branches (origin/<branch1>, origin/<branch2>) to ensure the latest code.git diff --name-only --diff-filter=M origin/<branch2>...origin/<branch1> to list only modified files.git diff --quiet origin/<branch2>...origin/<branch1> -- <file>; skip any file that produces no actual diff hunks.For each truly changed file and each diffed hunk, evaluate in the context of the existing codebase. Understand how modified code interacts with surrounding logic - how inputs are derived, how return values are consumed, whether the change introduces side effects or breaks assumptions elsewhere.
Assess each change against these criteria:
| Criterion | What to check | |---|---| | Design & Architecture | Fits system patterns, avoids coupling, clear separation of concerns, respects module boundaries | | Complexity & Maintainability | Flat control flow, low cyclomatic complexity, DRY, no dead code, dense logic extracted to helpers | | Functionality & Correctness | Correct under valid/invalid inputs, edge cases covered, idempotent where needed, robust error handling | | Readability & Naming | Identifiers convey intent, comments explain why not what, logical ordering, no hidden side effects | | Best Practices & Patterns | Language/framework idioms, SOLID principles, resource cleanup, consistent logging, layered responsibilities | | Test Coverage & Quality | Success + failure paths, integration tests, meaningful assertions, edge cases, descriptive test names | | Standardization & Style | Style guide conformance, consistent structure, zero new linter/formatter warnings | | Documentation | Public API docs, updated README/CHANGELOG/Swagger for visible changes | | Security & Compliance | Input validation, output encoding, secure error handling, dependency checks, secrets management, authZ/authN | | Performance & Scalability | No N+1 queries, memory management, hot-path efficiency, caching/batching opportunities | | Observability & Logging | Metrics/tracing for key events, appropriate log levels, sensitive data redacted, contextual info included | | Accessibility & i18n | Semantic HTML, ARIA attributes, keyboard navigation, colour contrast, externalised strings (UI code only) | | CI/CD & DevOps | Pipeline integrity, infra-as-code correctness, deployment/rollback strategy | | AI-Assisted Code | Alignment with conventions, no hidden dependencies, tests and docs included, consistent style |
For each validated issue, output:
- File: `<path>:<line-range>`
- Issue: [One-line summary of the root problem]
- Fix: [Concise suggested change or code snippet]Present all issues grouped by severity:
## Prioritised Issues
### Critical
- …
### Major
- …
### Minor
- …
### Enhancement
- …No extra prose between severity groups.
After the prioritised issues, include a brief bulleted list of positive findings or well-implemented patterns observed in the diff.
Write the complete review (Steps 0-5) to a markdown file in the project root:
code-review-<branch1>-vs-<branch2>.mdSanitise branch names for the filename (replace / with -). For example, reviewing feature/payments against develop produces code-review-feature-payments-vs-develop.md.
The file should be self-contained — include the branch names, date, and all sections so it can be shared outside of Cursor (attached to PRs, tickets, etc.).
Other measured skills in the registry, with their headline benchmark lift.