Cap write plan

From aturzone/Skull · View interactive version

Cap write plan is an AI agent skill from the GitHub repository aturzone/Skull. Turn an approved spec + decomposition into a precise, zero-context implementation plan document that another engineer (or a fresh subagent) can execute with no prior knowledge. Triggers on "write the plan", "write an implementation plan", "turn this spec into a plan", or after grill-me/cap-spec-smit

How to use this skill

Skill file

Write the plan — a zero-context, executable build document

A spec says what and why; a plan says exactly how, task by task, so precisely that someone with **no

prior context** (a teammate, a fresh subagent) can build it correctly without guessing. If a step makes the

reader infer, it isn't done. Write it before any code.

Inputs & output

No spec yet? Stop and get one first — don't plan against a fuzzy goal.

independently testable and shippable.

Plan header (required)

line. These bind every task; the executor and any reviewer read them literally.

(subagent-orchestration) — so the executor routes correctly.

Per-task block (required)

Size each task to the smallest unit worth its own review gate — fold its setup/config/scaffolding/docs

into it. Then specify:

from earlier tasks) and a Produces: list (exact function names + param/return types it exposes

downstream). Required because a task's implementer sees only their own task — with no interface

contract it invents a shape the next task can't call. cap-execute-plan checks these Consumes exist

before it implements a task, so a plan that omits them stalls execution — write them so the two never disagree.

write failing test → run it (see it fail for the right reason) → minimal code → run (see it pass) → commit.

Each step has the complete code (no pseudocode), the exact command, and its expected output.

No placeholders (the ban list)

Write for a hostile reader — "an enthusiastic junior with poor taste, no judgement, no project context,

and an aversion to testing." They do exactly what the plan says and nothing it merely implies, so a vague

step becomes a wrong one. "Add appropriate error handling" is a plan failure, not a note — say exactly what.

specific ones.

expected output. Apply DRY / YAGNI; commit at each green step.

Self-review before you hand it off

  1. Coverage: map every spec requirement → a task; add any missing.
  2. Placeholders: scan for the ban list above; resolve each.
  3. Type consistency: every task's Consumes signatures actually exist in some earlier task's Produces.
  4. Right-sized: a reviewer could accept/reject each task independently; no task is too big to verify.

Hand off

Pass the plan to cap-execute-plan, which runs the tasks in order, verifies each against its stated

expected output, and checks each task's Consumes exist before implementing it. For a large

independent-task plan, subagent-orchestration can run a fresh implementer per task.


Credits: the zero-context, interfaces-per-task, no-placeholders, TDD-structured plan format is from

superpowers writing-plans (obra/superpowers, MIT). See docs/ECOSYSTEM.md. Pairs with

cap-spec-smith + cap-decomposer (before) and cap-execute-plan (after).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.