/desplega:planningfrom desplega
Creates detailed implementation plans through interactive research and iteration. Scaffolds plan documents, delegates research to sub-agents, and supports multiple autonomy levels.
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.
Read when SKILL.md points to them.
You create detailed implementation plans through an interactive, iterative process. Be skeptical, thorough, collaborative.
Autonomy Mode — passed by the invoking command; default to Critical if unspecified.
| Mode | Behavior |
|---|---|
| Autopilot | Research independently, write the full plan, present for final review only |
| Critical (Default) | After each research step, ask clarifying questions before drafting; surface design options at decision points |
| Verbose | Check in at every sub-step: validate understanding, confirm scope, surface unknowns, confirm before each phase |
Commit preference & orchestration — unless Autopilot, ask once via AskUserQuestion (bundle both questions in one call; drop the second when the Workflow tool is not available in the session):
| Question | Options |
|---|---|
| "Create a commit after each phase once manual verification passes?" | 1. Yes (Recommended), 2. No, I'll handle commits |
| "Run the research spikes as Workflow scripts? (more parallel agents, higher token use)" | 1. Yes — Workflow fan-out, 2. No — plain sub-agents (Default) |
A "yes" on the second question is the explicit opt-in the Workflow tool requires. In Autopilot (no questions asked), default to plain sub-agents.
Prior learnings — OPTIONAL SUB-SKILL: if ~/.agentic-learnings.json exists, run /learning recall <topic> first.
Design docs (read-and-abide) — if a design doc exists for the touched system (thoughts/*/design-docs/<system-slug>.md), read it before researching: use its Glossary terms in the plan, don't violate its Invariants or Boundaries, and flag conflicts to the user as explicit decisions instead of silently planning around them. If the plan intentionally changes the design, updating the doc (Decision log + Amendment log) is a plan step. See desplega:design-docs.
Scaffold first — before any research, exit plan mode and create thoughts/<username|shared>/plans/YYYY-MM-DD-description.md from cc-plugin/base/skills/planning/template.md. (Use the user's name when known, e.g. taras; fall back to thoughts/shared/ otherwise.) The file grows incrementally; the user can correct course early.
Sub-agent everything heavy — file reads, research, validation. Default to run_in_background: true. Keep raw tool output out of the main session.
Sub-agent menu: codebase-locator (find files), codebase-analyzer (understand current implementation), codebase-pattern-finder (find similar features), context7 MCP (library/framework specifics), Explore or general-purpose (read mentioned files).
Executor routing: if desplega:delegate-work is available, pick each sub-agent's model per its matrix (locate → Haiku, analyze → Sonnet) instead of spawning on defaults. If Workflow fan-out was opted in during Setup, run each section's research spike as a Workflow script (model/effort/agentType opts per the same matrix) — the plan drafting itself always stays in the main session.
Ask via AskUserQuestion — see desplega:ask-user for conventions. Never ask in chat as plain bullets.
Ask after each step (Critical/Verbose), then loop — work the plan section by section: Current State Analysis → Implementation Approach → Phase Outline → Phase Details. For each section: spawn sub-agents → synthesize findings (with file:line refs) → ask gaps via AskUserQuestion → draft → next section. Assumed inputs are the #1 source of bad plans.
Concrete deliverable per phase — every phase Overview names what file/feature/output exists when it's done. "Improve X", "refactor Y" are smells.
Proof of work: maximize Automated Verification + Automated QA — push everything into runnable commands (low-level) and agent-driven QA (browser-use, screenshot diff, CLI walkthrough). Manual Verification is the exception. A separate ### QA Spec (optional): linking to a desplega:qa doc is reserved for cross-cutting or evidence-heavy QA — not for routine per-phase checks.
Propose splitting — when a phase has >4 sub-steps or >2 distinct concerns, split it. When the plan won't fit one implementation session, split it into multiple smaller plans (e.g., contract → storage → UI). The inverse also holds: if the whole task fits in ~1–3 phases inside one subsystem, suggest /one-shot (desplega:one-shot) instead of a full plan.
Push back with radical candor — use desplega:feedback when the plan is too big, vague, mixes concerns, or has obvious risks. Over-engineering counts: run proposed abstractions, layers, and new dependencies against desplega:engineering-standards (deletion test, two-adapters rule, new-dependency test) and challenge failures per its Pushback protocol — concretely, with the simpler alternative sketched. Silence is Ruinous Empathy.
Validate structure with a Haiku sub-agent before showing the plan (general-purpose with model: haiku). Verify: every phase has all three Success Criteria subsections, all items use - [ ], automated checks are runnable commands, referenced paths exist. Apply fixes before reveal.
Hand off to a fresh session — never implement here. Close-out sequence:
Open /file-review:file-review <plan-path> (unless Autopilot); iterate on comments.
Optionally invoke desplega:reviewing for gap analysis (offer via AskUserQuestion).
OPTIONAL SUB-SKILL: if significant insights emerged, capture via /learning capture.
If any phase has a ### QA Spec (optional): block, generate the QA doc via desplega:qa before handoff (thoughts/<username|shared>/qa/YYYY-MM-DD-[feature].md). Scenarios live in the doc, not the plan.
Ask the user via AskUserQuestion:
| Question | Options |
|---|---|
| "Plan ready. What's next?" | 1. Implement in a fresh session, 2. Run /review first, 3. Done for now (park the plan) |
Tell them explicitly: "Open a new Claude Code session and run /desplega:implement-plan <path>. Starting fresh keeps the implementation context clean."
If commit-per-phase was enabled in Setup:
[phase N] <brief description>.Canonical format and heading hierarchy lives in cc-plugin/base/skills/planning/template.md. Structure validation runs automatically (rule 9, Haiku sub-agent).
What SKILL.md sets; muted values are Claude Code's defaults
npx 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./code-reviewingTwo-axis code review of a diff — Standards (is the code well built?) and Spec (does it actually solve the stated problem?) — run as parallel sub-agents and reported separately, never merged. Use when reviewing implementation output (a phase, a wave, a branch, a PR), when the user says "review the code", "review the diff", "review this phase", or when another desplega skill (implementing, v-implementing, verifying, delegate-work) calls for a per-phase or final code review. For reviewing DOCUMENTS (plans, research, brainstorms), use desplega:reviewing instead./commsRe-express something so it lands — re-explain your last reply in plain casual language, show the current topic visually (diagram, code-shape sketch, HTML artifact), do both at once, or rewrite artifact text into unambiguous ASD-STE100 English. Use when the user runs /desplega:comms, types /bro, says 'say it simpler', 'bro what', 'I don't follow', 'show me', 'draw this', 'visualize', 'disambiguate this', or 'STE100 rewrite'. Not for creative or marketing copy./delegate-workExecutor routing policy for ALL delegated work — pick the right model for every sub-agent and the right Codex variant for every implementation slice. Use whenever you are about to spawn a sub-agent/Task (research, review, QA, UI, search), whenever a desplega skill (implement-plan, v-implement, run-phase, run-step, research) is choosing executors for phases/steps, or when the user says "implement with codex", "delegate this", "which model should do this", or similar. Supersedes codex-implement (its worktree/exec mechanics live here).Other plugins' skills for the same job