How this skill is triggered — by the user, by Claude, or both
Slash command
/ralph-swarm:designThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run the architecture/design planning phase. This command takes the research and requirements output and produces an architecture/design document. It is the third step in the incremental planning flow.
Run the architecture/design planning phase. This command takes the research and requirements output and produces an architecture/design document. It is the third step in the incremental planning flow.
.ralph-swarm-state.json from the project root using the Read tool.Error: No active swarm found. Run /ralph-swarm:start "your goal" first.
phase, pausedAfter, planning, specPath, goal, and name.phase is not "planning", output this error and stop:
Error: Cannot run design phase. Current phase is "<phase>".
Design can only run during the planning phase.
planning.requirements is not "complete", output this error and stop:
Error: Requirements phase must complete first. Run /ralph-swarm:requirements first.
pausedAfter is set but planning.requirements is "pending", this is a corrupt state. Output:
Warning: State inconsistency detected (pausedAfter is set but requirements is pending). Run /ralph-swarm:cancel to reset.
Then stop.If planning.design is already "complete":
Warning: Design phase already completed. Re-running will invalidate the task breakdown.
planning.tasks to "pending"<specPath>/tasks.md if it existspausedAfter to null.CLAUDE.md exists in the project root. If it does, read it with the Read tool.<specPath>/research.md using the Read tool.<specPath>/requirements.md using the Read tool.flags.swarm from the state file (parsed in Step 1).pausedAfter to null in the state file (clear any previous pause).planning.design to "in-progress" in the state file.Pre-merge check (if flags.swarm is true): Before spawning parallel agents, check <specPath> for partial files from a prior interrupted attempt:
design-architecture.md, design-contracts.md) exist AND design.md does NOT exist: skip agent delegation, proceed directly to merge. Read skills/start/SKILL.md and follow the Merge Protocol section.If flags.swarm is true: Spawn 2 parallel Task calls using swarm-architect agent type:
| Agent | Focus | Output File |
|---|---|---|
| A | Architecture & data: component design, data models, migrations, data flow, parallelization analysis | <specPath>/design-architecture.md |
| B | Contracts & strategy: API contracts, interfaces, error handling strategy, testing strategy, design decisions | <specPath>/design-contracts.md |
<specPath>/research.md and requirements at <specPath>/requirements.md, produce a design document for: <goal>. Focus specifically on . Save to <output file>."skills/start/SKILL.md and follow the Merge Protocol section to combine partial files into <specPath>/design.md. Partial files: design-architecture.md, design-contracts.md.planning.design to "failed" and stop.If flags.swarm is false (default): Single-agent delegation:
swarm-architect agent type (subagent_type: ralph-swarm:swarm-architect) via the Task tool:
<specPath>/research.md and requirements at <specPath>/requirements.md, produce an architecture/design document for: <goal>. Save to <specPath>/design.md."Regardless of path, the design.md must include:
After delegation (both paths):
5. Verify <specPath>/design.md exists by reading it.
6. If verification fails, set planning.design to "failed" and stop with an error.
7. Set planning.design to "complete" in the state file.
pausedAfter to "design" in the state file.Design phase complete.
Review the output at: <specPath>/design.md
Next: Run /ralph-swarm:tasks to continue planning.
Or edit the design file first, then run /ralph-swarm:tasks.
pausedAfter is set.planning.design to "failed" in the state file, report the error, and stop.npx claudepluginhub divkix/ralph-swarm --plugin ralph-swarmExecutes an implementation planning workflow: sets up design artifacts, loads context, reads architecture docs, and produces structured design outputs before coding begins.
Generates design artifacts (architectural plans, data models, API contracts) for feature implementation within a top-level workflow.
Guides design validation through collaborative dialogue before coding begins. Use when creating features, building components, or modifying behavior to prevent wasted work.