بنقرة واحدة
plan
Use when breaking down a Beat change spec into tasks — not for spec creation or implementation
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when breaking down a Beat change spec into tasks — not for spec creation or implementation
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when implementing a Beat change — requires gherkin or proposal artifact to be done first
Use when a Beat change is complete (implemented, or distilled and verified) and ready to archive — not for verifying implementation
Use when starting a Beat change to create spec artifacts — not for task breakdown, implementation, or exploration
Use when extracting BDD specs from existing code — for adopting Beat in an established codebase or distilling a module into feature files
Use when validating implementation against spec artifacts before archive — not for design, planning, or implementation
Use when thinking through ideas, investigating problems, or clarifying requirements — before or during a Beat change
| name | plan |
| description | Use when breaking down a Beat change spec into tasks — not for spec creation or implementation |
Plan the execution — read spec artifacts, review from multiple perspectives, then generate tasks.md.
<decision_boundary>
Use for:
NOT for:
/beat:design)/beat:explore)/beat:apply)/beat:verify)Trigger examples:
</decision_boundary>
Before writing any files: you MUST invoke superpowers:using-git-worktrees. You MUST invoke superpowers:writing-plans to generate tasks. Do NOT write tasks inline. writing-plans IS the task creation process. This applies regardless of change complexity or time pressure.You MUST have at least one spec artifact done (gherkin or proposal) before proceeding. Do NOT create tasks from a description alone — spec artifacts are the input.
When the multi-role review rejects an alternative with a load-bearing reason
that would otherwise have to be re-litigated by future reviewers: you MUST
run the three-condition ADR gate (see references/adr-format.md) and offer
to record an ADR. User may decline.
If a prerequisite skill is unavailable (not installed), continue with fallback — but NEVER skip because you judged it unnecessary.
Prerequisites (invoke before proceeding)
| Superpower | When | Priority |
|---|---|---|
| using-git-worktrees | Before first file write | MUST |
| writing-plans | When creating tasks | MUST |
If a superpower is unavailable (skill not installed), skip and continue.
| Thought | Reality |
|---|---|
| "I don't need a worktree, design already committed the artifacts" | Design may not have run, or the worktree may not exist yet. using-git-worktrees is idempotent — if already isolated, it detects and continues. |
| "This change is simple enough to write tasks inline" | Simple changes finish writing-plans quickly. Complex changes need it most. There is no middle ground where skipping helps. |
| "I already understand the scope from the proposal/gherkin" | Understanding scope ≠ properly decomposed tasks. writing-plans catches scope gaps you haven't noticed. |
| "The user wants speed, invoking superpowers will slow us down" | Skipping prerequisites produces lower-quality tasks that cause rework during apply. |
| "The spec artifacts are clear enough, review is overkill" | Review catches blind spots that the spec author can't see. The more obvious the spec seems, the more likely assumptions are hiding. |
| "I'll skip review for this small change" | Small changes still benefit from a test coverage check. Review scales with complexity — it's fast for simple changes. |
| "The review rejected option X — let's just note it in tasks.md" | If the rejection reason is load-bearing for future reviewers, it'll be re-litigated. Run the ADR gate; if all three conditions hold, write the ADR. |
- [ ] task checkboxes without having invoked writing-plansdigraph plan {
"Select change" [shape=box];
"Invoke using-git-worktrees" [shape=box, style=bold];
"Read spec artifacts" [shape=box];
"Check readiness" [shape=diamond];
"STOP: need spec first" [shape=box, style=dashed];
"Assess complexity" [shape=box];
"Suggest review roles" [shape=box];
"User confirms roles" [shape=box];
"Invoke writing-plans" [shape=box, style=bold];
"Generate initial tasks.md" [shape=box];
"Role count?" [shape=diamond];
"Single review agent\n(all roles)" [shape=box, style=bold];
"Parallel review agents\n(1 per role)" [shape=box, style=bold];
"Merge findings +\nupdate tasks.md" [shape=box];
"Advance to implement" [shape=box];
"Show summary" [shape=doublecircle];
"Select change" -> "Invoke using-git-worktrees";
"Invoke using-git-worktrees" -> "Read spec artifacts";
"Read spec artifacts" -> "Check readiness";
"Check readiness" -> "STOP: need spec first" [label="no spec done"];
"Check readiness" -> "Assess complexity" [label="spec ready"];
"Assess complexity" -> "Suggest review roles";
"Suggest review roles" -> "User confirms roles";
"User confirms roles" -> "Invoke writing-plans";
"Invoke writing-plans" -> "Generate initial tasks.md";
"Generate initial tasks.md" -> "Role count?";
"Role count?" -> "Single review agent\n(all roles)" [label="1-2 roles"];
"Role count?" -> "Parallel review agents\n(1 per role)" [label="3+ roles"];
"Single review agent\n(all roles)" -> "Merge findings +\nupdate tasks.md";
"Parallel review agents\n(1 per role)" -> "Merge findings +\nupdate tasks.md";
"Merge findings +\nupdate tasks.md" -> "Commit tasks";
"Commit tasks" [shape=box];
"Commit tasks" -> "Advance to implement";
"Advance to implement" -> "Show summary";
}
Input: Optionally specify a change name. If omitted, infer from context or prompt.
Steps
Select the change
If no name provided:
beat/changes/ directories (excluding archive/)Ensure worktree isolation
Invoke using-git-worktrees before reading or writing any files. If already in a worktree (e.g., from design), it detects and continues.
Read spec artifacts and verify readiness
Read status.yaml (schema: references/status-schema.md).
Check that either:
gherkin has status: done → Gherkin-drivengherkin has status: skipped AND proposal has status: done → Proposal-drivenIf neither condition is met: "Spec artifacts are required before task breakdown. Run /beat:design first." STOP.
If status.yaml has source: distill: warn — "This is a distill change; it describes current behavior, so there is nothing to plan. The intended flow is /beat:verify → /beat:archive." Use AskUserQuestion tool to confirm before proceeding.
If tasks already has status: done: "Tasks already exist. Re-running will regenerate tasks.md." Confirm with user before proceeding.
Read all available artifacts:
proposal.md (if exists)features/*.feature (all files, if gherkin is done)design.md (if exists)Read beat/config.yaml if it exists (schema: references/config-schema.md). Use language for output language, inject context, and apply rules.tasks as additional constraints.
Assess change complexity and suggest review roles
Evaluate complexity based on:
@e2e scenarios exist (implies integration surface)Suggest review roles based on complexity:
Use AskUserQuestion tool:
"Based on the spec artifacts, I suggest the following review perspectives: [dynamically selected roles with rationale]
Adjust, add, remove, or confirm?"
Role selection guidance:
| Signal | Suggested role |
|---|---|
| Always included | Test coverage: Are all scenarios covered? Any gaps? |
@e2e scenarios present | Integration: Are integration boundaries identified? |
| design.md mentions API/DB changes | Architecture: Is the design consistent with existing patterns? |
| proposal.md mentions user-facing changes | User experience: Does the plan match user expectations? |
| design.md mentions auth/data/external APIs | Security: Are there security considerations? |
| High scenario count (>5) or multiple features | Scope: Is the decomposition granular enough? |
Test coverage is always included. Other roles are suggested dynamically. The user can add custom roles (e.g., "performance", "accessibility") or remove suggested ones.
Generate initial tasks via writing-plans
Invoke superpowers:writing-plans. Pass the completed artifacts (proposal, gherkin, design) as context.
The output of writing-plans becomes the initial tasks.md — do NOT generate tasks.md yourself.
If writing-plans is unavailable (not installed), create tasks.md as fallback with notice:
<!-- Generated without writing-plans. Consider re-running with superpowers plugin. -->
Task Decomposition Principles — if writing-plans output violates any principle, decompose further before saving tasks.md:
Quality Principles header — insert the following block between the tasks.md header and the first ### Task:
## Quality Principles
**Testing:** Tests verify behavior (return values, state changes, responses), not wiring.
If the main assertion is `toHaveBeenCalledWith`, rewrite to assert on the function's output.
**Code:** No single new file exceeds ~300 lines. If it grows past that, split into focused sub-modules.
Save the initial tasks.md to beat/changes/<name>/tasks.md.
Dispatch review agents
Read review-subagent-prompt.md for the subagent prompt template.
Dispatch strategy based on confirmed role count:
Explore) with all confirmed roles. Build one prompt containing all roles and their focus areas.Explore) per role, dispatched in parallel. Each agent receives ONLY its own role and focus area — no knowledge of other roles.Every agent receives:
Do NOT pass conversation history or session context to any agent.
Why parallel at 3+: A single agent reviewing from many perspectives simultaneously loses depth and independence — findings from one role bias another. Independent agents give genuine blind-spot coverage. At 1–2 roles the overhead isn't worth the split.
Fallback: If any agent fails or returns empty, proceed with findings from the others. If ALL fail, use initial tasks.md as-is. Show notice: "Review could not be completed — tasks.md was not reviewed. Consider re-running /beat:plan."
Merge findings and update tasks.md
Collect findings from all review agents. If parallel agents were used:
ADR gate on rejected alternatives — scan the review output for cases
where an alternative approach was considered and rejected with a
load-bearing reason (i.e. a reason a future reviewer would want to know
about to avoid re-suggesting the same thing). For each, run the three
conditions from references/adr-format.md:
If all three hold, use AskUserQuestion tool: "Review rejected '' because '' — record as ADR?" On Yes, write the ADR under docs/adr/, increment numbering, cross-reference from tasks.md or design.md as appropriate. On No, continue.
Read beat/changes/<name>/tasks.md, then use the Edit tool to apply:
Show the user a brief summary of what changed:
## Review Applied
- [Role]: <what was changed>
- [Role]: <what was changed>
...
Update status.yaml: set tasks to { status: done } and phase to tasks.
Commit and advance phase
Commit tasks.md and updated status.yaml: git add beat/changes/<name>/ && git commit
Use a descriptive message, e.g. "plan(): add task breakdown".
Update phase to implement in status.yaml (advancing from tasks → implement).
## Plan Complete: <change-name>
Tasks: N tasks in tasks.md
Review: [list of roles that reviewed]
Changes from review: [count of modifications]
Ready for implementation! Run `/beat:apply` to start.
Guardrails