From agent-skills
Plan creation lifecycle — orchestrates project context, per-chapter authoring, and the validate-loop (validate-doc → triage-feedback → revise-doc / process-feedback / lock-decisions) to convergence. Use when the captain asks for a tech spec, implementation plan, or follow-on plan derived from a spike.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-skills:create-planThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Plan creation lifecycle. Composes `/launch-project`, `/write-doc`,
Plan creation lifecycle. Composes /launch-project, /write-doc,
/validate-doc, /triage-feedback, /revise-doc, /process-feedback, and
/lock-decisions into the per-chapter and overall validate-loop. Same shape as
/create-spike; differs in baseline reviewer set (accuracy, architecture, integration, dx, scope per d08) and target artifact (plan vs spike).
/create-spike/write-doc directly/revise-doc/create-decision/execute-planauth-refactor); the pNNN-
prefix is auto-assigned by the scaffoldRead, Edit, Write, Glob, Grep, Bash, WebFetch, WebSearch, TodoWrite, Dispatch
(full orchestrator toolset).
Invoke /launch-project. If it refuses (no project determinable from cwd or
prompt), ask the captain for the project name and retry once. Abort if still
unresolved — plans live inside a project subtree, not at docs/.
Before scaffolding, fix the plan's frame:
Confirm the frame with the captain before proceeding when the source isn't a fully approved spike.
Invoke /write-doc to scaffold a new plan via the pNN-<name> convention.
/write-doc delegates to ${CLAUDE_PLUGIN_ROOT}/scripts/yolo new plan <project> <name>
— never improvise the path or pick a number manually. The CLI's JSON
envelope reports the assigned filePath; per-chapter authoring later
uses ${CLAUDE_PLUGIN_ROOT}/scripts/yolo new chapter <project> <plan-slug> <name>.
Confirm the scaffold landed before authoring chapters.
For each chapter in the outline, in dependency order:
Invoke /write-doc with the chapter target path and content directive. Match
the surrounding directory's tone, depth, and section shape. For chapters
derived from a source spike, cite the spike's chapters in the chapter's
Sources section.
Invoke /validate-doc with:
artifactPath = the chapter filefocusList = [accuracy, architecture, integration, dx, scope] (the
create-plan baseline per d08)security for
auth/crypto/secrets, performance for hot paths, compatibility for public
surfaces. The orchestrator (this skill) picks; /validate-doc is dumb.iteration = current iteration index for this chapter (1, 2, 3)/validate-doc dispatches one /review-doc per focus in parallel and returns
the rNN- file paths it landed.
Invoke /triage-feedback with the rNN- paths from step b and the chapter
artifact path. It returns clusters with route assignments per d11:
act / auto-act / process / defer / lock-decisions.
act and auto-act clustersFor every cluster routed act or auto-act, invoke /revise-doc against the
chapter, passing the cluster's member findings (via the source rNN- files or
inline). /revise-doc applies the edits and surfaces contradictions; do not
auto-pick contradictions — they go to the captain.
process clustersDispatch /process-feedback in parallel — one subagent per process cluster,
all in a single Task batch, capped at 4 concurrent. Each returns one of
two canonical verdicts:
verified-resolution — apply via /revise-doc using the patch suggestionnarrowed-options-brief — surface to the captain only when the cluster is
also blocking; non-blocking briefs queue for the next iteration's reviewersHand-back markers (decision-shaped clusters mistakenly routed here) re-route to
/lock-decisions.
lock-decisions clustersInvoke /lock-decisions with the decision-shaped cluster list. The captain
walks each finding via the three-path prompt (lock / defer / grill).
Locked decisions write dNN-<slug>.md under the project's decisions/
directory.
Convergence rules (per Ch5):
defer (nits / out-of-scope) or has a landed resolution
(act-applied edit, process verified-resolution applied, lock-decisions
locked or deferred per captain).Move to the next chapter only after this one converges.
After all chapters converge, run one validate-loop against the plan's
README.md:
/validate-doc with the create-plan baseline focus list, scope = README/triage-feedback on the rNN- outputIf the overall pass surfaces a chapter-scoped issue (a finding that points back into a specific chapter), the captain decides whether to reopen that chapter for another iteration. Do not auto-loop chapters from the overall pass — that thrash is forbidden.
Brief the captain with:
dNN- files this plan produced (link each)Wait for captain approval before downstream work (/execute-plan) begins.
/process-feedback dispatch — must dispatch all process
clusters in a single Task batch (cap 4). One Task per assistant turn defeats
parallelism and is a known failure mode./launch-project — plans live inside a project subtree;
authoring without project context produces orphaned files./process-feedback — process-feedback
hands them back; the orchestrator must re-route to /lock-decisions
rather than re-dispatching process./revise-doc findings — surface both to
the captain; do not silently choose.${CLAUDE_PLUGIN_ROOT}/scripts/yolo new (the pre-write-doc hook enforces
this); delegate via /write-doc, never write paths directly.decisions/ directory via
/create-decision (invoked by /lock-decisions); the plan README links
each one in the convergence summary.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub mikestopcontinues/agent-skills --plugin agent-skills