code-review
БесплатноБез исполняемых скриптовНе проверенSix-dimension code review of a phase's changes: service delegation, framework standards, ADR compliance, plan sync, coding standards and general quality…
Об этом скилле
Code Review
Contents
- Design Philosophy
- When to Use This Skill
- Review Dimensions
- Review Workflow
- Integration with implement-phase
- Invoking the Skill
- Review Checklists
- Severity Levels
- Critical Rule: All Errors Are New Errors
- Best Practices
- Example Review Session
Reference files (open one when a step points to it):
references/adr-compliance-checklist.md: ADR Compliance Checklistreferences/coding-standards-checklist.md: Coding Standards Compliance Checklistreferences/framework-standards-checklist.md: Framework Standards Compliance Checklistreferences/general-quality-checklist.md: General Code Quality Checklistreferences/service-delegation-checklist.md: Service Delegation & Single Responsibility Checklist
Systematic code review skill that validates implementation quality across six dimensions: service delegation, framework standards, ADR compliance, plan synchronization, coding standards, and general code quality.
Design Philosophy
This skill acts as a quality gate between implementation phases. It ensures code meets established standards before proceeding, catching issues early when they're cheapest to fix.
When to Use This Skill
Automatically invoked by implement-phase (Step 4):
- After the phase passes exit conditions and integration testing (Steps 2–3)
- Before marking a phase as complete
- Before proceeding to the next phase
Manually invoked when:
- Reviewing a PR or set of changes
- Validating code before committing
- Checking implementation against architectural decisions
Review Dimensions
1. Service Delegation & Single Responsibility
Verify that implementation follows proper separation of concerns:
| Check | What to Look For |
|---|---|
| Controller thin | Controllers only handle HTTP concerns, delegate to services |
| Service focused | Each service has one clear responsibility |
| No god objects | No classes/modules doing too many things |
| Dependency direction | Dependencies flow inward (controllers → services → repositories) |
| No business logic in wrong layer | Controllers don't contain business rules, repositories don't transform data |
2. Framework Standards Compliance
Verify code follows the project's established patterns:
| Check | What to Verify |
|---|---|
| Naming conventions | Files, classes, methods follow project conventions |
| Module structure | New code follows existing module organization |
| Error handling | Uses project's error handling patterns |
| Logging | Follows established logging conventions |
| Configuration | Uses project's config management approach |
| Testing patterns | Tests follow existing test structure and naming |
3. ADR Compliance
Verify architectural decisions are followed and documented:
| Check | What to Do |
|---|---|
| Read relevant ADRs | Check INDEX.md, identify ADRs related to this change |
| Verify compliance | Implementation follows documented decisions |
| New decisions documented | Any new architectural choices have corresponding ADRs |
| No contradictions | Changes don't violate existing accepted ADRs |
4. Plan Synchronization
Verify the implementation matches the phase as the plan specifies it. Per ADR-0001 the plan is a specification and progress is tracked outside it, so don't expect ticked checkboxes or status edits in the plan.
| Check | What to Verify |
|---|---|
| Scope delivered | The phase's objective and every work item have matching code and tests |
| No unplanned scope | Changes outside the phase's described scope are needed by the phase, not unrelated work |
| Deviations surfaced | Each difference between plan and code is listed with its reason |
| ADR references | ADRs this phase follows or creates are listed |
The scope comes from the plan file's phase section, or from the phase description and requirements the caller passes. With no plan or phase scope given (a plain manual review), report this dimension as PASS with "No plan given".
A missing work item is BLOCKING. Unplanned work, or a deviation with no evident reason, is a RECOMMENDATION: bring the code back in line with the plan or state the reason. A deviation with a reason, and an ADR reference the plan lacks, are NOTES: implement-phase records both in the plan at Step 6, after this review, so they need not be there yet.
5. General Code Quality
Standard code review concerns:
| Check | What to Look For |
|---|---|
| No security issues | No injection vulnerabilities, proper auth checks |
| No |
Установить code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobBashAgentВложенные файлы
FAQ
Что делает скилл code-review?
Six-dimension code review of a phase's changes: service delegation, framework standards, ADR compliance, plan sync, coding standards and general quality. Returns a binary PASS or NEEDS_CHANGES verdict with every finding classed BLOCKING, RECOMMENDATION or NOTE. Used by implement-phase as its Step 4 quality gate, or manually to review a set of changes against the project's own standards and ADRs. Invoked as devflow:code-review; Claude Code's built-in /code-review is a different, bug-focused review of the current diff. For a hostile multi-persona review use adversarial-reviewer; for security depth use devflow:security-review.
Как установить скилл code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic