skills/src/execute-plan/SKILL.md
Executes one user-selected task from an approved plan bundle using TDD, or rechecks DoD independently (mode=implement|dod-recheck). Use when the user specifies a task ID to implement, e.g. "execute Task 3" or "implement task 5", after decompose-plan review PASS. Also use with dod-recheck mode when the user says "recheck task DoD", "verify task completion", or "dod-recheck".
npx skillsauth add shuymn/dotfiles execute-planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<skill-root> means the directory containing this SKILL.md.scripts/... and references/... relative to <skill-root>, not the caller's current working directory.<skill-root>/scripts/....Determine the execution mode from $ARGUMENTS:
$ARGUMENTS includes a standalone token dod-recheck, --dod-recheck, or mode=dod-recheck → DoD Recheck Mode: read references/dod-recheck-mode.md and follow its instructions.# Plan Execution)Execute one selected task from an approved plan bundle. Do not continue to other tasks unless the user explicitly asks in a new instruction.
decompose-plan.decompose-plan review has produced .../plan.review.md with PASS verdict.Task 7).docs/plans/<topic>/plan.md (primary)docs/plans/<topic>/plan.trace.md (on-demand traceability evidence)docs/plans/<topic>/plan.compose.md (on-demand reconstruction evidence)docs/plans/<topic>/plan.review.md (required readiness gate)Before executing any task in implement mode, verify the plan review gate:
skit gate-check <review-file> <source-file>.Overall Verdict: PASS, and the Source Digest must match the current plan file.BLOCKED and request the user to run decompose-plan review first.Never choose a task implicitly. Reason: implicit selection hides unvalidated dependency assumptions and removes the user's control over execution rhythm.
plan.md.Trace Pack and Compose Pack paths from the plan header.skit bundle-validate-check <plan-file>. If it reports FAIL, stop and request plan correction.plan.md exists and includes the selected task ID.Checkpoint Summary exists and uses required keys:
Alignment VerdictScope Contract GuardQuality Gate GuardReview ArtifactTrace PackCompose PackUpdated AtCheckpoint Summary has Alignment Verdict: PASS, Scope Contract Guard: PASS, and Quality Gate Guard: PASS.Checkpoint Summary Trace Pack and Compose Pack values match header links..../plan.review.md (replace plan.md with plan.review.md) and has Overall Verdict: PASS. All sub-verdicts are validated programmatically by skit gate-check.plan.trace.md for requirement/anchor ambiguity.plan.compose.md for scope ambiguity.pending -> in_progress -> completed).If validation fails, stop and ask for plan correction before implementation.
RED: create failing test. If referenced implementation symbols/files do not exist, add minimal scaffolding first so the test compiles and runs. RED is valid only when the test runner executes the test and fails (assertion/runtime); compilation/import/module errors are not valid RED.GREEN: implement minimal code to pass RED.REFACTOR: perform safe cleanup while keeping tests green.DoD: treat all DoD items as AND conditions. Task completion requires every DoD item to pass.
Global Quality Gates apply., resolve the command list from the ## Quality Gates section in plan.md and run each command individually.Boundary Verification, run it fresh and confirm it closes on the real product path rather than scaffolding or mocks.deps and the DoD includes boundary-level tests (integration/contract/e2e), confirm those tests exercise the actual dependency implementations — not mock substitutes. If boundary tests run against mocks only, follow Stop Conditions.completed in TodoWrite.If expected results are not met, stop and follow Stop Conditions.
## Recheck Input
- **Task ID**: Task N
- **Risk Tier**: [Standard | Sensitive | Critical]
- **Task Contract Digest**: [sha256 of current task block]
- **Base Commit**: [git commit before implementation]
- **Implementation Files**:
- [repo-relative path]
- **Boundary Changes**: [owned | shared | cross-boundary]
- **DoD Commands**: [DoD verification command list]
- **Expected Outcomes**: [Expected result for each command]
- **Quality Gates**: [Resolved commands from `## Quality Gates`, if applicable]
- **Risk Flags**: [Any deviations recorded during implementation]
## Adversarial Verify Input
- **Task ID**: Task N
- **Risk Tier**: [Standard (impl) | Sensitive | Critical]
- **Minimum Probes**: [1 for Standard (impl) | 2 for Sensitive | 3 for Critical]
- **Required Scope**: [Standard (impl): most relevant 1 category | Sensitive: Category 1 + most relevant 1 category | Critical: all applicable categories]
- **Change Areas**: [Areas from Risk Classification that this task touches]
- **Change Rationale**: [From design doc Risk Classification]
- **Implementation Files**: [Files created/modified in this task]
- **Task Contract Digest**: [same digest as Recheck Input]
- **DoD Evidence**: [Summary of verification results]
Use repository-relative paths in both handoff blocks; do not emit absolute filesystem paths.Stop immediately and ask user guidance when:
deps, the DoD includes boundary-level tests, and those tests exercise only mock substitutes instead of actual dependency implementations.plan.md.plan.md.When stopped:
plan.md during execution.plan.trace.md only to resolve mapping/coverage ambiguity.plan.compose.md only to resolve scope ambiguity.plan.md.Before claiming task completion:
Avoid unevidenced completion claims.
| Situation | Action |
|-----------|--------|
| Test command in task is invalid | Apply minimal command correction, record deviation |
| Minor implementation adjustment needed | Make minimal adjustment, record deviation |
| Task is materially larger than planned scope | STOP; request plan reslicing |
| Missing prerequisite not captured by task | STOP; report dependency gap |
| Dependency completion is uncertain | Ask user for explicit confirmation and STOP |
| Test passes before intended change | STOP; plan may be stale |
| Sidecar and plan.md conflict | STOP; request plan bundle correction |
| User asks to continue immediately to another task | STOP current turn and request explicit next task ID |
| User asks to run execute-plan without task ID | Ask for explicit task ID and STOP |
development
Simplifies recently changed code by running three parallel reviews (reuse, quality, efficiency) and applying only behavior-preserving fixes. Use when the user asks to simplify, clean up, reduce duplication, improve code reuse, or optimize recently changed code, a staged diff, a branch diff, or explicitly listed files. Also use when the user says things like 'simplify this', 'まとめて整理して', 'コードをスリムにして', or invokes `/simplify`.
tools
Use when the user invokes /workflow. Injects project workflow methodology as context. Accepts argument: plan, exec, review (default: all).
development
Processes AI reviewer feedback and applies only verified fixes. Works in two modes: (1) fetches comments from a PR URL or current branch, (2) processes feedback pasted directly into the conversation. Trigger when the user wants to bulk-process or apply AI review suggestions — from a GitHub PR or pasted text. Do NOT trigger for single questions about what a bot said, or general code review discussion.
testing
Prepares .ralph/ runtime state from an approved and reviewed plan bundle. Syncs plan tasks into prd.json and updates prompt.run.md with project-specific context and quality gates. Use after plan approval, decompose-plan review PASS, and ralph init.