Review
Overview
Use this skill to review uncommitted changes in the current git workspace.
Focus on correctness, safety, maintainability, and alignment with project standards.
The review must produce:
- A concise summary of what changed
- Prioritized findings with severity labels
- Actionable fix suggestions
- A final verdict (
Approve or Request Changes)
Workflow
Step 1: Gather Context
- Inspect current changes:
git diff
git diff --cached (if staged changes exist)
- Read the full modified files (not only the diff hunks) to understand surrounding logic and architecture.
- Load project context per the shared Context Loading Protocol before judging style/patterns.
- Run relevant quality checks for touched areas (lint/type/tests when practical).
Step 2: Analyze Changes
Evaluate each change across these dimensions:
- Correctness - Does behavior match intended requirements?
- Safety & Security - Are there vulnerabilities, data leaks, auth gaps, or unsafe assumptions?
- Reliability - Are edge cases, null states, retries, and error paths handled?
- Style & Consistency - Does code follow project conventions and established patterns?
- Performance - Any unnecessary expensive operations or regressions?
- Testing - Are critical paths covered with appropriate tests?
- Maintainability - Is the code clear, modular, and easy to evolve?
Step 3: Classify Findings by Severity
Assign one severity per finding using this rubric:
S0 - Critical
- Production-breaking issue, severe security risk, data corruption/loss, or irreversible side effects
- Must be fixed before merge
S1 - High
- Likely bug, correctness flaw, significant reliability issue, or major missing validation
- Should be fixed before merge
S2 - Medium
- Non-blocking but meaningful issue affecting maintainability, performance, or clarity
- Fix recommended soon
S3 - Low
- Minor improvement, polish, or style-level suggestion
- Optional unless team standards require it
Step 4: Produce Structured Review Report
Use the report format below in this exact section order.
Output Format
1) Summary
- What changed (2-6 bullets)
- Risk profile (low/medium/high)
- Areas reviewed (files/modules)
2) Findings
For each finding, use this template:
- ID:
R-001 (incrementing)
- Severity:
S0 | S1 | S2 | S3
- Category:
Correctness | Security | Reliability | Style | Performance | Testing | Maintainability
- Location:
path/to/file.ext#Lx-Ly (or function/class name)
- Issue: Clear statement of the problem
- Why it matters: User/system impact
- Suggestion: Concrete fix guidance
- Confidence:
High | Medium | Low
If no findings exist, explicitly write: No actionable findings.
3) Positive Notes
List good practices observed, such as:
- Strong test coverage additions
- Clean separation of concerns
- Thoughtful error handling
- Consistent style and naming
4) Must-Fix Checklist
Include only S0 and S1 findings:
If none, state: No must-fix items.
5) Verdict
Use one of:
- Approve - No blocking issues (
S0/S1) remain.
- Request Changes - One or more blocking issues (
S0/S1) found.
Optionally include:
- Re-review focus: exact files/areas to re-check after fixes.
Rules
- Be specific and cite exact locations whenever possible.
- Do not judge code in isolation; always consider surrounding context.
- Prefer actionable suggestions over vague criticism.
- Distinguish clearly between blocking and non-blocking feedback.
- Avoid speculative claims; if uncertain, lower confidence and explain why.
- Align feedback with project documentation and coding standards.
Review Quality Checklist
Before finalizing, confirm:
- All modified files were reviewed with context
- Each finding has severity, impact, and fix suggestion
- Blocking issues are separated into a must-fix checklist
- Final verdict matches the finding severities
- Feedback is concise, precise, and implementable
1---2name: review3description: Review current uncommitted git changes with full file context and produce a structured report with severity levels, actionable fixes, and an approval verdict.4---56# Review78## Overview910Use this skill to review uncommitted changes in the current git workspace. 11Focus on correctness, safety, maintainability, and alignment with project standards.1213The review must produce:14151. A concise summary of what changed162. Prioritized findings with severity labels173. Actionable fix suggestions184. A final verdict (`Approve` or `Request Changes`)1920## Workflow2122### Step 1: Gather Context23241. Inspect current changes:25 - `git diff`26 - `git diff --cached` (if staged changes exist)272. Read the full modified files (not only the diff hunks) to understand surrounding logic and architecture.283. Load project context per the shared Context Loading Protocol before judging style/patterns.294. Run relevant quality checks for touched areas (lint/type/tests when practical).3031### Step 2: Analyze Changes3233Evaluate each change across these dimensions:34351. **Correctness** - Does behavior match intended requirements?362. **Safety & Security** - Are there vulnerabilities, data leaks, auth gaps, or unsafe assumptions?373. **Reliability** - Are edge cases, null states, retries, and error paths handled?384. **Style & Consistency** - Does code follow project conventions and established patterns?395. **Performance** - Any unnecessary expensive operations or regressions?406. **Testing** - Are critical paths covered with appropriate tests?417. **Maintainability** - Is the code clear, modular, and easy to evolve?4243### Step 3: Classify Findings by Severity4445Assign one severity per finding using this rubric:4647- **S0 - Critical**48 - Production-breaking issue, severe security risk, data corruption/loss, or irreversible side effects49 - Must be fixed before merge5051- **S1 - High**52 - Likely bug, correctness flaw, significant reliability issue, or major missing validation53 - Should be fixed before merge5455- **S2 - Medium**56 - Non-blocking but meaningful issue affecting maintainability, performance, or clarity57 - Fix recommended soon5859- **S3 - Low**60 - Minor improvement, polish, or style-level suggestion61 - Optional unless team standards require it6263### Step 4: Produce Structured Review Report6465Use the report format below in this exact section order.6667## Output Format6869### 1) Summary7071- What changed (2-6 bullets)72- Risk profile (low/medium/high)73- Areas reviewed (files/modules)7475### 2) Findings7677For each finding, use this template:7879- **ID**: `R-001` (incrementing)80- **Severity**: `S0 | S1 | S2 | S3`81- **Category**: `Correctness | Security | Reliability | Style | Performance | Testing | Maintainability`82- **Location**: `path/to/file.ext#Lx-Ly` (or function/class name)83- **Issue**: Clear statement of the problem84- **Why it matters**: User/system impact85- **Suggestion**: Concrete fix guidance86- **Confidence**: `High | Medium | Low`8788If no findings exist, explicitly write: **No actionable findings**.8990### 3) Positive Notes9192List good practices observed, such as:9394- Strong test coverage additions95- Clean separation of concerns96- Thoughtful error handling97- Consistent style and naming9899### 4) Must-Fix Checklist100101Include only `S0` and `S1` findings:102103- [ ] `R-00X` short fix description104- [ ] `R-00Y` short fix description105106If none, state: **No must-fix items**.107108### 5) Verdict109110Use one of:111112- **Approve** - No blocking issues (`S0/S1`) remain.113- **Request Changes** - One or more blocking issues (`S0/S1`) found.114115Optionally include:116117- **Re-review focus**: exact files/areas to re-check after fixes.118119## Rules120121- Be specific and cite exact locations whenever possible.122- Do not judge code in isolation; always consider surrounding context.123- Prefer actionable suggestions over vague criticism.124- Distinguish clearly between blocking and non-blocking feedback.125- Avoid speculative claims; if uncertain, lower confidence and explain why.126- Align feedback with project documentation and coding standards.127128## Review Quality Checklist129130Before finalizing, confirm:131132- All modified files were reviewed with context133- Each finding has severity, impact, and fix suggestion134- Blocking issues are separated into a must-fix checklist135- Final verdict matches the finding severities136- Feedback is concise, precise, and implementable