/engineering-discipline:run-planfrom engineering-discipline
Loads a written implementation plan, reviews it critically, then executes tasks in dependency order using a worker-validator loop. Use when you have a plan ready and want reliable, verified execution.
Ships in engineering-discipline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Loads a written plan document, reviews it critically, then executes tasks in dependency order using a worker-validator loop.
Do not follow plans blindly. If the plan has issues, flag them before executing. But if the plan is clear, execute it faithfully.
plan-crafting skillplan-crafting first)clarification skill)Before reviewing the plan, discover what the project offers for verification and execution:
Verification infrastructure — read the plan's Verification Strategy header. If present, use it. If absent, run the same discovery as plan-crafting:
Available agents and skills — scan for project-level agents (.claude/agents/), plugin agents, and project skills (.claude/skills/) that workers can leverage. If the plan references specific agents in task steps, verify they exist before execution begins.
If an agent/skill is referenced but missing: Notify the user. Do not block execution — workers can execute steps directly without the agent.
plan-crafting)Each task runs through a Compliance Check → Worker Implementation → Validator Review cycle. If the validator rejects, feedback is sent back to the worker for re-implementation.
digraph task_loop {
rankdir=TB;
"Compliance check (subagent)" [shape=box];
"Worker implements (subagent)" [shape=box];
"Validator reviews (subagent)" [shape=box];
"Pass?" [shape=diamond];
"Task complete" [shape=doublecircle];
"Compliance check (subagent)" -> "Worker implements (subagent)";
"Worker implements (subagent)" -> "Validator reviews (subagent)";
"Validator reviews (subagent)" -> "Pass?";
"Pass?" -> "Task complete" [label="Pass"];
"Pass?" -> "Worker implements (subagent)" [label="Fail\nfeedback delivered"];
}
For each task, perform the following cycle:
2-1. Compliance Check (subagent)
Before starting a task, verify that the current task aligns with the plan:
If issues found: notify the user and resolve before proceeding.
2-2. Worker Implementation (subagent, via Agent tool)
Dispatch a subagent (worker) via the Agent tool to execute the task's steps:
2-3. Validator Review (subagent, via Agent tool — information-isolated)
Dispatch a separate subagent (validator) via the Agent tool. The validator operates under an information barrier — it knows only what the task was supposed to accomplish, not what the worker did or how.
Constructing the validator prompt:
The main agent must NOT compose the validator prompt freely. Use the fixed template below, filling only the four designated fields by copying verbatim from the plan document. Do not paraphrase, summarize, or add context beyond what the template specifies.
You are an independent validator. You have no knowledge of how this task
was implemented. Your job is to judge whether the codebase currently meets
the goal described below, by reading files and running tests yourself.
## Task Goal
{TASK_GOAL}
— Copy the task's goal statement verbatim from the plan.
## Acceptance Criteria
{ACCEPTANCE_CRITERIA}
— Copy the task's acceptance criteria verbatim from the plan.
Each criterion is a concrete, verifiable condition.
## Files To Inspect
{FILE_LIST}
— Copy the list of files this task is expected to create or modify,
as listed in the plan.
## Test Commands
{TEST_COMMANDS}
— Copy any test execution commands or verification steps
specified in the plan for this task.
## Your Review Process
1. Read each file in the file list directly from disk.
2. For each acceptance criterion, determine whether it is met
based on what you see in the code. Record PASS or FAIL per criterion —
binary only, no "partially met".
3. Run every test command listed above. Record results.
4. Note (do not judge) residual issues you happen to see: placeholder
code (TODO, FIXME, stubs), debug code, commented-out blocks.
## Your Output
Verdict = AND of all acceptance criteria and listed tests.
PASS only if every criterion is met and every listed test passes.
Anything less is FAIL — no partial credit, no "close enough".
- If PASS: confirm which criteria were verified and which tests passed.
- If FAIL: list exactly which criteria failed and why, with file paths
and line numbers. Do not suggest fixes — only describe what is wrong.
- Residual issues from step 4 are advisory findings appended to the
report. They do not affect the verdict.
Verification layer separation: the validator judges only this task's contract — its Acceptance Criteria and listed test commands. It does NOT run the full test suite; cross-task regression checking happens exactly once, at the E2E Verification Gate (Step 3), not N times per task.
What must NOT appear in the validator prompt:
Why a fixed template: The main agent has seen the worker's output and may unconsciously frame the validator's task in terms of what the worker did. A fixed template eliminates this channel — the validator sees only the plan's original specification, not the main agent's post-worker understanding.
Validation results:
Retry limit: If the same task fails 3 consecutive times (worker retries and amendments combined), report the situation to the user and request intervention.
Plan Amendment Protocol (plan-defect failures):
Triggered when triage classifies a failure as a plan defect, or when a worker stops at its adaptation limits.
## Plan Amendment Log section at the bottom of the plan file: what changed, why, and which task's failure triggered it. Amendments live in the file, not in conversation memory — later tasks' compliance checks and review-work both read the plan file, so an unamended file means drift.Parallel Execution Rules (Hard Gate #4):
Tasks that can run in parallel must be dispatched in parallel. Grouping them sequentially is prohibited.
Parallel execution conditions (all must be met):
When running in parallel:
Commit protocol for parallel tasks: Workers dispatched in parallel do NOT execute their task's commit step — concurrent git add/git commit in a shared working tree race on the git index and can interleave staging across tasks. Instead, after each task's validator passes, the main agent stages exactly that task's files (from the plan's Files list) and creates that task's commit, sequentially. Sequentially-executed tasks commit as written in the plan.
Sequential execution required for:
After all tasks are complete (including the Final Verification Task if present), run the highest-level verification as an independent gate:
If all pass: Report success summary to the user.
If E2E verification fails — Failure Response Protocol:
The E2E gate failure means individual tasks passed their validators but the system as a whole doesn't work. This is an integration problem, not a task-level problem.
Diagnose (attempt 1):
Re-diagnose (attempt 2):
Escalate to user (after 2 failed attempts):
Stop executing immediately and ask the user for help when:
Ask for clarification rather than guessing.
After each task completion, verify:
The validator does NOT check whether the code matches the plan's steps literally — the worker may have adapted the route. The criteria are the contract.
| Anti-Pattern | Why It Fails |
|---|---|
| Executing without reviewing the plan | Plan errors propagate into implementation |
| Skipping verification steps | Errors accumulate, debugging cost increases later |
| Guessing when blocked | Spec drift, rework required |
| Running non-parallelizable tasks in parallel | File conflicts, dependency tangles |
| Running parallelizable tasks sequentially | Wasted time, unnecessary execution delay |
Parallel workers each running git commit | Git index race; interleaved staging mixes tasks into one commit |
| Worker failing a task because a line anchor was stale | Criteria are the contract, not the route; adapt and report instead |
| Worker silently deviating from the plan without reporting | Main agent loses the audit trail; validator may pass code the plan never intended |
| Validator running the full test suite per task | N redundant suite runs; regression checking belongs to the E2E gate, once |
| Retrying the worker against a plan-defect failure | Burns the retry budget on an impossible task; triage first, amend the plan |
| Weakening an acceptance criterion so a failing implementation passes | Reward hacking — the binary verdict exists to catch this, not to be bent around it |
| Amending the plan in conversation only, not in the plan file | Later compliance checks and review-work read the file; an unamended file means silent drift |
| Main agent performing worker/validator roles inline | Defeats independent verification; confirmation bias |
| Passing worker output to the validator | Validator anchors on worker's framing instead of judging independently |
| Composing the validator prompt freely instead of using the fixed template | Main agent unconsciously leaks worker context through word choice and framing |
| Paraphrasing the plan instead of copying verbatim into the template | Paraphrasing filters through the main agent's post-worker understanding, introducing bias |
| Starting implementation on main/master without explicit user consent | Prohibited without explicit approval |
| Skipping the E2E gate because individual tasks all passed | Task-level pass ≠ system-level pass; integration bugs hide between tasks |
| Retrying E2E failures more than twice without user escalation | Wastes budget; user may have context about the root cause |
After plan execution is complete:
review-work skillclarification skill to resolveplan-crafting skill to reviseThis skill itself does not invoke the next skill. It ends by reporting execution results and letting the user choose the next step.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/clarificationUse when a user's request is vague, ambiguous, or underspecified. Explores the codebase first, then runs an iterative Q&A loop grounded in the findings until ambiguity is gone. Outputs a clear, well-scoped context brief so the user can plan sharply. Triggers on "I want to...", "I need...", "let's build...", "can you help me...", "we should...", or any request where the full scope isn't immediately clear./clean-ai-slopCorrective cleanup of AI-generated code — removes LLM-specific patterns while preserving behavior. Use when the user says "deslop", "slop", "clean AI code", "remove AI patterns", or when you spot LLM-generated code smells after any generation session. For general post-change review and fixes ("clean up", "simplify"), use the simplify skill instead./npx claudepluginhub tmdgusya/engineering-discipline --plugin engineering-disciplineOther plugins' skills for the same job