/ctx:ctx-task-outfrom ctx
Decomposes a committed spec into per-milestone implementation plans with data models, contracts, test matrices, and falsifiable tasks. Use after /ctx-spec for large specs.
Ships in ctx. 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.
The project's design-to-implementation pipeline is:
/ctx-brainstorm → /ctx-plan → /ctx-spec → /ctx-task-out → /ctx-implement
(vague) (contested) (committed) (decomposed) (execution)
/ctx-task-out is the fourth step. It consumes a committed spec
(--spec <path>) and produces the plan document that
/ctx-implement executes. It closes a gap the chain otherwise
leaves unowned: /ctx-plan explicitly disclaims implementation
planning, /ctx-spec commits the what/why at spec altitude, and
/ctx-implement opens with "use when you have a plan document" —
this skill is what produces that document.
Small specs skip this step. If the whole spec is implementable in
roughly one session, go straight to /ctx-implement with the spec
itself.
You decompose; you do not redesign the bet. The spec is
committed; do not relitigate scope, behavior, or the bet here —
disagreements with the spec go back through /ctx-plan.
Implementation structure is different: choosing schema shapes,
signatures, and index strategies is exactly the job, because
resolving those decisions before execution is the point of
this skill. Make every task falsifiable and every design detail
the implementer needs explicit before execution starts, so no
large decision is made mid-flight.
Authority boundary: invariants, validation rules, and behavior
come from the spec. If decomposition surfaces an invariant the
spec never states, that is a spec gap — surface it and mark it
TBD; do not mint it here.
/ctx-spec, when the spec spans milestones/phases or
exceeds ~one session of implementation/ctx-implement is invoked without a plan document
(redirect here first)/ctx-spec first)/ctx-plan first)/ctx-task-out --spec specs/v1-substrate.md --milestone m0a
/ctx-task-out --spec specs/rss-feed.md # single-milestone: whole spec
Without --milestone, the plan file takes the spec's basename:
specs/plans/rss-feed.md.
--spec is missing or the file is absent,
stop and report; no interactive fallback.TBD entries and classify each as blocking or deferrable
for the target milestone. A TBD is blocking if any task in the
milestone would embed an assumption about its answer (language
choice, storage engine, schema format…). Refuse to decompose
past a blocking TBD: list the blockers, name who can resolve
them, and stop. Deferrable TBDs do not vanish: carry each into
the plan (Out of scope or Risks), annotated with the milestone
at which it becomes blocking. Resolving a blocking TBD is a
spec edit or a DECISIONS.md entry first; the plan only
points at that record. A resolution that exists nowhere but
the plan is minting.Milestone boundaries belong to the spec. If decomposition shows the cut is wrong — one "milestone" hiding several, or a boundary in the wrong place — stop and route the resize through the spec; do not mint sub-milestones here.
Detect mode. If the target plan file already exists, this is an amendment run, not a fresh decomposition: read the existing plan, classify the change as obsolete/append, re-run only the blocking-TBD gate against the delta, and log the change in the plan's Amendments section. The rolling-wave gate does not fire when amending the current milestone. Steps 1–8 below describe a fresh run.
Read the spec in full. Read TASKS.md, DECISIONS.md, and CONVENTIONS.md from the context directory.
Run the blocking-TBD gate; surface the classification to the user before proceeding.
Draft the plan sections (structure below). Lift from the spec
verbatim where it speaks; where it is silent, prefer asking or
marking TBD over inventing — same authority discipline as
/ctx-spec --brief.
Break down tasks: typically 15–40 per milestone. Each task
carries: id, a state cell (st, initialized [ ] — see the
ledger rule below), title, dependencies (by id), the files/paths it
is expected to touch, a [P] marker when
parallelizable with its siblings, a falsifiable acceptance
criterion (a command to run, a test that must pass, an
observable behavior), and a reference to the spec section it
implements. Size each task to roughly one commit — small
enough that a failed acceptance check localizes the fault to
that task. [P] is mechanical, not aspirational: no
dependency edge, no file touched by a sibling [P] task, no
shared sequence (e.g. migration numbers). File disjointness
is checkable from the files column — which is also how an
amendment run detects a new task colliding with one in
flight.
Build the test matrix: every invariant, validation rule, and edge case the milestone touches × the attempted violation × the expected failure mode × the task id whose acceptance criterion exercises it. A matrix row no task exercises is documentation, not execution.
Write specs/plans/<milestone>.md (create specs/plans/ if
absent).
Sync anchors to TASKS.md: epic-level anchors only — one per
task cluster, each annotated Plan: specs/plans/<milestone>.md
with its task-id range. The clusters must partition the
plan's task ids: every id in exactly one epic, and the range
sizes must sum to the task count — state the arithmetic in the
plan; double-counted ids make the two surfaces irreconcilable.
State the completion rule where the anchors live: an epic is
checked [x] only when every task in its range is [x] or
[o] in the plan — the plan is the single source of truth for
milestone progress, TASKS.md epics are projections of it.
One-way sync, plan → TASKS.md. Never duplicate the full task
list into TASKS.md; never move or delete existing entries
(CONSTITUTION).
Hand off: report blockers resolved/remaining and suggest
/ctx-implement against the plan.
# <Milestone> Plan — <short name>
**Spec:** <path> · **Status:** Ready | Blocked
**Blocking TBDs resolved:** <list, with where each was decided>
## Scope & DoD (lifted from the spec's milestone entry)
## Data model & storage (DDL, migrations, indexes)
## Contracts (API signatures, schemas, CLI surface)
## Test matrix (invariant × violation attempt × expected failure × task ref)
## Task breakdown (table: id · st · task · deps · files · [P] · acceptance criterion · spec ref)
## Risks & measurement gates (results that may reshape later tasks)
## Out of scope (deferred to later milestones, with pointers)
## Amendments (date · what · why — appended by amendment runs)
The plan is the execution ledger: the task table's st
column carries per-task state — [ ] pending, [x] done
(acceptance criterion demonstrably passed), [o] obsoleted by
amendment — Scope & DoD carries the DoD checkboxes, and
/ctx-implement updates both as it executes. A task table
without the st column is not a ledger: completion becomes
unrecordable and the milestone unauditable. DoD is
confirmed by measurement or by the user — never derived from
task completion — and the rolling-wave gate reads the DoD
checkboxes only. No other record of milestone progress exists.
Status: Blocked is reachable only by amendment: a fresh run
refuses instead of writing a Blocked plan; the status marks a
deferrable TBD that graduated to blocking mid-milestone.
Plans meet reality; the plan document owns that contact. When a measurement gate fires or the implementer hits a wall:
st → [o]) with a one-line
reason; never deleted./ctx-task-out against the same
milestone: with the plan already present, the skill operates
in amendment mode — read the existing plan, apply the change
as obsolete-and-append, and log date · what · why in the
plan's Amendments section./ctx-plan; amendments cover implementation
reality, not the bet.Before writing the file, verify:
[P] siblings share no files, edges, or
sequencesst cell initialized [ ] — a
stateless table cannot be marked off or auditedWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub activememory/ctx --plugin ctx54 skills in this plugin
/ctx-agentLoad full context packet. Use at session start or when context seems stale or incomplete./ctx-architectureBuild and maintain architecture maps. Use to create or refresh ARCHITECTURE.md and DETAILED_DESIGN.md. Supports principal mode for deeper analysis: vision, future direction, bottlenecks, implementation alternatives, gaps, upstream proposals, and intervention points./ctx-architecture-enrichEnrich architecture artifacts with code intelligence data. Takes existing /ctx-architecture output as baseline, verifies and quantifies with GitNexus MCP (blast radius, execution flows, domain clustering, registration sites). Run after /ctx-architecture, not instead of it./ctx-archiveArchive completed tasks. Use when TASKS.md has many completed items cluttering the view.Other plugins' skills for the same job