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.
- package/LICENSE +21 -0
- package/README.md +501 -0
- package/agents/ms-codebase-mapper.md +739 -0
- package/agents/ms-debugger.md +1184 -0
- package/agents/ms-designer.md +414 -0
- package/agents/ms-executor.md +760 -0
- package/agents/ms-integration-checker.md +423 -0
- package/agents/ms-milestone-auditor.md +448 -0
- package/agents/ms-mock-generator.md +182 -0
- package/agents/ms-plan-checker.md +746 -0
- package/agents/ms-research-synthesizer.md +248 -0
- package/agents/ms-researcher.md +962 -0
- package/agents/ms-roadmapper.md +606 -0
- package/agents/ms-verifier.md +779 -0
- package/agents/ms-verify-fixer.md +124 -0
- package/bin/install.js +296 -0
- package/commands/ms/add-phase.md +207 -0
- package/commands/ms/add-todo.md +182 -0
- package/commands/ms/audit-milestone.md +318 -0
- package/commands/ms/check-phase.md +162 -0
- package/commands/ms/check-todos.md +217 -0
- package/commands/ms/complete-milestone.md +137 -0
- package/commands/ms/create-roadmap.md +273 -0
- package/commands/ms/debug.md +149 -0
- package/commands/ms/define-requirements.md +121 -0
- package/commands/ms/design-phase.md +341 -0
- package/commands/ms/discuss-milestone.md +48 -0
- package/commands/ms/discuss-phase.md +60 -0
- package/commands/ms/do-work.md +90 -0
- package/commands/ms/execute-phase.md +289 -0
- package/commands/ms/help.md +623 -0
- package/commands/ms/insert-phase.md +227 -0
- package/commands/ms/list-phase-assumptions.md +50 -0
- package/commands/ms/map-codebase.md +71 -0
- package/commands/ms/new-milestone.md +193 -0
- package/commands/ms/new-project.md +338 -0
- package/commands/ms/pause-work.md +123 -0
- package/commands/ms/plan-milestone-gaps.md +285 -0
- package/commands/ms/plan-phase.md +105 -0
- package/commands/ms/progress.md +370 -0
- package/commands/ms/remove-phase.md +338 -0
- package/commands/ms/research-phase.md +175 -0
- package/commands/ms/research-project.md +339 -0
- package/commands/ms/resume-work.md +40 -0
- package/commands/ms/review-design.md +484 -0
- package/commands/ms/simplify-flutter.md +193 -0
- package/commands/ms/update.md +159 -0
- package/commands/ms/verify-work.md +92 -0
- package/commands/ms/whats-new.md +124 -0
- package/mindsystem/references/checkpoints.md +788 -0
- package/mindsystem/references/continuation-format.md +255 -0
- package/mindsystem/references/debugging/debugging-mindset.md +11 -0
- package/mindsystem/references/debugging/hypothesis-testing.md +11 -0
- package/mindsystem/references/debugging/investigation-techniques.md +11 -0
- package/mindsystem/references/debugging/verification-patterns.md +11 -0
- package/mindsystem/references/debugging/when-to-research.md +11 -0
- package/mindsystem/references/git-integration.md +254 -0
- package/mindsystem/references/goal-backward.md +286 -0
- package/mindsystem/references/mock-patterns.md +294 -0
- package/mindsystem/references/plan-format.md +473 -0
- package/mindsystem/references/principles.md +73 -0
- package/mindsystem/references/questioning.md +140 -0
- package/mindsystem/references/research-pitfalls.md +233 -0
- package/mindsystem/references/scope-estimation.md +256 -0
- package/mindsystem/references/tdd.md +263 -0
- package/mindsystem/references/verification-patterns.md +595 -0
- package/mindsystem/templates/DEBUG.md +159 -0
- package/mindsystem/templates/UAT.md +403 -0
- package/mindsystem/templates/adhoc-summary.md +153 -0
- package/mindsystem/templates/codebase/architecture.md +255 -0
- package/mindsystem/templates/codebase/concerns.md +310 -0
- package/mindsystem/templates/codebase/conventions.md +307 -0
- package/mindsystem/templates/codebase/integrations.md +280 -0
- package/mindsystem/templates/codebase/stack.md +186 -0
- package/mindsystem/templates/codebase/structure.md +285 -0
- package/mindsystem/templates/codebase/testing.md +480 -0
- package/mindsystem/templates/config.json +26 -0
- package/mindsystem/templates/context.md +140 -0
- package/mindsystem/templates/continue-here.md +78 -0
- package/mindsystem/templates/debug-subagent-prompt.md +91 -0
- package/mindsystem/templates/design-iteration.md +208 -0
- package/mindsystem/templates/design.md +417 -0
- package/mindsystem/templates/discovery.md +146 -0
- package/mindsystem/templates/milestone-archive.md +123 -0
- package/mindsystem/templates/milestone-context.md +93 -0
- package/mindsystem/templates/milestone.md +115 -0
- package/mindsystem/templates/phase-prompt.md +574 -0
- package/mindsystem/templates/project.md +184 -0
- package/mindsystem/templates/requirements.md +231 -0
- package/mindsystem/templates/research-project/ARCHITECTURE.md +204 -0
- package/mindsystem/templates/research-project/FEATURES.md +147 -0
- package/mindsystem/templates/research-project/PITFALLS.md +200 -0
- package/mindsystem/templates/research-project/STACK.md +120 -0
- package/mindsystem/templates/research-project/SUMMARY.md +170 -0
- package/mindsystem/templates/research-subagent-prompt.md +92 -0
- package/mindsystem/templates/research.md +529 -0
- package/mindsystem/templates/roadmap.md +214 -0
- package/mindsystem/templates/state.md +224 -0
- package/mindsystem/templates/summary.md +269 -0
- package/mindsystem/templates/user-setup.md +323 -0
- package/mindsystem/templates/verification-report.md +322 -0
- package/mindsystem/workflows/complete-milestone.md +759 -0
- package/mindsystem/workflows/create-milestone.md +203 -0
- package/mindsystem/workflows/debug.md +14 -0
- package/mindsystem/workflows/define-requirements.md +330 -0
- package/mindsystem/workflows/diagnose-issues.md +241 -0
- package/mindsystem/workflows/discovery-phase.md +293 -0
- package/mindsystem/workflows/discuss-milestone.md +310 -0
- package/mindsystem/workflows/discuss-phase.md +237 -0
- package/mindsystem/workflows/do-work.md +359 -0
- package/mindsystem/workflows/execute-phase.md +644 -0
- package/mindsystem/workflows/execute-plan.md +1828 -0
- package/mindsystem/workflows/generate-mocks.md +187 -0
- package/mindsystem/workflows/list-phase-assumptions.md +178 -0
- package/mindsystem/workflows/map-codebase.md +289 -0
- package/mindsystem/workflows/plan-phase.md +876 -0
- package/mindsystem/workflows/research-phase.md +17 -0
- package/mindsystem/workflows/research-project.md +23 -0
- package/mindsystem/workflows/resume-project.md +311 -0
- package/mindsystem/workflows/transition.md +564 -0
- package/mindsystem/workflows/verify-phase.md +629 -0
- package/mindsystem/workflows/verify-work.md +823 -0
- package/package.json +32 -0
- package/scripts/generate-phase-patch.sh +169 -0
- package/scripts/ms-lookup/README.md +112 -0
- package/scripts/ms-lookup/ms_lookup/__init__.py +3 -0
- package/scripts/ms-lookup/ms_lookup/__main__.py +6 -0
- package/scripts/ms-lookup/ms_lookup/backends/__init__.py +6 -0
- package/scripts/ms-lookup/ms_lookup/backends/context7.py +219 -0
- package/scripts/ms-lookup/ms_lookup/backends/perplexity.py +145 -0
- package/scripts/ms-lookup/ms_lookup/cache.py +48 -0
- package/scripts/ms-lookup/ms_lookup/cli.py +219 -0
- package/scripts/ms-lookup/ms_lookup/config.py +23 -0
- package/scripts/ms-lookup/ms_lookup/errors.py +24 -0
- package/scripts/ms-lookup/ms_lookup/output.py +49 -0
- package/scripts/ms-lookup/ms_lookup/tokens.py +56 -0
- package/scripts/ms-lookup/pyproject.toml +17 -0
- package/scripts/ms-lookup/uv.lock +207 -0
- package/scripts/ms-lookup-wrapper.sh +21 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Lex Christopherson
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# MINDSYSTEM
|
|
4
|
+
|
|
5
|
+
**A light-weight and powerful meta-prompting, context engineering and spec-driven development system for Claude Code by Roland Tolnay.**
|
|
6
|
+
|
|
7
|
+
*Based on [GSD](https://github.com/glittercowboy/get-shit-done) by TÂCHES.*
|
|
8
|
+
|
|
9
|
+
**Solves context rot — the quality degradation that happens as Claude fills its context window.**
|
|
10
|
+
|
|
11
|
+
[](https://www.npmjs.com/package/mindsystem-cc)
|
|
12
|
+
[](https://www.npmjs.com/package/mindsystem-cc)
|
|
13
|
+
[](LICENSE)
|
|
14
|
+
[](https://github.com/rolandtolnay/mindsystem)
|
|
15
|
+
|
|
16
|
+
<br>
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx mindsystem-cc
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Works on Mac, Windows, and Linux.**
|
|
23
|
+
|
|
24
|
+
<br>
|
|
25
|
+
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
<br>
|
|
29
|
+
|
|
30
|
+
*"If you know clearly what you want, this WILL build it for you. No bs."*
|
|
31
|
+
|
|
32
|
+
*"I've done SpecKit, OpenSpec and Taskmaster — this has produced the best results for me."*
|
|
33
|
+
|
|
34
|
+
*"By far the most powerful addition to my Claude Code. Nothing over-engineered. Literally just gets shit done."*
|
|
35
|
+
|
|
36
|
+
<br>
|
|
37
|
+
|
|
38
|
+
**Trusted by engineers at Amazon, Google, Shopify, and Webflow.**
|
|
39
|
+
|
|
40
|
+
[Why I Built This](#why-i-built-this) · [How It Works](#how-it-works) · [Commands](#commands) · [Why It Works](#why-it-works)
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Why This Exists
|
|
47
|
+
|
|
48
|
+
> *"I'm a solo developer. I don't write code — Claude Code does. Other spec-driven development tools exist; BMAD, Speckit... But they all seem to make things way more complicated than they need to be. I'm not a 50-person software company. I don't want to play enterprise theater. I'm just a creative person trying to build great things that work."*
|
|
49
|
+
>
|
|
50
|
+
> — **TÂCHES**, creator of the original [GSD](https://github.com/glittercowboy/get-shit-done)
|
|
51
|
+
|
|
52
|
+
Mindsystem is a fork of GSD that shares this philosophy but diverges in approach.
|
|
53
|
+
|
|
54
|
+
### Fork Philosophy
|
|
55
|
+
|
|
56
|
+
**Modularity over bundling.** Commands stay separated rather than unified into mega-flows. Each command has a clear purpose — you know exactly which to use without consulting documentation.
|
|
57
|
+
|
|
58
|
+
**Main context for collaboration.** Planning and interactive work stays in the main context rather than delegating to subagents. This preserves conversational iteration, your ability to question and redirect, and visibility into Claude's reasoning. Subagents handle autonomous execution, not collaborative thinking.
|
|
59
|
+
|
|
60
|
+
**User as collaborator.** You decide when to proceed, what to skip. Separate commands for research, requirements, planning, execution. No hidden delegation or background orchestration.
|
|
61
|
+
|
|
62
|
+
**Script + prompt hybrid.** Deterministic logic lives in shell scripts, not natural language. Prompts handle reasoning and decisions; scripts handle mechanical operations.
|
|
63
|
+
|
|
64
|
+
### What's New in This Fork
|
|
65
|
+
|
|
66
|
+
**Design Phase System.** Full UI/UX specification workflow with `/ms:design-phase`. Dedicated designer agent creates DESIGN.md with ASCII wireframes, component specs, and UX flows. Includes mathematical validation — touch targets, spacing minimums, WCAG AA contrast checks — before implementation begins.
|
|
67
|
+
|
|
68
|
+
**ms-lookup Research CLI.** Python tool at `scripts/ms-lookup/` for library documentation (Context7) and deep research (Perplexity). Integrated into research workflows. Run standalone or let agents use it automatically.
|
|
69
|
+
|
|
70
|
+
**Enhanced Verification.** Mock support for isolated testing, batched UAT with grouped test presentation, and auto-diagnosis — when issues are found, parallel debug agents investigate root causes before you decide how to fix them.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
Vibecoding has a bad reputation. You describe what you want, AI generates code, and you get inconsistent garbage that falls apart at scale.
|
|
75
|
+
|
|
76
|
+
Mindsystem fixes that. It's the context engineering layer that makes Claude Code reliable. Describe your idea, let the system extract everything it needs to know, and let Claude Code get to work.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Who This Is For
|
|
81
|
+
|
|
82
|
+
People who want to describe what they want and have it built correctly — without pretending they're running a 50-person engineering org.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Getting Started
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
npx mindsystem-cc
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
That's it. Verify with `/ms:help` inside your Claude Code interface.
|
|
93
|
+
|
|
94
|
+
### Start Here
|
|
95
|
+
|
|
96
|
+
- If you already have `.planning/` in this repo: run `/ms:progress`.
|
|
97
|
+
- If you’re starting in an existing codebase (brownfield): run `/ms:map-codebase`, then `/ms:new-project`.
|
|
98
|
+
- Otherwise: run `/ms:new-project`.
|
|
99
|
+
|
|
100
|
+
### Staying Updated
|
|
101
|
+
|
|
102
|
+
Mindsystem evolves fast. Check for updates periodically:
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
/ms:whats-new # See what changed since your version
|
|
106
|
+
/ms:update # Update and show changelog
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Or update directly via npm:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
npx mindsystem-cc@latest
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
<details>
|
|
116
|
+
<summary><strong>Non-interactive Install (Docker, CI, Scripts)</strong></summary>
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npx mindsystem-cc --global # Install to ~/.claude/
|
|
120
|
+
npx mindsystem-cc --local # Install to ./.claude/
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Use `--global` (`-g`) or `--local` (`-l`) to skip the interactive prompt.
|
|
124
|
+
|
|
125
|
+
</details>
|
|
126
|
+
|
|
127
|
+
<details>
|
|
128
|
+
<summary><strong>Development Installation</strong></summary>
|
|
129
|
+
|
|
130
|
+
Clone the repository and run the installer locally:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
git clone https://github.com/rolandtolnay/mindsystem.git
|
|
134
|
+
cd gsd
|
|
135
|
+
node bin/install.js --local
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Installs to `./.claude/` for testing modifications before contributing.
|
|
139
|
+
|
|
140
|
+
</details>
|
|
141
|
+
|
|
142
|
+
### Recommended: Skip Permissions Mode
|
|
143
|
+
|
|
144
|
+
Mindsystem is designed for frictionless automation. Run Claude Code with:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
claude --dangerously-skip-permissions
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
> [!TIP]
|
|
151
|
+
> This is how Mindsystem is intended to be used — stopping to approve `date` and `git commit` 50 times defeats the purpose.
|
|
152
|
+
|
|
153
|
+
<details>
|
|
154
|
+
<summary><strong>Alternative: Granular Permissions</strong></summary>
|
|
155
|
+
|
|
156
|
+
If you prefer not to use that flag, add this to your project's `.claude/settings.json`:
|
|
157
|
+
|
|
158
|
+
```json
|
|
159
|
+
{
|
|
160
|
+
"permissions": {
|
|
161
|
+
"allow": [
|
|
162
|
+
"Bash(date:*)",
|
|
163
|
+
"Bash(echo:*)",
|
|
164
|
+
"Bash(cat:*)",
|
|
165
|
+
"Bash(ls:*)",
|
|
166
|
+
"Bash(mkdir:*)",
|
|
167
|
+
"Bash(wc:*)",
|
|
168
|
+
"Bash(head:*)",
|
|
169
|
+
"Bash(tail:*)",
|
|
170
|
+
"Bash(sort:*)",
|
|
171
|
+
"Bash(grep:*)",
|
|
172
|
+
"Bash(tr:*)",
|
|
173
|
+
"Bash(git add:*)",
|
|
174
|
+
"Bash(git commit:*)",
|
|
175
|
+
"Bash(git status:*)",
|
|
176
|
+
"Bash(git log:*)",
|
|
177
|
+
"Bash(git diff:*)",
|
|
178
|
+
"Bash(git tag:*)"
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
</details>
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## How It Works
|
|
189
|
+
|
|
190
|
+
### 1. Start with an idea
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
/ms:new-project
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
The system asks questions. Keeps asking until it has everything — your goals, constraints, tech preferences, edge cases. You go back and forth until the idea is fully captured. Creates **PROJECT.md**.
|
|
197
|
+
|
|
198
|
+
### 1.5. Research the domain (optional)
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
/ms:research-project
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Spawns parallel agents to investigate the domain — what's the standard stack, what features users expect, common architectural patterns, and pitfalls to avoid. Creates `.planning/research/` with ecosystem knowledge.
|
|
205
|
+
|
|
206
|
+
> Recommended for best results. Skip only if you need speed over thoroughness.
|
|
207
|
+
|
|
208
|
+
### 2. Define requirements
|
|
209
|
+
|
|
210
|
+
```
|
|
211
|
+
/ms:define-requirements
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Scope what's v1, what's v2, and what's out of scope. Creates **REQUIREMENTS.md** with checkable requirements and traceability. Works with or without prior research.
|
|
215
|
+
|
|
216
|
+
### 3. Create roadmap
|
|
217
|
+
|
|
218
|
+
```
|
|
219
|
+
/ms:create-roadmap
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Produces:
|
|
223
|
+
- **ROADMAP.md** — Phases from start to finish, mapped to requirements
|
|
224
|
+
- **STATE.md** — Living memory that persists across sessions
|
|
225
|
+
|
|
226
|
+
### 4. Plan and execute phases
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
/ms:plan-phase 1 # System creates atomic task plans
|
|
230
|
+
/ms:execute-phase 1 # Parallel agents execute all plans (includes verification)
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Each phase breaks into 2-3 task plans. Each plan runs in a fresh subagent context — 200k tokens purely for implementation, zero degradation. Plans without dependencies run in parallel.
|
|
234
|
+
|
|
235
|
+
Checkpoints and resumption are handled automatically — if interrupted, run `/ms:execute-phase 1` again and it picks up where it left off.
|
|
236
|
+
|
|
237
|
+
If a phase verifies with gaps, close them with:
|
|
238
|
+
|
|
239
|
+
```
|
|
240
|
+
/ms:plan-phase 1 --gaps
|
|
241
|
+
/ms:execute-phase 1
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### 5. Ship and iterate
|
|
245
|
+
|
|
246
|
+
```
|
|
247
|
+
/ms:audit-milestone 1.0.0 # (recommended) verify milestone before archiving
|
|
248
|
+
/ms:complete-milestone 1.0.0 # Archive v1, prep for v2
|
|
249
|
+
/ms:add-phase "Add admin dashboard"
|
|
250
|
+
/ms:insert-phase 2 "Fix critical auth bug"
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Ship your MVP in a day. Add features. Insert hotfixes. The system stays modular — you're never stuck.
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## Existing Projects (Brownfield)
|
|
258
|
+
|
|
259
|
+
Already have code? Start here instead.
|
|
260
|
+
|
|
261
|
+
### 1. Map the codebase
|
|
262
|
+
|
|
263
|
+
```
|
|
264
|
+
/ms:map-codebase
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
Spawns parallel agents to analyze your code. Creates `.planning/codebase/` with 7 documents:
|
|
268
|
+
|
|
269
|
+
| Document | Purpose |
|
|
270
|
+
|----------|---------|
|
|
271
|
+
| `STACK.md` | Languages, frameworks, dependencies |
|
|
272
|
+
| `ARCHITECTURE.md` | Patterns, layers, data flow |
|
|
273
|
+
| `STRUCTURE.md` | Directory layout, where things live |
|
|
274
|
+
| `CONVENTIONS.md` | Code style, naming patterns |
|
|
275
|
+
| `TESTING.md` | Test framework, patterns |
|
|
276
|
+
| `INTEGRATIONS.md` | External services, APIs |
|
|
277
|
+
| `CONCERNS.md` | Tech debt, known issues, fragile areas |
|
|
278
|
+
|
|
279
|
+
### 2. Initialize project
|
|
280
|
+
|
|
281
|
+
```
|
|
282
|
+
/ms:new-project
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
Same as greenfield, but the system knows your codebase. Questions focus on what you're adding/changing, not starting from scratch.
|
|
286
|
+
|
|
287
|
+
### 3. Continue as normal
|
|
288
|
+
|
|
289
|
+
From here, it's the same flow:
|
|
290
|
+
- `/ms:research-project` (optional) → `/ms:define-requirements` → `/ms:create-roadmap` → `/ms:plan-phase` → `/ms:execute-phase <phase>`
|
|
291
|
+
|
|
292
|
+
The codebase docs load automatically during planning. Claude knows your patterns, conventions, and where to put things.
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## Why It Works
|
|
297
|
+
|
|
298
|
+
### Context Engineering
|
|
299
|
+
|
|
300
|
+
Claude Code is incredibly powerful *if* you give it the context it needs. Most people don't.
|
|
301
|
+
|
|
302
|
+
Mindsystem handles it for you:
|
|
303
|
+
|
|
304
|
+
| File | What it does |
|
|
305
|
+
|------|--------------|
|
|
306
|
+
| `PROJECT.md` | Project vision, always loaded |
|
|
307
|
+
| `research/` | Ecosystem knowledge (stack, features, architecture, pitfalls) |
|
|
308
|
+
| `REQUIREMENTS.md` | Scoped v1/v2 requirements with phase traceability |
|
|
309
|
+
| `ROADMAP.md` | Where you're going, what's done |
|
|
310
|
+
| `STATE.md` | Decisions, blockers, position — memory across sessions |
|
|
311
|
+
| `PLAN.md` | Atomic task with XML structure, verification steps |
|
|
312
|
+
| `SUMMARY.md` | What happened, what changed, committed to history |
|
|
313
|
+
| `todos/` | Captured ideas and tasks for later work |
|
|
314
|
+
| `adhoc/` | Small work executed mid-session with audit trail |
|
|
315
|
+
|
|
316
|
+
Size limits based on where Claude's quality degrades. Stay under, get consistent excellence.
|
|
317
|
+
|
|
318
|
+
### XML Prompt Formatting
|
|
319
|
+
|
|
320
|
+
Every plan is structured XML optimized for Claude:
|
|
321
|
+
|
|
322
|
+
```xml
|
|
323
|
+
<task type="auto">
|
|
324
|
+
<name>Create login endpoint</name>
|
|
325
|
+
<files>src/app/api/auth/login/route.ts</files>
|
|
326
|
+
<action>
|
|
327
|
+
Use jose for JWT (not jsonwebtoken - CommonJS issues).
|
|
328
|
+
Validate credentials against users table.
|
|
329
|
+
Return httpOnly cookie on success.
|
|
330
|
+
</action>
|
|
331
|
+
<verify>curl -X POST localhost:3000/api/auth/login returns 200 + Set-Cookie</verify>
|
|
332
|
+
<done>Valid credentials return cookie, invalid return 401</done>
|
|
333
|
+
</task>
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
Precise instructions. No guessing. Verification built in.
|
|
337
|
+
|
|
338
|
+
### Subagent Execution
|
|
339
|
+
|
|
340
|
+
As Claude fills its context window, quality degrades. You've seen it: *"Due to context limits, I'll be more concise now."* That "concision" is code for cutting corners.
|
|
341
|
+
|
|
342
|
+
Mindsystem prevents this. Each plan is maximum 3 tasks. Each plan runs in a fresh subagent — 200k tokens purely for implementation, zero accumulated garbage.
|
|
343
|
+
|
|
344
|
+
| Task | Context | Quality |
|
|
345
|
+
|------|---------|---------|
|
|
346
|
+
| Task 1 | Fresh | ✅ Full |
|
|
347
|
+
| Task 2 | Fresh | ✅ Full |
|
|
348
|
+
| Task 3 | Fresh | ✅ Full |
|
|
349
|
+
|
|
350
|
+
No degradation. Walk away, come back to completed work.
|
|
351
|
+
|
|
352
|
+
### Atomic Git Commits
|
|
353
|
+
|
|
354
|
+
Each task gets its own commit immediately after completion:
|
|
355
|
+
|
|
356
|
+
```bash
|
|
357
|
+
abc123f docs(08-02): complete user registration plan
|
|
358
|
+
def456g feat(08-02): add email confirmation flow
|
|
359
|
+
hij789k feat(08-02): implement password hashing
|
|
360
|
+
lmn012o feat(08-02): create registration endpoint
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
> [!NOTE]
|
|
364
|
+
> **Benefits:** Git bisect finds exact failing task. Each task independently revertable. Clear history for Claude in future sessions. Better observability in AI-automated workflow.
|
|
365
|
+
|
|
366
|
+
Every commit is surgical, traceable, and meaningful.
|
|
367
|
+
|
|
368
|
+
### Modular by Design
|
|
369
|
+
|
|
370
|
+
- Add phases to current milestone
|
|
371
|
+
- Insert urgent work between phases
|
|
372
|
+
- Complete milestones and start fresh
|
|
373
|
+
- Adjust plans without rebuilding everything
|
|
374
|
+
|
|
375
|
+
You're never locked in. The system adapts.
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
## Commands
|
|
380
|
+
|
|
381
|
+
For full details and up-to-date usage, run `/ms:help` inside Claude Code (or read `commands/ms/help.md`).
|
|
382
|
+
|
|
383
|
+
### Setup
|
|
384
|
+
|
|
385
|
+
| Command | What it does |
|
|
386
|
+
|---------|--------------|
|
|
387
|
+
| `/ms:new-project` | Extract your idea through questions, create PROJECT.md |
|
|
388
|
+
| `/ms:research-project` | Research domain ecosystem (stacks, features, pitfalls) |
|
|
389
|
+
| `/ms:define-requirements` | Scope v1/v2/out-of-scope with checkable requirements |
|
|
390
|
+
| `/ms:create-roadmap` | Create roadmap with phases mapped to requirements |
|
|
391
|
+
| `/ms:map-codebase` | Map existing codebase for brownfield projects |
|
|
392
|
+
|
|
393
|
+
### Execution
|
|
394
|
+
|
|
395
|
+
| Command | What it does |
|
|
396
|
+
|---------|--------------|
|
|
397
|
+
| `/ms:plan-phase [N] [--gaps]` | Generate task plans for a phase (or close verification gaps) |
|
|
398
|
+
| `/ms:execute-phase <N>` | Execute all plans in phase (parallel, handles checkpoints) |
|
|
399
|
+
| `/ms:progress` | Where am I? What's next? |
|
|
400
|
+
|
|
401
|
+
### Verification
|
|
402
|
+
|
|
403
|
+
| Command | What it does |
|
|
404
|
+
|---------|--------------|
|
|
405
|
+
| `/ms:check-phase <N>` | Verify phase plans before execution (optional) |
|
|
406
|
+
| `/ms:verify-work [N]` | User acceptance test of phase or plan ¹ |
|
|
407
|
+
| `/ms:audit-milestone [version]` | Audit milestone completion before archiving |
|
|
408
|
+
|
|
409
|
+
### Milestones
|
|
410
|
+
|
|
411
|
+
| Command | What it does |
|
|
412
|
+
|---------|--------------|
|
|
413
|
+
| `/ms:complete-milestone <version>` | Ship it, prep next version |
|
|
414
|
+
| `/ms:discuss-milestone` | Gather context for next milestone |
|
|
415
|
+
| `/ms:new-milestone [name]` | Create new milestone with phases |
|
|
416
|
+
| `/ms:plan-milestone-gaps` | Create phases to close gaps from audit |
|
|
417
|
+
|
|
418
|
+
### Phase Management
|
|
419
|
+
|
|
420
|
+
| Command | What it does |
|
|
421
|
+
|---------|--------------|
|
|
422
|
+
| `/ms:add-phase <desc>` | Append phase to roadmap |
|
|
423
|
+
| `/ms:insert-phase <after> <desc>` | Insert urgent work between phases |
|
|
424
|
+
| `/ms:remove-phase <N>` | Remove future phase, renumber subsequent |
|
|
425
|
+
| `/ms:discuss-phase <N>` | Gather context before planning |
|
|
426
|
+
| `/ms:research-phase <N>` | Deep research for unfamiliar domains |
|
|
427
|
+
| `/ms:list-phase-assumptions <N>` | See what Claude assumes before correcting |
|
|
428
|
+
|
|
429
|
+
### Session
|
|
430
|
+
|
|
431
|
+
| Command | What it does |
|
|
432
|
+
|---------|--------------|
|
|
433
|
+
| `/ms:pause-work` | Create handoff file when stopping mid-phase |
|
|
434
|
+
| `/ms:resume-work` | Restore from last session |
|
|
435
|
+
|
|
436
|
+
### Utilities
|
|
437
|
+
|
|
438
|
+
| Command | What it does |
|
|
439
|
+
|---------|--------------|
|
|
440
|
+
| `/ms:add-todo [desc]` | Capture idea or task for later |
|
|
441
|
+
| `/ms:check-todos [area]` | List pending todos, select one to work on |
|
|
442
|
+
| `/ms:do-work <desc>` | Execute small discovered work (max 2 tasks) |
|
|
443
|
+
| `/ms:debug [desc]` | Systematic debugging with persistent state |
|
|
444
|
+
| `/ms:review-design [scope]` | Audit and improve design of implemented features |
|
|
445
|
+
| `/ms:simplify-flutter [scope]` | Simplify Flutter/Dart code for clarity and maintainability |
|
|
446
|
+
| `/ms:help` | Show all commands and usage guide |
|
|
447
|
+
| `/ms:update` | Update Mindsystem with changelog display |
|
|
448
|
+
| `/ms:whats-new` | See what changed since installed version |
|
|
449
|
+
|
|
450
|
+
<sup>¹ Contributed by reddit user OracleGreyBeard</sup>
|
|
451
|
+
|
|
452
|
+
---
|
|
453
|
+
|
|
454
|
+
## Troubleshooting
|
|
455
|
+
|
|
456
|
+
**Commands not found after install?**
|
|
457
|
+
- Restart Claude Code to reload slash commands
|
|
458
|
+
- Verify files exist in `~/.claude/commands/ms/` (global) or `./.claude/commands/ms/` (local)
|
|
459
|
+
|
|
460
|
+
**Commands not working as expected?**
|
|
461
|
+
- Run `/ms:help` to verify installation
|
|
462
|
+
- Re-run `npx mindsystem-cc` to reinstall
|
|
463
|
+
|
|
464
|
+
**Updating to the latest version?**
|
|
465
|
+
```bash
|
|
466
|
+
npx mindsystem-cc@latest
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
**Using Docker or containerized environments?**
|
|
470
|
+
|
|
471
|
+
If file reads fail with tilde paths (`~/.claude/...`), set `CLAUDE_CONFIG_DIR` before installing:
|
|
472
|
+
```bash
|
|
473
|
+
CLAUDE_CONFIG_DIR=/home/youruser/.claude npx mindsystem-cc --global
|
|
474
|
+
```
|
|
475
|
+
This ensures absolute paths are used instead of `~` which may not expand correctly in containers.
|
|
476
|
+
|
|
477
|
+
---
|
|
478
|
+
|
|
479
|
+
## Star History
|
|
480
|
+
|
|
481
|
+
<a href="https://star-history.com/#rolandtolnay/mindsystem&Date">
|
|
482
|
+
<picture>
|
|
483
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=rolandtolnay/mindsystem&type=Date&theme=dark" />
|
|
484
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=rolandtolnay/mindsystem&type=Date" />
|
|
485
|
+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=rolandtolnay/mindsystem&type=Date" />
|
|
486
|
+
</picture>
|
|
487
|
+
</a>
|
|
488
|
+
|
|
489
|
+
---
|
|
490
|
+
|
|
491
|
+
## License
|
|
492
|
+
|
|
493
|
+
MIT License. See [LICENSE](LICENSE) for details.
|
|
494
|
+
|
|
495
|
+
---
|
|
496
|
+
|
|
497
|
+
<div align="center">
|
|
498
|
+
|
|
499
|
+
**Claude Code is powerful. Mindsystem makes it reliable.**
|
|
500
|
+
|
|
501
|
+
</div>
|