بنقرة واحدة
auto-execute
Implement approved plan slices. Use as the execute-stage entry point.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Implement approved plan slices. Use as the execute-stage entry point.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Optional engineering go/no-go on a plan. Use when execution safety needs review before implementation.
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.
Recover active change and next action from artifacts. Use on fresh session with existing work.
| 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 node .agent/.automaton/scripts/get-context.mjs from the project root.
auto-execute owns execute-stage orchestration, route selection, state, and scope. Direct implementation and subagent implementation are two routes inside this skill. It does not reopen product scope or modify the approved plan's intent. 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.
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. Read .agent/.automaton/references/CONTEXT-BUDGET.md when wider reads threaten context pressure. When a lookup would otherwise pull wide reads into context, dispatch the read-only automaton-librarian (see .agent/.automaton/references/LIBRARIAN.md): it returns evidence, you keep the decision.
Before marking a slice complete:
references/debug-protocol.md only when bounded diagnosis needs more structure.references/quality.md when the diff looks clever, defensive, or broader than the plan requires.Do NOT write code unless:
PLAN.md is approved and canonical_plan in .agent/.automaton/state/current.json is set.canonical_spec still resolves: the spec chain holds end to end so cold resume can always load spec first.engineering_review is not needs_correction (otherwise stop and return to auto-plan).Read the canonical PLAN.md. If it contains VERIFY-GAP annotations, treat those gap-fix objectives as the current work before selecting the next uncompleted slice.
If engineering_review is approved_with_risks, surface the rationale before starting but block only when the risk affects the current slice.
If the current slice involves prose, read references/content-execution.md. If it links slices/slice-NNN.md or requirement IDs in spec/*.md, load those linked files for the active slice and preserve their traceability IDs.
Read .agent/wiki/LEARNINGS.md when it exists: one-line facts earlier changes paid to learn.
After the canonical PLAN.md resolves and before changing code or project artifacts, run node .agent/.automaton/scripts/sync-status.mjs --stage execute from the project root. This records that the active change has entered execution while preserving the existing canonical_plan.
Commit per verified slice when the working directory is a git repo. The verification gate is the authorization; do not pause to ask. Read references/git-rhythm.md once at execute entry for detection, pre-existing dirt, and commit-failure handling, then run its entry check.
After slice verification passes in Verify And Advance, run git add -A followed by one of:
git commit -m "slice N: <objective>" for a fresh slice (objective from PLAN.md).git commit -m "slice N gap-fix: <fix objective>" for a slice re-entered after auto-verify FAIL (fix objective from the VERIFY-GAP block).Strictly additive. git commit only. Never amend, reset, rebase, branch, checkout, or push. One carve-out: coordinator-managed git worktree add/remove for parallel slice isolation, defined in .agent/.automaton/references/ARTIFACT-LIFECYCLE.md (Git Rhythm). Subagents on the implementer route never run any git command; the orchestrator owns history. A failed commit is a STOP, not a step to skip. Cross-skill contract: .agent/.automaton/references/ARTIFACT-LIFECYCLE.md (Git Rhythm).
The next slice is selected from PLAN.md. Build the smallest safe execution window:
Checkpoint after: none is present or defaulted, dependencies are met, verification is explicit, and no STOP condition, slice-blocking review risk, or context pressure appears.PLAN.md's Parallel-safe groups: line names the slices and write sets are disjoint, and in a git repo it runs under worktree isolation (.agent/.automaton/references/SUBAGENT-PROTOCOL.md, Parallel Isolation; mechanics in references/git-rhythm.md).Omitted slice fields carry the defaults pinned in .agent/.automaton/references/ARTIFACT-LIFECYCLE.md (Slice Defaults).
For each slice in the window, extract objective, dependencies, touched files or subsystems, constraints and anti-goals, acceptance criteria, verification commands, checkpoint metadata, route 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 needs a missing source or factual-risk decision, stop and report the missing source or unresolved factual-risk decision.
The route decision lives here:
direct: small area, no slice-blocking review risk, 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 a relevant approved_with_risks verdict.subagent required: use the subagent route. Do not implement directly.Use the subagent route when the user explicitly requests multi-agent execution. 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.
Use this route when Execution is subagent required, when subagent recommended is justified, or when the user requested multi-agent execution. Before the first dispatch, read .agent/.automaton/references/SUBAGENT-PROTOCOL.md and references/HOST-TOOLS.md: dispatch-by-name rules, role boundaries, status vocabulary, and host availability live there. Dispatch only the named host-native agents (automaton-implementer, automaton-spec-reviewer, automaton-quality-reviewer) and fill the per-call slots from references/implementer-prompt.md, references/spec-reviewer-prompt.md, and references/quality-reviewer-prompt.md. The installed agent definitions carry the role bodies; do not paste a role body into a generic worker or explorer agent.
If the host does not expose the named agents, fall back from subagent recommended to direct execution only when the slice remains safe. For subagent required, stop under the protocol's host-support condition and recommend auto-plan or a host change. Do not fall back to runtime-curated prompt injection.
Run the per-slice protocol as SUBAGENT-PROTOCOL.md defines it: dispatch from a packet built from the current slice only, verify evidence, then spec review before quality review, passing concrete reviewer issues back once through the <requested-changes> slot. Record a compact orchestration summary under .agent/work/<change>/orchestration/ only when subagent or review details are needed later. The slice status still updates in place.
Do not mark the slice complete unless implementation status is acceptable, spec review is APPROVED, quality review is APPROVED, and slice verification evidence exists.
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:
PLAN.md, update that slice entry in PLAN.md.Detail: slices/slice-NNN.md, update that linked detail file and keep a compact PLAN.md pointer.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. Do not paste transcripts, full command logs, or source excerpts unless needed to explain a blocker.
After evidence is recorded, run the per-slice commit when the Git Rhythm is active. A failed commit is a STOP condition, not a step to skip.
The next slice is selected from PLAN.md; do not invent slice cursor or checkpoint fields in .agent/.automaton/state/current.json. Change state only through node .agent/.automaton/scripts/sync-status.mjs when stage, active change, review state, or canonical artifact pointers change.
If the completed slice has a checkpoint, validate that it actually requires human input per the checkpoint definitions (human-verify, decision, human-action) in .agent/.automaton/references/ARTIFACT-LIFECYCLE.md (Checkpoint Semantics): a checkpoint holds only when its defined condition is met. Do not pause for checkpoint text that only records verification findings, caveats, or next-slice recommendations; those are not checkpoints. Record a plan correction, keep the evidence, and continue when 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. "N slices remain" is progress state, not a stop reason. Remaining approved slices require another execution-window pass unless a valid checkpoint, STOP condition, context-pressure tier, or unavailable host capability prevents continuing.
If all slices are complete and no STOP condition applies, ensure slice evidence is recorded, then continue inline into auto-verify's contract when safe. Do not make the user run auto-verify manually just because execution finished. When continuing, re-read the canonical PLAN.md, collect every acceptance criterion, run or derive 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, record the correction in PLAN.md on the current slice. Do not silently redefine the plan.
When a correction reveals durable project truth beyond this change, append a one-line evidence-cited fact to .agent/wiki/LEARNINGS.md per .agent/.automaton/references/ARTIFACT-LIFECYCLE.md (Learned Truth).
Halt immediately and report to the user when:
.agent/.automaton/references/CONTEXT-BUDGET.md, Conserve Then Checkpoint).Read references/stop-examples.md when uncertain whether a situation qualifies for STOP.
PLAN.md, or linked detail file plus compact PLAN.md pointer.slice N: and slice N gap-fix: shapes.sync-status.mjs when execution begins; no slice cursor field is added to current.json.Next: auto-execute (slices remain), Next: auto-verify (execution complete, continuation blocked), or Next: auto-plan (structural failure).git commit operations for Automaton. The rhythm is strictly additive, with the coordinator-managed worktree carve-out in ARTIFACT-LIFECYCLE.md (Git Rhythm), and subagents never run git.auto-frame; do not bypass the plan.PLAN.md or linked slices/slice-NNN.md, not new evidence files by default.