[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DK435PTKP8BGEN4FB91X17":3,"skill-same:01M7DK435PTKP8BGEN4FB91X17":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M7DK435PTKP8BGEN4FB91X17","dh-execute-plan",null,"Orchestrate full plan execution: read plan.md, iterate sub-tasks delegating execution and review, resume on interruption, final-review sign-off, update index.md. Use when the user says 'execute plan', 'run the plan', or 'finish all tasks'.","andrescevp\u002Fdevelopment-harness","andrescevp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10025841?v=4","01M7DK1Q07H5GT5R4JSGMWV1DE","Andres Cevallos","01M7DK1Q18W9DHVMV4HZ4BQAY3",8,"MIT","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-execute-plan\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dh-execute-plan\ndescription: >\n  Orchestrate full plan execution: read plan.md, iterate sub-tasks delegating execution and review, resume on interruption, final-review sign-off, update index.md. Use when the user says 'execute plan', 'run the plan', or 'finish all tasks'.\nlicense: MIT\ncompatibility: opencode, copilot, antigravity\nallowed-tools: read, write, edit, bash\nmetadata:\n  audience: developers\n  workflow: development\n---\n\nOrchestrate the complete execution of a plan from start to finish. Iterate through all phases and their sub-tasks in order, delegate execution and review, handle interruptions, and produce a final sign-off.\n\n## Core Rules\n\n- Create a feature branch per plan execution\n  - Check you are in main branch and create the feature branch.\n  - If not in feature branch, ask user permission to continue before any change.\n  - if working in monorepos with git submodules create a branch per submodule along with the branch of the main repository to align and trace commints between repositories.\n- Read the plan with the `dh_plan_read` tool (`{ slug }` → structured JSON: meta, phases[].title\u002Fstatus, subTasks[].phase\u002Ftitle\u002Fstatus). Fallback when the tool is unavailable: read `.\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>\u002Fplan.md` manually, following the phased template markers (`## Phases` → `### Phase N: \u003Ctitle>` → `#### Sub-Task N.M: \u003Ctitle>` with `- **Status:**` bullets). These tools are exposed by the project-scope `dh` MCP server; under Code Mode they are called as `tools.dh.\u003Ctool>`, and `dh_\u003Ctool>` is the tool's normalized name (permission actions match `dh_*`).\n- If the plan file does not exist, stop and report — suggest running the `dh-planning` skill first.\n- **Paused handoff guard:** if `.\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>\u002Fhandoff.md` exists with `status: paused`, do not start execution from plan statuses. Stop and direct the user to `dh-resume-plan` for that slug (it rehydrates context and detects drift). Bypass only on an explicit user instruction to skip rehydration.\n- Iterate **phases in order**; within each phase, iterate its sub-tasks in order.\n- Phase lifecycle: a phase becomes `In Progress` when its first sub-task starts; it becomes `Completed` only when ALL its sub-tasks are `Completed`.\n- Do not re-execute sub-tasks already marked `Completed`.\n- If a sub-task is marked `In Progress`, resume from it (don't restart from the beginning).\n- Update statuses with the `dh_plan_update_status` tool (`{ slug, target: \"phase\"|\"subtask\", index: \"N\"|\"N.M\", status }`): mark a sub-task `In Progress` before execution, `Completed` after its review passes, and a phase `Completed` only when all its sub-tasks are `Completed`. Fallback when the tool is unavailable: manual plan.md edits following the marker rules (only blank lines precede status bullets).\n- After each sub-task execution, run the `dh-review` skill before proceeding to the next.\n- If a review produces P0\u002FP1 findings, stop and report — do not continue to the next sub-task (a blocked sub-task blocks its phase).\n- After the final sub-task, run the `dh-final-review` skill for sign-off.\n- Update `.\u002Fdocs\u002Fplans\u002Findex.md` when the plan is fully complete.\n- **Resolve the roster once per plan:** before the first delegation, read `## Agent Selection` in `plan.md` and validate its rows for the delegated, review, and final-review roles. If the section or a required row is absent or stale (a named agent no longer exists), run the selection protocol in [`..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md`](..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md): discover the runtime agent list, then project config\u002Fagent directories, then global definitions; record the choices and generic fallbacks in the plan before continuing.\n- **One delegated agent per sub-task:** the active sub-task's `Delegated to agent` is the single executor. Implementation sub-tasks normally name the selected implementation agent; documentation\u002Ftest-only sub-tasks name the matching selected role. There is no complexity- or type-based builder split. If the field is missing\u002Fempty\u002Funknown or the named agent is unavailable, stop and report the gap — never substitute one silently.\n- **Project type awareness is delegated to `dh-execute-plan-task`.** The orchestrator does not re-detect project type — the task skill runs the software\u002Fnon-software post-steps. Do not hardcode implementation, review, or final-review agent choices in the orchestration loop.\n- **After plan completion (all projects):** invoke `dh-create-documentation` to update docs and create the plan's evolution + observation notes (see its Custom Directives). This ensures knowledge persists beyond the active session.\n- **After plan completion (software projects only):** invoke `dh-semver` for determining the next version bump.\n\n## Workflow\n\n### Step 1: Read plan and assess state\n\nRead the plan (via `dh_plan_read`; fallback: manual read) and determine the starting point using this ordered priority:\n\n0. Paused handoff: if `.\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>\u002Fhandoff.md` exists with `status: paused`, stop and direct the user to `dh-resume-plan`. Do not apply priorities 1–4 until the handoff is `resumed` or the user explicitly bypasses it.\n1. If all sub-tasks are `Completed` (every phase `Completed`), run `dh-final-review` skill only and proceed to Step 3. Skip the execution loop.\n2. Resume mode: if one or more phases are `In Progress`, start from the FIRST `In Progress` phase, then its FIRST sub-task marked `In Progress` or `Pending`.\n3. If all phases are `Pending` (all sub-tasks `Pending`), start from Phase 1's first sub-task.\n4. If the plan has no phases\u002Fsub-tasks, or every phase\u002Fsub-task has an unrecognized status, report the ambiguous state and stop.\n\n### Step 2: Execution loop\n\nIterate **phases in order** (skip phases already `Completed`); within each phase, iterate its sub-tasks starting from the determined starting point:\n\n0. **Mark In Progress**: Ensure the active sub-task is marked `In Progress` via `dh_plan_update_status` (`target: \"subtask\"`). If it is already `In Progress` (resume), leave the state. Marking the first sub-task of a phase also moves that phase to `In Progress` (phase lifecycle). Fallback: manual plan.md edit per the marker rules. This ensures resume works if interrupted.\n\n0b. **Resolve agents**: confirm the plan's `## Agent Selection` names available agents for the delegated, review, and (at the end) final-review roles, and confirm the active sub-task carries a `Delegated to agent` that matches one of them. A missing\u002Fempty\u002Funknown field is a hard blocker: stop and ask the planner\u002Fuser to fix the plan before delegating. A selected agent missing with no capability fallback also stops the run.\n\n1. **Execute**: Follow the `dh-execute-plan-task` skill to implement this sub-task. Since this is called from the orchestrator, `dh-execute-plan-task` skips its internal review and completion steps (per its orchestration guard).\n\n2. **Verify**: Run the `dh-review` skill to verify the sub-task result against its acceptance criteria and produce findings in `.\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>\u002Ftasks\u002Freview.md`.\n\n3. **Check findings**: Read the review output:\n   - If P0\u002FP1 findings exist: stop the execution loop and report the blocking issues. Do not mark this sub-task `Completed` — a blocked sub-task blocks its phase (loop rule 2.4). Recommend fixing findings and re-running.\n   - If no P0\u002FP1 findings: mark the sub-task `Completed` via `dh_plan_update_status` (`target: \"subtask\"`, status `Completed`). Fallback: manual edit.\n\n3a. **Close the phase**: When ALL sub-tasks of the current phase are `Completed`, mark the phase `Completed` via `dh_plan_update_status` (`target: \"phase\"`, status `Completed`; the tool refuses phase → `Completed` while any sub-task is open) and report the phase completion. Fallback: manual edit.\n\n4. **Repeat**: Continue to the next sub-task, then the next phase, until all phases are completed.\n\n### Step 3: Final sign-off\n\nAfter all sub-tasks are completed and verified:\n\n1. Run the `dh-final-review` skill for the comprehensive final plan review.\n2. Read the final review verdict from `.\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>\u002Ftasks\u002Freview.md`.\n3. If the verdict is `Request changes`: report the findings — do not mark the plan complete.\n4. If the verdict is `Approve` or `Approve with comments`: proceed to Step 4.\n\n### Step 4: Document evolution and close\n\nAfter final sign-off passes and before marking the plan complete:\n\n1. **Generate documentation (all projects):** Invoke the `dh-create-documentation` skill to update project docs and create `docs\u002Fevolution\u002F\u003Cdate>-\u003Cslug>.md` (evolution note) + `docs\u002Fevolution\u002Fobservations\u002F\u003Cdate>-\u003Chhmm>-\u003Cslug>.md` (observation note), following its Custom Directives.\n\n2. **Version bump (software projects only):** Invoke the `dh-semver` skill to determine the correct version bump from commit history, generate a changelog, and create a git tag. **Backfill:** after `dh-semver` determines the version\u002Ftag, update the evolution note's `version` and the index `Plan\u002FRelease` entry with the new version\u002Ftag.\n\n3. **Mark plan complete** in `.\u002Fdocs\u002Fplans\u002Findex.md`:\n   - Locate the row for `\u003Cplan-slug>` and update the Status to `Completed` and Updated timestamp columns. If the slug is not found, append a new row.\n   - Set the plan status to `Completed`.\n\n4. Report the plan completion with a summary:\n   - Total sub-tasks completed\n   - Final review verdict\n   - Any deferred P2\u002FP3 findings\n   - Documentation generated (yes\u002Fno — details)\n   - Version bump (if applicable)\n   - Evolution & observation notes (paths)\n   - Plan ready for merge\n\n## Resume Mode\n\nThe execution loop automatically handles interruptions:\n\n- A paused handoff takes precedence over status-based resume: run `dh-resume-plan` first. If the handoff is absent or already `resumed`, continue with the phase-aware priority in Step 1.\n- Step 2.0 explicitly marks the current sub-task as `In Progress` before delegating to `dh-execute-plan-task`. If the tool is interrupted, the next invocation reads the plan and finds this `In Progress` sub-task.\n- Resume from Step 1, which detects the phase-aware state (priority 2: first `In Progress` phase → its first `In Progress`\u002F`Pending` sub-task) and continues the loop from there.\n- If interruption occurs after review but before the `Completed` mark, the sub-task remains `In Progress` on resume — re-run the review to verify before marking Complete.\n\n## Error Handling\n\n- **Paused handoff present:** do not execute around it — redirect to `dh-resume-plan` or get explicit confirmation to bypass.\n- **Sub-task execution fails** (validation keeps failing): `dh-execute-plan-task` stops after 3 validation attempts and reports the failure. Do not proceed to the next sub-task — the blocked sub-task blocks its phase (loop rule 2.4: never mark the phase `Completed` around a blocker).\n- **Missing or invalid `Delegated to agent`:** stop before any delegation and report the sub-task; the plan must be fixed rather than executed under a guessed owner.\n- **Review produces blocking findings**: Stop the execution loop. Recommend fixing the findings (using the `address-review` pattern) and re-running `dh-execute-plan`.\n- **Final review fails**: Report the verdict — do not mark the plan complete until findings are addressed.\n\n## Loop Integration (bundled)\n\nThis copy is bundled in the plugin; the loop below is the harness runtime\ncontract (full text in repo-root AGENTS.md). Plan execution follows it in\norder — do not skip steps and never silently continue past a blocker:\n\n1. `dh-planning` (use `dh-domain-check` while planning)\n2. `dh-execute-plan`\n   2.1 `dh-execute-plan-task` (delegate code implementation through the `dh-coding` skill)\n   2.2 `dh-simplify`\n   2.3 `dh-review` + `dh-code-review`\n   2.4 IF hard blockers → stop and ask guidance; otherwise keep the `dh-execute-plan-task` loop\n3. `dh-preflight` + `dh-artifact-check`\n4. `dh-final-review`\n5. `dh-create-documentation` (also writes the evolution and observation notes)\n\n**Step 2.4 halts automation.** When `dh-execute-plan-task` (or any loop step)\nhits a hard blocker — repeated validation failures (3 consecutive strikes),\nunresolved P0\u002FP1 review findings, or missing preconditions that cannot be\nworked around — the loop STOPS: report the blocker and ask the user for\nguidance. Never silently continue, never skip the blocked step, and never mark\nsub-tasks Complete around a blocker. The rule applies at phase boundaries\ntoo: a blocked sub-task blocks its phase — do not mark the phase `Completed`\naround a blocker. Before stopping for a hard blocker or ending the session,\nrun `dh-pause-plan` to preserve the phase\u002Fsub-task, git state, decisions,\nblockers, and next steps in `handoff.md`; resume later with `dh-resume-plan`.\n\n## References\n\n- Fast variant: `dh-execute-plan-fast` executes from `plan_fast.md` with no per-task gates and defers critical verification to plan end; `plan.md` stays the scope truth.\n- [`..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md`](..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md): discovery, ranking, recording, and re-validation protocol for every delegated role.\n- `dh-execute-plan-task` skill: executes a single sub-task.\n- `dh-review` skill: verifies a single sub-task result.\n- `dh-final-review` skill: produces plan-level sign-off.\n- `dh-create-documentation` skill: updates docs and writes the evolution\u002Fobservation notes after plan completion (all projects).\n\n## Doc search\n\n**Documentation management:** delegate create \u002F update \u002F delete \u002F retrieve of generated documents (excluding docs\u002Fplans) to the best available documentation agent (bundled documentation capability as fallback) — the main and only documentation owner (see dh-create-documentation).\n\nSearch generated documentation quickly: `notesmd-cli search-content \"\u003Cterm>\" --vault \"\u003Cproject-name>\"` or `obsidian search query=\"\u003Cterm>\"` (fallback: `rg --glob '*.md' \"\u003Cterm>\" docs\u002F`).\n","Orchestrate the complete execution of a plan from start to finish. Iterate through all phases and their sub-tasks in order, delegate execution and review, handle interruptions, and produce a final sign-off.\n\n## Core Rules\n\n- Create a feature branch per plan execution\n  - Check you are in main branch and create the feature branch.\n  - If not in feature branch, ask user permission to continue before any change.\n  - if working in monorepos with git submodules create a branch per submodule along with the branch of the main repository to align and trace commints between repositories.\n- Read the plan with the `dh_plan_read` tool (`{ slug }` → structured JSON: meta, phases[].title\u002Fstatus, subTasks[].phase\u002Ftitle\u002Fstatus). Fallback when the tool is unavailable: read `.\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>\u002Fplan.md` manually, following the phased template markers (`## Phases` → `### Phase N: \u003Ctitle>` → `#### Sub-Task N.M: \u003Ctitle>` with `- **Status:**` bullets). These tools are exposed by the project-scope `dh` MCP server; under Code Mode they are called as `tools.dh.\u003Ctool>`, and `dh_\u003Ctool>` is the tool's normalized name (permission actions match `dh_*`).\n- If the plan file does not exist, stop and report — suggest running the `dh-planning` skill first.\n- **Paused handoff guard:** if `.\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>\u002Fhandoff.md` exists with `status: paused`, do not start execution from plan statuses. Stop and direct the user to `dh-resume-plan` for that slug (it rehydrates context and detects drift). Bypass only on an explicit user instruction to skip rehydration.\n- Iterate **phases in order**; within each phase, iterate its sub-tasks in order.\n- Phase lifecycle: a phase becomes `In Progress` when its first sub-task starts; it becomes `Completed` only when ALL its sub-tasks are `Completed`.\n- Do not re-execute sub-tasks already marked `Completed`.\n- If a sub-task is marked `In Progress`, resume from it (don't restart from the beginning).\n- Update statuses with the `dh_plan_update_status` tool (`{ slug, target: \"phase\"|\"subtask\", index: \"N\"|\"N.M\", status }`): mark a sub-task `In Progress` before execution, `Completed` after its review passes, and a phase `Completed` only when all its sub-tasks are `Completed`. Fallback when the tool is unavailable: manual plan.md edits following the marker rules (only blank lines precede status bullets).\n- After each sub-task execution, run the `dh-review` skill before proceeding to the next.\n- If a review produces P0\u002FP1 findings, stop and report — do not continue to the next sub-task (a blocked sub-task blocks its phase).\n- After the final sub-task, run the `dh-final-review` skill for sign-off.\n- Update `.\u002Fdocs\u002Fplans\u002Findex.md` when the plan is fully complete.\n- **Resolve the roster once per plan:** before the first delegation, read `## Agent Selection` in `plan.md` and validate its rows for the delegated, review, and final-review roles. If the section or a required row is absent or stale (a named agent no longer exists), run the selection protocol in [`..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md`](..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md): discover the runtime agent list, then project config\u002Fagent directories, then global definitions; record the choices and generic fallbacks in the plan before continuing.\n- **One delegated agent per sub-task:** the active sub-task's `Delegated to agent` is the single executor. Implementation sub-tasks normally name the selected implementation agent; documentation\u002Ftest-only sub-tasks name the matching selected role. There is no complexity- or type-based builder split. If the field is missing\u002Fempty\u002Funknown or the named agent is unavailable, stop and report the gap — never substitute one silently.\n- **Project type awareness is delegated to `dh-execute-plan-task`.** The orchestrator does not re-detect project type — the task skill runs the software\u002Fnon-software post-steps. Do not hardcode implementation, review, or final-review agent choices in the orchestration loop.\n- **After plan completion (all projects):** invoke `dh-create-documentation` to update docs and create the plan's evolution + observation notes (see its Custom Directives). This ensures knowledge persists beyond the active session.\n- **After plan completion (software projects only):** invoke `dh-semver` for determining the next version bump.\n\n## Workflow\n\n### Step 1: Read plan and assess state\n\nRead the plan (via `dh_plan_read`; fallback: manual read) and determine the starting point using this ordered priority:\n\n0. Paused handoff: if `.\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>\u002Fhandoff.md` exists with `status: paused`, stop and direct the user to `dh-resume-plan`. Do not apply priorities 1–4 until the handoff is `resumed` or the user explicitly bypasses it.\n1. If all sub-tasks are `Completed` (every phase `Completed`), run `dh-final-review` skill only and proceed to Step 3. Skip the execution loop.\n2. Resume mode: if one or more phases are `In Progress`, start from the FIRST `In Progress` phase, then its FIRST sub-task marked `In Progress` or `Pending`.\n3. If all phases are `Pending` (all sub-tasks `Pending`), start from Phase 1's first sub-task.\n4. If the plan has no phases\u002Fsub-tasks, or every phase\u002Fsub-task has an unrecognized status, report the ambiguous state and stop.\n\n### Step 2: Execution loop\n\nIterate **phases in order** (skip phases already `Completed`); within each phase, iterate its sub-tasks starting from the determined starting point:\n\n0. **Mark In Progress**: Ensure the active sub-task is marked `In Progress` via `dh_plan_update_status` (`target: \"subtask\"`). If it is already `In Progress` (resume), leave the state. Marking the first sub-task of a phase also moves that phase to `In Progress` (phase lifecycle). Fallback: manual plan.md edit per the marker rules. This ensures resume works if interrupted.\n\n0b. **Resolve agents**: confirm the plan's `## Agent Selection` names available agents for the delegated, review, and (at the end) final-review roles, and confirm the active sub-task carries a `Delegated to agent` that matches one of them. A missing\u002Fempty\u002Funknown field is a hard blocker: stop and ask the planner\u002Fuser to fix the plan before delegating. A selected agent missing with no capability fallback also stops the run.\n\n1. **Execute**: Follow the `dh-execute-plan-task` skill to implement this sub-task. Since this is called from the orchestrator, `dh-execute-plan-task` skips its internal review and completion steps (per its orchestration guard).\n\n2. **Verify**: Run the `dh-review` skill to verify the sub-task result against its acceptance criteria and produce findings in `.\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>\u002Ftasks\u002Freview.md`.\n\n3. **Check findings**: Read the review output:\n   - If P0\u002FP1 findings exist: stop the execution loop and report the blocking issues. Do not mark this sub-task `Completed` — a blocked sub-task blocks its phase (loop rule 2.4). Recommend fixing findings and re-running.\n   - If no P0\u002FP1 findings: mark the sub-task `Completed` via `dh_plan_update_status` (`target: \"subtask\"`, status `Completed`). Fallback: manual edit.\n\n3a. **Close the phase**: When ALL sub-tasks of the current phase are `Completed`, mark the phase `Completed` via `dh_plan_update_status` (`target: \"phase\"`, status `Completed`; the tool refuses phase → `Completed` while any sub-task is open) and report the phase completion. Fallback: manual edit.\n\n4. **Repeat**: Continue to the next sub-task, then the next phase, until all phases are completed.\n\n### Step 3: Final sign-off\n\nAfter all sub-tasks are completed and verified:\n\n1. Run the `dh-final-review` skill for the comprehensive final plan review.\n2. Read the final review verdict from `.\u002Fdocs\u002Fplans\u002F\u003Cplan-slug>\u002Ftasks\u002Freview.md`.\n3. If the verdict is `Request changes`: report the findings — do not mark the plan complete.\n4. If the verdict is `Approve` or `Approve with comments`: proceed to Step 4.\n\n### Step 4: Document evolution and close\n\nAfter final sign-off passes and before marking the plan complete:\n\n1. **Generate documentation (all projects):** Invoke the `dh-create-documentation` skill to update project docs and create `docs\u002Fevolution\u002F\u003Cdate>-\u003Cslug>.md` (evolution note) + `docs\u002Fevolution\u002Fobservations\u002F\u003Cdate>-\u003Chhmm>-\u003Cslug>.md` (observation note), following its Custom Directives.\n\n2. **Version bump (software projects only):** Invoke the `dh-semver` skill to determine the correct version bump from commit history, generate a changelog, and create a git tag. **Backfill:** after `dh-semver` determines the version\u002Ftag, update the evolution note's `version` and the index `Plan\u002FRelease` entry with the new version\u002Ftag.\n\n3. **Mark plan complete** in `.\u002Fdocs\u002Fplans\u002Findex.md`:\n   - Locate the row for `\u003Cplan-slug>` and update the Status to `Completed` and Updated timestamp columns. If the slug is not found, append a new row.\n   - Set the plan status to `Completed`.\n\n4. Report the plan completion with a summary:\n   - Total sub-tasks completed\n   - Final review verdict\n   - Any deferred P2\u002FP3 findings\n   - Documentation generated (yes\u002Fno — details)\n   - Version bump (if applicable)\n   - Evolution & observation notes (paths)\n   - Plan ready for merge\n\n## Resume Mode\n\nThe execution loop automatically handles interruptions:\n\n- A paused handoff takes precedence over status-based resume: run `dh-resume-plan` first. If the handoff is absent or already `resumed`, continue with the phase-aware priority in Step 1.\n- Step 2.0 explicitly marks the current sub-task as `In Progress` before delegating to `dh-execute-plan-task`. If the tool is interrupted, the next invocation reads the plan and finds this `In Progress` sub-task.\n- Resume from Step 1, which detects the phase-aware state (priority 2: first `In Progress` phase → its first `In Progress`\u002F`Pending` sub-task) and continues the loop from there.\n- If interruption occurs after review but before the `Completed` mark, the sub-task remains `In Progress` on resume — re-run the review to verify before marking Complete.\n\n## Error Handling\n\n- **Paused handoff present:** do not execute around it — redirect to `dh-resume-plan` or get explicit confirmation to bypass.\n- **Sub-task execution fails** (validation keeps failing): `dh-execute-plan-task` stops after 3 validation attempts and reports the failure. Do not proceed to the next sub-task — the blocked sub-task blocks its phase (loop rule 2.4: never mark the phase `Completed` around a blocker).\n- **Missing or invalid `Delegated to agent`:** stop before any delegation and report the sub-task; the plan must be fixed rather than executed under a guessed owner.\n- **Review produces blocking findings**: Stop the execution loop. Recommend fixing the findings (using the `address-review` pattern) and re-running `dh-execute-plan`.\n- **Final review fails**: Report the verdict — do not mark the plan complete until findings are addressed.\n\n## Loop Integration (bundled)\n\nThis copy is bundled in the plugin; the loop below is the harness runtime\ncontract (full text in repo-root AGENTS.md). Plan execution follows it in\norder — do not skip steps and never silently continue past a blocker:\n\n1. `dh-planning` (use `dh-domain-check` while planning)\n2. `dh-execute-plan`\n   2.1 `dh-execute-plan-task` (delegate code implementation through the `dh-coding` skill)\n   2.2 `dh-simplify`\n   2.3 `dh-review` + `dh-code-review`\n   2.4 IF hard blockers → stop and ask guidance; otherwise keep the `dh-execute-plan-task` loop\n3. `dh-preflight` + `dh-artifact-check`\n4. `dh-final-review`\n5. `dh-create-documentation` (also writes the evolution and observation notes)\n\n**Step 2.4 halts automation.** When `dh-execute-plan-task` (or any loop step)\nhits a hard blocker — repeated validation failures (3 consecutive strikes),\nunresolved P0\u002FP1 review findings, or missing preconditions that cannot be\nworked around — the loop STOPS: report the blocker and ask the user for\nguidance. Never silently continue, never skip the blocked step, and never mark\nsub-tasks Complete around a blocker. The rule applies at phase boundaries\ntoo: a blocked sub-task blocks its phase — do not mark the phase `Completed`\naround a blocker. Before stopping for a hard blocker or ending the session,\nrun `dh-pause-plan` to preserve the phase\u002Fsub-task, git state, decisions,\nblockers, and next steps in `handoff.md`; resume later with `dh-resume-plan`.\n\n## References\n\n- Fast variant: `dh-execute-plan-fast` executes from `plan_fast.md` with no per-task gates and defers critical verification to plan end; `plan.md` stays the scope truth.\n- [`..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md`](..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md): discovery, ranking, recording, and re-validation protocol for every delegated role.\n- `dh-execute-plan-task` skill: executes a single sub-task.\n- `dh-review` skill: verifies a single sub-task result.\n- `dh-final-review` skill: produces plan-level sign-off.\n- `dh-create-documentation` skill: updates docs and writes the evolution\u002Fobservation notes after plan completion (all projects).\n\n## Doc search\n\n**Documentation management:** delegate create \u002F update \u002F delete \u002F retrieve of generated documents (excluding docs\u002Fplans) to the best available documentation agent (bundled documentation capability as fallback) — the main and only documentation owner (see dh-create-documentation).\n\nSearch generated documentation quickly: `notesmd-cli search-content \"\u003Cterm>\" --vault \"\u003Cproject-name>\"` or `obsidian search query=\"\u003Cterm>\"` (fallback: `rg --glob '*.md' \"\u003Cterm>\" docs\u002F`).\n",{"name":5,"license":15,"metadata":24,"description":27,"allowed-tools":28,"compatibility":29},{"audience":25,"workflow":26},"developers","development","Orchestrate full plan execution: read plan.md, iterate sub-tasks delegating execution and review, resume on interruption, final-review sign-off, update index.md. Use when the user says 'execute plan', 'run the plan', or 'finish all tasks'.\n","read, write, edit, bash","opencode, copilot, antigravity","main","f7ddc0c3b3190e379bda1059d53f861bd4e1f30d","skills\u002Fdh-execute-plan",1,"https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness","https:\u002F\u002Fgithub.com\u002Fandrescevp","2026-11-10 07:43:44",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add andrescevp\u002Fdevelopment-harness --skill dh-execute-plan",{"tool":43,"command":44},"bunx","bunx skills add andrescevp\u002Fdevelopment-harness --skill dh-execute-plan",{"tool":46,"command":47},"pnpm","pnpm dlx skills add andrescevp\u002Fdevelopment-harness --skill dh-execute-plan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-execute-plan\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7DK6HMNFES75RNB4G6TE55T","dh-simplify","Review changed code for reuse, quality, and efficiency (three parallel reviews), then fix findings directly. Use after making changes or when asked to clean up, refactor, simplify, or improve this code.","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-simplify\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7DK6BFEQ9PVZTHKV0DR66BR","dh-setup","Audit system software, configure user MCPs\u002Fplugins, scaffold project QA (hooks + per-stack tools), bootstrap docs\u002Farchitecture with the selected architecture agent, and write harness directives into AGENTS.md. Use to check requirements or setup the environment.","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-setup\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7DK62N6CDZ2TH890AX2Z7P9","dh-semver","Apply strict Semantic Versioning — analyze commits since the last tag to determine the bump type (major\u002Fminor\u002Fpatch from conventional commit prefixes), generate an automated changelog grouped by breaking changes, features, fixes, and chores, and create a git tag locally without pushing until confirmed, handling both conventional commits and manual version decisions. Use when preparing a release, invoked by dh-execute-plan after plan completion and dh-final-review for release readiness, or when the user asks \"what version is next?\", \"bump version\", \"generate changelog\", \"tag release\", or \"what changed since last release?\".","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-semver\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7DK5SM44RAH10HM59JC6ZPZ","dh-review","Verify a plan sub-task against acceptance criteria, scope, done-when; review diff, validation, regression risk; structured verdict to tasks\u002Freview.md. Plan Alignment Mode (fast execution) is a separate mode: no sub-task selection, no diff review, no code review — it compares plan.md with plan_fast.md and writes tasks\u002Freview-fast.md (pre-execution) or tasks\u002Freview-fast-final.md (plan-end). Use after implementation, to review\u002Fverify the sub-task, or to check fast-plan alignment.","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-review\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7DK5KKZ05K0FR0ARFHA58KG","dh-resume-plan","Resume a paused phased plan from docs\u002Fplans\u002F\u003Cslug>\u002Fhandoff.md: validate the contract, detect drift, rehydrate context, mark the handoff resumed, and continue via dh-execute-plan resume mode. Use when the user says \"resume the plan\", \"continue where we stopped\", \"pick up the plan\", or \"resume after a pause\".","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-resume-plan\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7DK5E10T47JWQAJSAXJHHGD","dh-preflight","Run tests, linters, static analysis as a release gate: auto-detect tooling, check dirty state, pass\u002Ffail verdict with actionable failures (no auto-fixes). Use to run preflight, pre-release check, or validate before release.","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-preflight\u002FSKILL.md",[],[]]