with one click
execute-plan
// Execute one supervisor-assigned goal inside one workspace, decompose it locally, drive resulting tasks to completion serially, and send one final report back to the supervisor.
// Execute one supervisor-assigned goal inside one workspace, decompose it locally, drive resulting tasks to completion serially, and send one final report back to the supervisor.
| name | execute-plan |
| description | Execute one supervisor-assigned goal inside one workspace, decompose it locally, drive resulting tasks to completion serially, and send one final report back to the supervisor. |
Execute one supervisor-provided goal inside one workspace. This session owns one planner lane.
Workflow protocol baseline is defined by agent-deck-workflow/SKILL.md.
Provide the mailbox body from execute_plan.
delegate-task; direct planner implementation is the fallback only when that skill's own decision gate says delegation is not justifiedexecute_plan does not require planner to implement code personally; dispatch, review, closeout, and final report still count as completing the workflowplan_report_delivered message is successfully sent to supervisorFollow shared protocol in agent-deck-workflow/SKILL.md.
Skill-specific context resolution:
plan_id: explicit -> mailbox body -> asksupervisor_session_id: explicit -> mailbox body From header -> askplanner_session_id: explicit -> mailbox body To / Planner header -> current session id -> askworkspace: explicit -> mailbox body Workspace path -> askplanner_workspace: derive internally from workspaceworker_workspace: derive internally from workspaceintegration_branch: explicit -> mailbox body -> ask
per_task_review: explicit -> mailbox body -> default requiredfinal_review: explicit -> mailbox body -> default skipplanner_workspace = workspace and worker_workspace = workspace~/.config/ai-agent/skills/agent-deck-workflow/scripts/prepare-workspaces.sh --worker-workspace <worker_workspace> --planner-workspace <planner_workspace> --integration-branch <integration_branch> --planner-session-id <planner_session_id> --supervisor-session-id <supervisor_session_id>delegate-task and apply its own decision gate for whether delegation is justifieddelegate-task says delegation is justified, send the task and pass the chosen Per-task review policy into the delegate briefdelegate-task says the work should be done directly, planner may use Direct Planner ImplementationFinal integration review: required, run review-request against the planner-owned integration branch with requester_role = planner and review_lane = integration_finalplan_report_delivered message to supervisor; do not treat the plan as complete before this mailbox send succeedsUse this only after checking delegate-task and concluding, per that skill's own rules, that delegation is not justified and the work should be done directly.
Direct planner implementation is allowed only when all of the following hold:
If any item is uncertain, delegate instead. Once code is edited, planner is also coder for that task.
Required sequence:
Execution Flow; never commit on detached HEADtask_branch from integration_branch
task/<plan_id>-<short-slug> or task/<task_id>task_branch must differ from integration_branchtask_branch only when it is clearly the same unfinished direct taskworker_workspacePer-task review: required:
review-request with requester_role = planner, review_lane = task, the recorded branch plan, and the delivery commit or task branch as scopereview-request create or reuse the reviewer on demand with parent_session_id = <planner_session_id>review-request sends the request, optionally wait, do independent local work, or stopcloseout_delivered, handle it with planner-closeout before marking the task donePer-task review: skip, run workspace prepare for this task, then run planner-closeout-batch.sh directly with the recorded task_branch, integration_branch, worker_workspace, planner_workspace, task_id, and task dir before marking the task doneTasks CompletedDirect-task git writes, commits, review requests, and closeout are workflow-authorized on this direct-work path. Ask the user only for real scope/tradeoff decisions, explicit human gates, dirty-worktree conflicts, or branch ownership blockers.
delegate-task owns the delegate-vs-direct decision rule for code-changing tasks; do not invent a second local classifier heredelegate-task indicates the work should be done directly; for this path, planner still implements in the prepared worker_workspaceplan_report_delivered is successfully sent to supervisor.agent-artifacts/planner-workspace.json as a cross-task lock; each task that can reach closeout must prepare its own reservation firstTask: <plan_id>
Action: plan_report_delivered
From: planner <planner_session_id>
To: supervisor <supervisor_session_id>
Planner: <planner_session_id>
Round: final
## Summary
[Completed / blocked summary]
## Goal Status
- Outcome: [completed | blocked]
- Integration branch: [integration_branch]
## Tasks Completed
- <task_id or planner-defined step>: [result]
## Review Summary
- Per-task review policy used: [required | skip]
- Final integration review: [required | skip]
- Final review result: [not run | approved | needs follow-up]
## Open Items
- [item or `None`]
worker_workspace and planner_workspace equal for the full dispatched plan; do not introduce a second workspaceintegration_branch for the full plan unless the user explicitly changes itintegration_branch as the planner-owned branch prepared for this dispatched plan; do not reinterpret it as the supervisor landing branch and do not silently jump onto some older leftover branchworker_workspace as authoritative until an explicit task branch is attachedHEAD; use the explicit integration_branch from workflow context insteadintegration_branch before committingintegration_branch and planner closeout later needs to attach it here, stop immediately instead of letting the plan fail only at final closeout--override-workspaces only after explicit user confirmation to replace the mirrored planner-workspace.json recordsprepare-workspaces.sh --release-workspaces is only for explicit script-reported cleanup recoveryexecute_plan delivery, complete the final report and the delivery lifecycle step before ending[HINT] Download the complete skill directory including SKILL.md and all related files