| allowed-tools | ["Read","Write","Edit","Bash","Grep","Glob"] |
| description | Use when a PLAN.md file exists and requires execution to implement tasks atomically with commits. |
| name | executor |
| trigger | ํ๋ ์คํ, ๊ณํ ์คํ, PLAN.md ์คํ, execute plan, start implementation, PLAN.md ์คํํ๊ธฐ, plan execute, run plan, implement plan, task ์คํ, atomic execution, plan carry out, ์์
์์, plan run, execute tasks, commit tasks, start plan execution, plan ๊ตฌํ |
Quick Reference
- Deviation Judgment: Rule 1-3(๋ฒ๊ทธ/๊ธฐ๋ฅ/์ฐจ๋จ)์ ์๋ ์์ , Rule 4(์ํคํ
์ฒ) ๋๋ ๋ถ๋ณ ์กฐ๊ฑด ์๋ฐ ์ ์ฆ์ ์ค๋จ
- Checkpoint Protocol: ์ง์ ๋ ์ฒดํฌํฌ์ธํธ ๋๋ฌ ์ ์ฆ์ STOP, ์ธ๊ฐ์ ๊ฒ์ฆ/๊ฒฐ์ /ํ๋ ์์ฒญ
- Commit Discipline: ๊ฐ Task ์๋ฃ ์ 1 commit ์์น ์ค์ (
feat({phase}-{plan}): {task})
- Output Generation: Plan ์๋ฃ ์ SUMMARY.md ์์ฑ ๋ฐ Execution Memory ์ ์ฅ ํ์
- Cross-Phase Safety: ์ด์ Phase ๋ถ๋ณ ์กฐ๊ฑด ์๋ฐ ๊ฐ์ง ์ ์ฆ์ Rule 4 ์ ์ฉ
Execution Flow
| Step | Action | Detail |
|---|
| 1 | Load Project State | cat .hxsk/STATE.md โ parse phase/plan/status |
| 2 | Load Plan | Parse frontmatter, objective, tasks, success criteria |
| 3 | Determine Pattern | A=autonomous, B=checkpoints, C=continuation, D=parallel wave |
| 4 | Execute Tasks | autoโwork+verify+commit; checkpointโSTOP |
| 5 | Handle Deviations | Rule 1-3=auto-fix; Rule 4=checkpoint |
| 6 | Commit Tasks | One task = one commit (see commit protocol) |
| 7 | Create SUMMARY.md | .hxsk/phases/{N}/{plan}-SUMMARY.md |
| 8 | Store Memory | md-store-memory.sh execution-summary |
์์ธ ํ๋ฆ โ references/execution-flow.md
Cross-Phase Invariants ํ์ฑ
cross_phase_invariants.inherit + new ํ๋๋ฅผ ์ฝ์ด ๋ด์ฌํ.
์คํ ์ค ์ฝ๋/๋ก์ง์ด ์ด ์กฐ๊ฑด์ ์๋ฐํ๋ฉด โ ์ฆ์ Rule 4 (์ํคํ
์ฒ ์ฒดํฌํฌ์ธํธ) ์ ์ฉ.
์๋ฐ ์ ํธ:
- ์ด์ phase ํ
์คํธ๊ฐ ํ์ฌ ์ฝ๋์์ ์คํจ
- ๋ช
์๋ ๋ถ๋ณ ์กฐ๊ฑด๊ณผ ๋ฐ๋๋๋ ๋ก์ง ์ถ๊ฐ
- semantic ์ ์ฝ (e.g. "status=='Y' โบ state โ {...}") ํ๊ดด
Deviation Rules
| Rule | Trigger | Action |
|---|
| Rule 1 | Bug / wrong behavior | Auto-fix + track |
| Rule 2 | Missing critical functionality | Auto-add + track |
| Rule 3 | Blocking issue | Auto-fix blocker + continue |
| Rule 4 | Architectural change needed | STOP โ checkpoint |
Priority: Rule 4 first. If unsure โ Rule 4.
์์ธ ๊ท์น + Deviation Memory + Authentication Gates โ references/deviation-rules.md
Checkpoint Protocol
Types: human-verify (90%) ยท decision (9%) ยท human-action (1%)
When checkpoint hit: STOP immediately. Return structured message.
Return format + Continuation Handling โ references/checkpoint-protocol.md
Task Commit & Output
git add -A && git commit -m "feat({phase}-{plan}): {task}"
SUMMARY.md โ .hxsk/phases/{N}/{plan}-SUMMARY.md
Memory โ md-store-memory.sh "Plan {phase}-{plan} Summary" ...
์ ์ฒด ํ๋กํ ์ฝ (Phase Checkpoint, PRD Update, SUMMARY format, Anti-Patterns, ๊ด๋ จ์คํฌ, ๋ค์ดํฐ๋ธ๋๊ตฌ) โ references/commit-protocol.md
Iron Laws
NO EXECUTION WITHOUT STATE AND PLAN LOADING FIRST
NO ARCHITECTURAL CHANGE WITHOUT CHECKPOINT FIRST
NO TASK COMPLETION WITHOUT ATOMIC COMMIT FIRST
NO CONTINUATION WITHOUT CHECKPOINT HANDLING FIRST
NO CODE LOGIC VIOLATION WITHOUT ARCHITECTURAL CHECKPOINT FIRST
NO SUMMARY GENERATION WITHOUT TASK EXECUTION FIRST