en un clic
auto-execute
// Implement approved plan slices. Use as the execute-stage entry point.
// Implement approved plan slices. Use as the execute-stage entry point.
Product go/no-go on a framed spec. Use after auto-frame, before planning.
Engineering go/no-go on a plan. Use after auto-plan, before execution.
Bound and de-risk a request into SPEC.md. Use when the objective is clear but scope needs constraining.
Sharpen a vague idea into a bounded objective. Use before framing when scope is undefined.
Build project truth from repo evidence. Use when steering is missing or stale.
Turn an approved spec into ordered slices. Use when framing is accepted and planning begins.
| name | auto-execute |
| description | Implement approved plan slices. Use as the execute-stage entry point. |
| metadata | {"stage":"execute"} |
Implementation controller. Executes approved plan slices without reopening product scope.
First action: run scripts/get-context.mjs → JSON {activeChange, stage, canonicalSpec, canonicalDesign, canonicalPlan, productReview, engineeringReview, diagnostics} (missing state normalizes to "none"/null). If any diagnostic has level "error", stop and report it before proceeding.
auto-execute owns execute-stage orchestration, route selection, state, and scope. It does not reopen product scope or modify the approved plan's intent. Direct implementation and subagent implementation are two routes inside this skill; the user should not have to switch skills to get the subagent route. Execute and verify one approved slice at a time inside the selected execution window. Continuation is the default after a verified slice; checkpoints and STOP conditions are the exceptions. An execution window is a context-management batch, not a completion boundary: when a window finishes and approved slices remain, select the next safe window and continue.
Loading discipline: keep the active slice, execution-window metadata, acceptance criteria, route metadata, verification commands, and active files in context. Load linked detail files and traceability IDs for the active slice only. Read wider project files only when implementation correctness requires it.
Before marking a slice complete:
references/debug-protocol.md (~53 lines) for extended guidance.references/quality.md (~37 lines) when the diff looks clever or defensive rather than inevitable from the plan.Before using this skill:
canonical_plan in .agent/.automaton/state/current.json must point to an approved PLAN.md.engineering_review is needs_correction, stop and return to auto-plan.Read .agent/steering/STATUS.md and the canonical PLAN.md. If PLAN.md contains VERIFY-GAP annotations from a prior verification failure, treat those gap-fix objectives as the current work before selecting the next uncompleted slice.
If engineering_review is approved_with_risks, surface the review rationale before starting, but block only when the risk affects the current slice.
If the current slice involves prose, read references/content-execution.md (~62 lines) before changing the artifact. Content execution stays inside the same direct/subagent route selection; it is not a separate skill.
If the current slice links a slices/slice-NNN.md detail file or names requirement IDs whose detail lives in spec/*.md, load those linked files for the active slice. Extract linked detail files and traceability IDs so implementation stays tied to the approved plan.
Identify the next uncompleted slice from PLAN.md. Build the smallest safe execution window:
Checkpoint after: none, dependencies are met, verification is explicit, and no STOP condition, slice-blocking review risk, or context pressure appears.PLAN.md explicitly marks slices parallel-safe and write sets are disjoint.Slice defaults:
Execution means direct.Depends on means none.Checkpoint after means none.none.For each slice in the window, extract objective, route metadata, dependencies, touched files or subsystems, constraints and anti-goals, acceptance criteria, verification commands, checkpoint metadata, and linked detail files and traceability IDs. If a material slice is missing acceptance criteria or verification, stop and recommend auto-plan.
For content slices, also extract artifact target, audience, thesis, voice, content anti-goals, channel, source policy, factual risk, and format. If the slice requires a missing source or factual-risk decision, stop with NEEDS_CONTEXT.
Route from slice metadata and live conditions:
direct: the slice touches a small area, has no slice-blocking review risk, and fits in the parent session.subagent recommended: prefer subagents when the slice crosses subsystem boundaries, touches many files, modifies shared interfaces or data schemas, or carries an approved_with_risks review verdict that affects this slice.subagent required: use the subagent route. Do not implement directly.Override: use the subagent route when the user explicitly requests multi-agent execution.
The route decision lives here. Do not tell the user to invoke another execute skill for the same slice.
Use this route only when route selection permits direct execution. Change code and project artifacts in the order the slice requires. Keep diffs small, local, and easy to verify. For prose artifacts, follow references/content-execution.md: preserve source traceability, do not invent facts, run anti-slop pass before completion.
Use this route when Execution is subagent required, when subagent recommended is justified, or when the user requested multi-agent execution. The subagent route remains per-slice even when the execution window contains multiple slices.
Before dispatching, read references/SUBAGENT-PROTOCOL.md and references/HOST-TOOLS.md. Use references/implementer-prompt.md, references/spec-reviewer-prompt.md, and references/code-quality-reviewer-prompt.md as the role prompts. If prior orchestration summaries exist under .agent/work/<change>/orchestration/, scan them for relevant decisions or discoveries.
If host tools say subagents are unavailable, fall back from subagent recommended to direct execution only if the slice remains safe. For subagent required, stop and recommend auto-plan or a host/configuration change.
Run the per-slice protocol:
NEEDS_CONTEXT..agent/work/<change>/orchestration/ only when subagent/review details are needed for later reload. The slice status still updates in place.Do not mark the slice complete unless the implementer status is acceptable, spec review is APPROVED, quality review is APPROVED, and slice verification evidence exists. Plan-level verification happens after all slices are complete: continue into auto-verify's contract when safe, or recommend it only when continuation is blocked.
Run the narrowest useful checks as soon as they can fail. Prefer targeted checks over full-suite rituals until the slice is stable.
Record completion evidence in place before moving to another slice:
PLAN.md, update that slice entry in PLAN.md.Detail: slices/slice-NNN.md, update that linked detail file and keep only a compact status/evidence pointer in PLAN.md.Use this compact evidence shape:
**Status:** complete | blocked | needs-plan-correction
**Evidence:** changed `path`; command/result; key observation.
**Risks / next:** none, or one concrete item.
Append-replace the evidence block for the slice instead of stacking repeated reports. Do not paste transcripts, full command logs, or source excerpts unless needed to explain a blocker.
The next slice is selected from PLAN.md; do not invent slice cursor or checkpoint fields in .agent/.automaton/state/current.json. Change .agent/.automaton/state/current.json only when the stage, active change, review state, or canonical artifact pointers change.
If the completed slice has a checkpoint, validate that it actually requires human input:
human-verify is valid only when the result cannot be verified by available commands, tests, host tools, or local inspection.decision is valid only when the checkpoint reason names a concrete question and options whose answer changes the next slice, architecture, design, product scope, or risk posture.human-action is valid only when progress requires an external action the agent cannot perform.Do not pause for checkpoint text that only records verification findings, implementation caveats, downstream consequences, known limitations, or a recommendation for the next already-approved slice. Record a plan correction, keep the evidence, and continue when the normal continuation conditions pass.
Continue within the selected execution window only when verification passed, dependencies are met, the next slice still matches the approved plan, context remains healthy, and no STOP condition applies.
If the checkpoint is valid, pause with the next action and checkpoint reason.
When the selected execution window is complete but PLAN.md still has uncompleted approved slices, return to Select Execution Window immediately. Do not wrap up merely because the current window ended. Stopping with remaining slices is valid only when you name a concrete checkpoint, STOP condition, context-pressure tier, or unavailable host capability that prevents continuing now; "N slices remain" is progress state, not a stop reason.
If all slices are complete and no STOP condition applies, ensure slice evidence is recorded, then continue into auto-verify's contract in the same session when the host/session can keep working. Do not make the user run auto-verify manually just because execution finished. Only recommend auto-verify as the next skill when continuation is blocked by a valid checkpoint, context pressure, unavailable host capability, or another explicit STOP condition.
When continuing into verification, follow auto-verify's contract: re-read the canonical PLAN.md, collect every acceptance criterion, run or derive the verification commands, and produce the verification report. Do not trust execute's own slice evidence as final verification.
If implementation reveals a real mismatch between plan and reality:
PLAN.md as a note on the current slice.Halt immediately and report to the user when:
Do not guess. Do not proceed.
Do NOT write code unless:
PLAN.md is approved and canonical_plan is set.auto-frame. Do not bypass the plan.
PLAN.md, or linked detail file plus compact PLAN.md pointer.agent/.automaton/state/current.json updated only when canonical pointers, active change, or review state change; auto-execute does not write a slice cursor fielderror-level diagnostics block the slice; warning-level diagnostics surface to the user and the next stageauto-execute (slices remain), auto-verify (execution complete but continuation blocked), or auto-plan (structural failure). The user or host invokes the next skill; auto-execute does not chain.PLAN.md or the linked slices/slice-NNN.md detail file in place.Read references/SUBAGENT-PROTOCOL.md only when subagent route is selected. (~95 lines: roles, dispatch packet schema, dispatch/review rules, status vocabulary, stop conditions.)
Read references/HOST-TOOLS.md only when dispatching subagents. (Host-specific tool mappings for Claude/Codex/OpenCode subagent dispatch.)
Read references/implementer-prompt.md to dispatch the implementer. (~63 lines.)
Read references/spec-reviewer-prompt.md after implementation is acceptable. (~41 lines.)
Read references/code-quality-reviewer-prompt.md after spec compliance is approved. (~45 lines.)
Read references/stop-examples.md for when to halt vs. push through. (~29 lines.)
Read references/debug-protocol.md for root cause patterns by stack. (~53 lines.)
Read references/CONTEXT-BUDGET.md for progressive loading and context pressure tiers. (~76 lines.)
Read references/ARTIFACT-LIFECYCLE.md when state pointer conflicts arise or progressive disclosure rules need clarification. (~105 lines.)