execute
Original:🇺🇸 English
Translated
Use after /plan to apply the planned changes. Reads .handoff/plan.md and writes/updates code exactly as specified, runs sync commands listed in the plan, and runs the read-only compile check (config's typecheck) as a safety net. Does NOT run tests or lint — those belong to /verify. Honors per-item risk tags from plan to decide check granularity. Pair with /plan and /verify. Part of the agent-handoff bundle (4 skills) — install /setup-handoff, /plan, /execute, /verify together.
43installs
Sourcewillowryu/agent-handoff
Added on
NPX Install
npx skill4agent add willowryu/agent-handoff executeTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Execute
Apply the changes that describes. Stay strictly inside the plan; never improvise.
plan.mdGate (run first)
- Read . If missing, abort:
.handoff/config.md❌ No config found. Runfirst./setup-handoff - Read . If missing, abort:
.handoff/plan.md❌ No plan found. Runfirst./plan - Both present → proceed.
- If plan has and a phase is marked
## Phases, only that phase's change list is in scope. Phases marked[🔄]are already done; phases marked[x]are future work for later cycles.[ ]
Output language
All output from this skill — conversational replies to the user, status messages, blocker reports, AND notes — uses the language specified by 's . Default if config missing or field absent: . Code edits, file paths, command syntax, and shell command output stay in their native language.
task.mdconfig.mdresponse_languageenWorkflow
-
Readend-to-end.
plan.md -
Createwith one checkbox per change list entry plus one per sync command.
.handoff/task.md -
Check for parallelization. Ifhas a
plan.mdsection AND your host agent supports parallel subagent dispatch (e.g., Claude Code's Task tool), dispatch one subagent per independent group instead of applying sequentially in step 4. The dispatcher (this skill instance) owns## Parallelizationupdates; subagents apply file edits only and report completion per file. Wait for all subagents before running sync commands (step 5). If a subagent hits a blocker, follow the blocker protocol in boundaries.md. If host doesn't support parallel dispatch or notask.mdsection exists, fall back to sequential application below.## ParallelizationInteraction with risk tags: in parallel dispatch mode, the per-item compile-check granularity from step 4 does NOT apply — subagents do file edits only, and only the final safety-net check (step 6) runs. If a plan hasormediumrisk-tagged items inside a parallelizable group, those items lose their per-item compile-check safety. Plan authors are expected to keep high-risk items out ofhighgroups (see plan/SKILL.md step 6); if you encounter this combination during execute, proceed but note it in the final task.md notes section.## Parallelization -
For each change list item, apply per its risk tag (plans without tags are treated as low):
- low / untagged: apply edits, update task.md after each. No per-item compile check.
- medium: apply edits → run compile check (config's , if set) → update task.md. On failure, see step 6.
typecheck - high: apply edits → run compile check → update task.md immediately (so progress is durable across blockers) → only then proceed. On failure, see step 6.
-
After code edits done, run sync commands one by one. Update task.md per command.
-
Final compile check (safety net). Ifhas a
config.mdcommand, run it. Skipped if config has no typecheck or plan explicitly opts out viatypecheckin a(none — ...)plan section.## Compile check- Pass → continue to step 7.
- Fail → make at most ONE fix attempt, restricted to files/lines listed in the current change list. Re-run.
- Still fail (or fix would require touching out-of-plan files) → blocker. STOP and report per Boundaries.
-
Print:
✅ task.md updated. All planned changes applied. Compile check ✅. Next step: /verify (strongly recommended in a fresh chat)
Boundaries
See boundaries.md. Critical points:
- Only run: commands listed under "Sync commands" in the plan, AND the command from
typecheck(read-only compile check).config.md - Never run tests or lint — those belong to /verify. Anything that mutates files (e.g. , formatters) stays in /verify regardless.
eslint --fix - Risk tags only adjust check granularity. They never grant authority to edit files outside the plan.
- Compile-fail recovery: at most one fix attempt within the plan's listed files/lines. If that doesn't resolve it, blocker.
- Never modify plan.md.
- If a critical blocker is discovered (the plan can't be executed as written), STOP, print:
Do NOT improvise around it.
⚠️ Blocker: <description>. Plan needs revision — run `/plan` again.