Slice Plan Runner
Purpose
Run a saved slice plan unattended, one slice at a time, committing each completed
slice and stopping on ambiguity, contract failure, failed validation, unsafe
scope, or user-judgment needs. Use this skill only when the user explicitly
invokes $slice-plan-runner.
This is an execution loop, not planning. Do not invent a plan, broaden scope,
infer missing contract fields, or replace acceptance criteria. Status updates
are limited to the runtime contract's definition.
Inputs
- Prefer an explicit plan path, slice limit, and run constraints.
- If no plan path is provided, find the active plan from the current
conversation, repo plan index, or repo docs. Ask for the path if more than one
plan is plausible.
- Use Runner completion scope as the plan-authored maximum. The effective run
limit is the strictest limit from the user request, Runner completion scope,
Slice/run limits, approvals, runtime contract, local safety policy, and stop
conditions. If no explicit limit exists, run all remaining slices only when
the user clearly asked for a full unattended run and Runner completion scope
allows it; otherwise stop and ask for a limit.
- Treat constraints such as
max 3 slices, no network, stop before live data, or approval requirements as hard limits.
Loop Rules
Read installed _shared/slice-runtime-contract.md before
selecting the first slice. If it cannot be read, stop.
Read installed _shared/slice-execution-contract.md or
_shared/slice-planning-contract.md only when
starting a fresh plan, validation warns or fails, the plan changed beyond
allowed status/Handoff-note updates, or the selected slice touches
plan/schema behavior.
Run strict plan validation, without --allow-draft, before the first slice and
after status updates 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.
Honor the Execution Handoff, user constraints, and runtime contract before each
slice.
Run validation commands sequentially when they may share temp directories,
caches, ports, databases, global CLI state, generated outputs, environment
variables, or live service state. Parallelize only clearly independent checks.
Execute slices sequentially in plan order unless the plan explicitly permits a
different order.
Re-check current state and record a fresh dirty baseline before every slice.
For each selected slice, run the shared Single-Slice Execution Cycle.
Use continuation mode after a clean committed slice only when the Execution
Handoff allows it and every runtime-contract continuation condition holds.
Continuation shortens rereading; it never skips strict validation, dirty
checks, approvals, Review gate, or commit hygiene.
Stop after review findings, failed validation, missing Review gate skills, or
status update conflicts unless the fix is clearly local to the current or
just-completed slice.
Do not batch slices, skip malformed slices, or continue after a blocker that
needs user judgment.
Continuation Check
After each committed slice:
- Re-read the updated plan, next slice, and Execution Handoff.
- Continue only when validation passed, validator warnings were inspected and
do not indicate drift, the commit succeeded, remaining slices are
contract-complete, dirty-work boundaries are intact, Continuation mode and
Runner completion scope allow the next pass, and no stricter limit or
approval boundary is reached.
- Stop before network, live-data, credentialed, destructive, or remote-write
work without explicit approval.
- Stop and recommend prefactoring or replanning when repeated awkwardness
across adjacent slices shows the plan is fighting the code.
Completion criterion: continuing is justified by the plan, runtime contract,
handoff, and current repo state.
Completion Report
End with the shared Executor Completion Report, preceded by the plan path,
requested or inferred slice limit, completed slices, encountered skipped
slices, and blocked slices. Include any slice the run stopped before starting.
If the run stops early, make the stopping reason the headline. Do not describe a
partial run as complete.
1---2name: slice-plan-runner3description: Run a saved slice plan through multiple committed slices.4---56# Slice Plan Runner78## Purpose910Run a saved slice plan unattended, one slice at a time, committing each completed11slice and stopping on ambiguity, contract failure, failed validation, unsafe12scope, or user-judgment needs. Use this skill only when the user explicitly13invokes `$slice-plan-runner`.1415This is an execution loop, not planning. Do not invent a plan, broaden scope,16infer missing contract fields, or replace acceptance criteria. Status updates17are limited to the runtime contract's definition.1819## Inputs2021- Prefer an explicit plan path, slice limit, and run constraints.22- If no plan path is provided, find the active plan from the current23 conversation, repo plan index, or repo docs. Ask for the path if more than one24 plan is plausible.25- Use Runner completion scope as the plan-authored maximum. The effective run26 limit is the strictest limit from the user request, Runner completion scope,27 Slice/run limits, approvals, runtime contract, local safety policy, and stop28 conditions. If no explicit limit exists, run all remaining slices only when29 the user clearly asked for a full unattended run and Runner completion scope30 allows it; otherwise stop and ask for a limit.31- Treat constraints such as `max 3 slices`, `no network`, `stop before live32 data`, or approval requirements as hard limits.3334## Loop Rules3536- Read installed `_shared/slice-runtime-contract.md` before37 selecting the first slice. If it cannot be read, stop.38- Read installed `_shared/slice-execution-contract.md` or39 `_shared/slice-planning-contract.md` only when40 starting a fresh plan, validation warns or fails, the plan changed beyond41 allowed status/Handoff-note updates, or the selected slice touches42 plan/schema behavior.43- Run strict plan validation, without `--allow-draft`, before the first slice and44 after status updates when the plan path ends in `.md`:4546 ```bash47 python path/to/to-slice-plan/scripts/validate_slice_plan.py <plan-path>48 ```4950 Non-Markdown plans are outside the contract unless the user explicitly51 approved them. Validator warnings do not block by themselves; inspect them for52 drift and report them.53- Honor the Execution Handoff, user constraints, and runtime contract before each54 slice.55- Run validation commands sequentially when they may share temp directories,56 caches, ports, databases, global CLI state, generated outputs, environment57 variables, or live service state. Parallelize only clearly independent checks.58- Execute slices sequentially in plan order unless the plan explicitly permits a59 different order.60- Re-check current state and record a fresh dirty baseline before every slice.61- For each selected slice, run the shared Single-Slice Execution Cycle.62- Use continuation mode after a clean committed slice only when the Execution63 Handoff allows it and every runtime-contract continuation condition holds.64 Continuation shortens rereading; it never skips strict validation, dirty65 checks, approvals, Review gate, or commit hygiene.66- Stop after review findings, failed validation, missing Review gate skills, or67 status update conflicts unless the fix is clearly local to the current or68 just-completed slice.69- Do not batch slices, skip malformed slices, or continue after a blocker that70 needs user judgment.7172## Continuation Check7374After each committed slice:75761. Re-read the updated plan, next slice, and Execution Handoff.772. Continue only when validation passed, validator warnings were inspected and78 do not indicate drift, the commit succeeded, remaining slices are79 contract-complete, dirty-work boundaries are intact, Continuation mode and80 Runner completion scope allow the next pass, and no stricter limit or81 approval boundary is reached.823. Stop before network, live-data, credentialed, destructive, or remote-write83 work without explicit approval.844. Stop and recommend prefactoring or replanning when repeated awkwardness85 across adjacent slices shows the plan is fighting the code.8687Completion criterion: continuing is justified by the plan, runtime contract,88handoff, and current repo state.8990## Completion Report9192End with the shared Executor Completion Report, preceded by the plan path,93requested or inferred slice limit, completed slices, encountered skipped94slices, and blocked slices. Include any slice the run stopped before starting.9596If the run stops early, make the stopping reason the headline. Do not describe a97partial run as complete.