mindforge-cc 2.1.0 → 2.1.2

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 (236) hide show
  1. package/.agent/bin/lib/commands.cjs +959 -0
  2. package/.agent/bin/lib/config.cjs +421 -0
  3. package/.agent/bin/lib/core.cjs +1166 -0
  4. package/.agent/bin/lib/frontmatter.cjs +307 -0
  5. package/.agent/bin/lib/init.cjs +1336 -0
  6. package/.agent/bin/lib/milestone.cjs +252 -0
  7. package/.agent/bin/lib/model-profiles.cjs +68 -0
  8. package/.agent/bin/lib/phase.cjs +888 -0
  9. package/.agent/bin/lib/profile-output.cjs +952 -0
  10. package/.agent/bin/lib/profile-pipeline.cjs +539 -0
  11. package/.agent/bin/lib/roadmap.cjs +329 -0
  12. package/.agent/bin/lib/security.cjs +356 -0
  13. package/.agent/bin/lib/state.cjs +969 -0
  14. package/.agent/bin/lib/template.cjs +222 -0
  15. package/.agent/bin/lib/uat.cjs +189 -0
  16. package/.agent/bin/lib/verify.cjs +851 -0
  17. package/.agent/bin/lib/workstream.cjs +491 -0
  18. package/.agent/bin/mindforge-tools.cjs +897 -0
  19. package/.agent/file-manifest.json +219 -0
  20. package/.agent/hooks/mindforge-check-update.js +114 -0
  21. package/.agent/hooks/mindforge-context-monitor.js +156 -0
  22. package/.agent/hooks/mindforge-prompt-guard.js +96 -0
  23. package/.agent/hooks/mindforge-statusline.js +119 -0
  24. package/.agent/hooks/mindforge-workflow-guard.js +94 -0
  25. package/.agent/mindforge/discuss-phase.md +1 -1
  26. package/.agent/mindforge/help.md +1 -1
  27. package/.agent/mindforge/learn.md +3 -2
  28. package/.agent/mindforge/research.md +3 -2
  29. package/.agent/mindforge/steer.md +1 -1
  30. package/.agent/settings.json +38 -0
  31. package/.agent/skills/mindforge-add-backlog/SKILL.md +72 -0
  32. package/.agent/skills/mindforge-add-phase/SKILL.md +39 -0
  33. package/.agent/skills/mindforge-add-tests/SKILL.md +28 -0
  34. package/.agent/skills/mindforge-add-todo/SKILL.md +42 -0
  35. package/.agent/skills/mindforge-audit-milestone/SKILL.md +29 -0
  36. package/.agent/skills/mindforge-audit-uat/SKILL.md +20 -0
  37. package/.agent/skills/mindforge-autonomous/SKILL.md +33 -0
  38. package/.agent/skills/mindforge-check-todos/SKILL.md +40 -0
  39. package/.agent/skills/mindforge-cleanup/SKILL.md +19 -0
  40. package/.agent/skills/mindforge-complete-milestone/SKILL.md +131 -0
  41. package/.agent/skills/mindforge-debug/SKILL.md +163 -0
  42. package/.agent/skills/mindforge-discuss-phase/SKILL.md +54 -0
  43. package/.agent/skills/mindforge-do/SKILL.md +26 -0
  44. package/.agent/skills/mindforge-execute-phase/SKILL.md +49 -0
  45. package/.agent/skills/mindforge-fast/SKILL.md +23 -0
  46. package/.agent/skills/mindforge-forensics/SKILL.md +49 -0
  47. package/.agent/skills/mindforge-health/SKILL.md +17 -0
  48. package/.agent/skills/mindforge-help/SKILL.md +23 -0
  49. package/.agent/skills/mindforge-insert-phase/SKILL.md +28 -0
  50. package/.agent/skills/mindforge-join-discord/SKILL.md +19 -0
  51. package/.agent/skills/mindforge-list-phase-assumptions/SKILL.md +41 -0
  52. package/.agent/skills/mindforge-list-workspaces/SKILL.md +17 -0
  53. package/.agent/skills/mindforge-manager/SKILL.md +32 -0
  54. package/.agent/skills/mindforge-map-codebase/SKILL.md +64 -0
  55. package/.agent/skills/mindforge-milestone-summary/SKILL.md +44 -0
  56. package/.agent/skills/mindforge-new-milestone/SKILL.md +38 -0
  57. package/.agent/skills/mindforge-new-project/SKILL.md +36 -0
  58. package/.agent/skills/mindforge-new-workspace/SKILL.md +39 -0
  59. package/.agent/skills/mindforge-next/SKILL.md +19 -0
  60. package/.agent/skills/mindforge-note/SKILL.md +29 -0
  61. package/.agent/skills/mindforge-pause-work/SKILL.md +35 -0
  62. package/.agent/skills/mindforge-plan-milestone-gaps/SKILL.md +28 -0
  63. package/.agent/skills/mindforge-plan-phase/SKILL.md +37 -0
  64. package/.agent/skills/mindforge-plant-seed/SKILL.md +22 -0
  65. package/.agent/skills/mindforge-pr-branch/SKILL.md +21 -0
  66. package/.agent/skills/mindforge-profile-user/SKILL.md +38 -0
  67. package/.agent/skills/mindforge-progress/SKILL.md +19 -0
  68. package/.agent/skills/mindforge-quick/SKILL.md +38 -0
  69. package/.agent/skills/mindforge-reapply-patches/SKILL.md +124 -0
  70. package/.agent/skills/mindforge-remove-phase/SKILL.md +26 -0
  71. package/.agent/skills/mindforge-remove-workspace/SKILL.md +22 -0
  72. package/.agent/skills/mindforge-research-phase/SKILL.md +186 -0
  73. package/.agent/skills/mindforge-resume-work/SKILL.md +35 -0
  74. package/.agent/skills/mindforge-review/SKILL.md +31 -0
  75. package/.agent/skills/mindforge-review-backlog/SKILL.md +58 -0
  76. package/.agent/skills/mindforge-session-report/SKILL.md +16 -0
  77. package/.agent/skills/mindforge-set-profile/SKILL.md +9 -0
  78. package/.agent/skills/mindforge-settings/SKILL.md +32 -0
  79. package/.agent/skills/mindforge-ship/SKILL.md +16 -0
  80. package/.agent/skills/mindforge-stats/SKILL.md +16 -0
  81. package/.agent/skills/mindforge-thread/SKILL.md +123 -0
  82. package/.agent/skills/mindforge-ui-phase/SKILL.md +24 -0
  83. package/.agent/skills/mindforge-ui-review/SKILL.md +24 -0
  84. package/.agent/skills/mindforge-update/SKILL.md +35 -0
  85. package/.agent/skills/mindforge-validate-phase/SKILL.md +26 -0
  86. package/.agent/skills/mindforge-verify-work/SKILL.md +30 -0
  87. package/.agent/skills/mindforge-workstreams/SKILL.md +65 -0
  88. package/.agent/workflows/mindforge-add-phase.md +112 -0
  89. package/.agent/workflows/mindforge-add-tests.md +351 -0
  90. package/.agent/workflows/mindforge-add-todo.md +158 -0
  91. package/.agent/workflows/mindforge-audit-milestone.md +332 -0
  92. package/.agent/workflows/mindforge-audit-uat.md +109 -0
  93. package/.agent/workflows/mindforge-autonomous.md +815 -0
  94. package/.agent/workflows/mindforge-check-todos.md +177 -0
  95. package/.agent/workflows/mindforge-cleanup.md +152 -0
  96. package/.agent/workflows/mindforge-complete-milestone.md +766 -0
  97. package/.agent/workflows/mindforge-diagnose-issues.md +220 -0
  98. package/.agent/workflows/mindforge-discovery-phase.md +289 -0
  99. package/.agent/workflows/mindforge-discuss-phase-assumptions.md +645 -0
  100. package/.agent/workflows/mindforge-discuss-phase.md +1047 -0
  101. package/.agent/workflows/mindforge-do.md +104 -0
  102. package/.agent/workflows/mindforge-execute-phase.md +838 -0
  103. package/.agent/workflows/mindforge-execute-plan.md +509 -0
  104. package/.agent/workflows/mindforge-fast.md +105 -0
  105. package/.agent/workflows/mindforge-forensics.md +265 -0
  106. package/.agent/workflows/mindforge-health.md +181 -0
  107. package/.agent/workflows/mindforge-help.md +606 -0
  108. package/.agent/workflows/mindforge-insert-phase.md +130 -0
  109. package/.agent/workflows/mindforge-list-phase-assumptions.md +178 -0
  110. package/.agent/workflows/mindforge-list-workspaces.md +56 -0
  111. package/.agent/workflows/mindforge-manager.md +360 -0
  112. package/.agent/workflows/mindforge-map-codebase.md +370 -0
  113. package/.agent/workflows/mindforge-milestone-summary.md +223 -0
  114. package/.agent/workflows/mindforge-new-milestone.md +469 -0
  115. package/.agent/workflows/mindforge-new-project.md +1226 -0
  116. package/.agent/workflows/mindforge-new-workspace.md +237 -0
  117. package/.agent/workflows/mindforge-next.md +97 -0
  118. package/.agent/workflows/mindforge-node-repair.md +92 -0
  119. package/.agent/workflows/mindforge-note.md +156 -0
  120. package/.agent/workflows/mindforge-pause-work.md +176 -0
  121. package/.agent/workflows/mindforge-plan-milestone-gaps.md +273 -0
  122. package/.agent/workflows/mindforge-plan-phase.md +848 -0
  123. package/.agent/workflows/mindforge-plant-seed.md +169 -0
  124. package/.agent/workflows/mindforge-pr-branch.md +129 -0
  125. package/.agent/workflows/mindforge-profile-user.md +450 -0
  126. package/.agent/workflows/mindforge-progress.md +507 -0
  127. package/.agent/workflows/mindforge-quick.md +732 -0
  128. package/.agent/workflows/mindforge-remove-phase.md +155 -0
  129. package/.agent/workflows/mindforge-remove-workspace.md +90 -0
  130. package/.agent/workflows/mindforge-research-phase.md +74 -0
  131. package/.agent/workflows/mindforge-resume-project.md +325 -0
  132. package/.agent/workflows/mindforge-review.md +228 -0
  133. package/.agent/workflows/mindforge-session-report.md +146 -0
  134. package/.agent/workflows/mindforge-settings.md +283 -0
  135. package/.agent/workflows/mindforge-ship.md +228 -0
  136. package/.agent/workflows/mindforge-stats.md +60 -0
  137. package/.agent/workflows/mindforge-transition.md +671 -0
  138. package/.agent/workflows/mindforge-ui-phase.md +290 -0
  139. package/.agent/workflows/mindforge-ui-review.md +157 -0
  140. package/.agent/workflows/mindforge-update.md +323 -0
  141. package/.agent/workflows/mindforge-validate-phase.md +167 -0
  142. package/.agent/workflows/mindforge-verify-phase.md +254 -0
  143. package/.agent/workflows/mindforge-verify-work.md +623 -0
  144. package/.mindforge/personas/advisor-researcher.md +3 -3
  145. package/.mindforge/personas/debug-specialist.md +1 -1
  146. package/.mindforge/personas/debugger.md +1 -1
  147. package/.mindforge/personas/developer.md +1 -1
  148. package/.mindforge/personas/phase-researcher.md +4 -4
  149. package/.mindforge/personas/project-researcher.md +3 -3
  150. package/.mindforge/personas/research-agent.md +4 -3
  151. package/.mindforge/personas/tech-writer.md +1 -1
  152. package/.mindforge/personas/ui-researcher.md +1 -1
  153. package/.planning/ROADMAP.md +10 -0
  154. package/CHANGELOG.md +34 -0
  155. package/README.md +70 -45
  156. package/RELEASENOTES.md +26 -26
  157. package/bin/install.js +41 -41
  158. package/bin/installer-core.js +67 -26
  159. package/bin/wizard/setup-wizard.js +11 -24
  160. package/bin/wizard/theme.js +141 -0
  161. package/docs/PERSONAS.md +119 -87
  162. package/docs/References/checkpoints.md +778 -0
  163. package/docs/References/config-reference.md +81 -0
  164. package/docs/References/continuation-format.md +249 -0
  165. package/docs/References/decimal-phase-calculation.md +64 -0
  166. package/docs/References/git-integration.md +295 -0
  167. package/docs/References/git-planning-commit.md +38 -0
  168. package/docs/References/model-profile-resolution.md +36 -0
  169. package/docs/References/model-profiles.md +139 -0
  170. package/docs/References/phase-argument-parsing.md +61 -0
  171. package/docs/References/planning-config.md +202 -0
  172. package/docs/References/questioning.md +162 -0
  173. package/docs/References/tdd.md +263 -0
  174. package/docs/References/ui-brand.md +160 -0
  175. package/docs/References/user-profiling.md +681 -0
  176. package/docs/References/verification-patterns.md +612 -0
  177. package/docs/References/workstream-flag.md +58 -0
  178. package/docs/Templates/Agents/CLAUDE-MD.md +122 -0
  179. package/docs/Templates/Agents/COPILOT-INSTRUCTIONS.md +7 -0
  180. package/docs/Templates/Agents/DEBUGGER-PROMPT.md +91 -0
  181. package/docs/Templates/Agents/PLANNER-PROMPT.md +117 -0
  182. package/docs/Templates/Codebase/architecture.md +255 -0
  183. package/docs/Templates/Codebase/concerns.md +310 -0
  184. package/docs/Templates/Codebase/conventions.md +307 -0
  185. package/docs/Templates/Codebase/integrations.md +280 -0
  186. package/docs/Templates/Codebase/stack.md +186 -0
  187. package/docs/Templates/Codebase/structure.md +285 -0
  188. package/docs/Templates/Codebase/testing.md +480 -0
  189. package/docs/Templates/Execution/CONTINUE-HERE.md +78 -0
  190. package/docs/Templates/Execution/DISCUSSION-LOG.md +63 -0
  191. package/docs/Templates/Execution/PHASE-PROMPT.md +610 -0
  192. package/docs/Templates/Execution/STATE.md +176 -0
  193. package/docs/Templates/Execution/SUMMARY-COMPLEX.md +59 -0
  194. package/docs/Templates/Execution/SUMMARY-MINIMAL.md +41 -0
  195. package/docs/Templates/Execution/SUMMARY-STANDARD.md +48 -0
  196. package/docs/Templates/Execution/SUMMARY.md +248 -0
  197. package/docs/Templates/Profile/DEV-PREFERENCES.md +21 -0
  198. package/docs/Templates/Profile/USER-PROFILE.md +146 -0
  199. package/docs/Templates/Profile/USER-SETUP.md +311 -0
  200. package/docs/Templates/Project/DISCOVERY.md +146 -0
  201. package/docs/Templates/Project/MILESTONE-ARCHIVE.md +123 -0
  202. package/docs/Templates/Project/MILESTONE.md +115 -0
  203. package/docs/Templates/Project/PROJECT.md +206 -0
  204. package/docs/Templates/Project/REQUIREMENTS.md +231 -0
  205. package/docs/Templates/Project/RETROSPECTIVE.md +54 -0
  206. package/docs/Templates/Project/ROADMAP.md +202 -0
  207. package/docs/Templates/Quality/DEBUG.md +164 -0
  208. package/docs/Templates/Quality/UAT.md +280 -0
  209. package/docs/Templates/Quality/UI-SPEC.md +100 -0
  210. package/docs/Templates/Quality/VALIDATION.md +76 -0
  211. package/docs/Templates/Quality/VERIFICATION-REPORT.md +322 -0
  212. package/docs/Templates/Research/ARCHITECTURE.md +204 -0
  213. package/docs/Templates/Research/FEATURES.md +147 -0
  214. package/docs/Templates/Research/PITFALLS.md +200 -0
  215. package/docs/Templates/Research/STACK.md +120 -0
  216. package/docs/Templates/Research/SUMMARY.md +170 -0
  217. package/docs/Templates/System/CONFIG.json +43 -0
  218. package/docs/Templates/System/CONTEXT.md +352 -0
  219. package/docs/architecture/README.md +54 -42
  220. package/docs/commands-reference.md +62 -14
  221. package/docs/getting-started.md +26 -18
  222. package/docs/skills-authoring-guide.md +40 -12
  223. package/docs/tutorial.md +83 -116
  224. package/docs/user-guide.md +72 -198
  225. package/package.json +7 -2
  226. package/.mindforge/memory/knowledge-base.jsonl +0 -7
  227. package/.mindforge/memory/pattern-library.jsonl +0 -1
  228. package/.mindforge/memory/team-preferences.jsonl +0 -4
  229. package/.planning/browser-daemon.log +0 -32
  230. package/docs/mindforge-md-reference.md +0 -57
  231. package/docs/reference/config-reference.md +0 -64
  232. /package/{.mindforge/memory/decision-library.jsonl → .planning/phases/01-migrate-gsd-to-mindforge/.gitkeep} +0 -0
  233. /package/docs/{reference → References}/audit-events.md +0 -0
  234. /package/docs/{reference → References}/commands.md +0 -0
  235. /package/docs/{reference → References}/sdk-api.md +0 -0
  236. /package/docs/{reference → References}/skills-api.md +0 -0
@@ -0,0 +1,176 @@
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
+ ## Session Continuity
70
+
71
+ Last session: [YYYY-MM-DD HH:MM]
72
+ Stopped at: [Description of last completed action]
73
+ Resume file: [Path to .continue-here*.md if exists, otherwise "None"]
74
+ ```
75
+
76
+ <purpose>
77
+
78
+ STATE.md is the project's short-term memory spanning all phases and sessions.
79
+
80
+ **Problem it solves:** Information is captured in summaries, issues, and decisions but not systematically consumed. Sessions start without context.
81
+
82
+ **Solution:** A single, small file that's:
83
+ - Read first in every workflow
84
+ - Updated after every significant action
85
+ - Contains digest of accumulated context
86
+ - Enables instant session restoration
87
+
88
+ </purpose>
89
+
90
+ <lifecycle>
91
+
92
+ **Creation:** After ROADMAP.md is created (during init)
93
+ - Reference PROJECT.md (read it for current context)
94
+ - Initialize empty accumulated context sections
95
+ - Set position to "Phase 1 ready to plan"
96
+
97
+ **Reading:** First step of every workflow
98
+ - progress: Present status to user
99
+ - plan: Inform planning decisions
100
+ - execute: Know current position
101
+ - transition: Know what's complete
102
+
103
+ **Writing:** After every significant action
104
+ - execute: After SUMMARY.md created
105
+ - Update position (phase, plan, status)
106
+ - Note new decisions (detail in PROJECT.md)
107
+ - Add blockers/concerns
108
+ - transition: After phase marked complete
109
+ - Update progress bar
110
+ - Clear resolved blockers
111
+ - Refresh Project Reference date
112
+
113
+ </lifecycle>
114
+
115
+ <sections>
116
+
117
+ ### Project Reference
118
+ Points to PROJECT.md for full context. Includes:
119
+ - Core value (the ONE thing that matters)
120
+ - Current focus (which phase)
121
+ - Last update date (triggers re-read if stale)
122
+
123
+ the agent reads PROJECT.md directly for requirements, constraints, and decisions.
124
+
125
+ ### Current Position
126
+ Where we are right now:
127
+ - Phase X of Y — which phase
128
+ - Plan A of B — which plan within phase
129
+ - Status — current state
130
+ - Last activity — what happened most recently
131
+ - Progress bar — visual indicator of overall completion
132
+
133
+ Progress calculation: (completed plans) / (total plans across all phases) × 100%
134
+
135
+ ### Performance Metrics
136
+ Track velocity to understand execution patterns:
137
+ - Total plans completed
138
+ - Average duration per plan
139
+ - Per-phase breakdown
140
+ - Recent trend (improving/stable/degrading)
141
+
142
+ Updated after each plan completion.
143
+
144
+ ### Accumulated Context
145
+
146
+ **Decisions:** Reference to PROJECT.md Key Decisions table, plus recent decisions summary for quick access. Full decision log lives in PROJECT.md.
147
+
148
+ **Pending Todos:** Ideas captured via /mindforge-add-todo
149
+ - Count of pending todos
150
+ - Reference to .planning/todos/pending/
151
+ - Brief list if few, count if many (e.g., "5 pending todos — see /mindforge-check-todos")
152
+
153
+ **Blockers/Concerns:** From "Next Phase Readiness" sections
154
+ - Issues that affect future work
155
+ - Prefix with originating phase
156
+ - Cleared when addressed
157
+
158
+ ### Session Continuity
159
+ Enables instant resumption:
160
+ - When was last session
161
+ - What was last completed
162
+ - Is there a .continue-here file to resume from
163
+
164
+ </sections>
165
+
166
+ <size_constraint>
167
+
168
+ Keep STATE.md under 100 lines.
169
+
170
+ It's a DIGEST, not an archive. If accumulated context grows too large:
171
+ - Keep only 3-5 recent decisions in summary (full log in PROJECT.md)
172
+ - Keep only active blockers, remove resolved ones
173
+
174
+ The goal is "read once, know where we are" — if it's too long, that fails.
175
+
176
+ </size_constraint>
@@ -0,0 +1,59 @@
1
+ ---
2
+ phase: XX-name
3
+ plan: YY
4
+ subsystem: [primary category]
5
+ tags: [searchable tech]
6
+ requires:
7
+ - phase: [prior phase]
8
+ provides: [what that phase built]
9
+ provides:
10
+ - [bullet list of what was built/delivered]
11
+ affects: [list of phase names or keywords]
12
+ tech-stack:
13
+ added: [libraries/tools]
14
+ patterns: [architectural/code patterns]
15
+ key-files:
16
+ created: [important files created]
17
+ modified: [important files modified]
18
+ key-decisions:
19
+ - "Decision 1"
20
+ patterns-established:
21
+ - "Pattern 1: description"
22
+ duration: Xmin
23
+ completed: YYYY-MM-DD
24
+ ---
25
+
26
+ # Phase [X]: [Name] Summary (Complex)
27
+
28
+ **[Substantive one-liner describing outcome]**
29
+
30
+ ## Performance
31
+ - **Duration:** [time]
32
+ - **Tasks:** [count completed]
33
+ - **Files modified:** [count]
34
+
35
+ ## Accomplishments
36
+ - [Key outcome 1]
37
+ - [Key outcome 2]
38
+
39
+ ## Task Commits
40
+ 1. **Task 1: [task name]** - `hash`
41
+ 2. **Task 2: [task name]** - `hash`
42
+ 3. **Task 3: [task name]** - `hash`
43
+
44
+ ## Files Created/Modified
45
+ - `path/to/file.ts` - What it does
46
+ - `path/to/another.ts` - What it does
47
+
48
+ ## Decisions Made
49
+ [Key decisions with brief rationale]
50
+
51
+ ## Deviations from Plan (Auto-fixed)
52
+ [Detailed auto-fix records per MindForge deviation rules]
53
+
54
+ ## Issues Encountered
55
+ [Problems during planned work and resolutions]
56
+
57
+ ## Next Phase Readiness
58
+ [What's ready for next phase]
59
+ [Blockers or concerns]
@@ -0,0 +1,41 @@
1
+ ---
2
+ phase: XX-name
3
+ plan: YY
4
+ subsystem: [primary category]
5
+ tags: [searchable tech]
6
+ provides:
7
+ - [bullet list of what was built/delivered]
8
+ affects: [list of phase names or keywords]
9
+ tech-stack:
10
+ added: [libraries/tools]
11
+ patterns: [architectural/code patterns]
12
+ key-files:
13
+ created: [important files created]
14
+ modified: [important files modified]
15
+ key-decisions: []
16
+ duration: Xmin
17
+ completed: YYYY-MM-DD
18
+ ---
19
+
20
+ # Phase [X]: [Name] Summary (Minimal)
21
+
22
+ **[Substantive one-liner describing outcome]**
23
+
24
+ ## Performance
25
+ - **Duration:** [time]
26
+ - **Tasks:** [count]
27
+ - **Files modified:** [count]
28
+
29
+ ## Accomplishments
30
+ - [Most important outcome]
31
+ - [Second key accomplishment]
32
+
33
+ ## Task Commits
34
+ 1. **Task 1: [task name]** - `hash`
35
+ 2. **Task 2: [task name]** - `hash`
36
+
37
+ ## Files Created/Modified
38
+ - `path/to/file.ts` - What it does
39
+
40
+ ## Next Phase Readiness
41
+ [Ready for next phase]
@@ -0,0 +1,48 @@
1
+ ---
2
+ phase: XX-name
3
+ plan: YY
4
+ subsystem: [primary category]
5
+ tags: [searchable tech]
6
+ provides:
7
+ - [bullet list of what was built/delivered]
8
+ affects: [list of phase names or keywords]
9
+ tech-stack:
10
+ added: [libraries/tools]
11
+ patterns: [architectural/code patterns]
12
+ key-files:
13
+ created: [important files created]
14
+ modified: [important files modified]
15
+ key-decisions:
16
+ - "Decision 1"
17
+ duration: Xmin
18
+ completed: YYYY-MM-DD
19
+ ---
20
+
21
+ # Phase [X]: [Name] Summary
22
+
23
+ **[Substantive one-liner describing outcome]**
24
+
25
+ ## Performance
26
+ - **Duration:** [time]
27
+ - **Tasks:** [count completed]
28
+ - **Files modified:** [count]
29
+
30
+ ## Accomplishments
31
+ - [Key outcome 1]
32
+ - [Key outcome 2]
33
+
34
+ ## Task Commits
35
+ 1. **Task 1: [task name]** - `hash`
36
+ 2. **Task 2: [task name]** - `hash`
37
+ 3. **Task 3: [task name]** - `hash`
38
+
39
+ ## Files Created/Modified
40
+ - `path/to/file.ts` - What it does
41
+ - `path/to/another.ts` - What it does
42
+
43
+ ## Decisions & Deviations
44
+ [Key decisions or "None - followed plan as specified"]
45
+ [Minor deviations if any, or "None"]
46
+
47
+ ## Next Phase Readiness
48
+ [What's ready for next phase]
@@ -0,0 +1,248 @@
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
+ requirements-completed: [] # REQUIRED — Copy ALL requirement IDs from this plan's `requirements` frontmatter field.
42
+
43
+ # Metrics
44
+ duration: Xmin
45
+ completed: YYYY-MM-DD
46
+ ---
47
+
48
+ # Phase [X]: [Name] Summary
49
+
50
+ **[Substantive one-liner describing outcome - NOT "phase complete" or "implementation finished"]**
51
+
52
+ ## Performance
53
+
54
+ - **Duration:** [time] (e.g., 23 min, 1h 15m)
55
+ - **Started:** [ISO timestamp]
56
+ - **Completed:** [ISO timestamp]
57
+ - **Tasks:** [count completed]
58
+ - **Files modified:** [count]
59
+
60
+ ## Accomplishments
61
+ - [Most important outcome]
62
+ - [Second key accomplishment]
63
+ - [Third if applicable]
64
+
65
+ ## Task Commits
66
+
67
+ Each task was committed atomically:
68
+
69
+ 1. **Task 1: [task name]** - `abc123f` (feat/fix/test/refactor)
70
+ 2. **Task 2: [task name]** - `def456g` (feat/fix/test/refactor)
71
+ 3. **Task 3: [task name]** - `hij789k` (feat/fix/test/refactor)
72
+
73
+ **Plan metadata:** `lmn012o` (docs: complete plan)
74
+
75
+ _Note: TDD tasks may have multiple commits (test → feat → refactor)_
76
+
77
+ ## Files Created/Modified
78
+ - `path/to/file.ts` - What it does
79
+ - `path/to/another.ts` - What it does
80
+
81
+ ## Decisions Made
82
+ [Key decisions with brief rationale, or "None - followed plan as specified"]
83
+
84
+ ## Deviations from Plan
85
+
86
+ [If no deviations: "None - plan executed exactly as written"]
87
+
88
+ [If deviations occurred:]
89
+
90
+ ### Auto-fixed Issues
91
+
92
+ **1. [Rule X - Category] Brief description**
93
+ - **Found during:** Task [N] ([task name])
94
+ - **Issue:** [What was wrong]
95
+ - **Fix:** [What was done]
96
+ - **Files modified:** [file paths]
97
+ - **Verification:** [How it was verified]
98
+ - **Committed in:** [hash] (part of task commit)
99
+
100
+ [... repeat for each auto-fix ...]
101
+
102
+ ---
103
+
104
+ **Total deviations:** [N] auto-fixed ([breakdown by rule])
105
+ **Impact on plan:** [Brief assessment - e.g., "All auto-fixes necessary for correctness/security. No scope creep."]
106
+
107
+ ## Issues Encountered
108
+ [Problems and how they were resolved, or "None"]
109
+
110
+ [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.]
111
+
112
+ ## User Setup Required
113
+
114
+ [If USER-SETUP.md was generated:]
115
+ **External services require manual configuration.** See [{phase}-USER-SETUP.md](./{phase}-USER-SETUP.md) for:
116
+ - Environment variables to add
117
+ - Dashboard configuration steps
118
+ - Verification commands
119
+
120
+ [If no USER-SETUP.md:]
121
+ None - no external service configuration required.
122
+
123
+ ## Next Phase Readiness
124
+ [What's ready for next phase]
125
+ [Any blockers or concerns]
126
+
127
+ ---
128
+ *Phase: XX-name*
129
+ *Completed: [date]*
130
+ ```
131
+
132
+ <frontmatter_guidance>
133
+ **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.
134
+
135
+ **Fast scanning:** Frontmatter is first ~25 lines, cheap to scan across all summaries without reading full content.
136
+
137
+ **Dependency graph:** `requires`/`provides`/`affects` create explicit links between phases, enabling transitive closure for context selection.
138
+
139
+ **Subsystem:** Primary categorization (auth, payments, ui, api, database, infra, testing) for detecting related phases.
140
+
141
+ **Tags:** Searchable technical keywords (libraries, frameworks, tools) for tech stack awareness.
142
+
143
+ **Key-files:** Important files for @context references in PLAN.md.
144
+
145
+ **Patterns:** Established conventions future phases should maintain.
146
+
147
+ **Population:** Frontmatter is populated during summary creation in execute-plan.md. See `<step name="create_summary">` for field-by-field guidance.
148
+ </frontmatter_guidance>
149
+
150
+ <one_liner_rules>
151
+ The one-liner MUST be substantive:
152
+
153
+ **Good:**
154
+ - "JWT auth with refresh rotation using jose library"
155
+ - "Prisma schema with User, Session, and Product models"
156
+ - "Dashboard with real-time metrics via Server-Sent Events"
157
+
158
+ **Bad:**
159
+ - "Phase complete"
160
+ - "Authentication implemented"
161
+ - "Foundation finished"
162
+ - "All tasks done"
163
+
164
+ The one-liner should tell someone what actually shipped.
165
+ </one_liner_rules>
166
+
167
+ <example>
168
+ ```markdown
169
+ # Phase 1: Foundation Summary
170
+
171
+ **JWT auth with refresh rotation using jose library, Prisma User model, and protected API middleware**
172
+
173
+ ## Performance
174
+
175
+ - **Duration:** 28 min
176
+ - **Started:** 2025-01-15T14:22:10Z
177
+ - **Completed:** 2025-01-15T14:50:33Z
178
+ - **Tasks:** 5
179
+ - **Files modified:** 8
180
+
181
+ ## Accomplishments
182
+ - User model with email/password auth
183
+ - Login/logout endpoints with httpOnly JWT cookies
184
+ - Protected route middleware checking token validity
185
+ - Refresh token rotation on each request
186
+
187
+ ## Files Created/Modified
188
+ - `prisma/schema.prisma` - User and Session models
189
+ - `src/app/api/auth/login/route.ts` - Login endpoint
190
+ - `src/app/api/auth/logout/route.ts` - Logout endpoint
191
+ - `src/middleware.ts` - Protected route checks
192
+ - `src/lib/auth.ts` - JWT helpers using jose
193
+
194
+ ## Decisions Made
195
+ - Used jose instead of jsonwebtoken (ESM-native, Edge-compatible)
196
+ - 15-min access tokens with 7-day refresh tokens
197
+ - Storing refresh tokens in database for revocation capability
198
+
199
+ ## Deviations from Plan
200
+
201
+ ### Auto-fixed Issues
202
+
203
+ **1. [Rule 2 - Missing Critical] Added password hashing with bcrypt**
204
+ - **Found during:** Task 2 (Login endpoint implementation)
205
+ - **Issue:** Plan didn't specify password hashing - storing plaintext would be critical security flaw
206
+ - **Fix:** Added bcrypt hashing on registration, comparison on login with salt rounds 10
207
+ - **Files modified:** src/app/api/auth/login/route.ts, src/lib/auth.ts
208
+ - **Verification:** Password hash test passes, plaintext never stored
209
+ - **Committed in:** abc123f (Task 2 commit)
210
+
211
+ **2. [Rule 3 - Blocking] Installed missing jose dependency**
212
+ - **Found during:** Task 4 (JWT token generation)
213
+ - **Issue:** jose package not in package.json, import failing
214
+ - **Fix:** Ran `npm install jose`
215
+ - **Files modified:** package.json, package-lock.json
216
+ - **Verification:** Import succeeds, build passes
217
+ - **Committed in:** def456g (Task 4 commit)
218
+
219
+ ---
220
+
221
+ **Total deviations:** 2 auto-fixed (1 missing critical, 1 blocking)
222
+ **Impact on plan:** Both auto-fixes essential for security and functionality. No scope creep.
223
+
224
+ ## Issues Encountered
225
+ - jsonwebtoken CommonJS import failed in Edge runtime - switched to jose (planned library change, worked as expected)
226
+
227
+ ## Next Phase Readiness
228
+ - Auth foundation complete, ready for feature development
229
+ - User registration endpoint needed before public launch
230
+
231
+ ---
232
+ *Phase: 01-foundation*
233
+ *Completed: 2025-01-15*
234
+ ```
235
+ </example>
236
+
237
+ <guidelines>
238
+ **Frontmatter:** MANDATORY - complete all fields. Enables automatic context assembly for future planning.
239
+
240
+ **One-liner:** Must be substantive. "JWT auth with refresh rotation using jose library" not "Authentication implemented".
241
+
242
+ **Decisions section:**
243
+ - Key decisions made during execution with rationale
244
+ - Extracted to STATE.md accumulated context
245
+ - Use "None - followed plan as specified" if no deviations
246
+
247
+ **After creation:** STATE.md updated with position, decisions, issues.
248
+ </guidelines>
@@ -0,0 +1,21 @@
1
+ ---
2
+ description: Load developer preferences into this session
3
+ ---
4
+
5
+ # Developer Preferences
6
+
7
+ > Generated by MindForge on {{generated_at}} from {{data_source}}.
8
+ > Run `/mindforge-profile-user --refresh` to regenerate.
9
+
10
+ ## Behavioral Directives
11
+
12
+ Follow these directives when working with this developer. Higher confidence
13
+ directives should be applied directly. Lower confidence directives should be
14
+ tried with hedging ("Based on your profile, I'll try X -- let me know if
15
+ that's off").
16
+
17
+ {{behavioral_directives}}
18
+
19
+ ## Stack Preferences
20
+
21
+ {{stack_preferences}}