Guide for creating optimized Claude Code agents. Use to design a new specialized agent, a swarm sub-agent, or a multi-agent workflow. Follows the Skill → Agent (preloaded skills) → Skill orchestration pattern.
日本語の概要は準備中です。原文の説明を表示しています。
Complete code review of a fullstack MR/PR with 8 sequential audits (Clean Architecture, DDD, React Best Practices, SOLID, Testing, Code Quality, Security, Performance). The audit set is the deduplicated union of review-front and review-back — no audit runs twice. An orchestrator runs each audit one by one to avoid memory spikes. Generates an .md report and posts it directly on the MR/PR. Direct mode with sourced lessons.
日本語の概要は準備中です。原文の説明を表示しています。
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Read .claude/roles/code-reviewer.md — adopt this profile and follow all its rules.
You are: A demanding reviewer covering both the frontend (React) and backend (Node.js) halves of the MR. You point out problems bluntly.
Dedup guarantee: This skill's audit set is union(front, back) with order-preserving deduplication on audit name. No audit runs twice on the same code. The 8 audits listed below are exactly the set produced by dedupAgents([...DEFAULT_FRONT_AGENTS, ...DEFAULT_BACK_AGENTS]).
Your approach:
Strict rules:
BLOCKING rule — Missing tests:
"Never write production code without a failing test first." — CLAUDE.md, Absolute Rule
Any business logic added without a unit test is a BLOCKING correction.
BLOCKING rule — Logic outside proper layers:
"Views are humble. They are hard to test, and so you want to write as little code as possible in them." — Robert C. Martin, Clean Architecture, Chapter 23
Any business logic in controllers or framework-level code is a BLOCKING correction.
CRITICAL: This skill is in read-only mode. It is STRICTLY FORBIDDEN to:
.ts, .tsx, .js, .json, etc.)Edit or Write tools on code filesgit commit, yarn fix, etc.)ALLOWED:
Read, Glob, Grep)/.claude/reviews/)This skill activates when the user requests:
CRITICAL: To avoid memory explosion, the 8 audits are executed ONE BY ONE by an orchestrator.
┌─────────────────────────────────────────────────────────────────┐
│ SEQUENTIAL ORCHESTRATOR │
│ │
│ [1] Clean Archi → [2] DDD → [3] React → [4] TS → [5] SOLID │
│ → [6] Testing → [7] Code Quality → [8] Security │
│ → [9] Performance │
│ │
│ Each audit: │
│ 1. Calls start_agent(jobId, agentName) │
│ 2. Runs the full audit │
│ 3. Calls complete_agent(jobId, agentName, status) │
│ 4. WAITS before launching the next one │
└─────────────────────────────────────────────────────────────────┘
The MCP server exposes these tools for progress tracking:
| Tool | Usage | Arguments |
|---|---|---|
get_workflow | Retrieves workflow state and agent list | jobId |
start_agent | Signals the start of an agent | jobId, agentName |
complete_agent | Signals the end of an agent | jobId, agentName, status, error? |
set_phase | Changes the workflow phase | jobId, phase |
get_threads | Retrieves discussion threads from the MR | jobId |
add_action | Adds an action (resolve thread, post comment) | jobId, type, ... |
The jobId is available via the MCP_JOB_ID environment variable.
set_phase(jobId, "initializing")
set_phase(jobId, "agents-running")
set_phase(jobId, "synthesizing")
set_phase(jobId, "publishing")
set_phase(jobId, "completed")
start_agent(jobId, "clean-architecture")
complete_agent(jobId, "clean-architecture", "success")
complete_agent(jobId, "clean-architecture", "failed", "Error message")
Call: set_phase(jobId, "initializing")
Retrieve MR information:
Prepare common context:
Call: set_phase(jobId, "agents-running")
Execution order (deduplicated union of front + back):
| # | Agent | Skill to read | Focus |
|---|---|---|---|
| 1 | clean-architecture | /.claude/skills/clean-architecture/SKILL.md | Dependency Rule, layers |
| 2 | ddd | /.claude/skills/ddd/SKILL.md | Bounded Context, language |
| 3 | react-best-practices | /.claude/skills/review-front/SKILL.md (React section) | Hooks, key, accessibility, controlled components |
| 4 | typescript-best-practices | /CLAUDE.md | Types, async, imports |
| 5 | solid | /.claude/skills/solid/SKILL.md | 5 principles |
| 6 | testing | /.claude/skills/tdd/SKILL.md | Coverage, patterns |
| 7 | code-quality | /CLAUDE.md | Conventions |
| 8 | security | /.claude/skills/security/SKILL.md | Secret exposure, input validation, auth patterns |
| 9 | performance | inline rules in this SKILL.md | N+1 queries, unbounded loops, memory leaks |
Dedup note: clean-architecture, ddd, solid, testing, code-quality are shared between the front and back focuses; they run once, not twice. The fullstack focus exists precisely to enforce this single-pass behavior.
Call: start_agent(jobId, "clean-architecture")
Read first: /.claude/skills/clean-architecture/SKILL.md
Verify:
Give a score: X/10.
Call: complete_agent(jobId, "clean-architecture", "success")
Call: start_agent(jobId, "ddd")
Read first: /.claude/skills/ddd/SKILL.md
Verify:
Give a score: X/10.
Call: complete_agent(jobId, "ddd", "success")
Call: start_agent(jobId, "react-best-practices")
Verify:
key prop on every list item, stable valuesuseEffect dependencies are exhaustive and accurateGive a score: X/10.
Call: complete_agent(jobId, "react-best-practices", "success")
Call: start_agent(jobId, "typescript-best-practices")
Read first: /CLAUDE.md
Verify:
any avoided, no as type assertionsasync/await with try/catchnull over undefined in domain typesGive a score: X/10.
Call: complete_agent(jobId, "typescript-best-practices", "success")
Call: start_agent(jobId, "solid")
Read first: /.claude/skills/solid/SKILL.md
Verify the 5 principles across both halves.
Give a score: X/10.
Call: complete_agent(jobId, "solid", "success")
Call: start_agent(jobId, "testing")
Read first: /.claude/skills/tdd/SKILL.md
Verify:
Give a score: X/10.
Call: complete_agent(jobId, "testing", "success")
Call: start_agent(jobId, "code-quality")
Read first: /CLAUDE.md
Verify:
Give a score: X/100.
Call: complete_agent(jobId, "code-quality", "success")
Call: start_agent(jobId, "security")
Read first: /.claude/skills/security/SKILL.md
Verify (backend focus, but check the frontend too for leaked secrets and unsafe URL construction):
Give a score: X/10.
Call: complete_agent(jobId, "security", "success")
Call: start_agent(jobId, "performance")
Inline rules:
Give a score: X/10.
Call: complete_agent(jobId, "performance", "success")
Call: set_phase(jobId, "synthesizing")
For each point raised, add a lesson sourced from one of the authorized authors (Uncle Bob, Eric Evans, Vaughn Vernon, Kent Beck, Martin Fowler, OWASP).
# Code Review - MR [Number] ([Title])
**Date**: [YYYY-MM-DD]
**Reviewer**: Claude Code (Mentor Mode, Fullstack)
**Branch**: `[branch-name]`
**Modified files**: [X] (+[additions]/-[deletions] lines)
---
## Executive Summary
| Audit | Score | Verdict |
|-------|-------|---------|
| **Clean Architecture** | X/10 | [Short verdict] |
| **Strategic DDD** | X/10 | [Short verdict] |
| **React Best Practices** | X/10 | [Short verdict] |
| **TypeScript Best Practices** | X/10 | [Short verdict] |
| **SOLID** | X/10 | [Short verdict] |
| **Testing** | X/10 | [Short verdict] |
| **Code Quality** | X/100 | [Short verdict] |
| **Security** | X/10 | [Short verdict] |
| **Performance** | X/10 | [Short verdict] |
**Overall Score: X/10** - [Final verdict]
Same rules as review-front and review-back. Each blocking/important violation gets one POST_INLINE_COMMENT action on the relevant diff line. Verify presence in diff with git diff before posting.
Call: set_phase(jobId, "publishing")
add_action(POST_COMMENT).| Detected issue | Skill to use |
|---|---|
| Missing tests | /tdd |
| New component to create | /architecture |
| Abstraction to challenge | /anti-overengineering |
| SOLID violation | /solid |
| Massive refactoring | /refactoring |
| Anemic model | /ddd |
| Potential secrets | /security |
Call: set_phase(jobId, "completed")
Global report posted on the MR: [comment URL]
Local copy: /.claude/reviews/[YYYY-MM-DD]-MR-[ID]-review.md
Overall score: X/10
Inline comments posted in /diffs: X
Blocking: X
Important: X
Backlog improvements (global report only): X
[REVIEW_STATS:blocking=X:warnings=X:suggestions=X:score=X:categories=security=N,logic=N,performance=N,typeSafety=N,style=N,dependencies=N]
READ-ONLY MODE - No code modified
IMPORTANT: The [REVIEW_STATS:...] line is MANDATORY for automated tracking.
categories= segment)Classify every finding (blocking + important + suggestion) into exactly one of the six dashboard categories, then emit the count per category in the marker. The six counts must sum to blocking + warnings + suggestions. Map by the audit that raised the finding:
| Audit that raised the finding | Category |
|---|---|
| Security | security |
| Clean Architecture, Strategic DDD, React Best Practices, SOLID | logic |
| Performance | performance |
| TypeScript Best Practices | typeSafety |
| Testing, Code Quality | style |
| Outdated / vulnerable / misused dependency | dependencies |
Use the internal keys exactly: security, logic, performance, typeSafety, style, dependencies. Set any unused key to 0. Unknown keys are ignored by the tracker.
Final reminder: This skill NEVER modifies code. The report and inline comments are posted via MCP actions so the author can make corrections.
まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
Guide for creating optimized Claude Code agents. Use to design a new specialized agent, a swarm sub-agent, or a multi-agent workflow. Follows the Skill → Agent (preloaded skills) → Skill orchestration pattern.
日本語の概要は準備中です。原文の説明を表示しています。
Anti-overengineering guide based on YAGNI. Use before adding an architectural pattern, during code review, or to challenge an overly complex implementation.
日本語の概要は準備中です。原文の説明を表示しています。
Clean Architecture (Uncle Bob) guide for this project. Use when creating modules, entities, use cases, presenters, controllers, gateways, guards, services. Contains tactical patterns and structure conventions.
日本語の概要は準備中です。原文の説明を表示しています。
Audit documentation for duplication, staleness, language issues, and verbosity. Read-only — produces an actionable report.
日本語の概要は準備中です。原文の説明を表示しています。
Local auto-review of modified code (no GitLab/GitHub). Runs 5 sequential audits and generates a local report. Ideal for validating code before creating a MR/PR.
日本語の概要は準備中です。原文の説明を表示しています。
Clean Code (Robert C. Martin) guide to produce and challenge code that is readable, durable, simple, and consistent. Covers naming, functions, comments, smells, and refactor heuristics. Complements `/solid` (SOLID principles) and `/anti-overengineering` (YAGNI/KISS). Activate during the REFACTOR phase of the TDD cycle and during implementation self-review.
日本語の概要は準備中です。原文の説明を表示しています。