/powerups:plan-driven-developmentfrom powerups
Guides feature development with structured planning: versioned plan files for large features, inline lightweight plans for smaller ones. Handles context resumption, progress tracking, and multi-agent coordination.
Ships in powerups. 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.
Large features get a versioned plan file in plans/ that serves as the single source of truth — what's been done, what's in progress, and what's left. The plan persists across context windows so any agent (or agent team) can pick up where the last one left off.
PDD requires powerups:best-practices — invoke it, don't just reference it. Every practice there is mandatory here; PDD adds planning infrastructure on top. If you're unsure whether a best-practice applies: it does.
PDD can be invoked for features of any size. The difference is whether you write a plan file.
Write a plan file (plans/v{N}-*.md) when:
Use lightweight mode (plan inline, no file) when:
In lightweight mode, still write a plan — present it inline for user review instead of writing a file: what you're changing, which files are affected, impact scan results, and the approach. Get approval before coding. All other PDD rules still apply: invoke powerups:best-practices, run the skill audit, branch, run the capped grilling session (workflow step 7), TDD, and run the post-completion audit.
On every session start for feature work:
Explore subagent to check plans/ for an existing plan. Plan files are large — never read them directly in the main conversation. The subagent returns a concise summary: current milestone, next unchecked task, blockers, key design decisions.plans/
├── v0-initial-build.md
├── v1-auth-and-production-readiness.md ← initial plan
├── v1-auth-and-production-readiness-r2.md ← revised (approach changed)
├── v2-multi-provider-support.md
└── ...
Naming: v{N}-{short-action-description}.md (initial), v{N}-{description}-r{R}.md (revisions)
v{N} — sequential version number (check existing files for the next number){short-action-description} — lowercase, hyphens, action-oriented (e.g., multi-provider-support)-r{R} — revision suffix for major changes (r2, r3, …). The initial version has no suffix.plans/ doesn't exist, create itTitle inside the file should match: # v1-r2: Auth & Production Readiness (WorkOS)
Create a revision (new -r{R} file) when: the core technical approach changes, major scope is added/removed, or the architecture fundamentally shifts. Not for: checking off tasks, small task edits, or wording. Previous revision files stay in plans/ as history — never delete the original.
Every plan has these sections:
What problem this solves, why it's being built, key relationships and constraints. Written so an agent with zero prior context understands the full picture.
Data models, API endpoints, flow diagrams, key decisions and their rationale. Enough detail that implementation doesn't require guessing.
Include for: complex refactors, upgrades to existing systems, anything changing behavior users rely on, or features where multiple actors interact with overlapping states. Skip for: lightweight mode and simple additive features. Plans written from a single happy-path perspective miss the failure modes and state interactions that cause production incidents — this section forces the enumeration while gaps are still cheap to fix.
How to build the map:
Table format:
### A — [Actor name, e.g., "Admin dashboard user"]
| # | State | What happens | Plan coverage |
|---|---|---|---|
| A1 | Feature off, no connection | Existing behavior unchanged | OK |
| A2 | Feature on, mid-flow disconnect | ??? | Gap — decide fallback |
| A3 | Feature on, API 5xx on write | Fall back vs hard fail | Gap — ask user |
Group rows by actor (A, B, C…). One line per row — detail lives in the milestone task.
Turn gaps into actions before plan approval. Each Gap row becomes one of: (a) a new milestone task, (b) an explicit "out of scope" note with a one-line rationale, or (c) an AskUserQuestion whose answer gets folded back in. Never leave a gap unresolved — an unresolved gap in the plan becomes a bug in production.
(Real example: a ticket-routing upgrade's scenario map surfaced mid-chat API failure handling, whether disconnecting a connector should reset a toggle, duplicate ticket creation on double-submit, and toggle-off confirmation — none obvious from the happy-path design, each changed a milestone.)
The core of the plan. Each milestone is a logical chunk of work:
### Milestone N: Short Name
**Goal:** One sentence.
Tests first (these will fail until implementation):
- [ ] Write failing tests for X
Then implement to make tests pass:
- [ ] Implement X
**Verification:**
- [ ] How to confirm this milestone is done
TDD is required by default. Every milestone that adds or changes behavior lists test tasks before implementation tasks, unless the user explicitly opts out ("skip tests"). Pure refactors of already-tested code need no new tests, but existing tests must pass.
A user-visible feature's last milestone is the marketing surfaces (see below), not the code. Shipping the code and stopping means the feature exists and nobody outside the dashboard knows it does.
Rules:
src/auth/models.py" not "Set up auth"), with file paths where relevant- [x]) as they complete; never remove completed tasks — they're the historyThe last milestone for a user-visible feature is the public side. powerups:marketing-surfaces owns it entirely — the surface list, the audience per surface, and how each is verified. PDD adds one rule: write the milestone as one task per surface from that skill's list, so nothing hides behind a single "marketing" checkbox. Read that skill while planning so the tasks match how the marketing repo actually publishes.
At-a-glance status at the bottom of the file; update as milestones progress:
| Milestone | Status | Notes |
|-----------|--------|-------|
| 1. Name | Done | |
| 2. Name | In progress | Blocked on X |
The plan file is the shared coordination point — all agents read from and write to it. Identify milestones/tasks with no dependencies between them and spawn subagents to work them concurrently (e.g., one builds auth models while another builds rate limiting); each agent checks off its own tasks. Never parallelize sequential tasks.
Every agent prompt must include: a reference to the plan file ("Read plans/v{N}-{description}.md for full context"), which milestone/tasks the agent owns, and the TDD requirement (failing tests first).
Set /effort max — planning requires deep reasoning.
Check plans/ — find the next version number.
Create a feature branch FIRST — git checkout -b feat/{description}. Never write plans or code on main — even the plan commit goes on a branch.
Invoke powerups:best-practices — actually invoke it, so branching, investigation, and the impact scan happen before any code or plan is written.
Skill audit — required before writing the plan. List every available powerups skill by name; for each, state whether it applies to this feature and why. Output the analysis to the user.
Skill audit for v10-sync-change-details:
- best-practices: YES — always applies (already invoked)
- user-research: YES — user-facing feature; ran discovery brief before this plan
- test-driven-development: YES — new backend logic needs tests
- simple-design-principles: YES — frontend UI with user-facing copy
- self-documenting-apis: YES — new API endpoint
- change-log: YES — user-facing; one CHANGELOG.md line when the feature completes
- update-docs: YES — CLAUDE.md env table and the connector guide will drift
- marketing-surfaces: YES — merchants can see this; final milestone, one task per surface
- mockups: YES — invoked by marketing-surfaces for the screenshots
- bug-fix: NO — this is a new feature, not a bug fix
If marketing-surfaces is YES, the plan gets a final milestone for it (see section 5). If NO — internal refactor, infra, dev-only tooling — say so in one line and move on.
Every YES skill must appear as an explicit task or note in the relevant milestone. Don't rely on remembering — write it into the plan.
Run powerups:user-research (user-facing features only) — BEFORE writing the plan. Its brief feeds the Context and Design sections and turns silent assumptions into explicit decisions. Get the requester's answers to the hand-off questions first. That skill owns the skip conditions.
Grill the requester — capped at 5–10 questions. Invoke the grilling skill (Matt Pocock's skills, not bundled with powerups) on the feature idea: requirements, scope, edge cases, tradeoffs, what "done" means. Hard cap: 5–10 questions total — pick the highest-leverage ones, not grilling's default relentless depth; a planning session is not an interrogation. One question at a time, each with 2–4 suggested answers and a recommended pick (use AskUserQuestion — recommended option first, labeled "(Recommended)"). Stop early once the plan's open decisions are resolved. If the skill isn't installed, ask the user if they'd like to install it (install instructions at the repo above); either way, proceed with the same capped, one-at-a-time questioning via AskUserQuestion.
Create plans/v{N}-{description}.md
Write Context and Design sections — grounded in the user-research brief when one was produced.
Scenario map — build it per section 3 above for complex refactors/upgrades; resolve every gap before approval.
Write the Milestones — include the skill tasks from step 5 and the gap-closing tasks from step 10.
Get user approval on the plan before coding.
Identify which milestones/tasks can be parallelized.
Begin work — spawn subagents for independent pieces.
Run /update-docs to check if the planning investigation revealed stale documentation (outdated CLAUDE.md entries, incorrect API references in sibling repos). Fix staleness before implementing.
Follow the session-start rule from "When to Use": Explore subagent summarizes the plan, you orient from the summary, find the first unchecked task, and continue from there.
powerups:best-practices at the task level — the plan organizes the work; best-practices governs how each task is executed.-r2) rather than editing in place.The moment implementation diverges from what's written, the plan stops being trustworthy and any agent resuming from it repeats a failed approach. When a decision changes mid-flight, update the plan in the same commit as the code.
This rule covers small/medium drift — a changed decision, an approach that didn't work, a different library. For fundamental changes, use the -r{R} revision mechanism instead.
Update additively — never rewrite history:
> **Revised ({YYYY-MM-DD}):** callout: what was planned, what you actually did, why it changed.~~superseded — see revised note~~, never deleted.- [x] Use Redis for OTP storage with 5-minute TTL
> **Revised (2026-05-10):** Switched to Postgres with an `expires_at` column.
> Redis would have required a new dependency for one feature; the existing
> Postgres connection handles this with no infra change.
- [x] Add `expires_at` column and cleanup job for OTP rows
When a milestone completes, stop and let the user test manually before moving on:
The audit gates the PR. Output it to the user before creating the PR — each step, its status, and evidence. Do not create the PR until every item is DONE or N/A — except marketing surfaces, where DRAFTED (triage complete, drafts approved by the user) is the passing state, because the marketing PR can't open until the feature is live.
Each line is one skill invoked as a self-contained step; the skill owns its own checklist and output format, and the audit records the result.
Post-completion audit:
1. Skill audit review: DONE — all 9 YES skills executed (best-practices, user-research, TDD, simple-design, self-documenting-apis, change-log, update-docs, marketing-surfaces, mockups)
2. Drift audit: DONE — additive: 7 unplanned widgets + 3 deps recorded in plan;
subtractive: 4 orphan files deleted, 2 completed Post-MVP items removed
3. /simplify: DONE — deleted 200 lines dead code, fixed 3 issues
4. change-log: DONE — added entry "Your assistant can now..."
5. update-docs: DONE — CLAUDE.md and connector guide updated
6. Marketing surfaces: DRAFTED — 9-line surface report below; drafts approved, ../answerhq-web PR opens after deploy
7. Linter: DONE — no new warnings
8. Full test suite: DONE — 133 passed, 0 failed
9. PR ready: YES — manual verification steps included
The steps:
powerups:drift-audit — invoke it; it owns the detail. It runs BEFORE /simplify so the cleanup is informed by both directions of drift.powerups:best-practices practice #9 — /simplify, powerups:change-log, update-docs, powerups:marketing-surfaces, lint, full test suite, in that order. Each skill is invoked, not paraphrased. For marketing-surfaces, paste that skill's own per-surface report (one line per surface, DRAFTED/DONE with evidence or N/A with a reason) under line 6 — a lumped "marketing: DONE" is not acceptable. What gates the feature PR is the triage plus user-approved drafts; the marketing PR itself opens, merges and publishes only after the feature is live (that skill's "gate on live" rule), so come back and flip line 6 to DONE with the PR link once it ships. A green full suite is a hard gate: tests and code drift independently (fixtures on old table names while code uses new ones), and a full run is the only way to catch it.Every PR includes a Manual verification section reviewers can follow. Automated tests verify code correctness — manual steps verify feature correctness.
## Manual verification
### 1. Creating a new widget
1. Start local dev (`npm run dev`)
2. Navigate to the dashboard → Widgets page
3. Click "Create Widget", fill in name: "Test Widget", theme: "Dark", Save
4. **Verify:** Widget appears in the list with name "Test Widget" and dark theme badge
5. **Verify:** Toast shows "Widget created"
### 2. Edge case: duplicate name
1. Create another widget named "Test Widget"
2. **Verify:** Error "A widget with this name already exists"; no duplicate in the list
### 3. No regressions
- [ ] Existing widgets still display correctly
- [ ] Delete widget still works
Never write vague test plans ("verify it works"). Every step should be reproducible by someone who has never seen the feature.
If code is reverted, the plan reverts too: uncheck the rolled-back tasks (- [x] → - [ ]) and update the progress table. The plan must always match reality.
All checkboxes checked, progress table all "Done", plan stays in plans/ as historical record. The marketing milestone's tasks are checked off after deploy, when the marketing PR lands — a plan with a shipped feature and an open marketing milestone is still in progress, not done.
| Mistake | Fix |
|---|---|
Starting to code without checking plans/ | Always check first — you may be mid-feature |
| Vague tasks ("set up auth") | Be specific: file paths, endpoint names, model fields |
| Creating a plan file for a 10-minute fix | Use lightweight mode — no file, but all PDD rules still apply |
| Tracking progress elsewhere (todos, comments) | The plan file is the single source of truth |
| Shipping the code and calling the feature done | User-visible features aren't done until powerups:marketing-surfaces reports every surface DONE or N/A |
| Restating another skill's checklist in the plan | Invoke the skill (change-log, update-docs, marketing-surfaces, mockups) and record its output — it owns the detail |
| Skipping the full suite before the PR | Tests and code drift independently (fixtures on old table names). A full run is the only way to catch it |
| Implementing differently than planned without updating the plan | Add a > **Revised:** note in the same commit as the code. The drift audit is the last chance to catch this before the PR |
What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/best-practicesUse for any code change — bug fix, small feature, refactor, or improvement. Ensures TDD, clarifying questions, codebase investigation, DRY, proper branching/worktrees, UI skills, and doc updates. PDD invokes this automatically for large features./bug-fixUse when fixing a bug — enforces reproduce-first-then-fix discipline with a strict step-by-step protocol. Prevents wrong-approach loops by gating each step on success criteria./change-logUse after completing a feature or bug fix to log the change in CHANGELOG.md using plain, business-user-friendly languagenpx claudepluginhub jackyliang/powerups --plugin powerupsOther plugins' skills for the same job