agentleFS
kirkchenkirkchen/beat/skills/plan/SKILL.md

plan

Skill9 starsChanged 7 months agoMITView on GitHub

Use when breaking down a Beat change spec into tasks — not for spec creation or implementation

184 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use heartmula, webhook-subscriptions and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • math-incSkill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 9 projects that use this

  • Tommy-ywSkill

    webhook-subscriptions

    Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.

    Also in 5 projects that use this

  • math-incSkill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 5 projects that use this

  • john-data-chenSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 6 projects that use this

  • gaebalaiSkill

    codex-system

    PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".

    Also in 3 projects that use this

  • ibahgatSkill

    context-optimize

    Improve context efficiency and cache stability for long or complex sessions.

    Also in 3 projects that use this

  • +3 more from math-inc

The file

Show its rules and text

We split this skill into the rules it gives an agent

36 rules. 0 are common, 21 are distinctive, and 15 are very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 21

    Distinctive

    This author's own choices. Worth a look.

  • 15

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Should NOT trigger: "design a new feature" / "write gherkin for X" / "implement the change"

    line 23
  2. Distinctive:

    Before writing any files: you MUST invoke superpowers:using-git-worktrees.

    line 28
  3. Distinctive:

    Do NOT create tasks from a description alone — spec artifacts are the input.

    line 33
  4. Very specific:

    When the multi-role review rejects an alternative with a load-bearing reason that would otherwise have to be re-litigated by future …

    line 35
  5. Distinctive:

    If a prerequisite skill is unavailable (not installed), continue with fallback — but NEVER skip because you judged it unnecessary.

    line 40
  6. Distinctive:

    If a superpower is unavailable (skill not installed), skip and continue.

    line 51
  7. Distinctive:

    If no name provided:

    line 132
  8. Very specific:

    Look for beat/changes/ directories (excluding archive/)

    line 133
  9. Distinctive:

    If only one exists, use it (announce: "Using change: <name>")

    line 134
  10. Distinctive:

    If multiple exist, use AskUserQuestion tool to let user select

    line 135
  11. Very specific:

    Read status.yaml (schema: references/status-schema.md).

    line 143
  12. Very specific:

    If neither condition is met: "Spec artifacts are required before task breakdown.

    line 149
  13. Very specific:

    If status.yaml has source: distill: warn — "This is a distill change.

    line 151
  14. Very specific:

    If tasks already has status: done: "Tasks already exist.

    line 153
  15. Distinctive:

    Read all available artifacts:

    line 155
  16. Very specific:

    Read beat/config.yaml if it exists (schema: references/config-schema.md).

    line 160
  17. Very specific:

    Use AskUserQuestion tool (unattended: take the suggested roles, record in assumed.md):

    line 174
  18. Distinctive:

    Test coverage is always included.

    line 191
  19. Very specific:

    If writing-plans is unavailable (not installed), create tasks.md as fallback with notice: <!-- Generated without writing-plans.

    line 200
  20. Distinctive:

    "And then" test: if a task description needs "and then", split it.

    line 209
  21. Very specific:

    Read review-subagent-prompt.md for the subagent prompt template.

    line 227
  22. Distinctive:

    All spec artifacts (proposal, gherkin, design)

    line 235
  23. Distinctive:

    Do NOT pass conversation history or session context to any agent.

    line 238
  24. Very specific:

    Fallback: If any agent fails or returns empty, proceed with findings from the others.

    line 242
  25. Distinctive:

    When findings conflict, prefer the more conservative recommendation

    line 248
  26. Very specific:

    Read beat/changes/<name>/tasks.md, then use the Edit tool to apply:

    line 262
  27. Distinctive:

    Add missing tasks or steps identified by the review

    line 263
  28. Distinctive:

    Add test coverage notes where the review found gaps

    line 265
  29. Very specific:

    Update status.yaml: set tasks to { status: done } and phase to tasks.

    line 277
  30. Very specific:

    Commit tasks.md, updated status.yaml, and every living-documentation file this run wrote — an ADR recorded at the review's ADR gate (plus …

    line 281
  31. Distinctive:

    Use a descriptive message, e.g.

    line 292
  32. Very specific:

    Update phase to implement in status.yaml (advancing from tasks → implement), then run node <skill-dir>/scripts/validate-beat.mjs --file …

    line 294
  33. Distinctive:

    NEVER proceed without at least one spec artifact (gherkin or proposal) being done

    line 309
  34. Distinctive:

    NEVER write tasks inline — always use writing-plans (or fallback with notice)

    line 310
  35. Distinctive:

    Test coverage review is always included regardless of complexity

    line 312
  36. Distinctive:

    If review reveals spec-level issues (missing scenarios, design gaps), surface them to the user rather than silently compensating in tasks …

    line 314

“Common” is measured: kept by at least 6 in 10 of the 167 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Plan the execution — read spec artifacts, review from multiple perspectives, then generate tasks.md.

<decision_boundary>

Use for:

  • Breaking down spec artifacts into implementation tasks (tasks.md)
  • Multi-role review of an execution plan before implementation
  • Re-generating or updating tasks for an existing change

NOT for:

  • Creating spec artifacts like proposal, gherkin, or design.md (use /beat:design)
  • Exploring ideas or investigating a problem (use /beat:explore)
  • Implementing code (use /beat:apply)
  • Verifying implementation (use /beat:verify)

Trigger examples:

  • "Break down the tasks" / "Create execution plan" / "Plan the implementation" / "Review and generate tasks"
  • Should NOT trigger: "design a new feature" / "write gherkin for X" / "implement the change"

</decision_boundary>

<HARD-GATE> 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. </HARD-GATE>

Prerequisites (invoke before proceeding)

SuperpowerWhenPriority
using-git-worktreesBefore first file writeMUST
writing-plansWhen creating tasksMUST

If a superpower is unavailable (skill not installed), skip and continue.

Unattended mode

When the run carries a stage-result nonce (see references/handoff-report.md), nobody is watching: follow references/unattended-mode.md. Every AskUserQuestion in this skill becomes a default (recorded in beat/changes/<name>/decisions/assumed.md), a decision brief (references/decision-brief.md, blocked-on: decision), or an environmental stop (blocked-on: env). The per-skill table in that reference says which. For plan specifically: use the suggested review roles; a review finding that changes what gets built becomes a brief, one that only reshapes tasks is applied and noted.

Rationalization Prevention

ThoughtReality
"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 get the test coverage check — the preset decides how many roles, never whether to review. minimal/technical means one role, not zero.
"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.

Red Flags — STOP if you catch yourself:

  • Writing any file before invoking using-git-worktrees
  • Writing - [ ] task checkboxes without having invoked writing-plans
  • Creating tasks without reading spec artifacts first
  • Thinking "review isn't needed for this particular change"
  • Skipping a MUST prerequisite and planning to "compensate" later
  • Proceeding without at least one spec artifact (gherkin or proposal) being done
  • Merging a review rejection into tasks.md without checking whether it qualifies as an ADR

Process Flow

digraph 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];
    "Preset minimal/technical?" [shape=diamond];
    "Test-coverage role only" [shape=box];
    "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" -> "Preset minimal/technical?" [label="spec ready"];
    "Preset minimal/technical?" -> "Test-coverage role only" [label="yes"];
    "Preset minimal/technical?" -> "Assess complexity" [label="no"];
    "Test-coverage role only" -> "Invoke writing-plans";
    "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

  1. Select the change

    If no name provided:

    • Look for beat/changes/ directories (excluding archive/)
    • If only one exists, use it (announce: "Using change: <name>")
    • If multiple exist, use AskUserQuestion tool to let user select
  2. 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.

  3. Read spec artifacts and verify readiness

    Read status.yaml (schema: references/status-schema.md).

    Check that either:

    • gherkin has status: done → Gherkin-driven
    • gherkin has status: skipped AND proposal has status: done → Proposal-driven

    If 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.

  4. Assess change complexity and suggest review roles

    Preset minimal or technical (from status.yaml): the review is the Test coverage role alone. Say so in one line, skip the AskUserQuestion below, and go to step 5. The user can still ask for more roles; /beat:apply upgrades the preset if the change turns out bigger.

    Otherwise, evaluate complexity based on:

    • Number of feature files and scenarios
    • Number of components/services mentioned in design.md
    • Whether @e2e scenarios exist (implies integration surface)
    • Whether design.md mentions external dependencies, DB changes, or API changes

    Suggest review roles based on complexity:

    Use AskUserQuestion tool (unattended: take the suggested roles, record in assumed.md):

    "Based on the spec artifacts, I suggest the following review perspectives: [dynamically selected roles with rationale]

    Adjust, add, remove, or confirm?"

    Role selection guidance:

    SignalSuggested role
    Always includedTest coverage: Are all scenarios covered? Any gaps?
    @e2e scenarios presentIntegration: Are integration boundaries identified?
    design.md mentions API/DB changesArchitecture: Is the design consistent with existing patterns?
    proposal.md mentions user-facing changesUser experience: Does the plan match user expectations?
    design.md mentions auth/data/external APIsSecurity: Are there security considerations?
    High scenario count (>5) or multiple featuresScope: 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.

  5. 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:

    • Single concern: one component, service, or API endpoint per task. "Build X and integrate into Y" = two tasks.
    • ~200 LOC cap: each task produces ~200 lines of new code (excluding tests). More = too many responsibilities.
    • 2-3 files max: each task touches at most 2-3 source files. More = crossing concern boundaries.
    • Independently verifiable: can run tests after completing without depending on later tasks.
    • "And then" test: if a task description needs "and then", split it.
    • Exception: project initialization/scaffolding tasks may exceed file limits while maintaining single concern.

    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.

  6. Dispatch review agents

    Read review-subagent-prompt.md for the subagent prompt template.

    Dispatch strategy based on confirmed role count:

    • 1–2 roles: Single Agent (subagent_type: Explore) with all confirmed roles. Build one prompt containing all roles and their focus areas.
    • 3+ roles: One Agent (subagent_type: Explore) per role, dispatched in parallel. Each agent receives ONLY its own role and focus area — no knowledge of other roles.

    Every agent receives:

    • All spec artifacts (proposal, gherkin, design)
    • The initial tasks.md

    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."

  7. Merge findings and update tasks.md

    Collect findings from all review agents. If parallel agents were used:

    • Deduplicate findings that identify the same issue from different roles
    • When findings conflict, prefer the more conservative recommendation

    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:

    1. Hard to reverse?
    2. Surprising without context?
    3. Result of a real trade-off?

    If all three hold, use AskUserQuestion tool: "Review rejected '<alt>' because '<reason>' — record as ADR?" On Yes, follow "Before writing an ADR" in references/adr-format.md (apply config rules.adr; use the project's docs/adr/TEMPLATE.md if it exists, otherwise Beat's front-matter template with source: beat/changes/<name>), write the ADR under docs/adr/, increment numbering, cross-reference from tasks.md or design.md as appropriate. On No, continue. Step 8 commits the ADR together with tasks.md.

    Read beat/changes/<name>/tasks.md, then use the Edit tool to apply:

    • Add missing tasks or steps identified by the review
    • Split tasks that the review flagged as too broad
    • Add test coverage notes where the review found gaps
    • Reorder tasks if the review identified dependency issues

    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.

  8. Commit and advance phase

    Commit tasks.md, updated status.yaml, and every living-documentation file this run wrote — an ADR recorded at the review's ADR gate (plus any ADR index the project keeps under docs/adr/) belongs in the same commit as the tasks it came from:

    git add beat/changes/<name>/
    git add docs/adr/NNNN-<slug>.md   # only if this run wrote an ADR, by file name
    git add docs/adr/<index-file>     # only if the project keeps an ADR index there and this run updated it
    git commit

    Stage files by name, never docs/adr/ as a directory: a path is staged when git status shows it and this run wrote it; a path modified by the user outside this run stays unstaged.

    Use a descriptive message, e.g. "plan(<name>): add task breakdown".

    Update phase to implement in status.yaml (advancing from tasks → implement), then run node <skill-dir>/scripts/validate-beat.mjs --file beat/changes/<name>/status.yaml (see references/lint-tools.md) and fix anything it reports.

    ## 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.

    Then end with the handoff block from references/handoff-report.md (next: /beat:apply <name>). In unattended mode read beat/changes/<name>/decisions/sensitive.md: when it says yes, print the plan brief (references/decision-brief.md "Plan brief") as the last thing before the block and set sensitive=yes in the suffix — the orchestrator stops once here and, on /answer continue, moves to apply without re-running plan. Otherwise sensitive=no. A decision brief, when written, is likewise printed last with blocked-on: decision and next pointing back at this command.

Guardrails

  • NEVER proceed without at least one spec artifact (gherkin or proposal) being done
  • NEVER write tasks inline — always use writing-plans (or fallback with notice)
  • Review is part of the process, not optional — but depth scales with complexity
  • Test coverage review is always included regardless of complexity
  • Apply review findings directly to tasks.md, not as a separate report
  • If review reveals spec-level issues (missing scenarios, design gaps), surface them to the user rather than silently compensating in tasks (unattended: a brief when it changes what gets built)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.