Story Implementation Planner
Own the Implementation Plan artifact. Turn an implementation-ready story and
repo evidence into an executable plan for a named or described executor without
clarifying the story, scouting the repository, assembling a packet, or editing
code.
Activation Contract
Use this skill only when all of these are true:
- the requested output is an implementation plan;
- the input is one materialized active Story Card, not a Split Story Set, with
Artifact Type: Story Card, Status: Ready, observable acceptance criteria,
and a settled implementation boundary;
- Repo Context contains enough evidence to locate the existing implementation,
validation surface, and any convention needed for proposed files;
- every planning-critical external claim, when present, has current and
applicable primary-source support in Repo Context
External Evidence; and
- executor constraints are known or can be stated conservatively without
changing the required behavior or safety policy.
Use story-to-plan-orchestrator when the request spans clarification, scouting,
planning, packet assembly, readiness validation, or resumption. Use
story-clarifier for unresolved product behavior and story-repo-scout for
missing, weak, or stale repository evidence. Do not perform those stages here.
A ready Split Story Set still requires slice selection and materialization by
the orchestrator before it becomes valid planning input.
If this skill is invoked with inadequate inputs, return the supported portions
of the artifact with a non-ready status and route the missing work to its owner.
Do not fill gaps by guessing.
Status Contract
Every output starts with:
## Implementation Plan
Artifact Type: Implementation Plan
Status: Ready | Needs Input | Blocked
Reason: None | <concise readiness reason>
Use the statuses operationally:
Ready: the plan is executable as written and has no unresolved blocking
input; write Reason: None.
Needs Input: a specific answer, upstream revision, or re-scout can make the
plan executable. Name each missing input, its owner, and the next action; do
not write unsupported downstream steps.
Blocked: a hard dependency or constraint prevents an honest plan and the
required input cannot currently be obtained through the preparation
workflow. Name the evidence, unblock condition, and safe stopping point.
Risks are uncertainties the ready plan can manage. Blocking inputs prevent the
plan from being ready; never combine them in one list.
Return the plan in the conversation unless a file output was requested. A plan
request does not authorize implementation or mutating verification commands.
Core Workflow
- Read the complete active Story Card and Repo Context. Confirm that the story
artifact is one materialized
Story Card, not a Split Story Set, and
preserve its source, acceptance-criterion identifiers, Out of Scope,
authoritative constraints, dependencies, assumptions, open questions, and
Validation Notes.
- Check readiness before planning. Treat behavior-changing ambiguity,
conflicting upstream evidence, stale critical paths, missing validation or
file-convention evidence, and missing, conflicting, or version-mismatched
material external evidence as inputs to resolve, not planning latitude.
- Record the target executor and the constraints that affect plan shape:
autonomy, context capacity, tool access, parallelism, and checkpoint needs.
- Define the evidence and file boundary from Repo Context. Apply the detailed
path, external-evidence, and authoritative-boundary trace rules below.
- Describe the scope and risk drivers: behavior surfaces, subsystem breadth,
state or contract changes, integration points, evidence strength, blast
radius, reversibility, and external coordination.
- Decompose work into narrow end-to-end outcomes that are demoable or
independently verifiable where practical; apply the vertical and enabling
outcome rules below rather than forcing layer-only tasks.
- Build and validate the outcome dependency graph as specified below. Make
ownership, blockers, joins, and shared invariants explicit before claiming
parallel work.
- Choose delivery and recovery measures according to affected surfaces and
risk. Apply the wide-change rule below when needed; do not add migration or
rollout boilerplate automatically.
- Map every acceptance criterion to validation using the smallest-sufficient
observable-seam rules below.
- Review the plan for unsupported paths or commands, placeholder work,
dependency order, criterion coverage, unmanaged risk, and status accuracy.
Executor Constraints
Describe capabilities, not model stereotypes:
- Autonomy: decisions the executor may make versus checkpoints requiring a
person or upstream owner.
- Context capacity: how much cross-file state can be carried reliably and
where re-entry summaries or smaller outcome batches are useful.
- Tool access: repository, build, test, network, deployment, or other tools
available and unavailable.
- Parallelism: whether independent tracks can run concurrently and how they
rejoin.
- Checkpoint needs: review, stop-and-report, or validation points required
before risky or irreversible actions.
A named model or agent may be recorded as the executor label, but it supplies
no capability facts by itself. Use only constraints the user supplied or the
environment demonstrated. Unknown constraints do not justify weaker safety,
completeness, validation, or recovery. State neutral assumptions or request
input only when the missing constraint would materially change the plan.
Adapt presentation to the constraints: use narrower outcome batches and an
optional First Action for limited context or autonomy; include tool
preconditions or alternatives for limited access; and use parallel tracks only
when the executor can coordinate them safely. Do not impose arbitrary file or
step counts, and do not invent human time estimates.
Output Contract
After the common header, use this structure:
### Target Executor and Constraints
- Executor:
- Autonomy:
- Context capacity:
- Tool access:
- Parallelism:
- Checkpoint needs:
### Goal
The behavior and boundary this plan will deliver.
### Inputs
- Story Card:
- Repo Context:
- External primary evidence: None, or `EXT-*` - planning use.
- Accepted assumptions or decisions:
- Non-blocking open questions:
### Scope and Risk Drivers
- Scope drivers:
- Risk drivers:
### Files
- Existing Change: path - purpose; matching Repo Context evidence.
- Existing Read: path - decision or invariant; matching Repo Context evidence.
- Existing Validate: path - behavior or oracle; matching Repo Context evidence.
- Proposed Create: path - purpose; matching Proposed Paths entry and convention basis.
- Authoritative Do Not Edit: path or scope - source and basis.
### First Action
- Open:
- Do:
- Check:
- Stop if:
### Steps
1. `P1 - Stable outcome title` - deliver a narrow end-to-end, demoable or independently verifiable outcome.
- Blocked by: None, or direct step IDs.
- Ordered substeps when the outcome crosses layers or surfaces.
- Checkpoint or observable result.
### Dependencies and Parallel Work
- Starting frontier: step IDs with no unsatisfied blockers.
- External prerequisites, safe parallel tracks, shared invariants, and join points.
### Risks
- Non-blocking uncertainty - mitigation, signal to watch, and contingency.
### Blocking Inputs
- Missing input - owner, next action, and unblock condition.
### Acceptance Criteria and Validation
| Acceptance Criterion | Planned Outcome | Validation Seam | Validation Evidence |
|---|---|---|---|
| AC-1 | Step ID or behavior | Existing observable seam | Supported command, probe, assertion, or oracle |
### Delivery and Recovery
- Delivery approach and why the affected surface and risk warrant it.
- Backout, rollback, restore, or forward-fix approach when needed.
### Handoff
- Starting context, decision checkpoints, and completion evidence to return.
Always include Target Executor and Constraints, Goal, Inputs, Files,
Steps, and Acceptance Criteria and Validation in a ready plan. Include
First Action only when it materially reduces ambiguity for a constrained
executor. Include Blocking Inputs only for Needs Input or Blocked; a
Ready plan cannot contain unresolved items there. Omit other empty optional
sections.
Preserve non-blocking questions from Ready upstream artifacts under Inputs;
also map one to Risks when its uncertainty needs a mitigation or contingency.
Any question that can change behavior, path selection, an authoritative
boundary, validation feasibility, or plan executability is a Blocking Input and
requires a non-ready plan instead.
Reference every planning-critical external claim under Inputs by its stable
Repo Context EXT-* ID and state only its planning use. Keep the owning source,
section, and applicable version in External Evidence. Missing support,
conflicting primary sources, or a material version or applicability mismatch
makes the plan non-ready and routes the gap to story-repo-scout; do not
silently resolve it in the plan.
List each path under its intended use and make its Repo Context trace explicit.
Every Existing Read, Existing Change, and Existing Validate path must map
to inspected Existing Evidence. Every Proposed Create path must map to a
scout-supplied Proposed Paths entry whose basis is an inspected parent,
sibling convention, manifest, registration point, or documented rule. A test
that must change belongs under Existing Change; it may also appear as
validation evidence. If a required path lacks that upstream evidence, make the
plan non-ready and route the gap to story-repo-scout instead of inventing it.
Use Authoritative Do Not Edit only for a boundary backed by the user,
repository instructions, ownership, generated or vendored-source policy, or
another explicit authority. Do not promote a scout's nearby non-target into a
hard prohibition.
Keep one stable, unique ID and title for each outcome while its identity is
unchanged. Blocked by names immediate plan-step IDs only; put external
prerequisites in Dependencies and Parallel Work. The starting frontier is
exactly the steps whose direct blockers and external prerequisites are
satisfied. A ready plan has no duplicate or unknown IDs, cycles, or hidden
blocking edges.
Prefer vertical outcomes. An enabling outcome must cite the evidence for the
coupling, required seam, or safety constraint it resolves and must itself have
an observable completion condition. For an evidence-backed wide mechanical
change that cannot land green vertically, model expand, migrate batches, and
contract as explicit outcomes with direct blockers and validation; add an
integration join and final verification when a batch cannot stand alone.
Treat discovery as a plan step only when its decision branches and exit evidence
are known. An unresolved material decision cannot be hidden in a step or
checkpoint unless the inputs explicitly delegate it to the executor and bound
the available choices, authority, and exit criteria. Otherwise make it a
blocking input. A known unsatisfied execution prerequisite, including an
unfinished blocking slice, is also a Blocking Input: the supported plan may be
drafted, but it and its packet cannot be Ready. If discovery would materially
rewrite later steps, make it a blocking input instead. When Story Card and Repo
Context conflict, stop at the earliest affected upstream stage rather than
silently reinterpreting either.
For validation, start from the documented observable seam that can detect the
criterion's failure. Reuse an existing test when it protects the same contract;
add lower-level checks only for meaningful uncovered branches or diagnostics.
Introduce a new seam only with an evidence-backed need and an explicit file
disposition. Do not substitute mocked internals for a required integration
contract or repeat checks that cannot add relevant evidence.
Final Quality Gate
Before returning the artifact, verify:
- every read, change, and validation path maps to Repo Context
Existing Evidence, and every create path maps to a convention-backed Proposed Paths
entry;
- every planning-critical external claim maps to a current, applicable
primary-source Repo Context
External Evidence entry;
- every symbol, command, and proposed-file convention has upstream evidence;
- step IDs and titles are stable and unique, direct blockers form an acyclic
graph with a truthful starting frontier, and steps are coherent outcomes with
observable checkpoints, not
placeholders such as
refactor, handle edge cases, add tests, or
polish;
- every acceptance criterion maps to the smallest sufficient set of stable
observable seams, with lower or new seams justified;
- enabling outcomes and wide-refactor sequencing have the required evidence,
blocker edges, and independent or final integration validation;
Ready has no blocking input, and risks have mitigations or contingencies;
- delivery and recovery match the affected surface instead of automatic
migration, flag, backfill, or rollback boilerplate; and
- executor identity did not introduce a fabricated estimate, numeric limit, or
weaker completeness, safety, validation, or recovery policy.
Composition Boundaries
story-clarifier owns the Story Card, story-repo-scout owns Repo Context,
and this skill is the source of truth for the Implementation Plan schema and
stage-specific readiness evidence.
story-to-plan-orchestrator owns stage selection, invalidation, resumption,
and preparation-packet assembly. It may validate this artifact but must not
redefine its contract.
- The named executor consumes a ready plan. Select any language, domain,
project, testing, or security guidance needed for implementation at handoff;
this skill does not maintain that downstream inventory.
- A request to edit code is implementation, not planning.
Examples
Create an implementation plan from this Ready Story Card and Repo Context for an executor with no network access. -> use this skill and record the tool
constraint.
Turn this rough ticket into a coding-ready preparation packet. -> use
story-to-plan-orchestrator.
Scour the repo and append relevant file paths. -> use story-repo-scout.
Implement this accepted plan. -> hand off to implementation guidance.
1---2name: story-implementation-planner3description: Create a constraint-aware implementation plan from a Ready Story Card and sufficiently evidenced Repo Context. Use when the requested artifact is the plan itself; use story-to-plan-orchestrator for multi-stage preparation, packet completion, resumption, or validation. Avoid story drafting, repo scouting, and direct implementation.4---56# Story Implementation Planner78Own the `Implementation Plan` artifact. Turn an implementation-ready story and9repo evidence into an executable plan for a named or described executor without10clarifying the story, scouting the repository, assembling a packet, or editing11code.1213## Activation Contract1415Use this skill only when all of these are true:1617- the requested output is an implementation plan;18- the input is one materialized active Story Card, not a Split Story Set, with19 `Artifact Type: Story Card`, `Status: Ready`, observable acceptance criteria,20 and a settled implementation boundary;21- Repo Context contains enough evidence to locate the existing implementation,22 validation surface, and any convention needed for proposed files;23- every planning-critical external claim, when present, has current and24 applicable primary-source support in Repo Context `External Evidence`; and25- executor constraints are known or can be stated conservatively without26 changing the required behavior or safety policy.2728Use `story-to-plan-orchestrator` when the request spans clarification, scouting,29planning, packet assembly, readiness validation, or resumption. Use30`story-clarifier` for unresolved product behavior and `story-repo-scout` for31missing, weak, or stale repository evidence. Do not perform those stages here.32A ready Split Story Set still requires slice selection and materialization by33the orchestrator before it becomes valid planning input.3435If this skill is invoked with inadequate inputs, return the supported portions36of the artifact with a non-ready status and route the missing work to its owner.37Do not fill gaps by guessing.3839## Status Contract4041Every output starts with:4243```markdown44## Implementation Plan4546Artifact Type: Implementation Plan47Status: Ready | Needs Input | Blocked48Reason: None | <concise readiness reason>49```5051Use the statuses operationally:5253- `Ready`: the plan is executable as written and has no unresolved blocking54 input; write `Reason: None`.55- `Needs Input`: a specific answer, upstream revision, or re-scout can make the56 plan executable. Name each missing input, its owner, and the next action; do57 not write unsupported downstream steps.58- `Blocked`: a hard dependency or constraint prevents an honest plan and the59 required input cannot currently be obtained through the preparation60 workflow. Name the evidence, unblock condition, and safe stopping point.6162Risks are uncertainties the ready plan can manage. Blocking inputs prevent the63plan from being ready; never combine them in one list.6465Return the plan in the conversation unless a file output was requested. A plan66request does not authorize implementation or mutating verification commands.6768## Core Workflow69701. Read the complete active Story Card and Repo Context. Confirm that the story71 artifact is one materialized `Story Card`, not a `Split Story Set`, and72 preserve its source, acceptance-criterion identifiers, Out of Scope,73 authoritative constraints, dependencies, assumptions, open questions, and74 Validation Notes.752. Check readiness before planning. Treat behavior-changing ambiguity,76 conflicting upstream evidence, stale critical paths, missing validation or77 file-convention evidence, and missing, conflicting, or version-mismatched78 material external evidence as inputs to resolve, not planning latitude.793. Record the target executor and the constraints that affect plan shape:80 autonomy, context capacity, tool access, parallelism, and checkpoint needs.814. Define the evidence and file boundary from Repo Context. Apply the detailed82 path, external-evidence, and authoritative-boundary trace rules below.835. Describe the scope and risk drivers: behavior surfaces, subsystem breadth,84 state or contract changes, integration points, evidence strength, blast85 radius, reversibility, and external coordination.866. Decompose work into narrow end-to-end outcomes that are demoable or87 independently verifiable where practical; apply the vertical and enabling88 outcome rules below rather than forcing layer-only tasks.897. Build and validate the outcome dependency graph as specified below. Make90 ownership, blockers, joins, and shared invariants explicit before claiming91 parallel work.928. Choose delivery and recovery measures according to affected surfaces and93 risk. Apply the wide-change rule below when needed; do not add migration or94 rollout boilerplate automatically.959. Map every acceptance criterion to validation using the smallest-sufficient96 observable-seam rules below.9710. Review the plan for unsupported paths or commands, placeholder work,98 dependency order, criterion coverage, unmanaged risk, and status accuracy.99100## Executor Constraints101102Describe capabilities, not model stereotypes:103104- **Autonomy:** decisions the executor may make versus checkpoints requiring a105 person or upstream owner.106- **Context capacity:** how much cross-file state can be carried reliably and107 where re-entry summaries or smaller outcome batches are useful.108- **Tool access:** repository, build, test, network, deployment, or other tools109 available and unavailable.110- **Parallelism:** whether independent tracks can run concurrently and how they111 rejoin.112- **Checkpoint needs:** review, stop-and-report, or validation points required113 before risky or irreversible actions.114115A named model or agent may be recorded as the executor label, but it supplies116no capability facts by itself. Use only constraints the user supplied or the117environment demonstrated. Unknown constraints do not justify weaker safety,118completeness, validation, or recovery. State neutral assumptions or request119input only when the missing constraint would materially change the plan.120121Adapt presentation to the constraints: use narrower outcome batches and an122optional `First Action` for limited context or autonomy; include tool123preconditions or alternatives for limited access; and use parallel tracks only124when the executor can coordinate them safely. Do not impose arbitrary file or125step counts, and do not invent human time estimates.126127## Output Contract128129After the common header, use this structure:130131```markdown132### Target Executor and Constraints133- Executor:134- Autonomy:135- Context capacity:136- Tool access:137- Parallelism:138- Checkpoint needs:139140### Goal141The behavior and boundary this plan will deliver.142143### Inputs144- Story Card:145- Repo Context:146- External primary evidence: None, or `EXT-*` - planning use.147- Accepted assumptions or decisions:148- Non-blocking open questions:149150### Scope and Risk Drivers151- Scope drivers:152- Risk drivers:153154### Files155- Existing Change: path - purpose; matching Repo Context evidence.156- Existing Read: path - decision or invariant; matching Repo Context evidence.157- Existing Validate: path - behavior or oracle; matching Repo Context evidence.158- Proposed Create: path - purpose; matching Proposed Paths entry and convention basis.159- Authoritative Do Not Edit: path or scope - source and basis.160161### First Action162- Open:163- Do:164- Check:165- Stop if:166167### Steps1681. `P1 - Stable outcome title` - deliver a narrow end-to-end, demoable or independently verifiable outcome.169 - Blocked by: None, or direct step IDs.170 - Ordered substeps when the outcome crosses layers or surfaces.171 - Checkpoint or observable result.172173### Dependencies and Parallel Work174- Starting frontier: step IDs with no unsatisfied blockers.175- External prerequisites, safe parallel tracks, shared invariants, and join points.176177### Risks178- Non-blocking uncertainty - mitigation, signal to watch, and contingency.179180### Blocking Inputs181- Missing input - owner, next action, and unblock condition.182183### Acceptance Criteria and Validation184| Acceptance Criterion | Planned Outcome | Validation Seam | Validation Evidence |185|---|---|---|---|186| AC-1 | Step ID or behavior | Existing observable seam | Supported command, probe, assertion, or oracle |187188### Delivery and Recovery189- Delivery approach and why the affected surface and risk warrant it.190- Backout, rollback, restore, or forward-fix approach when needed.191192### Handoff193- Starting context, decision checkpoints, and completion evidence to return.194```195196Always include `Target Executor and Constraints`, `Goal`, `Inputs`, `Files`,197`Steps`, and `Acceptance Criteria and Validation` in a ready plan. Include198`First Action` only when it materially reduces ambiguity for a constrained199executor. Include `Blocking Inputs` only for `Needs Input` or `Blocked`; a200`Ready` plan cannot contain unresolved items there. Omit other empty optional201sections.202203Preserve non-blocking questions from Ready upstream artifacts under Inputs;204also map one to Risks when its uncertainty needs a mitigation or contingency.205Any question that can change behavior, path selection, an authoritative206boundary, validation feasibility, or plan executability is a Blocking Input and207requires a non-ready plan instead.208209Reference every planning-critical external claim under Inputs by its stable210Repo Context `EXT-*` ID and state only its planning use. Keep the owning source,211section, and applicable version in `External Evidence`. Missing support,212conflicting primary sources, or a material version or applicability mismatch213makes the plan non-ready and routes the gap to `story-repo-scout`; do not214silently resolve it in the plan.215216List each path under its intended use and make its Repo Context trace explicit.217Every `Existing Read`, `Existing Change`, and `Existing Validate` path must map218to inspected `Existing Evidence`. Every `Proposed Create` path must map to a219scout-supplied `Proposed Paths` entry whose basis is an inspected parent,220sibling convention, manifest, registration point, or documented rule. A test221that must change belongs under `Existing Change`; it may also appear as222validation evidence. If a required path lacks that upstream evidence, make the223plan non-ready and route the gap to `story-repo-scout` instead of inventing it.224Use `Authoritative Do Not Edit` only for a boundary backed by the user,225repository instructions, ownership, generated or vendored-source policy, or226another explicit authority. Do not promote a scout's nearby non-target into a227hard prohibition.228229Keep one stable, unique ID and title for each outcome while its identity is230unchanged. `Blocked by` names immediate plan-step IDs only; put external231prerequisites in `Dependencies and Parallel Work`. The starting frontier is232exactly the steps whose direct blockers and external prerequisites are233satisfied. A ready plan has no duplicate or unknown IDs, cycles, or hidden234blocking edges.235236Prefer vertical outcomes. An enabling outcome must cite the evidence for the237coupling, required seam, or safety constraint it resolves and must itself have238an observable completion condition. For an evidence-backed wide mechanical239change that cannot land green vertically, model expand, migrate batches, and240contract as explicit outcomes with direct blockers and validation; add an241integration join and final verification when a batch cannot stand alone.242243Treat discovery as a plan step only when its decision branches and exit evidence244are known. An unresolved material decision cannot be hidden in a step or245checkpoint unless the inputs explicitly delegate it to the executor and bound246the available choices, authority, and exit criteria. Otherwise make it a247blocking input. A known unsatisfied execution prerequisite, including an248unfinished blocking slice, is also a Blocking Input: the supported plan may be249drafted, but it and its packet cannot be `Ready`. If discovery would materially250rewrite later steps, make it a blocking input instead. When Story Card and Repo251Context conflict, stop at the earliest affected upstream stage rather than252silently reinterpreting either.253254For validation, start from the documented observable seam that can detect the255criterion's failure. Reuse an existing test when it protects the same contract;256add lower-level checks only for meaningful uncovered branches or diagnostics.257Introduce a new seam only with an evidence-backed need and an explicit file258disposition. Do not substitute mocked internals for a required integration259contract or repeat checks that cannot add relevant evidence.260261## Final Quality Gate262263Before returning the artifact, verify:264265- every read, change, and validation path maps to Repo Context `Existing266 Evidence`, and every create path maps to a convention-backed `Proposed Paths`267 entry;268- every planning-critical external claim maps to a current, applicable269 primary-source Repo Context `External Evidence` entry;270- every symbol, command, and proposed-file convention has upstream evidence;271- step IDs and titles are stable and unique, direct blockers form an acyclic272graph with a truthful starting frontier, and steps are coherent outcomes with273 observable checkpoints, not274 placeholders such as `refactor`, `handle edge cases`, `add tests`, or275 `polish`;276- every acceptance criterion maps to the smallest sufficient set of stable277 observable seams, with lower or new seams justified;278- enabling outcomes and wide-refactor sequencing have the required evidence,279 blocker edges, and independent or final integration validation;280- `Ready` has no blocking input, and risks have mitigations or contingencies;281- delivery and recovery match the affected surface instead of automatic282 migration, flag, backfill, or rollback boilerplate; and283- executor identity did not introduce a fabricated estimate, numeric limit, or284 weaker completeness, safety, validation, or recovery policy.285286## Composition Boundaries287288- `story-clarifier` owns the Story Card, `story-repo-scout` owns Repo Context,289 and this skill is the source of truth for the Implementation Plan schema and290 stage-specific readiness evidence.291- `story-to-plan-orchestrator` owns stage selection, invalidation, resumption,292 and preparation-packet assembly. It may validate this artifact but must not293 redefine its contract.294- The named executor consumes a ready plan. Select any language, domain,295 project, testing, or security guidance needed for implementation at handoff;296 this skill does not maintain that downstream inventory.297- A request to edit code is implementation, not planning.298299## Examples300301- `Create an implementation plan from this Ready Story Card and Repo Context302 for an executor with no network access.` -> use this skill and record the tool303 constraint.304- `Turn this rough ticket into a coding-ready preparation packet.` -> use305 `story-to-plan-orchestrator`.306- `Scour the repo and append relevant file paths.` -> use `story-repo-scout`.307- `Implement this accepted plan.` -> hand off to implementation guidance.