Next Slice
Purpose
Execute exactly one slice from a saved plan, validate it, commit it when
completed, report any blocker, and stop. Use this skill only when the user
explicitly invokes $next-slice.
This is execution, not planning. Do not rewrite the plan, broaden scope, infer
missing hard fields, or continue into later slices unless the user asks for
replanning or a separate run. Status updates are limited to the runtime
contract's definition.
Runner completion scope is ignored by $next-slice; this skill executes
exactly one selected pending slice.
Within the selected slice, treat the plan as a boundary, not a script. Adapt
implementation details when current code demands it, as long as the Objective,
Acceptance criteria, safety and approvals, Validation, Review gate, and Commit
boundary remain intact.
Inputs
- Prefer an explicit plan path and slice name or number.
- If no plan path is provided, use the active plan only when it is unambiguous
from the current conversation, repo plan index, or repo docs.
- Ask for the plan path when more than one plan is plausible.
Workflow
Load the plan and runtime contract.
- Read installed
_shared/slice-runtime-contract.md, the
selected plan, its Execution Handoff, local AGENTS.md, and slice-named
specs, docs, tests, CLIs, or artifacts.
- Read installed
_shared/slice-execution-contract.md or
_shared/slice-planning-contract.md only when
this is the first slice for the plan in this conversation, strict
validation warns or fails, the plan changed beyond status/Handoff note, or
the selected slice touches plan/schema behavior.
- If the runtime contract cannot be read, stop.
- Completion criterion: the target slice, execution limits, branch state, and
dirty baseline are known.
Run strict plan validation.
Run strict plan validation, without --allow-draft, when the plan path ends
in .md:
python path/to/to-slice-plan/scripts/validate_slice_plan.py <plan-path>
Non-Markdown plans are outside the contract unless the user explicitly
approved them. Validator warnings do not block by themselves; inspect them
for drift and report them as Validation warnings: None or list the
warnings inspected.
Apply the runtime contract's Selection Rules and Stop Conditions.
Stop if the selected slice is missing hard fields, is malformed, or
asks the executor to infer intent.
Stop if the selected slice has non-None Fog of war; normal
implementation uncertainty belongs in Risks/review traps, not Fog of
war.
Completion criterion: the selected slice is contract-complete before
editing.
Run the shared Single-Slice Execution Cycle once from the validated
selection.
- Do not start later slices.
- Use continuation mode only when the Execution Handoff allows it and every
runtime-contract continuation condition holds. It may shorten rereading
for repeated
$next-slice invocations in the same plan/session, but never
changes the one-slice execution limit or skips strict validation, dirty
checks, approvals, Review gate, or commit hygiene.
- If repeated awkwardness across adjacent slices suggests the plan is
fighting the code, stop after the selected slice or blocker and recommend
prefactoring or replanning instead of broadening silently. Examples:
needing to change acceptance criteria, move work between slices, add a new
architecture decision, or touch unrelated modules not named by the plan.
- If the Review gate is
$review and no fixed point is named or
unambiguously derivable from the plan, repo docs, or user request, stop
and ask. Do not invent one.
- Completion criterion: the selected slice completed and committed, or the
blocker was reported by the shared cycle.
Completion Report
End with the shared Executor Completion Report, preceded by the plan path and
slice selected, completed, or blocked.
1---2name: next-slice3description: Execute one implementation slice from a saved slice plan.4---56# Next Slice78## Purpose910Execute exactly one slice from a saved plan, validate it, commit it when11completed, report any blocker, and stop. Use this skill only when the user12explicitly invokes `$next-slice`.1314This is execution, not planning. Do not rewrite the plan, broaden scope, infer15missing hard fields, or continue into later slices unless the user asks for16replanning or a separate run. Status updates are limited to the runtime17contract's definition.1819Runner completion scope is ignored by `$next-slice`; this skill executes20exactly one selected pending slice.2122Within the selected slice, treat the plan as a boundary, not a script. Adapt23implementation details when current code demands it, as long as the Objective,24Acceptance criteria, safety and approvals, Validation, Review gate, and Commit25boundary remain intact.2627## Inputs2829- Prefer an explicit plan path and slice name or number.30- If no plan path is provided, use the active plan only when it is unambiguous31 from the current conversation, repo plan index, or repo docs.32- Ask for the plan path when more than one plan is plausible.3334## Workflow35361. Load the plan and runtime contract.37 - Read installed `_shared/slice-runtime-contract.md`, the38 selected plan, its Execution Handoff, local `AGENTS.md`, and slice-named39 specs, docs, tests, CLIs, or artifacts.40 - Read installed `_shared/slice-execution-contract.md` or41 `_shared/slice-planning-contract.md` only when42 this is the first slice for the plan in this conversation, strict43 validation warns or fails, the plan changed beyond status/Handoff note, or44 the selected slice touches plan/schema behavior.45 - If the runtime contract cannot be read, stop.46 - Completion criterion: the target slice, execution limits, branch state, and47 dirty baseline are known.48492. Run strict plan validation.50 - Run strict plan validation, without `--allow-draft`, when the plan path ends51 in `.md`:5253 ```bash54 python path/to/to-slice-plan/scripts/validate_slice_plan.py <plan-path>55 ```5657 Non-Markdown plans are outside the contract unless the user explicitly58 approved them. Validator warnings do not block by themselves; inspect them59 for drift and report them as `Validation warnings: None` or list the60 warnings inspected.61 - Apply the runtime contract's Selection Rules and Stop Conditions.62 - Stop if the selected slice is missing hard fields, is malformed, or63 asks the executor to infer intent.64 - Stop if the selected slice has non-`None` Fog of war; normal65 implementation uncertainty belongs in `Risks/review traps`, not Fog of66 war.67 - Completion criterion: the selected slice is contract-complete before68 editing.69703. Run the shared Single-Slice Execution Cycle once from the validated71 selection.72 - Do not start later slices.73 - Use continuation mode only when the Execution Handoff allows it and every74 runtime-contract continuation condition holds. It may shorten rereading75 for repeated `$next-slice` invocations in the same plan/session, but never76 changes the one-slice execution limit or skips strict validation, dirty77 checks, approvals, Review gate, or commit hygiene.78 - If repeated awkwardness across adjacent slices suggests the plan is79 fighting the code, stop after the selected slice or blocker and recommend80 prefactoring or replanning instead of broadening silently. Examples:81 needing to change acceptance criteria, move work between slices, add a new82 architecture decision, or touch unrelated modules not named by the plan.83 - If the Review gate is `$review` and no fixed point is named or84 unambiguously derivable from the plan, repo docs, or user request, stop85 and ask. Do not invent one.86 - Completion criterion: the selected slice completed and committed, or the87 blocker was reported by the shared cycle.8889## Completion Report9091End with the shared Executor Completion Report, preceded by the plan path and92slice selected, completed, or blocked.