| name | parallel-dev |
| description | Plan and coordinate parallel development workstreams using Claude Code sub-agents with worktree isolation for safe concurrent implementation |
| allowed-tools | ["Read","Write","Edit","Glob","Grep","Agent","Bash(ls:*)","Bash(git:*)","Bash(wc:*)"] |
| arguments | ["goal"] |
| argument-hint | [๋ณ๋ ฌํํ ๊ตฌํ ๋ชฉํ ๋๋ dev-plan ํ์ผ ๊ฒฝ๋ก] |
| user-invocable | true |
| when_to_use | Use when the user wants to parallelize implementation, split work into multiple agents, define file ownership,
coordinate sub-agents, reduce merge conflicts, create a merge/integration plan, or use worktree isolation.
Examples: 'parallel workstreams', 'split work', 'parallelize', 'sub-agent', 'ownership boundaries',
'๋ณ๋ ฌ ๊ตฌํ', '์์
๋ถ๋ฆฌ', '์ํฌ์คํธ๋ฆผ', '๋ณ๋ ฌ ๊ฐ๋ฐ', 'worktree๋ก ๋๋ ์', '์์ด์ ํธ ๋ถ๋ฐฐ'
|
Parallel Dev
Overview
ํ๋์ ๊ตฌํ ๋ชฉํ๋ฅผ ์์ ํ๊ณ ๋
๋ฆฝ์ ์ผ๋ก ์คํํ ์ ์๋ ์ํฌ์คํธ๋ฆผ์ผ๋ก ๋ถํดํ๋ค. Claude Code์ Agent ๋๊ตฌ์ worktree isolation์ ํ์ฉํ์ฌ ์ต๋ ๋์์ฑ + ํ์ผ ์ถฉ๋ ์์์ ๋ณด์ฅํ๋ค.
Inputs
$goal: ๊ตฌํ ๋ชฉํ ์ค๋ช
๋๋ ๊ธฐ์กด dev-plan ํ์ผ ๊ฒฝ๋ก
Process
Step 1: ๋ชฉํ ํ์ธ
$goal์ด ํ์ผ ๊ฒฝ๋ก๋ฉด ํด๋น ๊ณํ์๋ฅผ ์ฝ๋๋ค.
- ํ์ฌ ํ์ฑ ๋ณ๊ฒฝ์ฌํญ(
git status)๊ณผ ๊ธฐ์กด ๊ณํ์๋ฅผ ํ์ธํ๋ค.
- ๋ชฉํ, ๋น๋ชฉํ, ์ ์ฝ ์กฐ๊ฑด์ ๋ช
ํํ ํ๋ค.
Step 2: ํฐ์นํฌ์ธํธ ๋งคํ
- Glob์ผ๋ก ๊ด๋ จ ํ์ผ/๋๋ ํ ๋ฆฌ๋ฅผ ์ค์บํ๋ค.
- Grep์ผ๋ก ์์ ์ด ํ์ํ ์ฝ๋ ์์น๋ฅผ ์ฐพ๋๋ค.
- ๊ณต์ ์์กด์ฑ(ํ์
, ์ธํฐํ์ด์ค, ์ค์ )์ ์๋ณํ๋ค.
Step 3: Foundation ๋ถ๋ฆฌ
๊ณต์ ๊ณ์ฝ(contracts), ํ์
, ์ธํฐํ์ด์ค๋ฅผ ์์ Foundation ์ํฌ์คํธ๋ฆผ์ผ๋ก ๋ถ๋ฆฌํ๋ค. Foundation์ด ๋จผ์ ๋จธ์ง๋์ด์ผ ๋๋จธ์ง๊ฐ ์์ ํ๊ฒ ์งํ๋๋ค.
Step 4: ์ํฌ์คํธ๋ฆผ ๋ถ๋ฐฐ
๊ฐ ์ํฌ์คํธ๋ฆผ์ ๋ํด ์ ์ํ๋ค:
- Objective (๋ชฉํ)
- Deliverables (์ฐ์ถ๋ฌผ)
- Owned paths (์์ ํ์ผ/๋๋ ํ ๋ฆฌ)
- Non-owned paths (๊ฑด๋๋ฆฌ๋ฉด ์ ๋๋ ํ์ผ)
- Dependencies (์์กด ์ํฌ์คํธ๋ฆผ)
- Tests (๊ฒ์ฆ ๋ฐฉ๋ฒ)
- Done criteria (์๋ฃ ์กฐ๊ฑด)
references/parallel-templates.md์ Workstream Card ํ์์ ์ฌ์ฉํ๋ค.
Step 5: Agent ํธ์ถ ์์ฑ
๊ฐ ์ํฌ์คํธ๋ฆผ์ Claude Code Agent ํธ์ถ๋ก ๋ณํํ๋ค:
isolation: "worktree" โ Git worktree ๊ฒฉ๋ฆฌ๋ก ํ์ผ ์ถฉ๋ ๋ฐฉ์ง
subagent_type โ ์์
์ฑ๊ฒฉ์ ๋ง๋ ํ์
์ ํ
- ํ๋กฌํํธ์ ์์ ๊ถ ๊ฒฝ๊ณ์ ๊ท์น์ ๋ช
์
references/worktree-agent-guide.md๋ฅผ ์ฐธ์กฐํ์ฌ ์์ฑํ๋ค.
Step 6: ๋ณํฉ ์์ ๊ฒฐ์
- Foundation ๊ณ์ฝ/ํ์
๋จผ์
- ๋
๋ฆฝ leaf ์ํฌ์คํธ๋ฆผ (๋ณ๋ ฌ ๊ฐ๋ฅ)
- ๊ณต์ wiring/UI
- ๋ฌธ์
- ์ ์ฒด ๊ฒ์ฆ
Step 7: ๊ฒ์ฆ
- ์ํฌ์คํธ๋ฆผ๋ณ ๋์ ํ
์คํธ ์คํ
- ํตํฉ ํ ์ ์ฒด ํ
์คํธ ์คํ
Sub-Agent Rules
- ๊ฐ worker์๊ฒ ๋ช
์์ ํ์ผ ์์ ๊ถ๊ณผ ๋น์์ ๊ฒฝ๊ณ๋ฅผ ๋ถ์ฌํ๋ค.
- worker๋ ์ฝ๋๋ฒ ์ด์ค์ ํผ์๊ฐ ์๋์ ์ธ์งํด์ผ ํ๋ค.
- worker๋ ๋ค๋ฅธ ์์ด์ ํธ์ ์์ ์ revertํ๊ฑฐ๋ ๋ฎ์ด์ฐ์ง ์๋๋ค.
- ๊ด๋ฒ์ ํ์๋ณด๋ค ๋ฒ์๊ฐ ํ์ ๋ ๊ตฌํ ํ์คํฌ๋ฅผ ์ฐ์ ํ๋ค.
- ์ต์ข
ํตํฉ๊ณผ ์ ์ฒด ๊ฒ์ฆ์ ๋ฉ์ธ ์์ด์ ํธ๊ฐ ์ํํ๋ค.
Output Shape
- Workstream Cards (ํ
์ด๋ธ)
- Ownership Matrix
- Contract Checklist
- Merge Sequence
- Agent Invocation Prompts
- Risks & Coordination Notes