with one click
code-review
Performs an architectural and quality code review on a specified file or set of files. Checks for coding standard compliance, architectural pattern adherence, SOLID principles, testability, and performance concerns.
Menu
Performs an architectural and quality code review on a specified file or set of files. Checks for coding standard compliance, architectural pattern adherence, SOLID principles, testability, and performance concerns.
Brownfield onboarding — audits existing project artifacts for template format compliance (not just existence), classifies gaps by impact, and produces a numbered migration plan. Run this when joining an in-progress project or upgrading from an older template version. Distinct from /project-stage-detect (which checks what exists) — this checks whether what exists will actually work with the template's skills.
Creates an Architecture Decision Record (ADR) documenting a significant technical decision, its context, alternatives considered, and consequences. Every major technical choice should have an ADR.
Validates completeness and consistency of the project architecture against all GDDs. Builds a traceability matrix mapping every GDD technical requirement to ADRs, identifies coverage gaps, detects cross-ADR conflicts, verifies engine compatibility consistency across all decisions, and produces a PASS/CONCERNS/FAIL verdict. The architecture equivalent of /design-review.
Guided, section-by-section Art Bible authoring. Creates the visual identity specification that gates all asset production. Run after /brainstorm is approved and before /map-systems or any GDD authoring begins.
Audits game assets for compliance with naming conventions, file size budgets, format standards, and pipeline requirements. Identifies orphaned assets, missing references, and standard violations.
Generate per-asset visual specifications and AI generation prompts from GDDs, level docs, or character profiles. Produces structured spec files and updates the master asset manifest. Run after art bible and GDD/level design are approved, before production begins.
| name | code-review |
| description | Performs an architectural and quality code review on a specified file or set of files. Checks for coding standard compliance, architectural pattern adherence, SOLID principles, testability, and performance concerns. |
| argument-hint | [path-to-file-or-directory] |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, Bash, Task, AskUserQuestion |
| model | sonnet |
| agent | lead-programmer |
Read the target file(s) in full. Read CLAUDE.md for project coding standards.
Read .claude/docs/technical-preferences.md, section ## Engine Specialists. Note:
If the section reads [TO BE CONFIGURED], no engine is pinned — skip engine specialist steps.
Argument: /code-review [file(s)] may optionally include a story file path as the last argument (e.g., /code-review src/combat/attack.gd production/epics/combat/story-001.md). If a story path is provided, read it to extract the governing ADR reference.
Search for ADR references in, in priority order:
git log --oneline -- [file])Look for patterns like ADR-NNN or docs/architecture/ADR-.
If no ADR references found, note: "No ADR references found — ADR compliance check skipped. For full ADR compliance review, provide the story path: /code-review [files] [story-path]."
For each referenced ADR: read the file, extract the Decision and Consequences sections, then classify any deviation:
Identify the system category (engine, gameplay, AI, networking, UI, tools) and evaluate:
Architecture:
SOLID:
Spawn all applicable specialists simultaneously via Task — do not wait for one before starting the next.
If an engine is configured, determine which specialist applies to each file and spawn in parallel:
.gd, .cs, .cpp) → Language/Code Specialist.gdshader, .hlsl, shader graph) → Shader SpecialistAlso spawn the Primary Specialist for any file touching engine architecture (scene structure, node hierarchy, lifecycle hooks).
For Logic and Integration stories, also spawn qa-tester via Task in parallel with the engine specialists. Pass:
## QA Test Cases section (the pre-written test specs from qa-lead)## Acceptance CriteriaAsk the qa-tester to evaluate:
## QA Test Cases section map to testable code paths?For Visual/Feel and UI stories: qa-tester reviews whether the manual verification steps in ## QA Test Cases are achievable with the implementation as written — e.g., "is the state the manual checker needs to reach actually reachable?"
Collect all specialist findings before producing output.
## Code Review: [File/System Name]
### Engine Specialist Findings: [N/A — no engine configured / CLEAN / ISSUES FOUND]
[Findings from engine specialist(s), or "No engine configured." if skipped]
### Testability: [N/A — Visual/Feel or Config story / TESTABLE / GAPS / BLOCKING]
[qa-tester findings: test hooks, coverage gaps, untestable paths, new edge cases]
[If BLOCKING: implementation must expose [X] before tests in ## QA Test Cases can run]
### ADR Compliance: [NO ADRS FOUND / COMPLIANT / DRIFT / VIOLATION]
[List each ADR checked, result, and any deviations with severity]
### Standards Compliance: [X/6 passing]
[List failures with line references]
### Architecture: [CLEAN / MINOR ISSUES / VIOLATIONS FOUND]
[List specific architectural concerns]
### SOLID: [COMPLIANT / ISSUES FOUND]
[List specific violations]
### Game-Specific Concerns
[List game development specific issues]
### Positive Observations
[What is done well -- always include this section]
### Required Changes
[Must-fix items before approval — ARCHITECTURAL VIOLATIONs always appear here]
### Suggestions
[Nice-to-have improvements]
### Verdict: [APPROVED / APPROVED WITH SUGGESTIONS / CHANGES REQUIRED]
This skill is read-only — no files are written.
Use AskUserQuestion:
[A] Run /story-done to mark the story complete[B] Stop here[A] Fix the issues and re-run /code-review[B] Run /story-done anyway with noted exceptions[C] Stop hereIf an ARCHITECTURAL VIOLATION is found:
docs/architecture/[adr-file].md. If the design has legitimately changed, run /architecture-decision to formally revise the existing ADR — do not create a competing one./architecture-decision to document the correct approach before fixing the code.