GSD — Code Review
Steps
Step 1: Identify Changed Files
List all files changed since the branch diverged from main. Group by module/concern.
Step 2: Review Each File
For each changed file, check:
- Bugs (logic errors, off-by-one, null pointer risks)
- Security issues (input validation, injection vectors, secrets in code)
- Code quality (single responsibility, naming clarity, unnecessary complexity)
- Test coverage (does every new function have a test?)
Step 3: Classify Findings
- CRITICAL: Data loss, security breach, correctness failure — must fix before merge
- MAJOR: Code quality, missing tests, maintainability — should fix
- MINOR: Style, naming, nice-to-have — low priority
Step 4: Write REVIEW.md
Write .planning/REVIEW.md:
# Code Review
| File | Finding | Severity | Recommendation |
|------|---------|----------|----------------|
...
## Gate: PASS / BLOCK
Gate is BLOCK if any CRITICAL findings. PASS if only MAJOR/MINOR.
Exit Condition
REVIEW.md exists. If gate is BLOCK, exit with instruction to run 'fix review findings'.
1---
2name: gsd-code-review
3id: gsd-code-review
4title: GSD — Code Review
5description: Review changed files for bugs, security issues, and code quality; produce REVIEW.md
6trigger:
7 - "code review"
8 - "review code"
9 - "review this"
10 - "review changes"
11metadata:
12 source: https://skillmd.com/skills/aibot88/gsd-code-review
13---
14
15# GSD — Code Review
16
17## Steps
18
19### Step 1: Identify Changed Files
20List all files changed since the branch diverged from main. Group by module/concern.
21
22### Step 2: Review Each File
23For each changed file, check:
24- Bugs (logic errors, off-by-one, null pointer risks)
25- Security issues (input validation, injection vectors, secrets in code)
26- Code quality (single responsibility, naming clarity, unnecessary complexity)
27- Test coverage (does every new function have a test?)
28
29### Step 3: Classify Findings
30- **CRITICAL**: Data loss, security breach, correctness failure — must fix before merge
31- **MAJOR**: Code quality, missing tests, maintainability — should fix
32- **MINOR**: Style, naming, nice-to-have — low priority
33
34### Step 4: Write REVIEW.md
35Write `.planning/REVIEW.md`:
36```
37# Code Review
38
39| File | Finding | Severity | Recommendation |
40|------|---------|----------|----------------|
41...
42
43## Gate: PASS / BLOCK
44```
45Gate is BLOCK if any CRITICAL findings. PASS if only MAJOR/MINOR.
46
47## Exit Condition
48REVIEW.md exists. If gate is BLOCK, exit with instruction to run 'fix review findings'.