tmdgusya/engineering-discipline/plan-crafting
Claude Code and agent skill by tmdgusya/engineering-discipline
- community
Checking that the SKILL.md file is still in the repository.
Use when a task's scope is clear and multi-step implementation is needed, before touching code. Triggered after clarification is complete, or when the user explicitly requests plan creation with a clear prompt.
Install
npx vskill@latest install tmdgusya/engineering-discipline/plan-craftingSKILL.md
Plan Crafting
Writes an executable plan document from a clearly defined work scope. Designed so tasks can be spawned as "worker-validator" pairs in parallel.
Core Principle
A plan document must be executable by a worker with zero codebase context, without any additional questions. All ambiguity must be resolved at the planning stage.
Hard Gates
- Every step must be executable. Placeholders (TBD, TODO, "implement later") are never allowed.
- Task conflicts must be prevented. Tasks modifying the same file must not run in parallel. Tasks with dependencies must wait for predecessor completion.
- Self-Review is mandatory. After writing the plan, verify its completeness yourself.
- Tasks decompose to minimal feature units. One task produces one clear deliverable.
When To Use
- After the clarification skill completes and a Context Brief file has been generated
- When the user explicitly requests plan creation with a clear prompt
- When multi-step implementation is needed and task ordering with dependencies must be defined
Input
This skill takes a Context Brief file as input. The Context Brief generated by the clarification skill is used to populate the plan header:
| Context Brief Field | Plan Header Mapping | |
|---|---|---|
| Goal | Goal | |
| Scope (In/Out) | Work Scope (included/excluded) | |
| Technical Context | Architecture + Tech Stack + basis for file structure mapping | |
| Constraints | Reflected as constraints during task decomposition | |
| Success Criteria | Used as Self-Review criteria | |
| Open Questions | Reflected as assumptions in the plan, then confirmed with the user |
If no Context Brief file exists (user directly requests a plan): confirm essential information (goal, work scope, tech stack) with the user before writing the plan.
When NOT To Use
- When work scope is still ambiguous (return to the clarification skill)
- Single-file edits, simple bug fixes, or other single-step tasks
- When the user explicitly says "skip the plan, just do it"
Plan Document Structure
Save Location
(User preferences for plan location override this default.)
Header
File Structure Mapping
Before defining tasks, map out which files will be created or modified. Decomposition decisions are locked in at this stage.
- Each file should have one clear responsibility.
- Files that change together should live together. Split by responsibility, not by technical layer.
- Follow existing codebase patterns. If the codebase uses large files, don't unilaterally restructure — but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.
- File structure informs task decomposition. Each task should produce a self-contained change that makes sense independently.
Verification Discovery
Before decomposing tasks, discover the project's highest-level verification capability. This determines the Final Verification Task that closes every plan.
Discovery order (use the first match):
- Existing e2e tests — search for
e2e/,tests/e2e/,cypress/,playwright/,test:e2ein package.json,e2etargets in Makefile/Taskfile - Integration tests — search for
tests/integration/,integration_test,test:integrationscripts - Verification skill or agent — check
.claude/skills/,.claude/agents/, and installed plugins for anything namedverify,validate,e2e, ortest - Project test suite — any test runner (
pytest,jest,go test,cargo test, etc.) with broad coverage - Build + lint — if no tests exist, the highest available verification is a successful build + lint pass
If no meaningful verification exists (level 5 only): Add a Task 0: Create Verification Infrastructure that sets up the minimal verification needed for this plan:
- Identify the project's tech stack and appropriate test framework
- Create an e2e or integration test that exercises the plan's core success criteria
- This test should fail before implementation and pass after all tasks complete
Record the discovery result in the plan header:
Project Capability Discovery
Before decomposing tasks, also discover project-level agents and skills that workers can leverage:
- Project agents — check
.claude/agents/for agents relevant to the task domain (e.g., atest-runneragent, adb-migrationagent) - Plugin agents — check installed plugins for specialized agents (e.g.,
build-validator,lint-fixer) - Project skills — check
.claude/skills/for skills that match task operations
If useful agents/skills are found, reference them in task steps where applicable:
Workers are not required to use discovered agents — they are hints for efficiency. The worker may execute steps directly if the agent is unavailable or unsuitable.
Task Decomposition
When decomposing tasks, consider the following:
1. Parallelism and Dependencies
Tasks should be designed for maximum parallel execution. However, the following cases require waiting for a predecessor task to complete:
- Tasks modifying the same file (prevents file conflicts)
- Tasks where one task's output is referenced by another (interface dependency)
- Tasks that modify shared state (database schema, config files, etc.)
Dependencies are stated in the task header:
Tasks with no dependencies are marked as parallelizable:
2. Worker-Validator Structure
Each task is designed so an independent worker (subagent) can execute it and a separate validator can verify it:
- Worker: Executes the task's steps. The task's Goal and Acceptance Criteria are the binding contract; the steps are the intended route. Where the codebase contradicts a step, the worker adapts minimally to satisfy the criteria (see run-plan's adaptation rules).
- Validator: Judges the task's Acceptance Criteria against the codebase, binary per criterion. Nothing else — regression checking and plan-level success criteria belong to later verification layers.
This structure enables spawning multiple tasks simultaneously, each independently verifiable. It only works if the criteria are written to be judged without interpretation — see Acceptance Criteria Rules below.
3. Task Granularity
Each step is one action (2-5 minutes):
- "Write the failing test" — one step
- "Run it to make sure it fails" — one step
- "Write the minimal code to make the test pass" — one step
- "Run the tests and make sure they pass" — one step
- "Commit" — one step
Task Format
def test_specific_behavior(): result = function(input) assert result == expected
def function(input): return expected
git add tests/path/test.py src/path/file.py git commit -m "feat: add specific feature"
File references use symbol anchors, not line numbers. Line ranges (file.ts:123-145) go stale the moment an earlier task edits the file. Anchor to what survives edits: function names, class names, config keys, section headers.
Acceptance Criteria Rules
Acceptance Criteria are the task's contract — the worker adapts steps to reality, but the criteria are non-negotiable, and the validator judges nothing else.
- Every task has at least one criterion. A task whose completion cannot be stated as criteria is not a task — it's a wish.
- Every criterion must be binary-decidable. An independent validator, reading the code and running the listed commands, must be able to answer met / not-met with no judgment call. If a criterion needs interpretation, it is a plan failure — rewrite it.
- Plan failures: "code is clean", "handles errors appropriately", "works correctly", "reasonably fast"
- Binary-decidable: "
pytest tests/api/test_users.pypasses", "POST /api/users with missing email returns 400", "grep -r 'legacyParser' src/returns no matches"
- The overall task verdict is the AND of its criteria. No partial credit, no "mostly done". One unmet criterion = task not done.
- Criteria state outcomes, not implementation. "Uses a HashMap internally" is not a criterion; "lookup returns in the passing test" is. Criteria must survive the worker choosing a different route than the steps describe.
Final Verification Task
Every plan must end with a Final Verification Task that runs the discovered highest-level verification. This is always the last task, depends on all other tasks, and cannot be parallelized.
If the final verification fails, the plan is not complete. The worker-validator loop in run-plan will handle failure response (see run-plan's E2E Failure Response Protocol).
No Placeholders
Every step must contain the actual content a worker needs. These are plan failures — never write them:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/plan-crafting/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/tmdgusya/engineering-discipline/plan-crafting)