/claude-planning-with-ai:plan-agent-execute <NNN-slug>from claude-planning-with-ai
Execute all pending stories in a planning — atomizes and executes independent stories in parallel using subagents, respecting dependency order.
Ships in claude-planning-with-ai. 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.
Atomize and execute all pending stories in a planning. Independent stories run in parallel via subagents; dependent stories wait for their predecessors.
$ARGUMENTS — planning id (e.g. 001-user-auth-api)
Planning context check: Read .planning/config.yml if it exists and extract execution.requires_git (default: true). If execution.requires_git is true, execute [CHECK-PLANNING-CONTEXT]. If execution.requires_git is false, skip this check and continue to step 1.
Locate .planning/active/$ARGUMENTS/. If not found, stop: "Planning not found in active state — run /plan-agent-plan first."
Read all story files under .planning/active/$ARGUMENTS/02-deepening/*.md. Collect for each story:
story-id (e.g. story-01)status (from the ## Status line or the status field)depends-on (from any Depends On or Dependencies section — list of story IDs)02-deepening/story-NN-*/task-*.md directory exists)
Skip stories with status DONE.Build the dependency graph: a map of story-id → [story-ids it depends on]. Flag any circular dependency as a CRITICAL ERROR — execute [RECORD-EDGE-CASE] with the cycle details, then stop and report.
Compute execution batches using topological sort: a batch is a set of stories whose dependencies are all already DONE or not present. Process batches in order.
For each batch of stories:
a. Announce: "Executing batch: story-01, story-03 (parallel)"
b. For each story in the batch, dispatch a subagent using the Agent tool with this prompt template:
You are executing one story of a planning in an autonomous pipeline.
Planning ID: <NNN-slug>
Story ID: <story-NN>
Working directory: <absolute path of the project root>
Steps to execute (no confirmations — proceed autonomously):
1. Run /plan-atomize <NNN-slug> <story-NN>
- Present the task breakdown and immediately confirm it yourself (do not ask the user).
2. Run /plan-story <NNN-slug> <story-NN>
- This subagent is already a fresh story context. If executing the same sequence manually in Claude instead of a subagent, run `/clear` before `/plan-story`.
If /plan-atomize fails, stop and report the error with story ID.
If /plan-story fails, stop and report the error with story ID.
Report outcome: DONE or BLOCKED with reason.
c. Dispatch all stories in the batch simultaneously (parallel Agent calls in one message). d. Wait for all subagents in the batch to complete before starting the next batch. e. For each subagent result:
DONE: mark the story status; unlock dependents.BLOCKED: record the story as BLOCKED with the reported reason; execute [RECORD-EDGE-CASE] with source /plan-agent-execute, related story, and blocker reason; continue with remaining batch members.After all batches: collect results.
/plan-agent-validate handle the check.Report: N stories executed (N parallel batches), N DONE, N BLOCKED (if any).
Called by
/plan-run. Can also be used independently to execute a planning that is already in EXPANSION/DEEPENING state.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub adumun/claude-planning-with-ai --plugin claude-planning-with-ai53 skills in this plugin
/doc-generateGenerate documentation from planning artifacts at task, story, or planning level using the deterministic doc-generate script./doc-storyGenerate documentation for a completed story using the deterministic doc-generate script./doc-taskGenerate documentation for a completed atomic task using the deterministic doc-generate script./epic-enrichAdd missing backlog stories to an existing epic or story container while delegating container inspection, ID assignment, story drafting, and index updates to the shared planning-story script.Other plugins' skills for the same job