mindsystem-cc 3.2.2 → 3.3.0

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 (56) hide show
  1. package/README.md +2 -2
  2. package/agents/ms-code-simplifier.md +215 -0
  3. package/agents/ms-consolidator.md +377 -0
  4. package/agents/ms-executor.md +32 -261
  5. package/{commands/ms/simplify-flutter.md → agents/ms-flutter-simplifier.md} +41 -49
  6. package/agents/ms-researcher.md +2 -2
  7. package/commands/ms/complete-milestone.md +24 -3
  8. package/commands/ms/do-work.md +17 -3
  9. package/commands/ms/execute-phase.md +29 -14
  10. package/commands/ms/help.md +4 -23
  11. package/commands/ms/new-milestone.md +42 -30
  12. package/commands/ms/new-project.md +5 -14
  13. package/commands/ms/progress.md +1 -1
  14. package/commands/ms/research-project.md +8 -0
  15. package/commands/ms/review-design.md +1 -1
  16. package/commands/ms/whats-new.md +3 -3
  17. package/mindsystem/references/git-integration.md +2 -2
  18. package/mindsystem/references/goal-backward.md +2 -2
  19. package/mindsystem/references/principles.md +1 -1
  20. package/mindsystem/templates/adhoc-summary.md +3 -0
  21. package/mindsystem/templates/codebase/architecture.md +2 -2
  22. package/mindsystem/templates/codebase/structure.md +1 -1
  23. package/mindsystem/templates/config.json +2 -12
  24. package/mindsystem/templates/decisions.md +145 -0
  25. package/mindsystem/workflows/complete-milestone.md +58 -25
  26. package/mindsystem/workflows/create-milestone.md +60 -20
  27. package/mindsystem/workflows/do-work.md +81 -4
  28. package/mindsystem/workflows/execute-phase.md +66 -0
  29. package/mindsystem/workflows/execute-plan.md +1 -53
  30. package/mindsystem/workflows/map-codebase.md +9 -1
  31. package/mindsystem/workflows/plan-phase.md +0 -39
  32. package/mindsystem/workflows/transition.md +0 -74
  33. package/mindsystem/workflows/verify-work.md +1 -1
  34. package/package.json +1 -1
  35. package/scripts/generate-adhoc-patch.sh +79 -0
  36. package/scripts/ms-lookup/uv.lock +17 -17
  37. package/commands/ms/discuss-milestone.md +0 -48
  38. package/commands/ms/linear.md +0 -195
  39. package/mindsystem/templates/milestone-context.md +0 -93
  40. package/scripts/ms-linear/ms_linear/__init__.py +0 -3
  41. package/scripts/ms-linear/ms_linear/__main__.py +0 -6
  42. package/scripts/ms-linear/ms_linear/__pycache__/__init__.cpython-314.pyc +0 -0
  43. package/scripts/ms-linear/ms_linear/__pycache__/__main__.cpython-314.pyc +0 -0
  44. package/scripts/ms-linear/ms_linear/__pycache__/cli.cpython-314.pyc +0 -0
  45. package/scripts/ms-linear/ms_linear/__pycache__/client.cpython-314.pyc +0 -0
  46. package/scripts/ms-linear/ms_linear/__pycache__/config.cpython-314.pyc +0 -0
  47. package/scripts/ms-linear/ms_linear/__pycache__/errors.cpython-314.pyc +0 -0
  48. package/scripts/ms-linear/ms_linear/__pycache__/output.cpython-314.pyc +0 -0
  49. package/scripts/ms-linear/ms_linear/cli.py +0 -604
  50. package/scripts/ms-linear/ms_linear/client.py +0 -503
  51. package/scripts/ms-linear/ms_linear/config.py +0 -104
  52. package/scripts/ms-linear/ms_linear/errors.py +0 -29
  53. package/scripts/ms-linear/ms_linear/output.py +0 -45
  54. package/scripts/ms-linear/pyproject.toml +0 -16
  55. package/scripts/ms-linear/uv.lock +0 -196
  56. package/scripts/ms-linear-wrapper.sh +0 -22
@@ -61,38 +61,45 @@ Phase: $ARGUMENTS
61
61
  - Collect summaries from all plans
62
62
  - Report phase completion status
63
63
 
64
- 6. **Verify phase goal**
64
+ 6. **Simplify code (optional)**
65
+ - Read `simplifier` from config.json (default: `ms-code-simplifier`)
66
+ - If `"skip"`: proceed to step 7
67
+ - Spawn simplifier agent with phase file scope
68
+ - If changes made: commit as `refactor({phase}): simplify phase code`
69
+
70
+ 7. **Verify phase goal**
65
71
  - Spawn `ms-verifier` subagent with phase directory and goal
66
72
  - Verifier checks must_haves against actual codebase (not SUMMARY claims)
67
73
  - Creates VERIFICATION.md with detailed report
68
74
  - Route by status:
69
- - `passed` → continue to step 7
75
+ - `passed` → continue to step 8
70
76
  - `human_needed` → present items, get approval or feedback
71
77
  - `gaps_found` → present gaps, offer `/ms:plan-phase {X} --gaps`
72
78
 
73
- 7. **Generate phase patch**
79
+ 8. **Generate phase patch**
74
80
  - Run: `~/.claude/mindsystem/scripts/generate-phase-patch.sh ${PHASE_NUMBER}`
75
81
  - Outputs to `.planning/phases/{phase_dir}/{phase}-changes.patch`
76
82
  - Verify: patch file exists OR skip message logged
83
+ - Note: Patch captures all changes including simplifications
77
84
 
78
- 8. **Update roadmap and state**
85
+ 9. **Update roadmap and state**
79
86
  - Update ROADMAP.md, STATE.md
80
87
 
81
- 9. **Update requirements**
82
- Mark phase requirements as Complete:
83
- - Read ROADMAP.md, find this phase's `Requirements:` line (e.g., "AUTH-01, AUTH-02")
84
- - Read REQUIREMENTS.md traceability table
85
- - For each REQ-ID in this phase: change Status from "Pending" to "Complete"
86
- - Write updated REQUIREMENTS.md
87
- - Skip if: REQUIREMENTS.md doesn't exist, or phase has no Requirements line
88
+ 10. **Update requirements**
89
+ Mark phase requirements as Complete:
90
+ - Read ROADMAP.md, find this phase's `Requirements:` line (e.g., "AUTH-01, AUTH-02")
91
+ - Read REQUIREMENTS.md traceability table
92
+ - For each REQ-ID in this phase: change Status from "Pending" to "Complete"
93
+ - Write updated REQUIREMENTS.md
94
+ - Skip if: REQUIREMENTS.md doesn't exist, or phase has no Requirements line
88
95
 
89
- 10. **Commit phase completion**
96
+ 11. **Commit phase completion**
90
97
  Bundle all phase metadata updates in one commit:
91
98
  - Stage: `git add .planning/ROADMAP.md .planning/STATE.md`
92
99
  - Stage REQUIREMENTS.md if updated: `git add .planning/REQUIREMENTS.md`
93
100
  - Commit: `docs({phase}): complete {phase-name} phase`
94
101
 
95
- 11. **Offer next steps**
102
+ 12. **Offer next steps**
96
103
  - Route to next action (see `<offer_next>`)
97
104
  </process>
98
105
 
@@ -261,9 +268,16 @@ After all tasks in a plan complete:
261
268
  2. Commit with format: `docs({phase}-{plan}): complete [plan-name] plan`
262
269
  3. NO code files (already committed per-task)
263
270
 
271
+ **Simplification Commit (if changes made):**
272
+
273
+ After code simplification step:
274
+ 1. Stage only simplified files
275
+ 2. Commit with format: `refactor({phase}): simplify phase code`
276
+ 3. Include simplifier agent name and file count in commit body
277
+
264
278
  **Phase Completion Commit:**
265
279
 
266
- After all plans in phase complete (step 7):
280
+ After all plans in phase complete:
267
281
  1. Stage: ROADMAP.md, STATE.md, REQUIREMENTS.md (if updated), VERIFICATION.md
268
282
  2. Commit with format: `docs({phase}): complete {phase-name} phase`
269
283
  3. Bundles all phase-level state updates in one commit
@@ -279,6 +293,7 @@ After all plans in phase complete (step 7):
279
293
  <success_criteria>
280
294
  - [ ] All incomplete plans in phase executed
281
295
  - [ ] Each plan has SUMMARY.md
296
+ - [ ] Code simplified (or skipped if config says "skip")
282
297
  - [ ] Phase goal verified (must_haves checked against codebase)
283
298
  - [ ] VERIFICATION.md created in phase directory
284
299
  - [ ] Patch file generated OR explicitly skipped with message
@@ -82,10 +82,9 @@ Common deviations:
82
82
  **`/ms:new-project`**
83
83
  Initialize new project with brief and configuration.
84
84
 
85
- - Use when: you want Mindsystem to set up `.planning/` and capture intent (new repo, or an existing repo where youre adding/changing work).
85
+ - Use when: you want Mindsystem to set up `.planning/` and capture intent (new repo, or an existing repo where you're adding/changing work).
86
86
  - Creates `.planning/PROJECT.md` (vision and requirements)
87
- - Creates `.planning/config.json` (workflow mode)
88
- - Asks for workflow mode (interactive/yolo) upfront
87
+ - Creates `.planning/config.json` (workflow settings)
89
88
  - Commits initialization files to git
90
89
 
91
90
  Usage: `/ms:new-project`
@@ -159,7 +158,7 @@ Audit and improve design of already-implemented features.
159
158
  - Creates retroactive DESIGN.md if none exists
160
159
  - Presents improvements with benefits and trade-offs
161
160
  - Applies user-approved changes, runs verification
162
- - Use for features implemented before GSD, or periodic design audits
161
+ - Use for features implemented before Mindsystem, or periodic design audits
163
162
 
164
163
  Usage: `/ms:review-design 4` (review phase 4)
165
164
  Usage: `/ms:review-design lib/features/home/home_screen.dart`
@@ -427,7 +426,7 @@ Usage: `/ms:update`
427
426
  ├── REQUIREMENTS.md # Scoped v1/v2 requirements
428
427
  ├── ROADMAP.md # Current phase breakdown
429
428
  ├── STATE.md # Project memory & context
430
- ├── config.json # Workflow mode & gates
429
+ ├── config.json # Workflow settings
431
430
  ├── research/ # Domain ecosystem research
432
431
  ├── todos/ # Captured ideas and tasks
433
432
  │ ├── pending/ # Todos waiting to be worked on
@@ -457,24 +456,6 @@ Usage: `/ms:update`
457
456
  └── 02-01-SUMMARY.md
458
457
  ```
459
458
 
460
- ## Workflow Modes
461
-
462
- Set during `/ms:new-project`:
463
-
464
- **Interactive Mode**
465
-
466
- - Confirms each major decision
467
- - Pauses at checkpoints for approval
468
- - More guidance throughout
469
-
470
- **YOLO Mode**
471
-
472
- - Auto-approves most decisions
473
- - Executes plans without confirmation
474
- - Only stops for critical checkpoints
475
-
476
- Change anytime by editing `.planning/config.json`
477
-
478
459
  ## Common Workflows
479
460
 
480
461
  **Starting a new project (greenfield):**
@@ -30,9 +30,6 @@ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
30
30
  @.planning/STATE.md
31
31
  @.planning/MILESTONES.md
32
32
  @.planning/config.json
33
-
34
- **Load milestone context (if exists, from /ms:discuss-milestone):**
35
- @.planning/MILESTONE-CONTEXT.md
36
33
  </context>
37
34
 
38
35
  <process>
@@ -41,14 +38,15 @@ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
41
38
  - Read PROJECT.md (existing project, Validated requirements, decisions)
42
39
  - Read MILESTONES.md (what shipped previously)
43
40
  - Read STATE.md (pending todos, blockers)
44
- - Check for MILESTONE-CONTEXT.md (from /ms:discuss-milestone)
41
+ - Calculate previous milestone version from MILESTONES.md (e.g., if last shipped was v1.0, previous=1.0)
42
+ - Note: Previous milestone files will be loaded on-demand based on user's choice in step 3
43
+
44
+ **Why only the last milestone?** We load DECISIONS.md and AUDIT.md from only the immediately preceding milestone. Older decisions that remain important should already be in PROJECT.md or visible in the codebase. Older untested assumptions that weren't addressed in subsequent milestones are intentionally skipped or no longer relevant. Loading all previous milestones would bloat context for diminishing returns.
45
45
 
46
46
  2. **Present what shipped (if MILESTONES.md exists):**
47
47
 
48
48
  ```bash
49
49
  cat .planning/MILESTONES.md 2>/dev/null
50
- # Also check for assumptions from last audit
51
- cat .planning/v*-MILESTONE-AUDIT.md 2>/dev/null | grep -A 100 "assumptions:" | head -50
52
50
  ```
53
51
 
54
52
  Format the presentation:
@@ -63,7 +61,6 @@ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
63
61
  **Key accomplishments:**
64
62
  - [From MILESTONES.md accomplishments]
65
63
  - [From MILESTONES.md accomplishments]
66
- - [From MILESTONES.md accomplishments]
67
64
 
68
65
  **Validated requirements:**
69
66
  - [From PROJECT.md Validated section]
@@ -71,37 +68,56 @@ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
71
68
  **Pending todos (if any):**
72
69
  - [From STATE.md accumulated context]
73
70
 
74
- **Untested assumptions (if any):**
75
- - [From MILESTONE-AUDIT.md assumptions section]
76
- - Error state displays (04-comments, 05-auth)
77
- - Empty state handling (04-comments)
78
- - Session timeout behavior (05-auth)
79
-
80
- *These were skipped during UAT because required states couldn't be mocked.*
81
-
82
71
  ---
83
72
  ```
84
73
 
85
- This gives users context before asking what they want to build next.
74
+ 3. **Decision gate:**
86
75
 
87
- 3. **Gather milestone goals:**
76
+ Use AskUserQuestion:
77
+ - header: "New Milestone"
78
+ - question: "How do you want to start?"
79
+ - options:
80
+ - "I know what to build" — proceed to goal gathering
81
+ - "Help me figure it out" — enter discovery mode with previous context
82
+ - "Show previous decisions first" — view DECISIONS.md and AUDIT.md, then decide
88
83
 
89
- **If MILESTONE-CONTEXT.md exists:**
90
- - Use features and scope from discuss-milestone
91
- - Present summary for confirmation
84
+ 4. **Gather milestone goals:**
92
85
 
93
- **If no context file:**
94
- - Present what shipped in last milestone
95
- - Ask: "What do you want to build next?"
86
+ **If "I know what to build":**
87
+ - Ask directly: "What do you want to build next?"
96
88
  - Use AskUserQuestion to explore features
97
89
  - Probe for priorities, constraints, scope
98
90
 
99
- 4. **Determine milestone version:**
91
+ **If "Show previous decisions first":**
92
+ - Using the previous version calculated in step 1 (e.g., "1.0"):
93
+ - Check for and read `.planning/milestones/v1.0-DECISIONS.md` if exists
94
+ - Check for and read `.planning/milestones/v1.0-MILESTONE-AUDIT.md` if exists
95
+ - Present relevant context from these files
96
+ - Return to decision gate (without this option)
97
+
98
+ **If "Help me figure it out" (Discovery Mode):**
99
+ - Using the previous version calculated in step 1:
100
+ - Check for and read `.planning/milestones/v{VERSION}-DECISIONS.md` if exists
101
+ - Check for and read `.planning/milestones/v{VERSION}-MILESTONE-AUDIT.md` if exists
102
+ - Surface untested assumptions from AUDIT.md (if found):
103
+ ```
104
+ 📋 Untested from v[previous]:
105
+ - Error state displays
106
+ - Empty state handling
107
+ - [etc. from assumptions section]
108
+ ```
109
+ - Follow questioning.md patterns for AskUserQuestion-based discovery:
110
+ - "What do you want to add, improve, or fix?"
111
+ - Options: Address untested assumptions, New features, Improvements, Bug fixes, Let me describe
112
+ - Follow up with probing questions
113
+ - Continue until clear goals emerge
114
+
115
+ 5. **Determine milestone version:**
100
116
  - Parse last version from MILESTONES.md
101
117
  - Suggest next version (v1.0 → v1.1, or v2.0 for major)
102
118
  - Confirm with user
103
119
 
104
- 5. **Update PROJECT.md:**
120
+ 6. **Update PROJECT.md:**
105
121
 
106
122
  Add/update these sections:
107
123
 
@@ -120,7 +136,7 @@ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
120
136
 
121
137
  Update "Last updated" footer.
122
138
 
123
- 6. **Update STATE.md:**
139
+ 7. **Update STATE.md:**
124
140
 
125
141
  ```markdown
126
142
  ## Current Position
@@ -131,9 +147,6 @@ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
131
147
  Last activity: [today] — Milestone v[X.Y] started
132
148
  ```
133
149
 
134
- 7. **Cleanup:**
135
- - Delete MILESTONE-CONTEXT.md if exists (consumed)
136
-
137
150
  8. **Git commit:**
138
151
  ```bash
139
152
  git add .planning/PROJECT.md .planning/STATE.md
@@ -187,7 +200,6 @@ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
187
200
  - PROJECT.md updated with Current Milestone section
188
201
  - Active requirements reflect new milestone goals
189
202
  - STATE.md reset for new milestone
190
- - MILESTONE-CONTEXT.md consumed and deleted (if existed)
191
203
  - Git commit made
192
204
  - User routed to define-requirements (or research-project)
193
205
  </success_criteria>
@@ -217,28 +217,19 @@ Do not compress. Capture everything gathered.
217
217
 
218
218
  <step name="workflow_preferences">
219
219
 
220
- Ask all workflow preferences in a single AskUserQuestion call (3 questions):
220
+ Ask workflow preferences in a single AskUserQuestion call (2 questions):
221
221
 
222
222
  Use AskUserQuestion with questions array:
223
223
 
224
224
  ```
225
225
  questions: [
226
- {
227
- header: "Mode",
228
- question: "How do you want to work?",
229
- multiSelect: false,
230
- options: [
231
- { label: "YOLO (Recommended)", description: "Auto-approve, just execute" },
232
- { label: "Interactive", description: "Confirm at each step" }
233
- ]
234
- },
235
226
  {
236
227
  header: "Depth",
237
228
  question: "How thorough should planning be?",
238
229
  multiSelect: false,
239
230
  options: [
240
231
  { label: "Quick", description: "Ship fast (3-5 phases, 1-3 plans each)" },
241
- { label: "Standard", description: "Balanced scope and speed (5-8 phases, 3-5 plans each)" },
232
+ { label: "Standard (Recommended)", description: "Balanced scope and speed (5-8 phases, 3-5 plans each)" },
242
233
  { label: "Comprehensive", description: "Thorough coverage (8-12 phases, 5-10 plans each)" }
243
234
  ]
244
235
  },
@@ -263,7 +254,7 @@ questions: [
263
254
 
264
255
  <step name="config">
265
256
 
266
- Create `.planning/config.json` with chosen mode, depth, and parallelization using `templates/config.json` structure.
257
+ Create `.planning/config.json` with chosen depth and parallelization using `templates/config.json` structure.
267
258
 
268
259
  </step>
269
260
 
@@ -291,7 +282,7 @@ Present completion with next steps (see ~/.claude/mindsystem/references/continua
291
282
  Project initialized:
292
283
 
293
284
  - Project: .planning/PROJECT.md
294
- - Config: .planning/config.json (mode: [chosen mode])
285
+ - Config: .planning/config.json
295
286
  [If .planning/codebase/ exists:] - Codebase: .planning/codebase/ (7 documents)
296
287
 
297
288
  ---
@@ -332,7 +323,7 @@ Skip research, define requirements from what you know, then create roadmap.
332
323
  - [ ] PROJECT.md captures full context with evolutionary structure
333
324
  - [ ] Requirements initialized as hypotheses (greenfield) or with inferred Validated (brownfield)
334
325
  - [ ] Key Decisions table initialized
335
- - [ ] config.json has workflow mode, depth, and parallelization
326
+ - [ ] config.json has depth and parallelization settings
336
327
  - [ ] All committed to git
337
328
 
338
329
  </success_criteria>
@@ -380,5 +380,5 @@ Ready to plan the next milestone.
380
380
  - [ ] What's next clearly explained
381
381
  - [ ] Smart routing: /ms:execute-phase if plan exists, /ms:plan-phase if not
382
382
  - [ ] User confirms before any action
383
- - [ ] Seamless handoff to appropriate gsd command
383
+ - [ ] Seamless handoff to appropriate mindsystem command
384
384
  </success_criteria>
@@ -299,8 +299,16 @@ Create SUMMARY.md with:
299
299
  - Confidence assessment
300
300
  - Gaps to address
301
301
 
302
+ After creating SUMMARY.md, update config.json simplifier with agent name:
303
+ 1. Read recommended stack from STACK.md
304
+ 2. Map to simplifier agent name:
305
+ - Flutter/Dart → \"ms-flutter-simplifier\"
306
+ - All others → \"ms-code-simplifier\"
307
+ 3. Update .planning/config.json (create from template if needed)
308
+
302
309
  Then commit ALL research files together:
303
310
  git add .planning/research/
311
+ git add .planning/config.json
304
312
  git commit -m 'docs: complete [domain] project research'
305
313
  ",
306
314
  subagent_type="ms-research-synthesizer",
@@ -60,7 +60,7 @@ Options:
60
60
  - "Uncommitted changes" - Review files with uncommitted modifications
61
61
  - "Specific file" - I'll provide a file path
62
62
  - "Recent feature work" - Review files from recent commits
63
- - "GSD phase" - Review all code from a specific phase
63
+ - "Mindsystem phase" - Review all code from a specific phase
64
64
  ```
65
65
 
66
66
  ### Step 1.2: Resolve Phase Directory (if phase-based)
@@ -38,7 +38,7 @@ STOP here if no VERSION file.
38
38
  Fetch latest CHANGELOG.md from GitHub:
39
39
 
40
40
  Use WebFetch tool with:
41
- - URL: `https://raw.githubusercontent.com/rolandtolnay/gsd/main/CHANGELOG.md`
41
+ - URL: `https://raw.githubusercontent.com/rolandtolnay/mindsystem/main/CHANGELOG.md`
42
42
  - Prompt: "Extract all version entries with their dates and changes. Return in Keep-a-Changelog format."
43
43
 
44
44
  **If fetch fails:**
@@ -75,7 +75,7 @@ Format output clearly:
75
75
 
76
76
  You're on the latest version.
77
77
 
78
- [View full changelog](https://github.com/rolandtolnay/gsd/blob/main/CHANGELOG.md)
78
+ [View full changelog](https://github.com/rolandtolnay/mindsystem/blob/main/CHANGELOG.md)
79
79
  ```
80
80
 
81
81
  **If updates available:**
@@ -105,7 +105,7 @@ You're on the latest version.
105
105
 
106
106
  ---
107
107
 
108
- [View full changelog](https://github.com/rolandtolnay/gsd/blob/main/CHANGELOG.md)
108
+ [View full changelog](https://github.com/rolandtolnay/mindsystem/blob/main/CHANGELOG.md)
109
109
 
110
110
  **To update:** `npx mindsystem-cc --global`
111
111
  ```
@@ -1,5 +1,5 @@
1
1
  <overview>
2
- Git integration for GSD framework.
2
+ Git integration for Mindsystem framework.
3
3
  </overview>
4
4
 
5
5
  <core_principle>
@@ -29,7 +29,7 @@ The git log should read like a changelog of what shipped, not a diary of plannin
29
29
  [ -d .git ] && echo "GIT_EXISTS" || echo "NO_GIT"
30
30
  ```
31
31
 
32
- If NO_GIT: Run `git init` silently. GSD projects always get their own repo.
32
+ If NO_GIT: Run `git init` silently. Mindsystem projects always get their own repo.
33
33
  </git_check>
34
34
 
35
35
  <commit_formats>
@@ -255,7 +255,7 @@ Key links are verification priorities. Without them, you check everything equall
255
255
 
256
256
  </common_failures>
257
257
 
258
- <integration_with_gsd>
258
+ <integration_with_mindsystem>
259
259
 
260
260
  ## In plan-phase.md
261
261
 
@@ -283,4 +283,4 @@ derive_must_haves → tasks → execute → verify → [gaps?] → fix plans →
283
283
 
284
284
  Must-haves are derived once, verified as many times as needed until all pass.
285
285
 
286
- </integration_with_gsd>
286
+ </integration_with_mindsystem>
@@ -1,6 +1,6 @@
1
1
  <principles>
2
2
 
3
- Core principles for the GSD planning system.
3
+ Core principles for the Mindsystem planning system.
4
4
 
5
5
  <solo_developer_claude>
6
6
 
@@ -17,6 +17,7 @@ files_modified:
17
17
  - [path/to/file1.ts]
18
18
  - [path/to/file2.ts]
19
19
  commit: [git hash]
20
+ patch_file: [path to .patch file, or empty if skipped]
20
21
  ---
21
22
 
22
23
  # Adhoc: [Description]
@@ -66,6 +67,7 @@ Adhoc summaries document small work items executed outside the normal phase work
66
67
  | related_phase | Yes | Current phase from STATE.md, or "none" if between phases |
67
68
  | files_modified | Yes | List of file paths changed |
68
69
  | commit | Yes | Git commit hash |
70
+ | patch_file | No | Path to generated patch file (empty if no code changes) |
69
71
 
70
72
  </frontmatter_fields>
71
73
 
@@ -100,6 +102,7 @@ files_modified:
100
102
  - src/lib/api-client.ts
101
103
  - src/hooks/useAuth.ts
102
104
  commit: abc123f
105
+ patch_file: .planning/adhoc/2026-01-20-fix-auth-token-not-refreshing-on-401.patch
103
106
  ---
104
107
 
105
108
  # Adhoc: Fix auth token not refreshing on 401
@@ -146,7 +146,7 @@ Template for `.planning/codebase/ARCHITECTURE.md` - captures conceptual code org
146
146
 
147
147
  **CLI Command Execution:**
148
148
 
149
- 1. User runs: `gsd new-project`
149
+ 1. User runs: `ms new-project`
150
150
  2. Commander parses args and flags
151
151
  3. Command handler invoked (`src/commands/new-project.ts`)
152
152
  4. Handler calls service methods (`src/services/project.ts` → `create()`)
@@ -180,7 +180,7 @@ Template for `.planning/codebase/ARCHITECTURE.md` - captures conceptual code org
180
180
 
181
181
  **CLI Entry:**
182
182
  - Location: `src/index.ts`
183
- - Triggers: User runs `gsd <command>`
183
+ - Triggers: User runs `ms <command>`
184
184
  - Responsibilities: Register commands, parse args, display help
185
185
 
186
186
  **Commands:**
@@ -145,7 +145,7 @@ mindsystem/
145
145
  - Key files: install.js - handles npx installation
146
146
  - Subdirectories: None
147
147
 
148
- **commands/gsd/**
148
+ **commands/ms/**
149
149
  - Purpose: Slash command definitions for Claude Code
150
150
  - Contains: *.md files (one per command)
151
151
  - Key files: new-project.md, plan-phase.md, execute-plan.md
@@ -1,5 +1,4 @@
1
1
  {
2
- "mode": "interactive",
3
2
  "depth": "standard",
4
3
  "parallelization": {
5
4
  "enabled": true,
@@ -9,18 +8,9 @@
9
8
  "max_concurrent_agents": 3,
10
9
  "min_plans_for_parallel": 2
11
10
  },
12
- "gates": {
13
- "confirm_project": true,
14
- "confirm_phases": true,
15
- "confirm_roadmap": true,
16
- "confirm_breakdown": true,
17
- "confirm_plan": true,
18
- "execute_next_plan": true,
19
- "issues_review": true,
20
- "confirm_transition": true
21
- },
22
11
  "safety": {
23
12
  "always_confirm_destructive": true,
24
13
  "always_confirm_external_services": true
25
- }
14
+ },
15
+ "simplifier": null
26
16
  }
@@ -0,0 +1,145 @@
1
+ # Decisions Template
2
+
3
+ Template for `.planning/milestones/v{X.Y}-DECISIONS.md` — consolidated decisions from a milestone.
4
+
5
+ **Purpose:** Preserve decision rationale for future reference. When starting a new milestone, previous DECISIONS.md provides context for "why did we do it this way?"
6
+
7
+ **Created by:** `ms-consolidator` agent during `/ms:complete-milestone`
8
+
9
+ **Referenced by:** `/ms:new-milestone` during discovery mode
10
+
11
+ ---
12
+
13
+ <template>
14
+
15
+ ```markdown
16
+ # Milestone v{{VERSION}} Decisions
17
+
18
+ **Milestone:** {{NAME}}
19
+ **Phases:** {{PHASE_START}}-{{PHASE_END}}
20
+ **Consolidated:** {{DATE}}
21
+
22
+ ---
23
+
24
+ ## Technical Stack
25
+
26
+ | Decision | Rationale | Phase |
27
+ |----------|-----------|-------|
28
+ | {{DECISION}} | {{RATIONALE}} | {{PHASE}} |
29
+
30
+ ## Architecture
31
+
32
+ | Decision | Rationale | Phase |
33
+ |----------|-----------|-------|
34
+ | {{DECISION}} | {{RATIONALE}} | {{PHASE}} |
35
+
36
+ ## Data Model
37
+
38
+ | Decision | Rationale | Phase |
39
+ |----------|-----------|-------|
40
+ | {{DECISION}} | {{RATIONALE}} | {{PHASE}} |
41
+
42
+ ## API Design
43
+
44
+ | Decision | Rationale | Phase |
45
+ |----------|-----------|-------|
46
+ | {{DECISION}} | {{RATIONALE}} | {{PHASE}} |
47
+
48
+ ## UI/UX
49
+
50
+ | Decision | Rationale | Phase |
51
+ |----------|-----------|-------|
52
+ | {{DECISION}} | {{RATIONALE}} | {{PHASE}} |
53
+
54
+ ## Security
55
+
56
+ | Decision | Rationale | Phase |
57
+ |----------|-----------|-------|
58
+ | {{DECISION}} | {{RATIONALE}} | {{PHASE}} |
59
+
60
+ ## Performance
61
+
62
+ | Decision | Rationale | Phase |
63
+ |----------|-----------|-------|
64
+ | {{DECISION}} | {{RATIONALE}} | {{PHASE}} |
65
+
66
+ ---
67
+
68
+ ## Sources
69
+
70
+ Files consolidated from each phase:
71
+
72
+ | Phase | Files Found |
73
+ |-------|-------------|
74
+ | {{PHASE_NUM}} | {{FILES_LIST}} |
75
+
76
+ ---
77
+
78
+ *Consolidated: {{DATE}} during v{{VERSION}} milestone completion*
79
+ ```
80
+
81
+ </template>
82
+
83
+ <guidelines>
84
+
85
+ ## What This File Captures
86
+
87
+ **Decisions = Choices + Rationale**
88
+
89
+ This template captures WHY decisions were made, not just WHAT was built. SUMMARY.md captures what was built. DECISIONS.md captures why it was built that way.
90
+
91
+ Decisions help future milestones by:
92
+ - Explaining why certain approaches were chosen
93
+ - Documenting rejected alternatives
94
+ - Preserving constraints that influenced choices
95
+ - Providing context for "why is it this way?" questions
96
+
97
+ ## Categories Explained
98
+
99
+ | Category | Content |
100
+ |----------|---------|
101
+ | **Technical Stack** | Libraries, frameworks, versions, tools |
102
+ | **Architecture** | System structure, module boundaries, patterns |
103
+ | **Data Model** | Schema, relationships, storage approach |
104
+ | **API Design** | Endpoints, auth, errors, response format |
105
+ | **UI/UX** | Components, layouts, interactions |
106
+ | **Security** | Auth, authorization, data protection |
107
+ | **Performance** | Caching, optimization, loading patterns |
108
+
109
+ ## Usage Rules
110
+
111
+ **Remove empty categories.** If no Security decisions were made, don't include the Security section.
112
+
113
+ **Keep entries concise.** Decision in 5-10 words. Rationale in 10-20 words.
114
+
115
+ **Include phase number.** Helps trace when decisions were made.
116
+
117
+ ## Good vs Bad Entries
118
+
119
+ **Good decision entries:**
120
+ - "Use jose over jsonwebtoken | Better TypeScript support, actively maintained | 2"
121
+ - "Flat folder structure | Avoids premature abstraction, easier navigation | 1"
122
+ - "Server actions over API routes | Simpler data mutations for forms | 3"
123
+ - "Tailwind over styled-components | Team familiarity, smaller bundle | 1"
124
+
125
+ **Bad decision entries:**
126
+ - "Use React | — | 1" (no rationale)
127
+ - "Implemented authentication | Users can log in | 2" (not a decision, just work done)
128
+ - "Added tests | Testing is important | 3" (obvious, no real decision)
129
+
130
+ ## Sources Appendix
131
+
132
+ The Sources section documents which files were consolidated from each phase:
133
+
134
+ ```markdown
135
+ | Phase | Files Found |
136
+ |-------|-------------|
137
+ | 1 | PLAN.md, RESEARCH.md |
138
+ | 2 | PLAN.md, CONTEXT.md, DESIGN.md |
139
+ | 3 | PLAN.md |
140
+ | 4 | PLAN.md, RESEARCH.md, DESIGN.md |
141
+ ```
142
+
143
+ This helps understand which phases had dedicated research, design, or context discussion.
144
+
145
+ </guidelines>