본문으로 건너뛰기
cccskills
무료GitHub에 공개

subagent-driven-development

Use when executing implementation plans with independent tasks — dispatches fresh subagents per task with two-stage review (spec compliance, then code quality)

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Subagent-Driven Development

Execute a plan by dispatching a fresh subagent per task, with two-stage review after each: spec compliance first, then code quality.

Core principle: Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration.

Why subagents: Isolated context per task — subagents never inherit your session history. You construct exactly what they need. This keeps the coordinator context clean for orchestration work.

When to Use

Use this after /squad-plan generates a parallel workstream plan, OR when you have any plan document with independent tasks.

vs. dispatching subagents manually: This enforces the two-stage review loop automatically — no skipping spec compliance to jump to quality.

Not suitable when tasks are tightly coupled — if task B depends on task A's exact output, execute sequentially in the main context instead.

The Process

Setup:

  1. Read plan file once — extract ALL tasks with full text and context
  2. Create tasks in claude/tasks/todo.md with all task titles

Per task loop:

  1. Dispatch implementer subagent with: full task text + relevant file context (do NOT make subagent read the plan — provide it directly)
  2. If subagent asks questions → answer completely before letting them proceed
  3. Implementer implements, tests, commits, self-reviews → reports status
  4. Dispatch spec compliance reviewer (bootstrap reviewer subagent type) → does code match the spec?
    • Issues found → implementer fixes → spec reviewer re-reviews → repeat until ✅
  5. Dispatch code quality reviewer (bootstrap reviewer subagent type) → is code clean, tested, production-ready?
    • Issues found → implementer fixes → quality reviewer re-reviews → repeat until ✅
  6. Mark task complete in claude/tasks/todo.md

After all tasks:

  • Dispatch final reviewer across entire implementation
  • Run /mr to finalize the branch

Handling Implementer Status

StatusAction
DONEProceed to spec compliance review
DONE_WITH_CONCERNSRead concerns first — address correctness/scope concerns before review, note observations and proceed
NEEDS_CONTEXTProvide missing context, re-dispatch
BLOCKEDDiagnose: context problem → provide context + re-dispatch; needs more reasoning → re-dispatch with opus model; task too large → break into smaller pieces; plan is wrong → escalate to user

Never ignore an escalation or force the same model to retry without changes.

Model Selection

TaskModel
Isolated function, clear spec, 1-2 fileshaiku
Multi-file, integration concernssonnet
Architecture, design, reviewopus

Implementer Prompt Template

You are implementing Task N of M in a subagent-driven development session.

**Task:** [full task text from plan]

**Context:**
- Branch: [current branch]
- Plan: [plan file path]
- Relevant files: [list key files — provide content, don't make them read]
- Constraints: [any architectural constraints]

**Requirements:**
1. Follow TDD — write failing test first, then implement
2. Run tests and verify they pass
3. Commit with a clear message
4. Self-review: check for missed requirements, edge cases, quality issues

**Report status as one of:**
- DONE: completed and committed
- DONE_WITH_CONCERNS: done but flagging [specific concern]
- NEEDS_CONTEXT: blocked on [specific missing info]
- BLOCKED: cannot proceed because [specific reason]

Spec Reviewer Prompt Template

You are a spec compliance reviewer. Your ONLY job: does the implementation match the spec?

**Spec for this task:** [full task text]
**Implementation:** [git diff or file content]

Check:
1. Does the code implement EVERYTHING the spec requires?
2. Does the code implement NOTHING the spec did not ask for?

Report:
- ✅ COMPLIANT: all spec requirements met, no extras
- ❌ ISSUES: [list each gap or extra feature]

Quality Reviewer Prompt Template

You are a code quality reviewer. The spec compliance gate has already passed.

**Implementation:** [git diff or file content]

Check:
1. Tests cover all branches and edge cases?
2. No magic numbers, unclear names, dead code?
3. Error handling appropriate to criticality?
4. File/function size within project limits (400 lines/file, 50 lines/function)?

Report:
- ✅ APPROVED
- ❌ ISSUES (Critical | Important | Minor): [list each issue]

Red Flags — Never Do These

  • Start implementation on main branch without explicit user consent
  • Skip either review stage (spec compliance AND quality both required)
  • Proceed with unfixed issues from a review
  • Make subagent read the plan file — provide full text directly
  • Accept "close enough" on spec compliance
  • Start quality review before spec compliance is ✅
  • Move to next task while any review has open issues
  • Dispatch multiple implementer subagents in parallel (causes conflicts)

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

ask

무료

Route a codebase question to the right tool — structural graph, semantic search, or risk analysis. Use when you need to find or understand code without knowing exact file names.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

bootstrap

무료

Auto-configure CLAUDE.md and claude/ knowledge docs for a new project. Use when setting up Brain Bootstrap in a new repository. Discovers the codebase, fills in templates, and writes project-specific configuration.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

Use before any new feature, component, or behavioral change — when you need to explore requirements and design before writing code

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

careful

무료

Activate safety guards for the session. Use /careful before critical operations — blocks rm -rf, DROP TABLE, git push --force, kubectl delete namespace, docker system prune via PreToolUse hook.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

changelog

무료

Generate a user-facing changelog from git commits — categorize, filter noise, translate to user language. Runs in isolated fork context.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

Save session state before context gets full or before ending. Writes current task state, branch, and loaded docs to claude/tasks/todo.md so the next session can resume cleanly.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

brain-bootstrap의 스킬 모두 보기

이 스킬의 문제 신고