Implement Feature
Execute one admitted package graph without weakening TDD, stable package identity, path
ownership, or the blind-source firewall.
Required contracts
Before acting, read:
Also follow runtime-local approved-plan, graph-plan, agent-boundary, review, worktree, and
PR contracts.
Admission
Require one exact user-identified approved plan or exact released plan-feature state. A
supplied plan must pass the shared graph parser plus approval, authoritative Jira snapshot
paths/digests, repository freshness, path ownership, stack, and blind-handoff checks before
binding. A released state is revalidated and atomically claimed through claim. Every mutation
uses the exact state path through ../_shared/scripts/feature_workflow_state.py.
If neither input exists, stop without initializing, interviewing, or planning. Never claim
a state whose recorded owner is build-feature. Enter only on a direct human request under the routing
contract's human front door; refuse invocation by a spawned agent or another skill.
Pipeline
- Ask state for dependency-ready
WPn packages and run them one lane at a time, in the
returned longest-gated-chain order, since Cursor admits exactly one live controlled
claim. Create each runnable non-final package on its approved branch from the frozen base
with a verified no-push worktree receipt.
- For each package, run exact selected-layer RED, then send its decoded approved
blind_green.handoff verbatim to the blind source writer together with the parser's
resolved interface payload for that package, verifying both digests. Run its
independent gate and phase-review audit; create and record exactly one approved
checkpoint commit.
- After all non-final checkpoints, preflight and deterministically restack them in
stack_order, preserving and recording original/restacked identities.
- Create the sole final-integration package at the assembled tip. Run its own RED/GREEN,
final-only unit/CLI/docs/changelog work, gate, audit, checkpoint, and aggregate integration
gate.
- Reserve one exact report in the final worktree and run one report-only
deep-review --gates --base <frozen-target-sha>. Completed gate failure ends with no
remote write; passing gates open publication even when findings remain.
- Record GitHub preflight, push every finalized branch in stack order, create every PR
initially draft bottom-up, and recover an unrecorded successful create only through its
exact create-pr
resume receipt. Register the stack with one gh stack link over the
ordered PR URLs;
verify exact number/URL/title/head/base/draft/body JSON; and optionally verify authorized
ready transitions with the same fields.
Only checkpointed dependencies release downstream packages. Every dispatch, gate, commit,
push, and PR record names the stable WPn. Never leak planning, Jira, tests, runner output,
coverage, siblings, or target-base material into a blind writer payload.
Revision and finish
Before terminal review, invalid plan assumptions or already-GREEN RED require recording
the affected packages as blocked and a stop. Terminal findings do not loop back. Return exact plan
and state identities, package evidence, restack map, review body/path/classification,
residual risks, and the complete verified stacked-PR map or exact no-publication reason.
Resources
- REFERENCE.md — admission, package firewall, stack, and publication gates.
- EXAMPLES.md — supplied plan, released state, DAG, and terminal outcomes.
- writing style — normative prose rules and the pre-save self-check for
every human-read artifact this skill produces.
1---2name: implement-feature3description: Executes one exact approved canonical rocprof-compute feature graph through package RED, test-blind GREEN, dependency scheduling, deterministic restacking, final integration, one terminal review, and verified stacked PR publication. Use for an exact approved plan, literal `$implement-feature`, adoption of one exact released plan-feature state, or exact resume of active implement-feature state. Never creates or revises planning artifacts. Human-invoked only.4---56# Implement Feature78Execute one admitted package graph without weakening TDD, stable package identity, path9ownership, or the blind-source firewall.1011## Required contracts1213Before acting, read:1415- [`FEATURE-WORKFLOW-ROUTING.md`](../_shared/FEATURE-WORKFLOW-ROUTING.md);16- [`FEATURE-WORKFLOW-STATE.md`](../_shared/FEATURE-WORKFLOW-STATE.md); and17- [`FEATURE-IMPLEMENTATION-CONTRACT.md`](../_shared/FEATURE-IMPLEMENTATION-CONTRACT.md).1819Also follow runtime-local approved-plan, graph-plan, agent-boundary, review, worktree, and20PR contracts.2122## Admission2324Require one exact user-identified approved plan or exact released `plan-feature` state. A25supplied plan must pass the shared graph parser plus approval, authoritative Jira snapshot26paths/digests, repository freshness, path ownership, stack, and blind-handoff checks before27binding. A released state is revalidated and atomically claimed through `claim`. Every mutation28uses the exact state path through `../_shared/scripts/feature_workflow_state.py`.2930If neither input exists, stop without initializing, interviewing, or planning. Never claim31a state whose recorded owner is `build-feature`. Enter only on a direct human request under the routing32contract's human front door; refuse invocation by a spawned agent or another skill.3334## Pipeline35361. Ask state for dependency-ready `WPn` packages and run them one lane at a time, in the37 returned longest-gated-chain order, since Cursor admits exactly one live controlled38 claim. Create each runnable non-final package on its approved branch from the frozen base39 with a verified no-push worktree receipt.402. For each package, run exact selected-layer RED, then send its decoded approved41 `blind_green.handoff` verbatim to the blind source writer together with the parser's42 resolved interface payload for that package, verifying both digests. Run its43 independent gate and `phase-review` audit; create and record exactly one approved44 checkpoint commit.453. After all non-final checkpoints, preflight and deterministically restack them in46 `stack_order`, preserving and recording original/restacked identities.474. Create the sole final-integration package at the assembled tip. Run its own RED/GREEN,48 final-only unit/CLI/docs/changelog work, gate, audit, checkpoint, and aggregate integration49 gate.505. Reserve one exact report in the final worktree and run one report-only51 `deep-review --gates --base <frozen-target-sha>`. Completed gate failure ends with no52 remote write; passing gates open publication even when findings remain.536. Record GitHub preflight, push every finalized branch in stack order, create every PR54 initially draft bottom-up, and recover an unrecorded successful create only through its55 exact create-pr `resume` receipt. Register the stack with one `gh stack link` over the56 ordered PR URLs;57 verify exact number/URL/title/head/base/draft/body JSON; and optionally verify authorized58 ready transitions with the same fields.5960Only checkpointed dependencies release downstream packages. Every dispatch, gate, commit,61push, and PR record names the stable `WPn`. Never leak planning, Jira, tests, runner output,62coverage, siblings, or target-base material into a blind writer payload.6364## Revision and finish6566Before terminal review, invalid plan assumptions or already-GREEN RED require recording67the affected packages as `blocked` and a stop. Terminal findings do not loop back. Return exact plan68and state identities, package evidence, restack map, review body/path/classification,69residual risks, and the complete verified stacked-PR map or exact no-publication reason.7071## Resources7273- [REFERENCE.md](REFERENCE.md) — admission, package firewall, stack, and publication gates.74- [EXAMPLES.md](EXAMPLES.md) — supplied plan, released state, DAG, and terminal outcomes.75- [writing style](../_shared/WRITING-STYLE.md) — normative prose rules and the pre-save self-check for76 every human-read artifact this skill produces.