From 46cf4b11dee635282c82b8023f2ac2421ea1dce9 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Tue, 13 Jan 2026 17:01:10 -0600 Subject: [PATCH] feat(execute-phase): add deviation rules, commit rules, and workflow references Co-Authored-By: Claude Opus 4.5 --- commands/gsd/execute-phase.md | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/commands/gsd/execute-phase.md b/commands/gsd/execute-phase.md index 3dd9cdb98..57d497828 100644 --- a/commands/gsd/execute-phase.md +++ b/commands/gsd/execute-phase.md @@ -4,6 +4,8 @@ description: Execute all plans in a phase with wave-based parallelization argument-hint: "" allowed-tools: - Read + - Write + - Edit - Glob - Grep - Bash @@ -22,7 +24,11 @@ Context budget: ~15% orchestrator, 100% fresh per subagent. @~/.claude/get-shit-done/workflows/execute-phase.md +@~/.claude/get-shit-done/workflows/execute-plan.md @~/.claude/get-shit-done/templates/subagent-task-prompt.md +@~/.claude/get-shit-done/templates/summary.md +@~/.claude/get-shit-done/references/checkpoints.md +@~/.claude/get-shit-done/references/tdd.md @@ -104,6 +110,42 @@ grep -c 'type="checkpoint' {plan_path} - Safe for parallel wave execution + +During execution, handle discoveries automatically: + +1. **Auto-fix bugs** - Fix immediately, document in Summary +2. **Auto-add critical** - Security/correctness gaps, add and document +3. **Auto-fix blockers** - Can't proceed without fix, do it and document +4. **Ask about architectural** - Major structural changes, stop and ask user +5. **Log enhancements** - Nice-to-haves, log to ISSUES.md, continue + +Only rule 4 requires user intervention. + + + +**Per-Task Commits:** + +After each task completes: +1. Stage only files modified by that task +2. Commit with format: `{type}({phase}-{plan}): {task-name}` +3. Types: feat, fix, test, refactor, perf, chore +4. Record commit hash for SUMMARY.md + +**Plan Metadata Commit:** + +After all tasks complete: +1. Stage planning artifacts only: PLAN.md, SUMMARY.md, STATE.md, ROADMAP.md +2. Commit with format: `docs({phase}-{plan}): complete [plan-name] plan` +3. NO code files (already committed per-task) + +**NEVER use:** +- `git add .` +- `git add -A` +- `git add src/` or any broad directory + +**Always stage files individually.** + + - [ ] All incomplete plans in phase executed - [ ] Each plan has SUMMARY.md