원클릭으로
run-plan
Execute implementation plan phases for a change.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Execute implementation plan phases for a change.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Review open PR/MR and publish findings.
Interactive decision planning session to prepare canonical context, classification, rigor, and decision rights for /write-decision. Supports all decision types (ADR/PDR/TDR/BDR/ODR).
Review a decision record via @decision-critic for an independent challenge (read-only; returns PASS / PASS_WITH_RISKS / REWORK).
Generate a Decision Record (ADR/PDR/TDR/BDR/ODR) from planning context, rendered proportionally by rigor.
Run the Definition of Ready gate.
Run ADOS project inception
| name | run-plan |
| description | Execute implementation plan phases for a change. |
| model | sonnet |
| allowed-tools | ["Read","Write","Edit","Glob","Grep","Bash","WebFetch","mcp__*"] |
<discovery_rules>
Locate change folder: search doc/changes/**/*--<workItemRef>--*/
If not found, search for spec file: doc/changes/**/chg-<workItemRef>-spec.md
Plan file: chg-<workItemRef>-plan.md inside the change folder.
Spec file: chg-<workItemRef>-spec.md for change.type and slug validation.
Folder pattern: doc/changes/YYYY-MM/YYYY-MM-DD--<workItemRef>--<slug>/
Never reference doc/changes/current/ in edits or evidence.
</discovery_rules>
<branch_rules>
<change.type>/<workItemRef>/<slug>
1. If current branch matches pattern → keep. 2. Else attempt checkout existing branch. 3. Else create new branch. 4. Abort if dirty working tree contains unrelated staged changes.
</branch_rules>
<directive_parsing> Supported (case-insensitive):
Defaults (no directive): phasesToRun=1; askForReview=true; commitMode=per-phase. </directive_parsing>
<plan_parsing_rules>
Phase header regex: /^### Phase (\d+):/
Tasks: checkboxes under "Tasks:" until blank line or "Acceptance Criteria:"
Unchecked: - [ ]; Completed: - [x]
Completion: replace token only, append note e.g. (done: added config & tests)
Acceptance criteria: lines start with "- Must:" or "- Should:"; append (PASSED: <summary>) or (FAILED: <summary>)
Execution Log: header "## Execution Log"; append if missing
</plan_parsing_rules>
<core_principles> Determinism: parsing & updates never reorder tasks or phases. Minimality: edit only necessary lines; avoid broad formatting changes. Traceability: every edit tied to task completion; commits atomic. Autonomy: proceed without prompting unless blocked. Idempotence: re-running resumes cleanly without duplicating evidence. </core_principles>
<phase_execution_rules> For each selected phase:
/commit./commit.<commit_rules>
Use /commit for Conventional Commit generation.
Per-phase default; per-task if directive present.
Ensure no unrelated changes bleed across commits.
Tasks with no code changes: mark completed; commit with other changes.
</commit_rules>
<partial_failure_policy>
After 3 fix attempts: mark task as (done: partial; deferred X).
Do not mark acceptance criteria PASSED if behaviors deferred.
Commit partial progress; pause and request guidance (override for blocking failure).
</partial_failure_policy>
<quality_gates> Auto-detect once per invocation (cache for subsequent phases):
<dry_run_behavior> No file edits, no commits. Output structured summary: starting phase, phasesToRun, task counts, detected commands, commit plan, next resume command. </dry_run_behavior>
<output_contract> Update plan file with task completion, acceptance evidence, Execution Log (unless dry run). Produce commits per commit_rules. Emit concise summary: phases executed, tasks completed, gates status, deferrals, next phase. On all phases complete: announce completion. </output_contract>
1. Parse $ARGUMENTS: first token → workItemRef; remainder → directives. 2. Validate workItemRef format (uppercase prefix + hyphen + digits). 3. Locate spec & plan via discovery_rules; derive slug & change.type; validate presence. 4. Validate plan structure (at least one phase with Tasks section). 5. Ensure correct branch per branch_rules. 6. Parse directives; decide phasesToRun, commitMode, askForReview, dryRun. 7. Identify start phase (earliest with unchecked task or missing acceptance evidence). 8. If dryRun: output summary; STOP. 9. Detect quality gate commands (cache). 10. Loop phases applying phase_execution_rules & partial_failure_policy. 11. Perform commits per policy. 12. Summarize; if askForReview=true and remaining phases exist → pause. 13. If all phases complete → final summary.<plan_update_rules> Modify only: task checkbox lines; acceptance criteria lines; Execution Log section. Keep original line order & spacing (no reflow). Evidence parenthetical ≤ 80 chars; lowercase verbs; avoid redundancy. If Execution Log missing → append canonical section before first update. </plan_update_rules>
<error_handling> Capture stderr snippet (5-10 lines) for gate failures; summarize root cause. Retry up to 3 focused fixes; if persists, log deferral & proceed if non-blocking. Blocking failure → phase abort + partial commit; require review. </error_handling>
Fail fast if: - Spec or plan missing. - slug or change.type not derivable. - Target phase invalid or already complete. - No tasks and no acceptance criteria in targeted phase. Produce clear error; no edits/commits. 1) /run-plan PDEV-123 → Executes next incomplete phase; commits once; asks for review. 2) /run-plan GH-456 execute next 3 phases no review → Runs 3 phases without pausing. 3) /run-plan PDEV-123 execute phase 4 commit per task → Jumps to phase 4; commits per task. 4) /run-plan GH-456 dry run execute all remaining phases → Simulates; outputs plan. Plan produced by `/write-plan` template structure. `/commit` handles Conventional Commit formatting automatically.