d-sorganization/tools/prepare-execution-plan
Claude Code and agent skill by d-sorganization/tools
- community
Checking that the SKILL.md file is still in the repository.
Decompose a high-level delivery plan into a precise, file-level execution sequence with explicit ordering, edge cases, and test checkpoints. Activate after delivery-high-level-plan for complex or multi-phase Stories before implementation begins.
Install
npx vskill@latest install d-sorganization/tools/prepare-execution-planSKILL.md
The same SKILL.md was published earlier as d-sorganization/tools/prepare-execution-plan.
Prepare Execution Plan
Purpose / When to Activate
Activate after delivery-high-level-plan when the Story meets at least one of:
- Touches more than 3 files or modules
- Has cross-cutting concerns (shared state, API contracts, migrations)
- Requires a specific implementation order to avoid breakage
- Contains edge cases or error paths that are non-trivial to sequence
- Has a history of QA failures on similar work
For simple Stories (1-2 files, clear criteria, no order constraints), delivery-high-level-plan output is sufficient — skip this skill.
Process
CRITICAL — Anti-Collision Guard (MUST execute before writing any output file): Before writing contexts/artefacts/plans/{id}.execution-plan.md (or {id}.plan-blocked.md), check if the target file already exists on disk:
- If it does NOT exist → proceed normally.
- If it DOES exist → read the existing file first. Then decide:
- If the existing content is from a different entity (different story ID, different epic) → STOP immediately, surface the ID collision to the human, do not proceed.
- If the existing content is from the same entity and an update is warranted → proceed, but preserve any human edits or prior findings that remain relevant. Treat this as an update, not a replacement.
- If the existing content is identical or still valid → skip writing, report "no changes needed".
This guard prevents the silent data loss incident of 2026-03-17 where concurrent sessions overwrote story files.
Phase 1 — Codebase Mapping
- Identify all files that will be created or modified
- Map dependencies between those files (who imports whom)
- Identify shared state, interfaces, or contracts that must remain stable across changes
- Flag any files with existing tests that may be affected
Phase 2 — Implementation Sequence
- Order changes to minimize broken states at each intermediate step:
- Define interfaces/types first (if applicable)
- Implement lowest-dependency modules first
- Update consumers after providers are stable
- Database/schema changes before logic changes
- Mark explicit checkpoints: points where partial work is testable and safe to commit
- Identify rollback boundaries: the last safe state before each risky change
Phase 3 — Edge Cases and Error Paths
- For each acceptance criterion, enumerate:
- Happy path behavior (must pass QA)
- Boundary conditions (empty, null, max values)
- Error paths (what should fail and how)
- Concurrency or timing concerns (if applicable)
- Map each edge case to an explicit test checkpoint
Phase 4 — Test Sequence
- Define test order aligned with implementation order:
- Unit tests for each module (written alongside implementation)
- Integration checkpoints where cross-module behavior is verified
- Acceptance criteria tests (the QA gate inputs)
- Flag which tests must pass before proceeding to the next implementation step
Phase 5 — Risk Register
- Surface any remaining ambiguities or risks:
- Acceptance criteria that are still partially ambiguous
- Files where blast radius is uncertain
- External dependencies or APIs that cannot be tested locally
- For each risk: proposed mitigation or escalation condition
Phase 6 — Consistency Gate
- Before finalizing: if the Story references multiple artefacts (Epic, PRD, prior decisions), flag any contradictions found between the plan and those artefacts. Record them in the Risk Register. Do not write the plan artefact if contradictions exist — write a
{id}.plan-blocked.mdinstead with the specific inconsistencies listed. The Planning Sub-Agent (not this skill) is responsible for invokingconsistency-checkbefore this skill runs.
Outputs
Saves to contexts/artefacts/plans/{id}.execution-plan.md.
Quality Checks
- Every acceptance criterion maps to at least one implementation step and one test checkpoint
- Implementation sequence has no circular dependencies
- Every risky step has an explicit rollback boundary
- Edge cases cover: happy path, at least one boundary, at least one error path
- No ambiguity remains in the implementation sequence — all files are named
Non-Goals
This skill must NOT:
- Write any code
- Modify the Story's acceptance criteria or scope
- Make architectural decisions not already implied by the high-level plan
- Produce test code (only test checkpoints and assertions to verify)
A precise execution plan makes implementation mechanical. Mechanical is auditable. Auditable is governed.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.gaai/core/skills/delivery/prepare-execution-plan/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/d-sorganization/tools/prepare-execution-plan)