Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Code Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sinhyeokkang-code-review)
---
name: code-review
description: Use to review changes by urgency against doan's decisions and conventions. Produces a report only; does not fix or commit.
---
Statically review the changes. **Report only**; `/refactor` does the fixing.
> Claude Code has a built-in skill with the same name, `code-review`. In this repo, `/code-review` means **this project skill** (review against doan's decisions and conventions). To use the built-in skill, the user says so.
"Report only" does not mean "end the turn here". Invoked on its own, it ends with the report; inside `/ship`, `/ship` continues to `/refactor` in the same turn.
## Usage
- `/code-review` — commits not yet pushed (`git diff @{u}..HEAD`) + uncommitted changes. On a feature branch, compare with the PR's base: `git diff develop...HEAD`, or `git diff main...HEAD` on a `hotfix/*` branch.
- `/code-review <path|commit range>` — name the target explicitly.
## Procedure
1. Pin down the target: `git status`, the diff above. Start with the list of changed files.
2. If `docs/postmortem/` exists, grep every month file in it (`grep -rn <pattern> docs/postmortem/`) for the changed areas and check whether this diff steps on a past pitfall again.
3. Check against `docs/ARCHITECTURE.md` (§1 'Conventions' and the structural decisions).
4. Go through the checklist below and sort by urgency.
## Checklist
### 🔴 Fix now — things that break silently or collapse a boundary
- **Executing selection text as instructions**: a sentence in `doan active`'s `html`/`text` or another canvas-written value changes agent or CLI behavior (ARCHITECTURE §3 'Selection', §6 'Skills' rule).
- **Leaving the serving scope**: responding outside the serving scope, allowing `..` escapes, loosening the bind address, CORS rule or token path (ARCHITECTURE §3 'Canvas rendering').
- **Breaking iframe isolation**: adding `allow-same-origin`, any path by which canvas HTML reaches the app UI or disk.
- **Changing ids**: changing canvas or frame ids on file moves or title changes, which cuts off conversation chips and links.
- **Handling secrets**: reading or storing GitHub tokens outside Copilot's sign-in exception (ARCHITECTURE §7 'GitHub token exception'), exposing secrets in logs or error messages.
- **Doan performing git operations**: any git command other than the first-run / Add Projects clone and the consented `git init` (commits, branches, push, pull, fetch), or any Git setting beyond the ones PRODUCT §3 Out of scope 6 lists.
- **TS/Go format divergence**: one side changes a format with a hand-written definition instead of the schema source.
### 🟡 Should fix
- I/O mixed into pure functions, failures silently swallowed (TS `catch {}`, Go `_ = err`).
- `--json` envelope or exit codes differ from the contract, missing `nextSteps`.
- `doan check` judges differently from ARCHITECTURE §1 'Conventions' (including error/warning levels).
- Code and `docs/PRODUCT.md` disagree.
- Out-of-scope features creeping in (§3), configuration or abstraction nobody asked for.
- Comments that repeat the "what" or are not in English.
- Comments that cite `docs/features/` documents (a section, a decision or task id, a slug) instead of stating the reason or pointing to a PRODUCT or ARCHITECTURE section.
### ⚪ Note
- Naming and comment density, room to extract duplication, room to strengthen tests.
## Report
The report is delivered to the user in Korean.
```
🔍 code-review: <target>
Scope: <n files, +a/-b>
POSTMORTEM check: <recurrence-risk items / n/a / no file>
🔴 <n>
1. <file:line> — <one-line summary>
Failure scenario: <what input or situation breaks it, and how>
Suggestion: <direction of the fix>
🟡 <n> ...
⚪ <n> ...
Next: /refactor (if any 🔴/🟡) / otherwise continue /ship
```
Every 🔴 must have a failure scenario. If you cannot write a concrete input or situation, it is 🟡 or ⚪.
## Prohibited
- Do not edit code. Report only.
- Do not commit or build.
- Do not inflate urgency. If everything is 🔴, nothing is 🔴.