/desplega:v-implementingfrom desplega
Reads a DAG-structured plan directory (root.md + step-*.md), topologically schedules ready steps, and fans them out as parallel sub-agents. Use for /v-implement or when asked to run a parallel plan.
Ships in desplega. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are implementing an approved DAG-structured plan produced by v-planning. The plan is a directory with root.md + one step-<n>.md per node. Your job is to act as a topological scheduler: at each tick, find steps whose dependencies are all done, fan them out as parallel sub-agents (one per ready step), wait, repeat — until the DAG is drained. Then run Global Verification.
This is the parallel sibling of implementing. The orchestration model is the same (sub-agents do the work, main session coordinates), only the scheduler is different.
All user-facing questions go through AskUserQuestion — see desplega:ask-user for conventions. Never ask in chat as plain bullets.
All read/research/validation work goes through sub-agents — keep raw tool output out of the main session. Default to run_in_background: true. The fan-out scheduler below is built on this.
The autonomy mode (below) controls how often you check in. AskUserQuestion is always the mechanism.
File-review is on by default — when significant changes land in a step (or wave), invoke /file-review:file-review <path> for inline feedback (skip only if Autopilot).
| Mode | Behavior |
|---|---|
| Autopilot | Drain the DAG without pausing. Only stop on blocker / failed step. |
| Critical (Default) | Pause when each wave of parallel steps completes; wait for manual verification before unlocking the next wave. |
| Verbose | Pause after each individual step (even within a wave). |
After understanding the plan and before the scheduler loop starts, gather implementation-specific details (skip in Autopilot):
Check the current branch: git branch --show-current. Then check if the wts plugin is installed (look for wts:wts in available skills).
If wts is installed, use AskUserQuestion:
| Question | Options |
|---|---|
"You're on <current-branch>. Where would you like to implement?" | 1. Continue on current branch, 2. Create a new branch, 3. Create a wts worktree |
If wts is not installed, drop the worktree option.
Use AskUserQuestion:
| Question | Options |
|---|---|
| "How would you like to handle commits during parallel implementation?" | 1. Commit after each step completes (Recommended), 2. Commit at the end (single commit), 3. Let me decide as I go |
If "Commit after each step" is selected, after a step's manual verification passes, create a commit: [step-N] <step name>.
Workflow tool is available)| Question | Options |
|---|---|
| "Run the DAG waves as Workflow scripts? (deterministic scheduling, parallel steps as agent() calls)" | 1. Yes — Workflow waves, 2. No — Agent fan-out (Default) |
A "yes" is the explicit opt-in the Workflow tool requires. If opted in, each wave of the scheduler loop below runs as one Workflow script — a parallel() of agent() calls, one per ready step, with model/effort per desplega:delegate-work. Everything else is unchanged: step agents still follow the step-running contract (atomic frontmatter claim, three-bucket verification), and autonomy-mode pause points sit between Workflow invocations, never inside one. In Autopilot these questions are skipped, so there is no opt-in — use Agent fan-out unless the user pre-authorized workflows.
| Question | Options |
|---|---|
| "Run an automatic code review after each wave?" | 1. Automatic two-axis review per wave (Recommended), 2. Only at the end (single review after the DAG drains), 3. Off — I'll review myself |
In Autopilot, skip the question and default to automatic per-wave review.
Given a plan directory path:
root.md fully (no limit/offset). Capture: Overview, Current State, Desired End State, Implementation Approach, Global Verification.step-<n>.md's frontmatter to build the dependency graph (id, depends_on). You don't need to read step bodies up front — the sub-agents will do that.depends_on ID exists as a step filedepends_on: [] (otherwise nothing can start)root.md frontmatter status: in-progress.pending.- [x] boxes already (or its frontmatter says status: completed if the user added it), trust them and treat that step as done.If no path given, ask via AskUserQuestion.
The scheduler reads each step's frontmatter status (ready | claimed | done) and depends_on. The frontmatter status field is the single source of truth — multiple orchestrator instances on the same plan dir coordinate through it (each desplega:step-running sub-agent atomically claims its step before doing work).
while any step has status != done:
ready = [step for step in steps
if step.status == "ready"
and all(dep.status == "done" for dep in step.depends_on)]
if not ready:
# DAG drained, OR every remaining undone step is claimed by another worker
if any step has status == claimed: wait for in-flight claims to resolve
else: report stuck (likely cycle or unrecoverable failure)
continue
fan out each step in `ready` as a parallel `desplega:step-running` sub-agent
wait for the wave to complete
review reports; step-running has already updated frontmatter
(status: done on success, status: ready on retry-able failure, status: claimed if held for investigation)
if Critical mode: pause for manual verification of newly-completed steps
if any failed: stop and ask user how to proceed
Use the Agent tool with run_in_background: true, invoking desplega:step-running. Pass:
step-<n>.mdroot.md. step-running re-reads root.md itself, so this is just to reduce round-trips.step-running owns:
status: ready → status: claimed, assignee: <agent-id>, claimed_at: <ts>)status: done on success, status: ready on retry-able failure)The orchestrator does NOT do step work itself — it delegates. See desplega:step-running for the full sub-agent contract.
Executor routing: if the desplega:delegate-work skill is available, pick each step's executor per its routing matrix instead of defaulting to a step-running sub-agent — a step may route to a Codex variant (one worktree per parallel slice) or a specific Claude model tier. Only the executor choice changes; the scheduler, frontmatter claim protocol, and all other semantics here stay unchanged. When a step routes to Codex, the orchestrator owns the frontmatter bookkeeping that step-running would normally do (Codex must not edit plan files).
When a wave finishes:
done only if completed was reported.desplega:code-reviewing on the wave's combined diff: Standards + Spec axes as parallel background sub-agents (routed per desplega:delegate-work), spec source = the completed steps' bodies and Success Criteria. Critical findings block those steps' commits — fix and re-verify first. If "Only at the end" was selected, run one review over the full diff after the DAG drains instead.QA Doc: <path> — for each step that reported a QA doc, invoke desplega:qa against that path. The Automated QA bucket inside the step is already handled by the sub-agent; only the linked doc needs separate orchestration here. (QA: n/a → proceed normally.)[step-N] <step name>.ready and start the next wave.If a sub-agent reports failed or blocked, or you spot a mismatch between plan and reality:
| Question | Options |
|---|---|
| "[step-N] [issue]. How should I proceed?" | 1. Adapt step (edit step-N.md and retry), 2. Retry as-is, 3. Skip and continue (mark step blocked), 4. Stop the run |
In Autopilot mode, use best judgment, document the decision in the step file, and continue if non-fatal.
When every step is done:
root.md. Tick automated checks; surface manual checks to the user.root.md frontmatter status: completed./verify-plan and /review on the plan directory?"desplega:tackle-gh-comments (fetch threads, verify each claim, fix, reply, resolve, then push last). To keep the PR moving until it is approved, use desplega:babysit-pr.root.md's table is out of sync, trust the frontmatter./v-implement mid-DAG, completed steps stay completed; only undone ones rerun.If file-review is available and the user opted in:
/file-review:file-review <changed-file>.file-review:process-review before treating the step as done.What SKILL.md sets; muted values are Claude Code's defaults
${CLAUDE_PLUGIN_ROOT}/hooks/plan_checkbox_stop.pyEdit|Write${CLAUDE_PLUGIN_ROOT}/hooks/plan_checkbox_reminder.pynpx claudepluginhub desplega-ai/ai-toolbox --plugin desplega26 skills in this plugin
/ask-userConventions for asking the user questions during a workflow via the AskUserQuestion tool. Other skills reference this to keep prompts consistent and structured./babysit-prKeep a GitHub PR moving until it is clean on its head commit. Each round fixes CI failures, handles review findings, rebases when needed, re-triggers the reviewers, and then waits in the background for the next event. Use when the user says "babysit the PR", "watch the PR until it's approved", "keep going until approved", "monitor the PR", or invokes /babysit-pr. Merges only when the user asks for it./brainstormingInteractive exploration of ideas through Socratic Q&A. Produces progressive documents that serve as lightweight pre-PRDs feeding into research.Other plugins' skills for the same job