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,352 @@
1
+ # Phase Context Template
2
+
3
+ Template for `.planning/phases/XX-name/{phase_num}-CONTEXT.md` - captures implementation decisions for a phase.
4
+
5
+ **Purpose:** Document decisions that downstream agents need. Researcher uses this to know WHAT to investigate. Planner uses this to know WHAT choices are locked vs flexible.
6
+
7
+ **Key principle:** Categories are NOT predefined. They emerge from what was actually discussed for THIS phase. A CLI phase has CLI-relevant sections, a UI phase has UI-relevant sections.
8
+
9
+ **Downstream consumers:**
10
+ - `mindforge-phase-researcher` — Reads decisions to focus research (e.g., "card layout" → research card component patterns)
11
+ - `mindforge-planner` — Reads decisions to create specific tasks (e.g., "infinite scroll" → task includes virtualization)
12
+
13
+ ---
14
+
15
+ ## File Template
16
+
17
+ ```markdown
18
+ # Phase [X]: [Name] - Context
19
+
20
+ **Gathered:** [date]
21
+ **Status:** Ready for planning
22
+
23
+ <domain>
24
+ ## Phase Boundary
25
+
26
+ [Clear statement of what this phase delivers — the scope anchor. This comes from ROADMAP.md and is fixed. Discussion clarifies implementation within this boundary.]
27
+
28
+ </domain>
29
+
30
+ <decisions>
31
+ ## Implementation Decisions
32
+
33
+ ### [Area 1 that was discussed]
34
+ - **D-01:** [Specific decision made]
35
+ - **D-02:** [Another decision if applicable]
36
+
37
+ ### [Area 2 that was discussed]
38
+ - **D-03:** [Specific decision made]
39
+
40
+ ### [Area 3 that was discussed]
41
+ - **D-04:** [Specific decision made]
42
+
43
+ ### the agent's Discretion
44
+ [Areas where user explicitly said "you decide" — the agent has flexibility here during planning/implementation]
45
+
46
+ </decisions>
47
+
48
+ <specifics>
49
+ ## Specific Ideas
50
+
51
+ [Any particular references, examples, or "I want it like X" moments from discussion. Product references, specific behaviors, interaction patterns.]
52
+
53
+ [If none: "No specific requirements — open to standard approaches"]
54
+
55
+ </specifics>
56
+
57
+ <canonical_refs>
58
+ ## Canonical References
59
+
60
+ **Downstream agents MUST read these before planning or implementing.**
61
+
62
+ [List every spec, ADR, feature doc, or design doc that defines requirements or constraints for this phase. Use full relative paths so agents can read them directly. Group by topic area when the phase has multiple concerns.]
63
+
64
+ ### [Topic area 1]
65
+ - `path/to/spec-or-adr.md` — [What this doc decides/defines that's relevant]
66
+ - `path/to/doc.md` §N — [Specific section and what it covers]
67
+
68
+ ### [Topic area 2]
69
+ - `path/to/feature-doc.md` — [What capability this defines]
70
+
71
+ [If the project has no external specs: "No external specs — requirements are fully captured in decisions above"]
72
+
73
+ </canonical_refs>
74
+
75
+ <code_context>
76
+ ## Existing Code Insights
77
+
78
+ ### Reusable Assets
79
+ - [Component/hook/utility]: [How it could be used in this phase]
80
+
81
+ ### Established Patterns
82
+ - [Pattern]: [How it constrains/enables this phase]
83
+
84
+ ### Integration Points
85
+ - [Where new code connects to existing system]
86
+
87
+ </code_context>
88
+
89
+ <deferred>
90
+ ## Deferred Ideas
91
+
92
+ [Ideas that came up during discussion but belong in other phases. Captured here so they're not lost, but explicitly out of scope for this phase.]
93
+
94
+ [If none: "None — discussion stayed within phase scope"]
95
+
96
+ </deferred>
97
+
98
+ ---
99
+
100
+ *Phase: XX-name*
101
+ *Context gathered: [date]*
102
+ ```
103
+
104
+ <good_examples>
105
+
106
+ **Example 1: Visual feature (Post Feed)**
107
+
108
+ ```markdown
109
+ # Phase 3: Post Feed - Context
110
+
111
+ **Gathered:** 2025-01-20
112
+ **Status:** Ready for planning
113
+
114
+ <domain>
115
+ ## Phase Boundary
116
+
117
+ Display posts from followed users in a scrollable feed. Users can view posts and see engagement counts. Creating posts and interactions are separate phases.
118
+
119
+ </domain>
120
+
121
+ <decisions>
122
+ ## Implementation Decisions
123
+
124
+ ### Layout style
125
+ - Card-based layout, not timeline or list
126
+ - Each card shows: author avatar, name, timestamp, full post content, reaction counts
127
+ - Cards have subtle shadows, rounded corners — modern feel
128
+
129
+ ### Loading behavior
130
+ - Infinite scroll, not pagination
131
+ - Pull-to-refresh on mobile
132
+ - New posts indicator at top ("3 new posts") rather than auto-inserting
133
+
134
+ ### Empty state
135
+ - Friendly illustration + "Follow people to see posts here"
136
+ - Suggest 3-5 accounts to follow based on interests
137
+
138
+ ### the agent's Discretion
139
+ - Loading skeleton design
140
+ - Exact spacing and typography
141
+ - Error state handling
142
+
143
+ </decisions>
144
+
145
+ <canonical_refs>
146
+ ## Canonical References
147
+
148
+ ### Feed display
149
+ - `docs/features/social-feed.md` — Feed requirements, post card fields, engagement display rules
150
+ - `docs/decisions/adr-012-infinite-scroll.md` — Scroll strategy decision, virtualization requirements
151
+
152
+ ### Empty states
153
+ - `docs/design/empty-states.md` — Empty state patterns, illustration guidelines
154
+
155
+ </canonical_refs>
156
+
157
+ <specifics>
158
+ ## Specific Ideas
159
+
160
+ - "I like how Twitter shows the new posts indicator without disrupting your scroll position"
161
+ - Cards should feel like Linear's issue cards — clean, not cluttered
162
+
163
+ </specifics>
164
+
165
+ <deferred>
166
+ ## Deferred Ideas
167
+
168
+ - Commenting on posts — Phase 5
169
+ - Bookmarking posts — add to backlog
170
+
171
+ </deferred>
172
+
173
+ ---
174
+
175
+ *Phase: 03-post-feed*
176
+ *Context gathered: 2025-01-20*
177
+ ```
178
+
179
+ **Example 2: CLI tool (Database backup)**
180
+
181
+ ```markdown
182
+ # Phase 2: Backup Command - Context
183
+
184
+ **Gathered:** 2025-01-20
185
+ **Status:** Ready for planning
186
+
187
+ <domain>
188
+ ## Phase Boundary
189
+
190
+ CLI command to backup database to local file or S3. Supports full and incremental backups. Restore command is a separate phase.
191
+
192
+ </domain>
193
+
194
+ <decisions>
195
+ ## Implementation Decisions
196
+
197
+ ### Output format
198
+ - JSON for programmatic use, table format for humans
199
+ - Default to table, --json flag for JSON
200
+ - Verbose mode (-v) shows progress, silent by default
201
+
202
+ ### Flag design
203
+ - Short flags for common options: -o (output), -v (verbose), -f (force)
204
+ - Long flags for clarity: --incremental, --compress, --encrypt
205
+ - Required: database connection string (positional or --db)
206
+
207
+ ### Error recovery
208
+ - Retry 3 times on network failure, then fail with clear message
209
+ - --no-retry flag to fail fast
210
+ - Partial backups are deleted on failure (no corrupt files)
211
+
212
+ ### the agent's Discretion
213
+ - Exact progress bar implementation
214
+ - Compression algorithm choice
215
+ - Temp file handling
216
+
217
+ </decisions>
218
+
219
+ <canonical_refs>
220
+ ## Canonical References
221
+
222
+ ### Backup CLI
223
+ - `docs/features/backup-restore.md` — Backup requirements, supported backends, encryption spec
224
+ - `docs/decisions/adr-007-cli-conventions.md` — Flag naming, exit codes, output format standards
225
+
226
+ </canonical_refs>
227
+
228
+ <specifics>
229
+ ## Specific Ideas
230
+
231
+ - "I want it to feel like pg_dump — familiar to database people"
232
+ - Should work in CI pipelines (exit codes, no interactive prompts)
233
+
234
+ </specifics>
235
+
236
+ <deferred>
237
+ ## Deferred Ideas
238
+
239
+ - Scheduled backups — separate phase
240
+ - Backup rotation/retention — add to backlog
241
+
242
+ </deferred>
243
+
244
+ ---
245
+
246
+ *Phase: 02-backup-command*
247
+ *Context gathered: 2025-01-20*
248
+ ```
249
+
250
+ **Example 3: Organization task (Photo library)**
251
+
252
+ ```markdown
253
+ # Phase 1: Photo Organization - Context
254
+
255
+ **Gathered:** 2025-01-20
256
+ **Status:** Ready for planning
257
+
258
+ <domain>
259
+ ## Phase Boundary
260
+
261
+ Organize existing photo library into structured folders. Handle duplicates and apply consistent naming. Tagging and search are separate phases.
262
+
263
+ </domain>
264
+
265
+ <decisions>
266
+ ## Implementation Decisions
267
+
268
+ ### Grouping criteria
269
+ - Primary grouping by year, then by month
270
+ - Events detected by time clustering (photos within 2 hours = same event)
271
+ - Event folders named by date + location if available
272
+
273
+ ### Duplicate handling
274
+ - Keep highest resolution version
275
+ - Move duplicates to _duplicates folder (don't delete)
276
+ - Log all duplicate decisions for review
277
+
278
+ ### Naming convention
279
+ - Format: YYYY-MM-DD_HH-MM-SS_originalname.ext
280
+ - Preserve original filename as suffix for searchability
281
+ - Handle name collisions with incrementing suffix
282
+
283
+ ### the agent's Discretion
284
+ - Exact clustering algorithm
285
+ - How to handle photos with no EXIF data
286
+ - Folder emoji usage
287
+
288
+ </decisions>
289
+
290
+ <canonical_refs>
291
+ ## Canonical References
292
+
293
+ ### Organization rules
294
+ - `docs/features/photo-organization.md` — Grouping rules, duplicate policy, naming spec
295
+ - `docs/decisions/adr-003-exif-handling.md` — EXIF extraction strategy, fallback for missing metadata
296
+
297
+ </canonical_refs>
298
+
299
+ <specifics>
300
+ ## Specific Ideas
301
+
302
+ - "I want to be able to find photos by roughly when they were taken"
303
+ - Don't delete anything — worst case, move to a review folder
304
+
305
+ </specifics>
306
+
307
+ <deferred>
308
+ ## Deferred Ideas
309
+
310
+ - Face detection grouping — future phase
311
+ - Cloud sync — out of scope for now
312
+
313
+ </deferred>
314
+
315
+ ---
316
+
317
+ *Phase: 01-photo-organization*
318
+ *Context gathered: 2025-01-20*
319
+ ```
320
+
321
+ </good_examples>
322
+
323
+ <guidelines>
324
+ **This template captures DECISIONS for downstream agents.**
325
+
326
+ The output should answer: "What does the researcher need to investigate? What choices are locked for the planner?"
327
+
328
+ **Good content (concrete decisions):**
329
+ - "Card-based layout, not timeline"
330
+ - "Retry 3 times on network failure, then fail"
331
+ - "Group by year, then by month"
332
+ - "JSON for programmatic use, table for humans"
333
+
334
+ **Bad content (too vague):**
335
+ - "Should feel modern and clean"
336
+ - "Good user experience"
337
+ - "Fast and responsive"
338
+ - "Easy to use"
339
+
340
+ **After creation:**
341
+ - File lives in phase directory: `.planning/phases/XX-name/{phase_num}-CONTEXT.md`
342
+ - `mindforge-phase-researcher` uses decisions to focus investigation AND reads canonical_refs to know WHAT docs to study
343
+ - `mindforge-planner` uses decisions + research to create executable tasks AND reads canonical_refs to verify alignment
344
+ - Downstream agents should NOT need to ask the user again about captured decisions
345
+
346
+ **CRITICAL — Canonical references:**
347
+ - The `<canonical_refs>` section is MANDATORY. Every CONTEXT.md must have one.
348
+ - If your project has external specs, ADRs, or design docs, list them with full relative paths grouped by topic
349
+ - If ROADMAP.md lists `Canonical refs:` per phase, extract and expand those
350
+ - Inline mentions like "see ADR-019" scattered in decisions are useless to downstream agents — they need full paths and section references in a dedicated section they can find
351
+ - If no external specs exist, say so explicitly — don't silently omit the section
352
+ </guidelines>
@@ -1,44 +1,56 @@
1
1
  # MindForge Architecture Overview
2
2
 
3
- ## Architectural style
4
- MindForge is a modular, file-driven framework. Behavior is defined by
5
- Markdown protocols and JSON schemas, with a small Node.js CLI runtime.
6
-
7
- ## Core layers
8
- 1. **Command layer** — Markdown commands in `.claude/commands/mindforge/`
9
- 2. **Engine layer** Execution protocols under `.mindforge/engine/`
10
- 3. **Governance layer** — Approvals, audit, compliance gates in `.mindforge/governance/`
11
- 4. **Intelligence Layer** Health, difficulty, anti-patterns in `.mindforge/intelligence/`
12
- 5. **Knowledge Layer** — Long-term memory, capture, and sync in `.mindforge/memory/`
13
- 6. **Distribution Layer** Installer, registry, CI, SDK, plugins
14
- 7. **Observability Layer (v2)** Real-time dashboard, SSE bridge, metrics aggregator
15
-
16
- ## Key data artifacts
17
- - `.planning/PROJECT.md` — project brief
18
- - `.planning/STATE.md` current execution state
19
- - `.planning/HANDOFF.json` — machine-readable session handoff
20
- - `.mindforge/memory/knowledge-base.jsonl` local project memory
21
- - `.planning/AUDIT.jsonl` — append-only audit log
22
-
23
- ## Runtime flow (high level)
24
- 1. `/mindforge:plan-phase` generates atomic plans with dependencies
25
- 2. `/mindforge:execute-phase` runs plans in waves
26
- 3. `/mindforge:verify-phase` runs automated + human gates
27
- 4. `/mindforge:ship` generates release artifacts and PR metadata
28
- 5. `/mindforge:dashboard` provides real-time observability and governance
29
-
30
- ## Installation targets
31
- - Claude Code: `~/.claude/` or `.claude/`
32
- - Antigravity: `~/.gemini/antigravity/` or `.agent/`
33
- - Cursor: `.cursor/rules/`
34
- - Gemini CLI: `.gemini/`
35
- - GitHub Copilot: `.github/copilot-instructions.md`
36
- - OpenCode: `.opencode/`
37
-
38
- ## SDK integration
39
- `@mindforge/sdk` provides programmatic access to health checks, audit log
40
- streaming, and command builders.
41
-
42
- ## Stability contract
43
- See ADR-020: command interfaces, schemas, and SDK exports are stable in v2.x.x.
44
- See ADR-041: runtime interfaces are stabilized for community extension.
3
+ MindForge v2.1.1 is built on a unified "Agentic OS" architecture, designed to provide a consistent execution environment across all major AI IDEs and CLI tools.
4
+
5
+ ---
6
+
7
+ ## 1. Core Architectural Pillars
8
+
9
+ The framework is organized into four logical pillars that map directly to the development lifecycle:
10
+
11
+ 1. **PLAN**: Multi-agent task decomposition using the `PLANNER_MODEL`. Resulting in atomic `.planning/` artifacts.
12
+ 2. **EXECUTE**: Parallel, wave-based implementation using the `EXECUTOR_MODEL`.
13
+ 3. **VERIFY**: Multi-stage validation (Automated Tests + UAT + Integrity Checks) using the `VERIFIER_MODEL`.
14
+ 4. **SHIP**: Release orchestration, PR generation, and audit finalization.
15
+
16
+ ---
17
+
18
+ ## 2. Directory Hierarchy
19
+
20
+ MindForge uses a "Tiered Configuration" model allowing for global, organizational, and project-specific rules.
21
+
22
+ | Directory | Scope | Purpose |
23
+ | :--- | :--- | :--- |
24
+ | `.mindforge/` | System/Global | Core personas, core skills, and engine protocols. |
25
+ | `.mindforge/org/` | Organizational | Shared company standards and private skill registries. |
26
+ | `.agent/` | Project/Local | Project-specific configuration, hooks, and local skill overrides. |
27
+ | `.planning/` | Session/State | Ephemeral state, task blocks, and session handoffs. |
28
+
29
+ ---
30
+
31
+ ## 3. The Unified Registry (`file-manifest.json`)
32
+
33
+ The `file-manifest.json` file in `.agent/` is the single source of truth for the framework's file system mapping. It allows MindForge to resolve command paths, skills, and templates regardless of whether it's running in Claude Code, Antigravity, or Cursor.
34
+
35
+ ---
36
+
37
+ ## 4. Runtime Execution Flow
38
+
39
+ 1. **Context Loading**: Load `MINDFORGE.md` and `file-manifest.json` to configure the environment.
40
+ 2. **Skill Discovery**: Match task intent against the 3-tier skill registry (Core → Org → Project).
41
+ 3. **Persona Spawning**: Instantiate the required persona from the 32-persona ecosystem.
42
+ 4. **Action Loop**: Execute the 4-pillar workflow, persisting state to `.planning/STATE.md` at every step.
43
+ 5. **Audit Persistence**: All non-trivial actions are appended to the encrypted `.planning/AUDIT.jsonl`.
44
+
45
+ ---
46
+
47
+ ## 5. Stability & Extension
48
+
49
+ MindForge provides stable interfaces for extension:
50
+
51
+ - **Skills**: Domain expertise via `SKILL.md`.
52
+ - **Workflows**: Sequence automation via `WORKFLOW.md`.
53
+ - **Hooks**: Lifecycle interception via `.agent/hooks/`.
54
+ - **SDK**: Programmatic access via `@mindforge/sdk`.
55
+
56
+ See [ADR-041](../adr/ADR-041-runtime-interfaces.md) for the stabilization contract.
@@ -1,15 +1,63 @@
1
- # MindForge — Commands Reference
2
-
3
- | Command | Description |
4
- |---------------------------------|-----------------------------------------------|
5
- | `/mindforge:help` | Show all commands and current project status |
6
- | `/mindforge:init-project` | Initialise a new project (requirements, scope, state) |
7
- | `/mindforge:plan-phase [N]` | Plan a phase: discuss → research → create task plans |
8
- | `/mindforge:execute-phase [N]` | Execute plans with wave-based parallelism |
9
- | `/mindforge:verify-phase [N]` | Human acceptance testing + automated checks |
10
- | `/mindforge:ship [N]` | Generate changelog, run quality gates, create PR |
11
- | `/mindforge:dashboard` | Manage the real-time web observability dashboard |
12
- | `/mindforge:learn [SRC]` | Automatically capture skills from Docs, Sessions, or npm |
13
- | `/mindforge:marketplace [SEARCH]`| Search, install, and publish community skills |
14
- | `/mindforge:new-runtime` | Scaffold custom runtime configurations for any AI agent |
1
+ # MindForge v2.1.1 — Commands Reference
15
2
 
3
+ MindForge commands are organized into functional pillars to support the entire software development lifecycle (SDLC).
4
+
5
+ ---
6
+
7
+ ## 1. Project Management & Setup
8
+
9
+ | Command | Description |
10
+ | :--- | :--- |
11
+ | `/mindforge:init-project` | Scaffolds the `.agent/` framework and initializes project planning files. |
12
+ | `/mindforge:map-codebase` | Performs deep architectural mapping of an existing codebase. |
13
+ | `/mindforge:health` | Checks the integrity of the MindForge installation and project structure. |
14
+ | `/mindforge:health --repair` | Automatically fixes missing files or broken configurations. |
15
+
16
+ ---
17
+
18
+ ## 2. The Unified Workflow (4 Pillars)
19
+
20
+ | Command | Description |
21
+ | :--- | :--- |
22
+ | `/mindforge:plan-phase [N]` | Initiates strategic planning for a milestone: discuss → research → plan. |
23
+ | `/mindforge:execute-phase [N]` | Starts autonomous execution of task plans in parallel waves. |
24
+ | `/mindforge:verify-phase [N]` | Runs Human Acceptance Testing (UAT) and automated validation gates. |
25
+ | `/mindforge:ship [N]` | Finalizes delivery, generates release output, and creates a Pull Request. |
26
+
27
+ ---
28
+
29
+ ## 3. Intelligence & Observability
30
+
31
+ | Command | Description |
32
+ | :--- | :--- |
33
+ | `/mindforge:dashboard` | Starts or manages the real-time web observability dashboard. |
34
+ | `/mindforge:browse [URL]` | Launches the browser daemon for visual verification or research. |
35
+ | `/mindforge:personas --list` | Displays all 32+ specialized engineering personas. |
36
+ | `/mindforge:personas --set ID` | Switches the current agent to a specific persona (e.g., `architect`, `executor`). |
37
+ | `/mindforge:tokens` | Analyzes and profiles token usage for the current session. |
38
+
39
+ ---
40
+
41
+ ## 4. Knowledge, Skills & Marketplace
42
+
43
+ | Command | Description |
44
+ | :--- | :--- |
45
+ | `/mindforge:note "TEXT"` | Captures an architectural decision or project preference into memory. |
46
+ | `/mindforge:remember [TERM]` | Searches the MindForge knowledge graph for relevant context. |
47
+ | `/mindforge:learn [URL/PATH]` | Ingests documentation or source code to build a new validated Skill. |
48
+ | `/mindforge:skills --list` | Lists all active and available skills across the 3-tier registry. |
49
+ | `/mindforge:skills validate [PATH]` | Passes a skill through the 7-Dimension Scorer for quality verification. |
50
+ | `/mindforge:marketplace search [Q]`| Searches community skills from the central registry. |
51
+ | `/mindforge:marketplace install ID` | Installs a verified community skill into the project context. |
52
+
53
+ ---
54
+
55
+ ## 5. Governance & Maintenance
56
+
57
+ | Command | Description |
58
+ | :--- | :--- |
59
+ | `/mindforge:security-scan` | Performs deep vulnerability scanning and compliance checks. |
60
+ | `/mindforge:update` | Checks for and applies framework updates from the central repository. |
61
+ | `/mindforge:migrate` | Migrates project metadata between framework versions. |
62
+ | `/mindforge:audit --export` | Generates a human-readable PDF report of the session audit log. |
63
+ | `/mindforge:join-discord` | Join the MindForge developer community for support and collaboration. |
@@ -4,33 +4,41 @@ This guide gets you from zero to a working MindForge project in under five minut
4
4
 
5
5
  ## Install
6
6
 
7
+ MindForge is typically installed as a project-local dependency to ensure environment isolation.
8
+
7
9
  ```bash
8
- # Claude Code (global)
9
- npx mindforge-cc --claude --global
10
+ # Antigravity (recommended for local development)
11
+ npx mindforge-cc@latest --antigravity --local
10
12
 
11
- # Project-local install
12
- npx mindforge-cc --claude --local
13
+ # Claude Code (alternative)
14
+ npx mindforge-cc@latest --claude --local
13
15
  ```
14
16
 
15
- ## Initialise your project
17
+ ## Initialise Your Project
16
18
 
17
- Open Claude Code in your repository and run:
19
+ Open your agentic runtime (Antigravity or Claude Code) in your repository and run:
18
20
 
19
- ```
20
- /mindforge:help
21
+ ```bash
21
22
  /mindforge:init-project
22
23
  ```
23
24
 
24
- The init command creates your core planning files:
25
- - `.planning/PROJECT.md`
26
- - `.planning/REQUIREMENTS.md`
27
- - `.planning/STATE.md`
28
- - `.planning/HANDOFF.json`
25
+ The `init-project` command scaffolds the framework in `.agent/` and creates your core planning files:
26
+
27
+ - `.planning/PROJECT.md`: Your roadmap and high-level vision.
28
+ - `.planning/REQUIREMENTS.md`: Detailed functional and technical specs.
29
+ - `.planning/STATE.md`: Real-time tracking of project health and milestones.
30
+
31
+ ## The Standard Workflow
32
+
33
+ MindForge operates on a high-velocity 4-pillar lifecycle:
29
34
 
30
- ## Next steps
35
+ 1. **Plan**: `/mindforge:plan-phase 1` (Strategic planning and task breakdown)
36
+ 2. **Execute**: `/mindforge:execute-phase 1` (Autonomous execution in parallel waves)
37
+ 3. **Verify**: `/mindforge:verify-phase 1` (Automated tests + Human-in-the-loop validation)
38
+ 4. **Ship**: `/mindforge:ship 1` (Final delivery, PR generation, and release output)
31
39
 
32
- 1. Plan Phase 1: `/mindforge:plan-phase 1`
33
- 2. Execute Phase 1: `/mindforge:execute-phase 1`
34
- 3. Verify Phase 1: `/mindforge:verify-phase 1`
35
- 4. Ship Phase 1: `/mindforge:ship 1`
40
+ ## Next Steps
36
41
 
42
+ - Explore the [User Guide](user-guide.md) for advanced features.
43
+ - Switch to a specialized [Persona](PERSONAS.md) for target tasks.
44
+ - Join the community: `/mindforge:join-discord`.