mindsystem-cc 3.0.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 (139) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +501 -0
  3. package/agents/ms-codebase-mapper.md +739 -0
  4. package/agents/ms-debugger.md +1184 -0
  5. package/agents/ms-designer.md +414 -0
  6. package/agents/ms-executor.md +760 -0
  7. package/agents/ms-integration-checker.md +423 -0
  8. package/agents/ms-milestone-auditor.md +448 -0
  9. package/agents/ms-mock-generator.md +182 -0
  10. package/agents/ms-plan-checker.md +746 -0
  11. package/agents/ms-research-synthesizer.md +248 -0
  12. package/agents/ms-researcher.md +962 -0
  13. package/agents/ms-roadmapper.md +606 -0
  14. package/agents/ms-verifier.md +779 -0
  15. package/agents/ms-verify-fixer.md +124 -0
  16. package/bin/install.js +296 -0
  17. package/commands/ms/add-phase.md +207 -0
  18. package/commands/ms/add-todo.md +182 -0
  19. package/commands/ms/audit-milestone.md +318 -0
  20. package/commands/ms/check-phase.md +162 -0
  21. package/commands/ms/check-todos.md +217 -0
  22. package/commands/ms/complete-milestone.md +137 -0
  23. package/commands/ms/create-roadmap.md +273 -0
  24. package/commands/ms/debug.md +149 -0
  25. package/commands/ms/define-requirements.md +121 -0
  26. package/commands/ms/design-phase.md +341 -0
  27. package/commands/ms/discuss-milestone.md +48 -0
  28. package/commands/ms/discuss-phase.md +60 -0
  29. package/commands/ms/do-work.md +90 -0
  30. package/commands/ms/execute-phase.md +289 -0
  31. package/commands/ms/help.md +623 -0
  32. package/commands/ms/insert-phase.md +227 -0
  33. package/commands/ms/list-phase-assumptions.md +50 -0
  34. package/commands/ms/map-codebase.md +71 -0
  35. package/commands/ms/new-milestone.md +193 -0
  36. package/commands/ms/new-project.md +338 -0
  37. package/commands/ms/pause-work.md +123 -0
  38. package/commands/ms/plan-milestone-gaps.md +285 -0
  39. package/commands/ms/plan-phase.md +105 -0
  40. package/commands/ms/progress.md +370 -0
  41. package/commands/ms/remove-phase.md +338 -0
  42. package/commands/ms/research-phase.md +175 -0
  43. package/commands/ms/research-project.md +339 -0
  44. package/commands/ms/resume-work.md +40 -0
  45. package/commands/ms/review-design.md +484 -0
  46. package/commands/ms/simplify-flutter.md +193 -0
  47. package/commands/ms/update.md +159 -0
  48. package/commands/ms/verify-work.md +92 -0
  49. package/commands/ms/whats-new.md +124 -0
  50. package/mindsystem/references/checkpoints.md +788 -0
  51. package/mindsystem/references/continuation-format.md +255 -0
  52. package/mindsystem/references/debugging/debugging-mindset.md +11 -0
  53. package/mindsystem/references/debugging/hypothesis-testing.md +11 -0
  54. package/mindsystem/references/debugging/investigation-techniques.md +11 -0
  55. package/mindsystem/references/debugging/verification-patterns.md +11 -0
  56. package/mindsystem/references/debugging/when-to-research.md +11 -0
  57. package/mindsystem/references/git-integration.md +254 -0
  58. package/mindsystem/references/goal-backward.md +286 -0
  59. package/mindsystem/references/mock-patterns.md +294 -0
  60. package/mindsystem/references/plan-format.md +473 -0
  61. package/mindsystem/references/principles.md +73 -0
  62. package/mindsystem/references/questioning.md +140 -0
  63. package/mindsystem/references/research-pitfalls.md +233 -0
  64. package/mindsystem/references/scope-estimation.md +256 -0
  65. package/mindsystem/references/tdd.md +263 -0
  66. package/mindsystem/references/verification-patterns.md +595 -0
  67. package/mindsystem/templates/DEBUG.md +159 -0
  68. package/mindsystem/templates/UAT.md +403 -0
  69. package/mindsystem/templates/adhoc-summary.md +153 -0
  70. package/mindsystem/templates/codebase/architecture.md +255 -0
  71. package/mindsystem/templates/codebase/concerns.md +310 -0
  72. package/mindsystem/templates/codebase/conventions.md +307 -0
  73. package/mindsystem/templates/codebase/integrations.md +280 -0
  74. package/mindsystem/templates/codebase/stack.md +186 -0
  75. package/mindsystem/templates/codebase/structure.md +285 -0
  76. package/mindsystem/templates/codebase/testing.md +480 -0
  77. package/mindsystem/templates/config.json +26 -0
  78. package/mindsystem/templates/context.md +140 -0
  79. package/mindsystem/templates/continue-here.md +78 -0
  80. package/mindsystem/templates/debug-subagent-prompt.md +91 -0
  81. package/mindsystem/templates/design-iteration.md +208 -0
  82. package/mindsystem/templates/design.md +417 -0
  83. package/mindsystem/templates/discovery.md +146 -0
  84. package/mindsystem/templates/milestone-archive.md +123 -0
  85. package/mindsystem/templates/milestone-context.md +93 -0
  86. package/mindsystem/templates/milestone.md +115 -0
  87. package/mindsystem/templates/phase-prompt.md +574 -0
  88. package/mindsystem/templates/project.md +184 -0
  89. package/mindsystem/templates/requirements.md +231 -0
  90. package/mindsystem/templates/research-project/ARCHITECTURE.md +204 -0
  91. package/mindsystem/templates/research-project/FEATURES.md +147 -0
  92. package/mindsystem/templates/research-project/PITFALLS.md +200 -0
  93. package/mindsystem/templates/research-project/STACK.md +120 -0
  94. package/mindsystem/templates/research-project/SUMMARY.md +170 -0
  95. package/mindsystem/templates/research-subagent-prompt.md +92 -0
  96. package/mindsystem/templates/research.md +529 -0
  97. package/mindsystem/templates/roadmap.md +214 -0
  98. package/mindsystem/templates/state.md +224 -0
  99. package/mindsystem/templates/summary.md +269 -0
  100. package/mindsystem/templates/user-setup.md +323 -0
  101. package/mindsystem/templates/verification-report.md +322 -0
  102. package/mindsystem/workflows/complete-milestone.md +759 -0
  103. package/mindsystem/workflows/create-milestone.md +203 -0
  104. package/mindsystem/workflows/debug.md +14 -0
  105. package/mindsystem/workflows/define-requirements.md +330 -0
  106. package/mindsystem/workflows/diagnose-issues.md +241 -0
  107. package/mindsystem/workflows/discovery-phase.md +293 -0
  108. package/mindsystem/workflows/discuss-milestone.md +310 -0
  109. package/mindsystem/workflows/discuss-phase.md +237 -0
  110. package/mindsystem/workflows/do-work.md +359 -0
  111. package/mindsystem/workflows/execute-phase.md +644 -0
  112. package/mindsystem/workflows/execute-plan.md +1828 -0
  113. package/mindsystem/workflows/generate-mocks.md +187 -0
  114. package/mindsystem/workflows/list-phase-assumptions.md +178 -0
  115. package/mindsystem/workflows/map-codebase.md +289 -0
  116. package/mindsystem/workflows/plan-phase.md +876 -0
  117. package/mindsystem/workflows/research-phase.md +17 -0
  118. package/mindsystem/workflows/research-project.md +23 -0
  119. package/mindsystem/workflows/resume-project.md +311 -0
  120. package/mindsystem/workflows/transition.md +564 -0
  121. package/mindsystem/workflows/verify-phase.md +629 -0
  122. package/mindsystem/workflows/verify-work.md +823 -0
  123. package/package.json +32 -0
  124. package/scripts/generate-phase-patch.sh +169 -0
  125. package/scripts/ms-lookup/README.md +112 -0
  126. package/scripts/ms-lookup/ms_lookup/__init__.py +3 -0
  127. package/scripts/ms-lookup/ms_lookup/__main__.py +6 -0
  128. package/scripts/ms-lookup/ms_lookup/backends/__init__.py +6 -0
  129. package/scripts/ms-lookup/ms_lookup/backends/context7.py +219 -0
  130. package/scripts/ms-lookup/ms_lookup/backends/perplexity.py +145 -0
  131. package/scripts/ms-lookup/ms_lookup/cache.py +48 -0
  132. package/scripts/ms-lookup/ms_lookup/cli.py +219 -0
  133. package/scripts/ms-lookup/ms_lookup/config.py +23 -0
  134. package/scripts/ms-lookup/ms_lookup/errors.py +24 -0
  135. package/scripts/ms-lookup/ms_lookup/output.py +49 -0
  136. package/scripts/ms-lookup/ms_lookup/tokens.py +56 -0
  137. package/scripts/ms-lookup/pyproject.toml +17 -0
  138. package/scripts/ms-lookup/uv.lock +207 -0
  139. package/scripts/ms-lookup-wrapper.sh +21 -0
@@ -0,0 +1,159 @@
1
+ ---
2
+ name: ms:update
3
+ description: Update Mindsystem to latest version with changelog display
4
+ ---
5
+
6
+ <objective>
7
+ Check for Mindsystem updates, install if available, and display what changed.
8
+
9
+ Provides a better update experience than raw `npx mindsystem-cc` by showing version diff and changelog entries.
10
+ </objective>
11
+
12
+ <process>
13
+
14
+ <step name="get_installed_version">
15
+ Read installed version:
16
+
17
+ ```bash
18
+ cat ~/.claude/mindsystem/VERSION 2>/dev/null
19
+ ```
20
+
21
+ **If VERSION file missing:**
22
+ ```
23
+ ## Mindsystem Update
24
+
25
+ **Installed version:** Unknown
26
+
27
+ Your installation doesn't include version tracking.
28
+
29
+ Running fresh install...
30
+ ```
31
+
32
+ Proceed to install step (treat as version 0.0.0 for comparison).
33
+ </step>
34
+
35
+ <step name="check_latest_version">
36
+ Check npm for latest version:
37
+
38
+ ```bash
39
+ npm view mindsystem-cc version 2>/dev/null
40
+ ```
41
+
42
+ **If npm check fails:**
43
+ ```
44
+ Couldn't check for updates (offline or npm unavailable).
45
+
46
+ To update manually: `npx mindsystem-cc --global`
47
+ ```
48
+
49
+ STOP here if npm unavailable.
50
+ </step>
51
+
52
+ <step name="compare_versions">
53
+ Compare installed vs latest:
54
+
55
+ **If installed == latest:**
56
+ ```
57
+ ## Mindsystem Update
58
+
59
+ **Installed:** X.Y.Z
60
+ **Latest:** X.Y.Z
61
+
62
+ You're already on the latest version.
63
+ ```
64
+
65
+ STOP here if already up to date.
66
+
67
+ **If installed > latest:**
68
+ ```
69
+ ## Mindsystem Update
70
+
71
+ **Installed:** X.Y.Z
72
+ **Latest:** A.B.C
73
+
74
+ You're ahead of the latest release (development version?).
75
+ ```
76
+
77
+ STOP here if ahead.
78
+ </step>
79
+
80
+ <step name="run_update">
81
+ Run the update:
82
+
83
+ ```bash
84
+ npx mindsystem-cc --global
85
+ ```
86
+
87
+ Capture output. If install fails, show error and STOP.
88
+ </step>
89
+
90
+ <step name="fetch_changelog">
91
+ Fetch changelog from GitHub:
92
+
93
+ Use WebFetch tool with:
94
+ - URL: `https://raw.githubusercontent.com/rolandtolnay/mindsystem/main/CHANGELOG.md`
95
+ - Prompt: "Extract all version entries with their dates and changes. Return the raw markdown for each version section."
96
+
97
+ **If fetch fails:**
98
+ Fall back to local:
99
+ ```bash
100
+ cat ~/.claude/mindsystem/CHANGELOG.md 2>/dev/null
101
+ ```
102
+ </step>
103
+
104
+ <step name="extract_changes">
105
+ From the changelog, extract entries between:
106
+ - **From:** installed version (exclusive)
107
+ - **To:** latest version (inclusive)
108
+
109
+ Parse each `## [X.Y.Z]` section and collect all versions in the range.
110
+ </step>
111
+
112
+ <step name="display_result">
113
+ Format beautiful output:
114
+
115
+ ```
116
+ ╔═══════════════════════════════════════════════════════════╗
117
+ ║ Mindsystem Updated: v1.5.10 → v1.5.15 ║
118
+ ╚═══════════════════════════════════════════════════════════╝
119
+
120
+ ✨ What's New
121
+ ────────────────────────────────────────────────────────────
122
+
123
+ ## [1.5.15] - 2026-01-20
124
+
125
+ ### Added
126
+ - Feature X
127
+ - Feature Y
128
+
129
+ ## [1.5.14] - 2026-01-18
130
+
131
+ ### Fixed
132
+ - Bug in feature A
133
+
134
+ ────────────────────────────────────────────────────────────
135
+
136
+ ⚠️ Restart Claude Code to pick up the new commands.
137
+
138
+ [View full changelog](https://github.com/rolandtolnay/mindsystem/blob/main/CHANGELOG.md)
139
+ ```
140
+
141
+ **Key elements:**
142
+ - Box header with version transition
143
+ - All changelog entries in the range
144
+ - **BREAKING:** changes surfaced prominently
145
+ - Restart reminder (critical for picking up new commands)
146
+ - Link to full changelog
147
+ </step>
148
+
149
+ </process>
150
+
151
+ <success_criteria>
152
+ - [ ] Installed version read correctly
153
+ - [ ] Latest version checked via npm
154
+ - [ ] Update skipped if already current
155
+ - [ ] Update executed successfully
156
+ - [ ] Changelog fetched (remote or local fallback)
157
+ - [ ] Changes between versions displayed
158
+ - [ ] Restart reminder shown
159
+ </success_criteria>
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: ms:verify-work
3
+ description: Validate built features through batched UAT with inline fixing
4
+ argument-hint: "[phase number, e.g., '4']"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Glob
9
+ - Grep
10
+ - Edit
11
+ - Write
12
+ - Task
13
+ - AskUserQuestion
14
+ ---
15
+
16
+ <objective>
17
+ Validate built features through batched testing with mock support and inline fixing.
18
+
19
+ Purpose: Confirm what Claude built actually works from user's perspective. Tests presented in batches of 4 using AskUserQuestion. Issues can be fixed inline during the same session — no context switching to separate plan/execute phases.
20
+
21
+ Output: {phase}-UAT.md tracking all test results. Fixes committed with `fix({phase}-uat):` prefix. Patch file generated for all UAT fixes.
22
+ </objective>
23
+
24
+ <execution_context>
25
+ @~/.claude/mindsystem/workflows/verify-work.md
26
+ @~/.claude/mindsystem/workflows/generate-mocks.md
27
+ @~/.claude/mindsystem/templates/UAT.md
28
+ @~/.claude/mindsystem/references/mock-patterns.md
29
+ </execution_context>
30
+
31
+ <context>
32
+ Phase: $ARGUMENTS (optional)
33
+ - If provided: Test specific phase (e.g., "4")
34
+ - If not provided: Check for active sessions or prompt for phase
35
+
36
+ @.planning/STATE.md
37
+ @.planning/ROADMAP.md
38
+ @.planning/PROJECT.md
39
+ </context>
40
+
41
+ <process>
42
+ 1. **Check dirty tree** — If uncommitted changes, ask: stash / commit / abort
43
+ 2. **Check for active UAT sessions** — Resume or start new
44
+ 3. **Find SUMMARY.md files** for the phase
45
+ 4. **Extract testable deliverables** from summaries
46
+ 5. **Classify tests by mock requirements** — Infer mock_type from test descriptions
47
+ 6. **Group into batches** — By mock type, max 4 per batch, no-mock tests first
48
+ 7. **For each batch:**
49
+ - If mock needed: Generate mocks, present toggle instructions, wait for confirmation
50
+ - Present tests via AskUserQuestion (Pass / Can't test / Skip / Other)
51
+ - Process results, update UAT.md
52
+ - **For each issue found:**
53
+ - Lightweight investigation (2-3 tool calls)
54
+ - If simple: Fix inline, commit, ask for re-test
55
+ - If complex: Spawn ms-verify-fixer subagent
56
+ - 2 retries on failed re-test, then offer options
57
+ 8. **On batch transition:**
58
+ - If new mock_type: Discard old mocks, generate new ones
59
+ - If same mock_type: Keep mocks active
60
+ 9. **On completion:**
61
+ - Discard all mocks (git stash drop)
62
+ - Generate UAT fixes patch
63
+ - Restore user's pre-existing work (if stashed)
64
+ - Commit UAT.md, present summary
65
+ </process>
66
+
67
+ <anti_patterns>
68
+ - Don't ask severity — infer from description
69
+ - Don't present more than 4 tests at a time
70
+ - Don't run automated tests — this is manual user validation
71
+ - Don't skip investigation — always try 2-3 tool calls before escalating
72
+ - Don't fix complex issues inline — spawn fixer subagent for multi-file or architectural changes
73
+ - Don't commit mock code — always stash before fixing
74
+ - Don't re-present skipped tests — assumptions stand
75
+ </anti_patterns>
76
+
77
+ <success_criteria>
78
+ - [ ] Dirty tree handled at start (stash/commit/abort)
79
+ - [ ] Tests extracted from SUMMARY.md and classified
80
+ - [ ] Tests batched by mock requirements
81
+ - [ ] Mocks generated when needed with clear toggle instructions
82
+ - [ ] Tests presented in batches of 4 using AskUserQuestion
83
+ - [ ] Issues investigated with lightweight check first
84
+ - [ ] Simple issues fixed inline with proper commit message
85
+ - [ ] Complex issues escalated to fixer subagent
86
+ - [ ] Failed re-tests get 2 retries then options
87
+ - [ ] Stash conflicts auto-resolved to fix version
88
+ - [ ] Mocks discarded on completion
89
+ - [ ] UAT fixes patch generated
90
+ - [ ] User's pre-existing work restored
91
+ - [ ] UAT.md committed with final summary
92
+ </success_criteria>
@@ -0,0 +1,124 @@
1
+ ---
2
+ name: ms:whats-new
3
+ description: See what's new in Mindsystem since your installed version
4
+ ---
5
+
6
+ <objective>
7
+ Display changes between installed version and latest available version.
8
+
9
+ Shows version comparison, changelog entries for missed versions, and update instructions.
10
+ </objective>
11
+
12
+ <process>
13
+
14
+ <step name="get_installed_version">
15
+ Read installed version from VERSION file:
16
+
17
+ ```bash
18
+ cat ~/.claude/mindsystem/VERSION 2>/dev/null
19
+ ```
20
+
21
+ **If VERSION file missing:**
22
+ ```
23
+ ## Mindsystem What's New
24
+
25
+ **Installed version:** Unknown
26
+
27
+ Your installation doesn't include version tracking.
28
+
29
+ **To fix:** `npx mindsystem-cc --global`
30
+
31
+ This will reinstall with version tracking enabled.
32
+ ```
33
+
34
+ STOP here if no VERSION file.
35
+ </step>
36
+
37
+ <step name="fetch_remote_changelog">
38
+ Fetch latest CHANGELOG.md from GitHub:
39
+
40
+ Use WebFetch tool with:
41
+ - URL: `https://raw.githubusercontent.com/rolandtolnay/gsd/main/CHANGELOG.md`
42
+ - Prompt: "Extract all version entries with their dates and changes. Return in Keep-a-Changelog format."
43
+
44
+ **If fetch fails:**
45
+ Fall back to local changelog:
46
+ ```bash
47
+ cat ~/.claude/mindsystem/CHANGELOG.md 2>/dev/null
48
+ ```
49
+
50
+ Note to user: "Couldn't check for updates (offline or GitHub unavailable). Showing local changelog."
51
+ </step>
52
+
53
+ <step name="parse_versions">
54
+ From the remote (or local) changelog:
55
+
56
+ 1. **Extract latest version** - First `## [X.Y.Z]` line after `## [Unreleased]`
57
+ 2. **Compare with installed** - From VERSION file
58
+ 3. **Extract entries between** - All version sections from latest down to (but not including) installed
59
+
60
+ **Version comparison:**
61
+ - If installed == latest: "You're on the latest version"
62
+ - If installed < latest: Show changes since installed version
63
+ - If installed > latest: "You're ahead of latest release (development version?)"
64
+ </step>
65
+
66
+ <step name="display_output">
67
+ Format output clearly:
68
+
69
+ **If up to date:**
70
+ ```
71
+ ## Mindsystem What's New
72
+
73
+ **Installed:** 1.4.26
74
+ **Latest:** 1.4.26
75
+
76
+ You're on the latest version.
77
+
78
+ [View full changelog](https://github.com/rolandtolnay/gsd/blob/main/CHANGELOG.md)
79
+ ```
80
+
81
+ **If updates available:**
82
+ ```
83
+ ## Mindsystem What's New
84
+
85
+ **Installed:** 1.4.23
86
+ **Latest:** 1.4.26
87
+
88
+ ---
89
+
90
+ ### Changes since your version:
91
+
92
+ ## [1.4.26] - 2026-01-20
93
+
94
+ ### Added
95
+ - Feature X
96
+ - Feature Y
97
+
98
+ ### Changed
99
+ - **BREAKING:** Changed Z behavior
100
+
101
+ ## [1.4.25] - 2026-01-18
102
+
103
+ ### Fixed
104
+ - Bug in feature A
105
+
106
+ ---
107
+
108
+ [View full changelog](https://github.com/rolandtolnay/gsd/blob/main/CHANGELOG.md)
109
+
110
+ **To update:** `npx mindsystem-cc --global`
111
+ ```
112
+
113
+ **Breaking changes:** Surface prominently with **BREAKING:** prefix in the output.
114
+ </step>
115
+
116
+ </process>
117
+
118
+ <success_criteria>
119
+ - [ ] Installed version read from VERSION file
120
+ - [ ] Remote changelog fetched (or graceful fallback to local)
121
+ - [ ] Version comparison displayed clearly
122
+ - [ ] Changes since installed version shown (if any)
123
+ - [ ] Update instructions provided when behind
124
+ </success_criteria>