mindsystem-cc 3.21.0 → 3.22.1

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 (87) hide show
  1. package/README.md +4 -12
  2. package/agents/ms-debugger.md +196 -880
  3. package/agents/ms-plan-checker.md +30 -30
  4. package/agents/ms-plan-writer.md +1 -1
  5. package/agents/ms-product-researcher.md +4 -2
  6. package/agents/ms-verifier.md +25 -117
  7. package/commands/ms/add-phase.md +3 -4
  8. package/commands/ms/add-todo.md +3 -4
  9. package/commands/ms/adhoc.md +3 -4
  10. package/commands/ms/audit-milestone.md +4 -3
  11. package/commands/ms/complete-milestone.md +2 -2
  12. package/commands/ms/config.md +36 -9
  13. package/commands/ms/create-roadmap.md +3 -4
  14. package/commands/ms/debug.md +27 -28
  15. package/commands/ms/design-phase.md +8 -5
  16. package/commands/ms/discuss-phase.md +2 -2
  17. package/commands/ms/doctor.md +9 -6
  18. package/commands/ms/execute-phase.md +2 -5
  19. package/commands/ms/help.md +2 -2
  20. package/commands/ms/insert-phase.md +3 -4
  21. package/commands/ms/map-codebase.md +1 -2
  22. package/commands/ms/new-milestone.md +1 -3
  23. package/commands/ms/new-project.md +3 -5
  24. package/commands/ms/plan-milestone-gaps.md +3 -4
  25. package/commands/ms/plan-phase.md +2 -3
  26. package/commands/ms/progress.md +1 -0
  27. package/commands/ms/remove-phase.md +3 -4
  28. package/commands/ms/research-phase.md +4 -4
  29. package/commands/ms/research-project.md +9 -16
  30. package/commands/ms/review-design.md +4 -2
  31. package/commands/ms/verify-work.md +6 -8
  32. package/mindsystem/templates/config.json +2 -1
  33. package/mindsystem/templates/roadmap.md +1 -1
  34. package/mindsystem/templates/state.md +2 -2
  35. package/mindsystem/templates/verification-report.md +3 -26
  36. package/mindsystem/workflows/diagnose-issues.md +0 -1
  37. package/mindsystem/workflows/discuss-phase.md +7 -3
  38. package/mindsystem/workflows/execute-phase.md +2 -18
  39. package/mindsystem/workflows/map-codebase.md +6 -12
  40. package/mindsystem/workflows/mockup-generation.md +46 -22
  41. package/mindsystem/workflows/plan-phase.md +12 -5
  42. package/mindsystem/workflows/verify-work.md +96 -69
  43. package/package.json +1 -1
  44. package/scripts/__pycache__/ms-tools.cpython-314.pyc +0 -0
  45. package/scripts/__pycache__/test_ms_tools.cpython-314-pytest-9.0.2.pyc +0 -0
  46. package/scripts/ms-tools.py +751 -6
  47. package/scripts/test_ms_tools.py +786 -0
  48. package/skills/senior-review/AGENTS.md +531 -0
  49. package/skills/{flutter-senior-review → senior-review}/SKILL.md +47 -36
  50. package/skills/senior-review/principles/dependencies-api-boundary-design.md +32 -0
  51. package/skills/senior-review/principles/dependencies-data-not-flags.md +32 -0
  52. package/skills/senior-review/principles/dependencies-temporal-coupling.md +32 -0
  53. package/skills/senior-review/principles/pragmatism-consistent-error-handling.md +32 -0
  54. package/skills/senior-review/principles/pragmatism-speculative-generality.md +32 -0
  55. package/skills/senior-review/principles/state-invalid-states.md +33 -0
  56. package/skills/senior-review/principles/state-single-source-of-truth.md +32 -0
  57. package/skills/senior-review/principles/state-type-hierarchies.md +32 -0
  58. package/skills/senior-review/principles/structure-composition-over-config.md +32 -0
  59. package/skills/senior-review/principles/structure-feature-isolation.md +32 -0
  60. package/skills/senior-review/principles/structure-module-cohesion.md +32 -0
  61. package/agents/ms-flutter-code-quality.md +0 -169
  62. package/agents/ms-flutter-reviewer.md +0 -211
  63. package/agents/ms-flutter-simplifier.md +0 -79
  64. package/mindsystem/references/debugging/debugging-mindset.md +0 -11
  65. package/mindsystem/references/debugging/hypothesis-testing.md +0 -11
  66. package/mindsystem/references/debugging/investigation-techniques.md +0 -11
  67. package/mindsystem/references/debugging/verification-patterns.md +0 -11
  68. package/mindsystem/references/debugging/when-to-research.md +0 -11
  69. package/mindsystem/references/git-integration.md +0 -254
  70. package/mindsystem/references/verification-patterns.md +0 -595
  71. package/mindsystem/workflows/debug.md +0 -14
  72. package/mindsystem/workflows/verify-phase.md +0 -625
  73. package/skills/flutter-code-quality/SKILL.md +0 -143
  74. package/skills/flutter-code-simplification/SKILL.md +0 -102
  75. package/skills/flutter-senior-review/AGENTS.md +0 -869
  76. package/skills/flutter-senior-review/principles/dependencies-data-not-callbacks.md +0 -75
  77. package/skills/flutter-senior-review/principles/dependencies-provider-tree.md +0 -85
  78. package/skills/flutter-senior-review/principles/dependencies-temporal-coupling.md +0 -97
  79. package/skills/flutter-senior-review/principles/pragmatism-consistent-error-handling.md +0 -130
  80. package/skills/flutter-senior-review/principles/pragmatism-speculative-generality.md +0 -91
  81. package/skills/flutter-senior-review/principles/state-data-clumps.md +0 -64
  82. package/skills/flutter-senior-review/principles/state-invalid-states.md +0 -53
  83. package/skills/flutter-senior-review/principles/state-single-source-of-truth.md +0 -68
  84. package/skills/flutter-senior-review/principles/state-type-hierarchies.md +0 -75
  85. package/skills/flutter-senior-review/principles/structure-composition-over-config.md +0 -105
  86. package/skills/flutter-senior-review/principles/structure-shared-visual-patterns.md +0 -107
  87. package/skills/flutter-senior-review/principles/structure-wrapper-pattern.md +0 -90
@@ -1,254 +0,0 @@
1
- <overview>
2
- Git integration for Mindsystem framework.
3
- </overview>
4
-
5
- <core_principle>
6
-
7
- **Commit outcomes, not process.**
8
-
9
- The git log should read like a changelog of what shipped, not a diary of planning activity.
10
- </core_principle>
11
-
12
- <commit_points>
13
-
14
- | Event | Commit? | Why |
15
- | ----------------------- | ------- | ------------------------------------------------ |
16
- | BRIEF + ROADMAP created | YES | Project initialization |
17
- | PLAN.md created | NO | Intermediate - commit with plan completion |
18
- | RESEARCH.md created | NO | Intermediate |
19
- | DISCOVERY.md created | NO | Intermediate |
20
- | **Task completed** | YES | Atomic unit of work (1 commit per task) |
21
- | **Plan completed** | YES | Metadata commit (SUMMARY + STATE + ROADMAP) |
22
- | Handoff created | YES | WIP state preserved |
23
-
24
- </commit_points>
25
-
26
- <git_check>
27
-
28
- ```bash
29
- [ -d .git ] && echo "GIT_EXISTS" || echo "NO_GIT"
30
- ```
31
-
32
- If NO_GIT: Run `git init` silently. Mindsystem projects always get their own repo.
33
- </git_check>
34
-
35
- <commit_formats>
36
-
37
- <format name="initialization">
38
- ## Project Initialization (brief + roadmap together)
39
-
40
- ```
41
- docs: initialize [project-name] ([N] phases)
42
-
43
- [One-liner from PROJECT.md]
44
-
45
- Phases:
46
- 1. [phase-name]: [goal]
47
- 2. [phase-name]: [goal]
48
- 3. [phase-name]: [goal]
49
- ```
50
-
51
- What to commit:
52
-
53
- ```bash
54
- git add .planning/
55
- git commit
56
- ```
57
-
58
- </format>
59
-
60
- <format name="task-completion">
61
- ## Task Completion (During Plan Execution)
62
-
63
- Each task gets its own commit immediately after completion.
64
-
65
- ```
66
- {type}({phase}-{plan}): {task-name}
67
-
68
- - [Key change 1]
69
- - [Key change 2]
70
- - [Key change 3]
71
- ```
72
-
73
- **Commit types:**
74
- - `feat` - New feature/functionality
75
- - `fix` - Bug fix
76
- - `test` - Test-only (TDD RED phase)
77
- - `refactor` - Code cleanup (TDD REFACTOR phase)
78
- - `perf` - Performance improvement
79
- - `chore` - Dependencies, config, tooling
80
-
81
- **Examples:**
82
-
83
- ```bash
84
- # Standard task
85
- git add src/api/auth.ts src/types/user.ts
86
- git commit -m "feat(08-02): create user registration endpoint
87
-
88
- - POST /auth/register validates email and password
89
- - Checks for duplicate users
90
- - Returns JWT token on success
91
- "
92
-
93
- # TDD task - RED phase
94
- git add src/__tests__/jwt.test.ts
95
- git commit -m "test(07-02): add failing test for JWT generation
96
-
97
- - Tests token contains user ID claim
98
- - Tests token expires in 1 hour
99
- - Tests signature verification
100
- "
101
-
102
- # TDD task - GREEN phase
103
- git add src/utils/jwt.ts
104
- git commit -m "feat(07-02): implement JWT generation
105
-
106
- - Uses jose library for signing
107
- - Includes user ID and expiry claims
108
- - Signs with HS256 algorithm
109
- "
110
- ```
111
-
112
- </format>
113
-
114
- <format name="plan-completion">
115
- ## Plan Completion (After All Tasks Done)
116
-
117
- After all tasks committed, one final metadata commit captures plan completion.
118
-
119
- ```
120
- docs({phase}-{plan}): complete [plan-name] plan
121
-
122
- Tasks completed: [N]/[N]
123
- - [Task 1 name]
124
- - [Task 2 name]
125
- - [Task 3 name]
126
-
127
- SUMMARY: .planning/phases/XX-name/{phase}-{plan}-SUMMARY.md
128
- ```
129
-
130
- What to commit:
131
-
132
- ```bash
133
- git add .planning/phases/XX-name/{phase}-{plan}-PLAN.md
134
- git add .planning/phases/XX-name/{phase}-{plan}-SUMMARY.md
135
- git add .planning/STATE.md
136
- git add .planning/ROADMAP.md
137
- git commit
138
- ```
139
-
140
- **Note:** Code files NOT included - already committed per-task.
141
-
142
- </format>
143
-
144
- <format name="handoff">
145
- ## Handoff (WIP)
146
-
147
- ```
148
- wip: [phase-name] paused at task [X]/[Y]
149
-
150
- Current: [task name]
151
- [If blocked:] Blocked: [reason]
152
- ```
153
-
154
- What to commit:
155
-
156
- ```bash
157
- git add .planning/
158
- git commit
159
- ```
160
-
161
- </format>
162
- </commit_formats>
163
-
164
- <example_log>
165
-
166
- **Old approach (per-plan commits):**
167
- ```
168
- a7f2d1 feat(checkout): Stripe payments with webhook verification
169
- 3e9c4b feat(products): catalog with search, filters, and pagination
170
- 8a1b2c feat(auth): JWT with refresh rotation using jose
171
- 5c3d7e feat(foundation): Next.js 15 + Prisma + Tailwind scaffold
172
- 2f4a8d docs: initialize ecommerce-app (5 phases)
173
- ```
174
-
175
- **New approach (per-task commits):**
176
- ```
177
- # Phase 04 - Checkout
178
- 1a2b3c docs(04-01): complete checkout flow plan
179
- 4d5e6f feat(04-01): add webhook signature verification
180
- 7g8h9i feat(04-01): implement payment session creation
181
- 0j1k2l feat(04-01): create checkout page component
182
-
183
- # Phase 03 - Products
184
- 3m4n5o docs(03-02): complete product listing plan
185
- 6p7q8r feat(03-02): add pagination controls
186
- 9s0t1u feat(03-02): implement search and filters
187
- 2v3w4x feat(03-01): create product catalog schema
188
-
189
- # Phase 02 - Auth
190
- 5y6z7a docs(02-02): complete token refresh plan
191
- 8b9c0d feat(02-02): implement refresh token rotation
192
- 1e2f3g test(02-02): add failing test for token refresh
193
- 4h5i6j docs(02-01): complete JWT setup plan
194
- 7k8l9m feat(02-01): add JWT generation and validation
195
- 0n1o2p chore(02-01): install jose library
196
-
197
- # Phase 01 - Foundation
198
- 3q4r5s docs(01-01): complete scaffold plan
199
- 6t7u8v feat(01-01): configure Tailwind and globals
200
- 9w0x1y feat(01-01): set up Prisma with database
201
- 2z3a4b feat(01-01): create Next.js 15 project
202
-
203
- # Initialization
204
- 5c6d7e docs: initialize ecommerce-app (5 phases)
205
- ```
206
-
207
- Each plan produces 2-4 commits (tasks + metadata). Clear, granular, bisectable.
208
-
209
- </example_log>
210
-
211
- <anti_patterns>
212
-
213
- **Still don't commit (intermediate artifacts):**
214
- - PLAN.md creation (commit with plan completion)
215
- - RESEARCH.md (intermediate)
216
- - DISCOVERY.md (intermediate)
217
- - Minor planning tweaks
218
- - "Fixed typo in roadmap"
219
-
220
- **Do commit (outcomes):**
221
- - Each task completion (feat/fix/test/refactor)
222
- - Plan completion metadata (docs)
223
- - Project initialization (docs)
224
-
225
- **Key principle:** Commit working code and shipped outcomes, not planning process.
226
-
227
- </anti_patterns>
228
-
229
- <commit_strategy_rationale>
230
-
231
- ## Why Per-Task Commits?
232
-
233
- **Context engineering for AI:**
234
- - Git history becomes primary context source for future Claude sessions
235
- - `git log --grep="{phase}-{plan}"` shows all work for a plan
236
- - `git diff <hash>^..<hash>` shows exact changes per task
237
- - Less reliance on parsing SUMMARY.md = more context for actual work
238
-
239
- **Failure recovery:**
240
- - Task 1 committed ✅, Task 2 failed ❌
241
- - Claude in next session: sees task 1 complete, can retry task 2
242
- - Can `git reset --hard` to last successful task
243
-
244
- **Debugging:**
245
- - `git bisect` finds exact failing task, not just failing plan
246
- - `git blame` traces line to specific task context
247
- - Each commit is independently revertable
248
-
249
- **Observability:**
250
- - Solo developer + Claude workflow benefits from granular attribution
251
- - Atomic commits are git best practice
252
- - "Commit noise" irrelevant when consumer is Claude, not humans
253
-
254
- </commit_strategy_rationale>