claude-cook 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +607 -0
  3. package/agents/gsd-codebase-mapper.md +738 -0
  4. package/agents/gsd-debugger.md +1203 -0
  5. package/agents/gsd-executor.md +784 -0
  6. package/agents/gsd-integration-checker.md +423 -0
  7. package/agents/gsd-phase-researcher.md +641 -0
  8. package/agents/gsd-plan-checker.md +745 -0
  9. package/agents/gsd-planner.md +1386 -0
  10. package/agents/gsd-pm.md +331 -0
  11. package/agents/gsd-project-researcher.md +865 -0
  12. package/agents/gsd-research-synthesizer.md +256 -0
  13. package/agents/gsd-roadmapper.md +605 -0
  14. package/agents/gsd-verifier.md +778 -0
  15. package/bin/install.js +1477 -0
  16. package/commands/gsd/add-phase.md +207 -0
  17. package/commands/gsd/add-todo.md +193 -0
  18. package/commands/gsd/audit-milestone.md +277 -0
  19. package/commands/gsd/check-todos.md +228 -0
  20. package/commands/gsd/complete-milestone.md +136 -0
  21. package/commands/gsd/debug.md +169 -0
  22. package/commands/gsd/discuss-phase.md +86 -0
  23. package/commands/gsd/execute-phase.md +339 -0
  24. package/commands/gsd/help.md +545 -0
  25. package/commands/gsd/insert-phase.md +227 -0
  26. package/commands/gsd/join-discord.md +18 -0
  27. package/commands/gsd/list-phase-assumptions.md +50 -0
  28. package/commands/gsd/map-codebase.md +71 -0
  29. package/commands/gsd/new-milestone.md +721 -0
  30. package/commands/gsd/new-project.md +1008 -0
  31. package/commands/gsd/pause-work.md +134 -0
  32. package/commands/gsd/plan-milestone-gaps.md +295 -0
  33. package/commands/gsd/plan-phase.md +525 -0
  34. package/commands/gsd/pm-check.md +115 -0
  35. package/commands/gsd/pm-replan.md +102 -0
  36. package/commands/gsd/pm-start.md +218 -0
  37. package/commands/gsd/pm-status.md +116 -0
  38. package/commands/gsd/pm-stop.md +72 -0
  39. package/commands/gsd/progress.md +415 -0
  40. package/commands/gsd/quick.md +309 -0
  41. package/commands/gsd/remove-phase.md +349 -0
  42. package/commands/gsd/research-phase.md +200 -0
  43. package/commands/gsd/resume-work.md +40 -0
  44. package/commands/gsd/set-profile.md +106 -0
  45. package/commands/gsd/settings.md +151 -0
  46. package/commands/gsd/update.md +172 -0
  47. package/commands/gsd/verify-work.md +219 -0
  48. package/get-shit-done/references/checkpoints.md +1078 -0
  49. package/get-shit-done/references/continuation-format.md +249 -0
  50. package/get-shit-done/references/git-integration.md +254 -0
  51. package/get-shit-done/references/model-profiles.md +73 -0
  52. package/get-shit-done/references/planning-config.md +189 -0
  53. package/get-shit-done/references/questioning.md +141 -0
  54. package/get-shit-done/references/tdd.md +263 -0
  55. package/get-shit-done/references/ui-brand.md +172 -0
  56. package/get-shit-done/references/verification-patterns.md +612 -0
  57. package/get-shit-done/references/vibe-kanban.md +142 -0
  58. package/get-shit-done/templates/DEBUG.md +159 -0
  59. package/get-shit-done/templates/UAT.md +247 -0
  60. package/get-shit-done/templates/codebase/architecture.md +255 -0
  61. package/get-shit-done/templates/codebase/concerns.md +310 -0
  62. package/get-shit-done/templates/codebase/conventions.md +307 -0
  63. package/get-shit-done/templates/codebase/integrations.md +280 -0
  64. package/get-shit-done/templates/codebase/stack.md +186 -0
  65. package/get-shit-done/templates/codebase/structure.md +285 -0
  66. package/get-shit-done/templates/codebase/testing.md +480 -0
  67. package/get-shit-done/templates/config.json +35 -0
  68. package/get-shit-done/templates/context.md +283 -0
  69. package/get-shit-done/templates/continue-here.md +78 -0
  70. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  71. package/get-shit-done/templates/discovery.md +146 -0
  72. package/get-shit-done/templates/milestone-archive.md +123 -0
  73. package/get-shit-done/templates/milestone.md +115 -0
  74. package/get-shit-done/templates/phase-prompt.md +567 -0
  75. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  76. package/get-shit-done/templates/pm-config.md +55 -0
  77. package/get-shit-done/templates/pm-log.md +27 -0
  78. package/get-shit-done/templates/project.md +184 -0
  79. package/get-shit-done/templates/requirements.md +231 -0
  80. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  81. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  82. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  83. package/get-shit-done/templates/research-project/STACK.md +120 -0
  84. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  85. package/get-shit-done/templates/research.md +529 -0
  86. package/get-shit-done/templates/roadmap.md +202 -0
  87. package/get-shit-done/templates/state.md +205 -0
  88. package/get-shit-done/templates/summary.md +246 -0
  89. package/get-shit-done/templates/ticket-map.md +28 -0
  90. package/get-shit-done/templates/user-setup.md +311 -0
  91. package/get-shit-done/templates/verification-report.md +322 -0
  92. package/get-shit-done/workflows/complete-milestone.md +903 -0
  93. package/get-shit-done/workflows/diagnose-issues.md +231 -0
  94. package/get-shit-done/workflows/discovery-phase.md +289 -0
  95. package/get-shit-done/workflows/discuss-phase.md +433 -0
  96. package/get-shit-done/workflows/execute-phase.md +671 -0
  97. package/get-shit-done/workflows/execute-plan.md +1844 -0
  98. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  99. package/get-shit-done/workflows/map-codebase.md +322 -0
  100. package/get-shit-done/workflows/pm-check.md +210 -0
  101. package/get-shit-done/workflows/pm-dispatch.md +104 -0
  102. package/get-shit-done/workflows/pm-replan.md +203 -0
  103. package/get-shit-done/workflows/pm-sync.md +130 -0
  104. package/get-shit-done/workflows/resume-project.md +307 -0
  105. package/get-shit-done/workflows/transition.md +556 -0
  106. package/get-shit-done/workflows/verify-phase.md +628 -0
  107. package/get-shit-done/workflows/verify-work.md +596 -0
  108. package/hooks/dist/gsd-check-update.js +61 -0
  109. package/hooks/dist/gsd-statusline.js +87 -0
  110. package/package.json +47 -0
  111. package/scripts/build-hooks.js +42 -0
  112. package/scripts/pm-loop.sh +155 -0
@@ -0,0 +1,202 @@
1
+ # Roadmap Template
2
+
3
+ Template for `.planning/ROADMAP.md`.
4
+
5
+ ## Initial Roadmap (v1.0 Greenfield)
6
+
7
+ ```markdown
8
+ # Roadmap: [Project Name]
9
+
10
+ ## Overview
11
+
12
+ [One paragraph describing the journey from start to finish]
13
+
14
+ ## Phases
15
+
16
+ **Phase Numbering:**
17
+ - Integer phases (1, 2, 3): Planned milestone work
18
+ - Decimal phases (2.1, 2.2): Urgent insertions (marked with INSERTED)
19
+
20
+ Decimal phases appear between their surrounding integers in numeric order.
21
+
22
+ - [ ] **Phase 1: [Name]** - [One-line description]
23
+ - [ ] **Phase 2: [Name]** - [One-line description]
24
+ - [ ] **Phase 3: [Name]** - [One-line description]
25
+ - [ ] **Phase 4: [Name]** - [One-line description]
26
+
27
+ ## Phase Details
28
+
29
+ ### Phase 1: [Name]
30
+ **Goal**: [What this phase delivers]
31
+ **Depends on**: Nothing (first phase)
32
+ **Requirements**: [REQ-01, REQ-02, REQ-03]
33
+ **Success Criteria** (what must be TRUE):
34
+ 1. [Observable behavior from user perspective]
35
+ 2. [Observable behavior from user perspective]
36
+ 3. [Observable behavior from user perspective]
37
+ **Plans**: [Number of plans, e.g., "3 plans" or "TBD"]
38
+
39
+ Plans:
40
+ - [ ] 01-01: [Brief description of first plan]
41
+ - [ ] 01-02: [Brief description of second plan]
42
+ - [ ] 01-03: [Brief description of third plan]
43
+
44
+ ### Phase 2: [Name]
45
+ **Goal**: [What this phase delivers]
46
+ **Depends on**: Phase 1
47
+ **Requirements**: [REQ-04, REQ-05]
48
+ **Success Criteria** (what must be TRUE):
49
+ 1. [Observable behavior from user perspective]
50
+ 2. [Observable behavior from user perspective]
51
+ **Plans**: [Number of plans]
52
+
53
+ Plans:
54
+ - [ ] 02-01: [Brief description]
55
+ - [ ] 02-02: [Brief description]
56
+
57
+ ### Phase 2.1: Critical Fix (INSERTED)
58
+ **Goal**: [Urgent work inserted between phases]
59
+ **Depends on**: Phase 2
60
+ **Success Criteria** (what must be TRUE):
61
+ 1. [What the fix achieves]
62
+ **Plans**: 1 plan
63
+
64
+ Plans:
65
+ - [ ] 02.1-01: [Description]
66
+
67
+ ### Phase 3: [Name]
68
+ **Goal**: [What this phase delivers]
69
+ **Depends on**: Phase 2
70
+ **Requirements**: [REQ-06, REQ-07, REQ-08]
71
+ **Success Criteria** (what must be TRUE):
72
+ 1. [Observable behavior from user perspective]
73
+ 2. [Observable behavior from user perspective]
74
+ 3. [Observable behavior from user perspective]
75
+ **Plans**: [Number of plans]
76
+
77
+ Plans:
78
+ - [ ] 03-01: [Brief description]
79
+ - [ ] 03-02: [Brief description]
80
+
81
+ ### Phase 4: [Name]
82
+ **Goal**: [What this phase delivers]
83
+ **Depends on**: Phase 3
84
+ **Requirements**: [REQ-09, REQ-10]
85
+ **Success Criteria** (what must be TRUE):
86
+ 1. [Observable behavior from user perspective]
87
+ 2. [Observable behavior from user perspective]
88
+ **Plans**: [Number of plans]
89
+
90
+ Plans:
91
+ - [ ] 04-01: [Brief description]
92
+
93
+ ## Progress
94
+
95
+ **Execution Order:**
96
+ Phases execute in numeric order: 2 → 2.1 → 2.2 → 3 → 3.1 → 4
97
+
98
+ | Phase | Plans Complete | Status | Completed |
99
+ |-------|----------------|--------|-----------|
100
+ | 1. [Name] | 0/3 | Not started | - |
101
+ | 2. [Name] | 0/2 | Not started | - |
102
+ | 3. [Name] | 0/2 | Not started | - |
103
+ | 4. [Name] | 0/1 | Not started | - |
104
+ ```
105
+
106
+ <guidelines>
107
+ **Initial planning (v1.0):**
108
+ - Phase count depends on depth setting (quick: 3-5, standard: 5-8, comprehensive: 8-12)
109
+ - Each phase delivers something coherent
110
+ - Phases can have 1+ plans (split if >3 tasks or multiple subsystems)
111
+ - Plans use naming: {phase}-{plan}-PLAN.md (e.g., 01-02-PLAN.md)
112
+ - No time estimates (this isn't enterprise PM)
113
+ - Progress table updated by execute workflow
114
+ - Plan count can be "TBD" initially, refined during planning
115
+
116
+ **Success criteria:**
117
+ - 2-5 observable behaviors per phase (from user's perspective)
118
+ - Cross-checked against requirements during roadmap creation
119
+ - Flow downstream to `must_haves` in plan-phase
120
+ - Verified by verify-phase after execution
121
+ - Format: "User can [action]" or "[Thing] works/exists"
122
+
123
+ **After milestones ship:**
124
+ - Collapse completed milestones in `<details>` tags
125
+ - Add new milestone sections for upcoming work
126
+ - Keep continuous phase numbering (never restart at 01)
127
+ </guidelines>
128
+
129
+ <status_values>
130
+ - `Not started` - Haven't begun
131
+ - `In progress` - Currently working
132
+ - `Complete` - Done (add completion date)
133
+ - `Deferred` - Pushed to later (with reason)
134
+ </status_values>
135
+
136
+ ## Milestone-Grouped Roadmap (After v1.0 Ships)
137
+
138
+ After completing first milestone, reorganize with milestone groupings:
139
+
140
+ ```markdown
141
+ # Roadmap: [Project Name]
142
+
143
+ ## Milestones
144
+
145
+ - ✅ **v1.0 MVP** - Phases 1-4 (shipped YYYY-MM-DD)
146
+ - 🚧 **v1.1 [Name]** - Phases 5-6 (in progress)
147
+ - 📋 **v2.0 [Name]** - Phases 7-10 (planned)
148
+
149
+ ## Phases
150
+
151
+ <details>
152
+ <summary>✅ v1.0 MVP (Phases 1-4) - SHIPPED YYYY-MM-DD</summary>
153
+
154
+ ### Phase 1: [Name]
155
+ **Goal**: [What this phase delivers]
156
+ **Plans**: 3 plans
157
+
158
+ Plans:
159
+ - [x] 01-01: [Brief description]
160
+ - [x] 01-02: [Brief description]
161
+ - [x] 01-03: [Brief description]
162
+
163
+ [... remaining v1.0 phases ...]
164
+
165
+ </details>
166
+
167
+ ### 🚧 v1.1 [Name] (In Progress)
168
+
169
+ **Milestone Goal:** [What v1.1 delivers]
170
+
171
+ #### Phase 5: [Name]
172
+ **Goal**: [What this phase delivers]
173
+ **Depends on**: Phase 4
174
+ **Plans**: 2 plans
175
+
176
+ Plans:
177
+ - [ ] 05-01: [Brief description]
178
+ - [ ] 05-02: [Brief description]
179
+
180
+ [... remaining v1.1 phases ...]
181
+
182
+ ### 📋 v2.0 [Name] (Planned)
183
+
184
+ **Milestone Goal:** [What v2.0 delivers]
185
+
186
+ [... v2.0 phases ...]
187
+
188
+ ## Progress
189
+
190
+ | Phase | Milestone | Plans Complete | Status | Completed |
191
+ |-------|-----------|----------------|--------|-----------|
192
+ | 1. Foundation | v1.0 | 3/3 | Complete | YYYY-MM-DD |
193
+ | 2. Features | v1.0 | 2/2 | Complete | YYYY-MM-DD |
194
+ | 5. Security | v1.1 | 0/2 | Not started | - |
195
+ ```
196
+
197
+ **Notes:**
198
+ - Milestone emoji: ✅ shipped, 🚧 in progress, 📋 planned
199
+ - Completed milestones collapsed in `<details>` for readability
200
+ - Current/future milestones expanded
201
+ - Continuous phase numbering (01-99)
202
+ - Progress table includes milestone column
@@ -0,0 +1,205 @@
1
+ # State Template
2
+
3
+ Template for `.planning/STATE.md` — the project's living memory.
4
+
5
+ ---
6
+
7
+ ## File Template
8
+
9
+ ```markdown
10
+ # Project State
11
+
12
+ ## Project Reference
13
+
14
+ See: .planning/PROJECT.md (updated [date])
15
+
16
+ **Core value:** [One-liner from PROJECT.md Core Value section]
17
+ **Current focus:** [Current phase name]
18
+
19
+ ## Current Position
20
+
21
+ Phase: [X] of [Y] ([Phase name])
22
+ Plan: [A] of [B] in current phase
23
+ Status: [Ready to plan / Planning / Ready to execute / In progress / Phase complete]
24
+ Last activity: [YYYY-MM-DD] — [What happened]
25
+
26
+ Progress: [░░░░░░░░░░] 0%
27
+
28
+ ## Performance Metrics
29
+
30
+ **Velocity:**
31
+ - Total plans completed: [N]
32
+ - Average duration: [X] min
33
+ - Total execution time: [X.X] hours
34
+
35
+ **By Phase:**
36
+
37
+ | Phase | Plans | Total | Avg/Plan |
38
+ |-------|-------|-------|----------|
39
+ | - | - | - | - |
40
+
41
+ **Recent Trend:**
42
+ - Last 5 plans: [durations]
43
+ - Trend: [Improving / Stable / Degrading]
44
+
45
+ *Updated after each plan completion*
46
+
47
+ ## Accumulated Context
48
+
49
+ ### Decisions
50
+
51
+ Decisions are logged in PROJECT.md Key Decisions table.
52
+ Recent decisions affecting current work:
53
+
54
+ - [Phase X]: [Decision summary]
55
+ - [Phase Y]: [Decision summary]
56
+
57
+ ### Pending Todos
58
+
59
+ [From .planning/todos/pending/ — ideas captured during sessions]
60
+
61
+ None yet.
62
+
63
+ ### Blockers/Concerns
64
+
65
+ [Issues that affect future work]
66
+
67
+ None yet.
68
+
69
+ ## Vibe Kanban Status
70
+
71
+ **Project:** [project_name] ([project_id])
72
+ **Default executor:** [CLAUDE_CODE]
73
+ **PM mode:** [autonomous / manual / disabled]
74
+
75
+ ### Active Phase Tickets
76
+
77
+ | Phase | Wave | Tickets | Done | In Progress | Todo | Failed |
78
+ |-------|------|---------|------|-------------|------|--------|
79
+ | — | — | — | — | — | — | — |
80
+
81
+ **Last polled:** [YYYY-MM-DD HH:MM]
82
+ **PM loop:** [running / stopped]
83
+ **Next action:** [description]
84
+
85
+ ### Recent Ticket Events
86
+
87
+ - [None yet]
88
+
89
+ ## Session Continuity
90
+
91
+ Last session: [YYYY-MM-DD HH:MM]
92
+ Stopped at: [Description of last completed action]
93
+ Resume file: [Path to .continue-here*.md if exists, otherwise "None"]
94
+ ```
95
+
96
+ <purpose>
97
+
98
+ STATE.md is the project's short-term memory spanning all phases and sessions.
99
+
100
+ **Problem it solves:** Information is captured in summaries, issues, and decisions but not systematically consumed. Sessions start without context.
101
+
102
+ **Solution:** A single, small file that's:
103
+ - Read first in every workflow
104
+ - Updated after every significant action
105
+ - Contains digest of accumulated context
106
+ - Enables instant session restoration
107
+
108
+ </purpose>
109
+
110
+ <lifecycle>
111
+
112
+ **Creation:** After ROADMAP.md is created (during init)
113
+ - Reference PROJECT.md (read it for current context)
114
+ - Initialize empty accumulated context sections
115
+ - Set position to "Phase 1 ready to plan"
116
+
117
+ **Reading:** First step of every workflow
118
+ - progress: Present status to user
119
+ - plan: Inform planning decisions
120
+ - execute: Know current position
121
+ - transition: Know what's complete
122
+
123
+ **Writing:** After every significant action
124
+ - execute: After SUMMARY.md created
125
+ - Update position (phase, plan, status)
126
+ - Note new decisions (detail in PROJECT.md)
127
+ - Add blockers/concerns
128
+ - transition: After phase marked complete
129
+ - Update progress bar
130
+ - Clear resolved blockers
131
+ - Refresh Project Reference date
132
+
133
+ </lifecycle>
134
+
135
+ <sections>
136
+
137
+ ### Project Reference
138
+ Points to PROJECT.md for full context. Includes:
139
+ - Core value (the ONE thing that matters)
140
+ - Current focus (which phase)
141
+ - Last update date (triggers re-read if stale)
142
+
143
+ Claude reads PROJECT.md directly for requirements, constraints, and decisions.
144
+
145
+ ### Current Position
146
+ Where we are right now:
147
+ - Phase X of Y — which phase
148
+ - Plan A of B — which plan within phase
149
+ - Status — current state
150
+ - Last activity — what happened most recently
151
+ - Progress bar — visual indicator of overall completion
152
+
153
+ Progress calculation: (completed plans) / (total plans across all phases) × 100%
154
+
155
+ ### Performance Metrics
156
+ Track velocity to understand execution patterns:
157
+ - Total plans completed
158
+ - Average duration per plan
159
+ - Per-phase breakdown
160
+ - Recent trend (improving/stable/degrading)
161
+
162
+ Updated after each plan completion.
163
+
164
+ ### Accumulated Context
165
+
166
+ **Decisions:** Reference to PROJECT.md Key Decisions table, plus recent decisions summary for quick access. Full decision log lives in PROJECT.md.
167
+
168
+ **Pending Todos:** Ideas captured via /gsd:add-todo
169
+ - Count of pending todos
170
+ - Reference to .planning/todos/pending/
171
+ - Brief list if few, count if many (e.g., "5 pending todos — see /gsd:check-todos")
172
+
173
+ **Blockers/Concerns:** From "Next Phase Readiness" sections
174
+ - Issues that affect future work
175
+ - Prefix with originating phase
176
+ - Cleared when addressed
177
+
178
+ ### Vibe Kanban Status
179
+ When PM mode is enabled, tracks ticket state:
180
+ - Project reference and executor config
181
+ - Per-phase ticket summary table (wave × status)
182
+ - Last poll timestamp and PM loop status
183
+ - Recent ticket events (last 5 state changes)
184
+
185
+ This section is only present when `pm` is configured in config.json.
186
+
187
+ ### Session Continuity
188
+ Enables instant resumption:
189
+ - When was last session
190
+ - What was last completed
191
+ - Is there a .continue-here file to resume from
192
+
193
+ </sections>
194
+
195
+ <size_constraint>
196
+
197
+ Keep STATE.md under 100 lines.
198
+
199
+ It's a DIGEST, not an archive. If accumulated context grows too large:
200
+ - Keep only 3-5 recent decisions in summary (full log in PROJECT.md)
201
+ - Keep only active blockers, remove resolved ones
202
+
203
+ The goal is "read once, know where we are" — if it's too long, that fails.
204
+
205
+ </size_constraint>
@@ -0,0 +1,246 @@
1
+ # Summary Template
2
+
3
+ Template for `.planning/phases/XX-name/{phase}-{plan}-SUMMARY.md` - phase completion documentation.
4
+
5
+ ---
6
+
7
+ ## File Template
8
+
9
+ ```markdown
10
+ ---
11
+ phase: XX-name
12
+ plan: YY
13
+ subsystem: [primary category: auth, payments, ui, api, database, infra, testing, etc.]
14
+ tags: [searchable tech: jwt, stripe, react, postgres, prisma]
15
+
16
+ # Dependency graph
17
+ requires:
18
+ - phase: [prior phase this depends on]
19
+ provides: [what that phase built that this uses]
20
+ provides:
21
+ - [bullet list of what this phase built/delivered]
22
+ affects: [list of phase names or keywords that will need this context]
23
+
24
+ # Tech tracking
25
+ tech-stack:
26
+ added: [libraries/tools added in this phase]
27
+ patterns: [architectural/code patterns established]
28
+
29
+ key-files:
30
+ created: [important files created]
31
+ modified: [important files modified]
32
+
33
+ key-decisions:
34
+ - "Decision 1"
35
+ - "Decision 2"
36
+
37
+ patterns-established:
38
+ - "Pattern 1: description"
39
+ - "Pattern 2: description"
40
+
41
+ # Metrics
42
+ duration: Xmin
43
+ completed: YYYY-MM-DD
44
+ ---
45
+
46
+ # Phase [X]: [Name] Summary
47
+
48
+ **[Substantive one-liner describing outcome - NOT "phase complete" or "implementation finished"]**
49
+
50
+ ## Performance
51
+
52
+ - **Duration:** [time] (e.g., 23 min, 1h 15m)
53
+ - **Started:** [ISO timestamp]
54
+ - **Completed:** [ISO timestamp]
55
+ - **Tasks:** [count completed]
56
+ - **Files modified:** [count]
57
+
58
+ ## Accomplishments
59
+ - [Most important outcome]
60
+ - [Second key accomplishment]
61
+ - [Third if applicable]
62
+
63
+ ## Task Commits
64
+
65
+ Each task was committed atomically:
66
+
67
+ 1. **Task 1: [task name]** - `abc123f` (feat/fix/test/refactor)
68
+ 2. **Task 2: [task name]** - `def456g` (feat/fix/test/refactor)
69
+ 3. **Task 3: [task name]** - `hij789k` (feat/fix/test/refactor)
70
+
71
+ **Plan metadata:** `lmn012o` (docs: complete plan)
72
+
73
+ _Note: TDD tasks may have multiple commits (test → feat → refactor)_
74
+
75
+ ## Files Created/Modified
76
+ - `path/to/file.ts` - What it does
77
+ - `path/to/another.ts` - What it does
78
+
79
+ ## Decisions Made
80
+ [Key decisions with brief rationale, or "None - followed plan as specified"]
81
+
82
+ ## Deviations from Plan
83
+
84
+ [If no deviations: "None - plan executed exactly as written"]
85
+
86
+ [If deviations occurred:]
87
+
88
+ ### Auto-fixed Issues
89
+
90
+ **1. [Rule X - Category] Brief description**
91
+ - **Found during:** Task [N] ([task name])
92
+ - **Issue:** [What was wrong]
93
+ - **Fix:** [What was done]
94
+ - **Files modified:** [file paths]
95
+ - **Verification:** [How it was verified]
96
+ - **Committed in:** [hash] (part of task commit)
97
+
98
+ [... repeat for each auto-fix ...]
99
+
100
+ ---
101
+
102
+ **Total deviations:** [N] auto-fixed ([breakdown by rule])
103
+ **Impact on plan:** [Brief assessment - e.g., "All auto-fixes necessary for correctness/security. No scope creep."]
104
+
105
+ ## Issues Encountered
106
+ [Problems and how they were resolved, or "None"]
107
+
108
+ [Note: "Deviations from Plan" documents unplanned work that was handled automatically via deviation rules. "Issues Encountered" documents problems during planned work that required problem-solving.]
109
+
110
+ ## User Setup Required
111
+
112
+ [If USER-SETUP.md was generated:]
113
+ **External services require manual configuration.** See [{phase}-USER-SETUP.md](./{phase}-USER-SETUP.md) for:
114
+ - Environment variables to add
115
+ - Dashboard configuration steps
116
+ - Verification commands
117
+
118
+ [If no USER-SETUP.md:]
119
+ None - no external service configuration required.
120
+
121
+ ## Next Phase Readiness
122
+ [What's ready for next phase]
123
+ [Any blockers or concerns]
124
+
125
+ ---
126
+ *Phase: XX-name*
127
+ *Completed: [date]*
128
+ ```
129
+
130
+ <frontmatter_guidance>
131
+ **Purpose:** Enable automatic context assembly via dependency graph. Frontmatter makes summary metadata machine-readable so plan-phase can scan all summaries quickly and select relevant ones based on dependencies.
132
+
133
+ **Fast scanning:** Frontmatter is first ~25 lines, cheap to scan across all summaries without reading full content.
134
+
135
+ **Dependency graph:** `requires`/`provides`/`affects` create explicit links between phases, enabling transitive closure for context selection.
136
+
137
+ **Subsystem:** Primary categorization (auth, payments, ui, api, database, infra, testing) for detecting related phases.
138
+
139
+ **Tags:** Searchable technical keywords (libraries, frameworks, tools) for tech stack awareness.
140
+
141
+ **Key-files:** Important files for @context references in PLAN.md.
142
+
143
+ **Patterns:** Established conventions future phases should maintain.
144
+
145
+ **Population:** Frontmatter is populated during summary creation in execute-plan.md. See `<step name="create_summary">` for field-by-field guidance.
146
+ </frontmatter_guidance>
147
+
148
+ <one_liner_rules>
149
+ The one-liner MUST be substantive:
150
+
151
+ **Good:**
152
+ - "JWT auth with refresh rotation using jose library"
153
+ - "Prisma schema with User, Session, and Product models"
154
+ - "Dashboard with real-time metrics via Server-Sent Events"
155
+
156
+ **Bad:**
157
+ - "Phase complete"
158
+ - "Authentication implemented"
159
+ - "Foundation finished"
160
+ - "All tasks done"
161
+
162
+ The one-liner should tell someone what actually shipped.
163
+ </one_liner_rules>
164
+
165
+ <example>
166
+ ```markdown
167
+ # Phase 1: Foundation Summary
168
+
169
+ **JWT auth with refresh rotation using jose library, Prisma User model, and protected API middleware**
170
+
171
+ ## Performance
172
+
173
+ - **Duration:** 28 min
174
+ - **Started:** 2025-01-15T14:22:10Z
175
+ - **Completed:** 2025-01-15T14:50:33Z
176
+ - **Tasks:** 5
177
+ - **Files modified:** 8
178
+
179
+ ## Accomplishments
180
+ - User model with email/password auth
181
+ - Login/logout endpoints with httpOnly JWT cookies
182
+ - Protected route middleware checking token validity
183
+ - Refresh token rotation on each request
184
+
185
+ ## Files Created/Modified
186
+ - `prisma/schema.prisma` - User and Session models
187
+ - `src/app/api/auth/login/route.ts` - Login endpoint
188
+ - `src/app/api/auth/logout/route.ts` - Logout endpoint
189
+ - `src/middleware.ts` - Protected route checks
190
+ - `src/lib/auth.ts` - JWT helpers using jose
191
+
192
+ ## Decisions Made
193
+ - Used jose instead of jsonwebtoken (ESM-native, Edge-compatible)
194
+ - 15-min access tokens with 7-day refresh tokens
195
+ - Storing refresh tokens in database for revocation capability
196
+
197
+ ## Deviations from Plan
198
+
199
+ ### Auto-fixed Issues
200
+
201
+ **1. [Rule 2 - Missing Critical] Added password hashing with bcrypt**
202
+ - **Found during:** Task 2 (Login endpoint implementation)
203
+ - **Issue:** Plan didn't specify password hashing - storing plaintext would be critical security flaw
204
+ - **Fix:** Added bcrypt hashing on registration, comparison on login with salt rounds 10
205
+ - **Files modified:** src/app/api/auth/login/route.ts, src/lib/auth.ts
206
+ - **Verification:** Password hash test passes, plaintext never stored
207
+ - **Committed in:** abc123f (Task 2 commit)
208
+
209
+ **2. [Rule 3 - Blocking] Installed missing jose dependency**
210
+ - **Found during:** Task 4 (JWT token generation)
211
+ - **Issue:** jose package not in package.json, import failing
212
+ - **Fix:** Ran `npm install jose`
213
+ - **Files modified:** package.json, package-lock.json
214
+ - **Verification:** Import succeeds, build passes
215
+ - **Committed in:** def456g (Task 4 commit)
216
+
217
+ ---
218
+
219
+ **Total deviations:** 2 auto-fixed (1 missing critical, 1 blocking)
220
+ **Impact on plan:** Both auto-fixes essential for security and functionality. No scope creep.
221
+
222
+ ## Issues Encountered
223
+ - jsonwebtoken CommonJS import failed in Edge runtime - switched to jose (planned library change, worked as expected)
224
+
225
+ ## Next Phase Readiness
226
+ - Auth foundation complete, ready for feature development
227
+ - User registration endpoint needed before public launch
228
+
229
+ ---
230
+ *Phase: 01-foundation*
231
+ *Completed: 2025-01-15*
232
+ ```
233
+ </example>
234
+
235
+ <guidelines>
236
+ **Frontmatter:** MANDATORY - complete all fields. Enables automatic context assembly for future planning.
237
+
238
+ **One-liner:** Must be substantive. "JWT auth with refresh rotation using jose library" not "Authentication implemented".
239
+
240
+ **Decisions section:**
241
+ - Key decisions made during execution with rationale
242
+ - Extracted to STATE.md accumulated context
243
+ - Use "None - followed plan as specified" if no deviations
244
+
245
+ **After creation:** STATE.md updated with position, decisions, issues.
246
+ </guidelines>
@@ -0,0 +1,28 @@
1
+ # Ticket Map — Phase {PHASE}: {PHASE_NAME}
2
+
3
+ ## Vibe Kanban Project
4
+
5
+ project_id: {PROJECT_UUID}
6
+ last_polled: {TIMESTAMP}
7
+ phase_status: active
8
+
9
+ ## Ticket Mapping
10
+
11
+ | Plan | Task | Ticket ID | Status | Executor | Wave | Dispatched | Completed | Notes |
12
+ | ---- | ---- | --------- | ------ | -------- | ---- | ---------- | --------- | ----- |
13
+
14
+ ## Wave Summary
15
+
16
+ | Wave | Total | Done | In Progress | Todo | Failed |
17
+ | ---- | ----- | ---- | ----------- | ---- | ------ |
18
+
19
+ ## Replan History
20
+
21
+ <!-- Append entries when replans occur -->
22
+ <!-- Format:
23
+ ### Replan #{N} — {TIMESTAMP}
24
+ - Trigger: {failure/feedback/stuck}
25
+ - Cancelled tickets: {list}
26
+ - New tickets: {list}
27
+ - Reason: {description}
28
+ -->