mindsystem-cc 4.0.2 → 4.0.3
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/README.md +98 -1
- package/agents/ms-codebase-researcher.md +5 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ npx mindsystem-cc
|
|
|
19
19
|
|
|
20
20
|
<br>
|
|
21
21
|
|
|
22
|
-
[How it works](#how-it-works) · [Walkthrough](#end-to-end-walkthrough) · [Features](#features) · [Quick start](#quick-start) · [Config](#configuration) · [Commands](#command-reference) · [Troubleshooting](#troubleshooting)
|
|
22
|
+
[How it works](#how-it-works) · [Walkthrough](#end-to-end-walkthrough) · [Features](#features) · [Quick start](#quick-start) · [.planning](#the-planning-directory) · [Config](#configuration) · [Commands](#command-reference) · [Troubleshooting](#troubleshooting)
|
|
23
23
|
|
|
24
24
|
</div>
|
|
25
25
|
|
|
@@ -282,6 +282,103 @@ Codebase mapping produces 7 documents covering your stack, conventions, and arch
|
|
|
282
282
|
|
|
283
283
|
---
|
|
284
284
|
|
|
285
|
+
## The .planning directory
|
|
286
|
+
|
|
287
|
+
Every artifact Mindsystem generates lives in `.planning/` — a markdown knowledge base that grows with your project. Commands read from it, execution enriches it, and it all survives `/clear` boundaries and context resets. Here's what a project looks like after a couple of milestones:
|
|
288
|
+
|
|
289
|
+
```
|
|
290
|
+
.planning/
|
|
291
|
+
├── PROJECT.md # Living spec — vision, users, flows, decisions
|
|
292
|
+
├── MILESTONES.md # Registry of completed milestones
|
|
293
|
+
│
|
|
294
|
+
├── STATE.md # Active phase, blockers, recent decisions
|
|
295
|
+
├── MILESTONE-CONTEXT.md # new-milestone → brainstorm that grounds the roadmap
|
|
296
|
+
├── ROADMAP.md # Phase breakdown with goals and success criteria
|
|
297
|
+
├── REQUIREMENTS.md # Checkable REQ-IDs mapped to phases
|
|
298
|
+
│
|
|
299
|
+
├── TECH-DEBT.md # Prioritized debt — TD-IDs, severity tiers
|
|
300
|
+
├── config.json # Subsystems, code review tiers, preferences
|
|
301
|
+
│
|
|
302
|
+
├── knowledge/ # Persists across milestones
|
|
303
|
+
│ ├── auth.md # Patterns, decisions, pitfalls per subsystem
|
|
304
|
+
│ ├── api.md # Enriched after every execute and verify cycle
|
|
305
|
+
│ └── ui.md # Future phases load relevant files automatically
|
|
306
|
+
│
|
|
307
|
+
├── codebase/ # /ms:map-codebase → existing repo analysis
|
|
308
|
+
│ ├── STACK.md # Runtime, frameworks, key dependencies
|
|
309
|
+
│ ├── ARCHITECTURE.md # Modules, layers, data flow patterns
|
|
310
|
+
│ ├── STRUCTURE.md # Directory layout and file organization
|
|
311
|
+
│ ├── CONVENTIONS.md # Naming, style, established patterns
|
|
312
|
+
│ ├── TESTING.md # Test framework, coverage, how to add tests
|
|
313
|
+
│ ├── INTEGRATIONS.md # External services and API connections
|
|
314
|
+
│ └── CONCERNS.md # Known issues, areas requiring care
|
|
315
|
+
│
|
|
316
|
+
├── phases/ # Active milestone work
|
|
317
|
+
│ │
|
|
318
|
+
│ ├── 01-auth-foundation/ # ── Fully executed phase ──
|
|
319
|
+
│ │ ├── CONTEXT.md # discuss-phase → locked intent and decisions
|
|
320
|
+
│ │ ├── DESIGN.md # design-phase → exact tokens, layout, interactions
|
|
321
|
+
│ │ ├── RESEARCH.md # research-phase → library picks, patterns, tradeoffs
|
|
322
|
+
│ │ ├── 01-01-PLAN.md # plan-phase → executable prompt, one per budget slice
|
|
323
|
+
│ │ ├── 01-02-PLAN.md #
|
|
324
|
+
│ │ ├── EXECUTION-ORDER.md # plan-phase → wave grouping and dependencies
|
|
325
|
+
│ │ ├── 01-01-SUMMARY.md # execute-phase → what changed, patterns, learnings
|
|
326
|
+
│ │ ├── 01-02-SUMMARY.md #
|
|
327
|
+
│ │ ├── VERIFICATION.md # execute-phase → goal-backward pass/fail
|
|
328
|
+
│ │ ├── UAT.md # verify-work → manual acceptance test results
|
|
329
|
+
│ │ ├── 01-changes.patch # execute-phase → diff of all code changes
|
|
330
|
+
│ │ ├── 01-uat-fixes.patch # verify-work → diff of fixes applied during testing
|
|
331
|
+
│ │ └── mockups/ # design-phase → HTML/CSS design exploration
|
|
332
|
+
│ │ ├── variant-a.html # self-contained mockup
|
|
333
|
+
│ │ ├── variant-b.html # self-contained mockup
|
|
334
|
+
│ │ └── comparison.html # side-by-side view, opens in browser
|
|
335
|
+
│ │
|
|
336
|
+
│ └── 02-payment-flow/ # ── Phase in progress ──
|
|
337
|
+
│ ├── CONTEXT.md # discussed, not yet planned
|
|
338
|
+
│ └── 02-01-PLAN.md # planned, not yet executed
|
|
339
|
+
│
|
|
340
|
+
├── research/ # /ms:research-project → domain ecosystem
|
|
341
|
+
│ ├── STACK.md # Technology recommendations for this domain
|
|
342
|
+
│ ├── ARCHITECTURE.md # Common system structure patterns
|
|
343
|
+
│ ├── FEATURES.md # Feature landscape in this domain
|
|
344
|
+
│ ├── PITFALLS.md # Mistakes to avoid
|
|
345
|
+
│ └── SUMMARY.md # Synthesized findings with roadmap implications
|
|
346
|
+
│
|
|
347
|
+
├── adhoc/ # /ms:adhoc → out-of-pipeline work
|
|
348
|
+
│ └── 2026-01-15-fix-token/
|
|
349
|
+
│ ├── adhoc-01-SUMMARY.md # Execution results and learnings
|
|
350
|
+
│ └── adhoc-01-changes.patch # Code diff
|
|
351
|
+
│
|
|
352
|
+
├── debug/ # /ms:debug → structured investigations
|
|
353
|
+
│ ├── websocket-reconnect.md # Active investigation — survives /clear
|
|
354
|
+
│ └── resolved/
|
|
355
|
+
│ └── race-condition-login.md # Root cause found, fix documented
|
|
356
|
+
│
|
|
357
|
+
├── todos/ # /ms:add-todo → captured work items
|
|
358
|
+
│ ├── 2026-02-01-rate-limiting.md # Pending — priority, estimate, subsystem
|
|
359
|
+
│ └── done/
|
|
360
|
+
│ └── 2026-01-20-header-fix.md # Completed via /ms:adhoc
|
|
361
|
+
│
|
|
362
|
+
└── milestones/ # /ms:complete-milestone → archived history
|
|
363
|
+
└── mvp/
|
|
364
|
+
├── ROADMAP.md # Historical phase breakdown
|
|
365
|
+
├── REQUIREMENTS.md # Final requirement status
|
|
366
|
+
├── PHASE-SUMMARIES.md # Consolidated execution summaries
|
|
367
|
+
├── MILESTONE-AUDIT.md # Requirements coverage, integration check
|
|
368
|
+
├── CONTEXT.md # Original milestone brainstorm
|
|
369
|
+
├── research/ # Archived domain research
|
|
370
|
+
│ └── ...
|
|
371
|
+
└── phases/ # Archived phase artifacts
|
|
372
|
+
└── 01-foundation/
|
|
373
|
+
├── 01-changes.patch # code diffs retained
|
|
374
|
+
└── mockups/ # design mockups retained
|
|
375
|
+
└── ...
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
Everything is plain markdown (plus `config.json` and `.patch` diffs). The entire directory is greppable, diffable, and readable by any team member or AI assistant. Phase 1 starts from scratch. Phase 10 starts with everything the project has learned.
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
285
382
|
## Configuration
|
|
286
383
|
|
|
287
384
|
Mindsystem stores project config in `.planning/config.json`. Run `/ms:config` to change these interactively.
|
|
@@ -37,19 +37,15 @@ Grep/Glob for imports, class names, and file patterns related to the research qu
|
|
|
37
37
|
|
|
38
38
|
Read `.planning/codebase/*.md` if they exist (from `/ms:map-codebase`). Extract relevant conventions, stack info, architecture patterns.
|
|
39
39
|
|
|
40
|
-
## 4.
|
|
41
|
-
|
|
42
|
-
Grep `.planning/LEARNINGS.md` for entries matching phase keywords, subsystem, or tech terms. Extract matched entries verbatim.
|
|
43
|
-
|
|
44
|
-
## 5. Prior Phase Summaries
|
|
40
|
+
## 4. Prior Phase Summaries
|
|
45
41
|
|
|
46
42
|
Scan `.planning/phases/*/SUMMARY.md` frontmatter only (first 25 lines) for `tech-stack`, `patterns-established`, `key-decisions` matching the phase domain. Read full summary only for direct matches.
|
|
47
43
|
|
|
48
|
-
##
|
|
44
|
+
## 5. Debug Resolutions
|
|
49
45
|
|
|
50
46
|
Scan `.planning/debug/resolved/*.md` for root causes related to the phase domain.
|
|
51
47
|
|
|
52
|
-
##
|
|
48
|
+
## 6. Adhoc Summaries
|
|
53
49
|
|
|
54
50
|
Scan `.planning/adhoc/*-SUMMARY.md` learnings arrays for relevant entries.
|
|
55
51
|
|
|
@@ -71,7 +67,7 @@ Return as text (not file). Orchestrator reads this for synthesis.
|
|
|
71
67
|
[Pattern name, files, description — how the project already handles similar work]
|
|
72
68
|
|
|
73
69
|
### Relevant Learnings
|
|
74
|
-
[
|
|
70
|
+
[Debug resolutions, adhoc learnings, summary deviations that match]
|
|
75
71
|
|
|
76
72
|
### Reusable Components
|
|
77
73
|
[Existing code that could be extended or reused for this phase]
|
|
@@ -99,7 +95,7 @@ Return as text (not file). Orchestrator reads this for synthesis.
|
|
|
99
95
|
- [ ] All findings include file:line references
|
|
100
96
|
- [ ] Empty sections explicitly noted
|
|
101
97
|
- [ ] Structured output returned (not written to file)
|
|
102
|
-
- [ ]
|
|
98
|
+
- [ ] Debug resolutions and adhoc summaries scanned for relevant entries
|
|
103
99
|
- [ ] Prior summaries checked (frontmatter only)
|
|
104
100
|
- [ ] Debug resolutions checked
|
|
105
101
|
</success_criteria>
|
package/package.json
CHANGED