mindsystem-cc 3.22.0 → 4.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/README.md +3 -4
- package/agents/ms-adhoc-planner.md +133 -0
- package/agents/ms-code-reviewer.md +186 -0
- package/agents/ms-compounder.md +144 -0
- package/agents/ms-debugger.md +196 -880
- package/agents/ms-roadmapper.md +4 -0
- package/commands/ms/add-todo.md +46 -131
- package/commands/ms/adhoc.md +42 -57
- package/commands/ms/audit-milestone.md +66 -89
- package/commands/ms/complete-milestone.md +6 -4
- package/commands/ms/compound.md +64 -0
- package/commands/ms/config.md +66 -49
- package/commands/ms/create-roadmap.md +8 -7
- package/commands/ms/debug.md +24 -24
- package/commands/ms/doctor.md +29 -4
- package/commands/ms/help.md +52 -52
- package/commands/ms/new-milestone.md +4 -3
- package/commands/ms/progress.md +23 -3
- package/commands/ms/update.md +102 -0
- package/mindsystem/references/linear-cli.md +71 -0
- package/mindsystem/references/routing/audit-result-routing.md +9 -4
- package/mindsystem/references/todo-file.md +63 -0
- package/mindsystem/templates/adhoc-summary.md +4 -5
- package/mindsystem/templates/knowledge.md +1 -1
- package/mindsystem/templates/project.md +15 -4
- package/mindsystem/templates/state.md +3 -14
- package/mindsystem/templates/tech-debt.md +2 -2
- package/mindsystem/workflows/adhoc.md +128 -316
- package/mindsystem/workflows/complete-milestone.md +20 -0
- package/mindsystem/workflows/compound.md +121 -0
- package/mindsystem/workflows/diagnose-issues.md +0 -1
- package/mindsystem/workflows/doctor-fixes.md +1 -1
- package/mindsystem/workflows/plan-phase.md +1 -1
- package/package.json +1 -1
- package/scripts/__pycache__/ms-tools.cpython-314.pyc +0 -0
- package/scripts/__pycache__/test_ms_tools.cpython-314-pytest-9.0.2.pyc +0 -0
- package/scripts/fixtures/scan-context/.planning/adhoc/20260225-refactor-api/adhoc-01-SUMMARY.md +39 -0
- package/scripts/fixtures/scan-context/.planning/todos/{pending/add-logout.md → add-logout.md} +2 -2
- package/scripts/fixtures/scan-context/.planning/todos/done/setup-db.md +2 -2
- package/scripts/fixtures/scan-context/expected-output.json +21 -7
- package/scripts/ms-tools.py +42 -23
- package/scripts/test_ms_tools.py +84 -5
- package/skills/senior-review/SKILL.md +213 -0
- package/skills/senior-review/principles/dependencies-api-boundary-design.md +32 -0
- package/skills/senior-review/principles/dependencies-data-not-flags.md +32 -0
- package/skills/senior-review/principles/dependencies-temporal-coupling.md +32 -0
- package/skills/senior-review/principles/pragmatism-consistent-error-handling.md +32 -0
- package/skills/senior-review/principles/pragmatism-speculative-generality.md +32 -0
- package/skills/senior-review/principles/state-invalid-states.md +33 -0
- package/skills/senior-review/principles/state-single-source-of-truth.md +32 -0
- package/skills/senior-review/principles/state-type-hierarchies.md +32 -0
- package/skills/senior-review/principles/structure-composition-over-config.md +32 -0
- package/skills/senior-review/principles/structure-feature-isolation.md +32 -0
- package/skills/senior-review/principles/structure-module-cohesion.md +32 -0
- package/commands/ms/check-todos.md +0 -240
- package/commands/ms/plan-milestone-gaps.md +0 -288
- package/mindsystem/references/debugging/debugging-mindset.md +0 -11
- package/mindsystem/references/debugging/hypothesis-testing.md +0 -11
- package/mindsystem/references/debugging/investigation-techniques.md +0 -11
- package/mindsystem/references/debugging/verification-patterns.md +0 -11
- package/mindsystem/references/debugging/when-to-research.md +0 -11
- package/mindsystem/references/git-integration.md +0 -254
- package/mindsystem/references/verification-patterns.md +0 -558
- package/mindsystem/workflows/debug.md +0 -14
|
@@ -66,7 +66,8 @@ Milestone name: $ARGUMENTS (optional — will emerge during discovery if not pro
|
|
|
66
66
|
1. **Load context:**
|
|
67
67
|
- Read PROJECT.md (existing project, validated requirements, decisions)
|
|
68
68
|
- Read MILESTONES.md (what shipped previously)
|
|
69
|
-
- Read STATE.md (
|
|
69
|
+
- Read STATE.md (blockers)
|
|
70
|
+
- Scan `.planning/todos/` for pending todos
|
|
70
71
|
- Read config.json (project settings)
|
|
71
72
|
- Identify previous milestone name from MILESTONES.md (e.g., last shipped was "MVP")
|
|
72
73
|
|
|
@@ -111,9 +112,9 @@ Milestone name: $ARGUMENTS (optional — will emerge during discovery if not pro
|
|
|
111
112
|
- Tech debt from TECH-DEBT.md, MILESTONE-AUDIT.md, or knowledge file Pitfalls sections
|
|
112
113
|
- Settled decisions and patterns from knowledge files
|
|
113
114
|
- Untested assumptions from previous audit
|
|
114
|
-
-
|
|
115
|
+
- Deferred items from PROJECT.md `## Deferred` section (carried forward from previous milestones)
|
|
115
116
|
- Strategic features inferred from PROJECT.md: Who It's For, Core Problem, How It's Different
|
|
116
|
-
- Pending todos from
|
|
117
|
+
- Pending todos from `.planning/todos/`
|
|
117
118
|
|
|
118
119
|
If no meaningful artifacts exist (first milestone), base suggestions purely on PROJECT.md.
|
|
119
120
|
|
package/commands/ms/progress.md
CHANGED
|
@@ -38,7 +38,7 @@ Reconstruct STATE.md from artifacts:
|
|
|
38
38
|
1. Read PROJECT.md → Extract "What This Is" and Core Value
|
|
39
39
|
2. Read ROADMAP.md → Determine phases, find current position
|
|
40
40
|
3. Scan *-SUMMARY.md files → Extract recent decisions, concerns
|
|
41
|
-
4. Count pending todos in .planning/todos/
|
|
41
|
+
4. Count pending todos in .planning/todos/
|
|
42
42
|
|
|
43
43
|
Write reconstructed STATE.md, then proceed to "load" step.
|
|
44
44
|
|
|
@@ -55,6 +55,22 @@ This means a milestone was completed and archived. Go to **Route F** (between mi
|
|
|
55
55
|
If missing both ROADMAP.md and PROJECT.md: suggest `/ms:new-project`.
|
|
56
56
|
</step>
|
|
57
57
|
|
|
58
|
+
<step name="check_version">
|
|
59
|
+
**Check for Mindsystem updates (non-blocking):**
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Installed version
|
|
63
|
+
cat "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/mindsystem/VERSION" 2>/dev/null || cat ./.claude/mindsystem/VERSION 2>/dev/null
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Latest from npm
|
|
68
|
+
npm view mindsystem-cc version 2>/dev/null
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Compare versions. Store result for the report step. If npm fails or versions match, skip — do not block progress.
|
|
72
|
+
</step>
|
|
73
|
+
|
|
58
74
|
<step name="load">
|
|
59
75
|
**Load full project context:**
|
|
60
76
|
|
|
@@ -79,7 +95,7 @@ If missing both ROADMAP.md and PROJECT.md: suggest `/ms:new-project`.
|
|
|
79
95
|
- Note any blockers or concerns
|
|
80
96
|
- Check for CONTEXT.md: For phases without PLAN.md files, check if `{phase}-CONTEXT.md` exists in phase directory
|
|
81
97
|
- Check for DESIGN.md: For UI-heavy phases, check if `{phase}-DESIGN.md` exists in phase directory
|
|
82
|
-
- Count pending todos: `ls .planning/todos
|
|
98
|
+
- Count pending todos: `ls .planning/todos/*.md 2>/dev/null | wc -l`
|
|
83
99
|
- Check for active debug sessions: `ls .planning/debug/*.md 2>/dev/null | grep -v resolved | wc -l`
|
|
84
100
|
</step>
|
|
85
101
|
|
|
@@ -109,12 +125,16 @@ DESIGN: [✓ if DESIGN.md exists | - if not]
|
|
|
109
125
|
- [any blockers or concerns from STATE.md]
|
|
110
126
|
|
|
111
127
|
## Pending Todos
|
|
112
|
-
- [count] pending — /ms:
|
|
128
|
+
- [count] pending — /ms:add-todo to capture, /ms:adhoc to work on
|
|
113
129
|
|
|
114
130
|
## Active Debug Sessions
|
|
115
131
|
- [count] active — /ms:debug to continue
|
|
116
132
|
(Only show this section if count > 0)
|
|
117
133
|
|
|
134
|
+
## Update Available
|
|
135
|
+
⬆ v{installed} → v{latest} — run `/ms:update`
|
|
136
|
+
(Only show this section if installed < latest)
|
|
137
|
+
|
|
118
138
|
## What's Next
|
|
119
139
|
[Next phase/plan objective from ROADMAP]
|
|
120
140
|
```
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ms:update
|
|
3
|
+
description: Check for updates and install latest Mindsystem version
|
|
4
|
+
allowed-tools: [Bash, AskUserQuestion]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Check installed Mindsystem version against npm registry and offer to update if behind. Detects local vs global install mode automatically.
|
|
9
|
+
|
|
10
|
+
Run when the user wants to update Mindsystem or check if a newer version is available.
|
|
11
|
+
</objective>
|
|
12
|
+
|
|
13
|
+
<process>
|
|
14
|
+
|
|
15
|
+
<step name="detect_version_and_mode">
|
|
16
|
+
Detect installed version and install mode:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Check local first (takes precedence)
|
|
20
|
+
cat ./.claude/mindsystem/VERSION 2>/dev/null
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# If not found, check global (respect CLAUDE_CONFIG_DIR)
|
|
25
|
+
cat "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/mindsystem/VERSION" 2>/dev/null
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- If local VERSION exists → `mode = "local"`
|
|
29
|
+
- Else if global VERSION exists → `mode = "global"`
|
|
30
|
+
- If neither found:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
Mindsystem not installed. Run `npx mindsystem-cc` to install.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
STOP.
|
|
37
|
+
|
|
38
|
+
Store the installed version (strip whitespace).
|
|
39
|
+
</step>
|
|
40
|
+
|
|
41
|
+
<step name="fetch_latest_version">
|
|
42
|
+
Fetch latest version from npm:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm view mindsystem-cc version
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
If the command fails (network error, timeout), report the error and STOP.
|
|
49
|
+
</step>
|
|
50
|
+
|
|
51
|
+
<step name="compare_versions">
|
|
52
|
+
Compare installed version against latest:
|
|
53
|
+
|
|
54
|
+
- If installed == latest → "You are using the latest version (v{installed})." STOP.
|
|
55
|
+
- If installed > latest → "Development version (v{installed} > v{latest})." STOP.
|
|
56
|
+
- If installed < latest → proceed to next step.
|
|
57
|
+
|
|
58
|
+
Use semantic version comparison (split on `.`, compare major/minor/patch numerically).
|
|
59
|
+
</step>
|
|
60
|
+
|
|
61
|
+
<step name="ask_user">
|
|
62
|
+
Use AskUserQuestion:
|
|
63
|
+
|
|
64
|
+
- header: "Update"
|
|
65
|
+
- question: "Update available: v{installed} → v{latest}. Update now?"
|
|
66
|
+
- options:
|
|
67
|
+
- "Update" — install latest version
|
|
68
|
+
- "Skip" — leave current version
|
|
69
|
+
|
|
70
|
+
If "Skip" → STOP.
|
|
71
|
+
</step>
|
|
72
|
+
|
|
73
|
+
<step name="run_install">
|
|
74
|
+
Build the install command based on mode:
|
|
75
|
+
|
|
76
|
+
- Global: `npx mindsystem-cc@latest --force --global`
|
|
77
|
+
- Local: `npx mindsystem-cc@latest --force --local`
|
|
78
|
+
|
|
79
|
+
Also pass `--config-dir "$CLAUDE_CONFIG_DIR"` if `CLAUDE_CONFIG_DIR` is set.
|
|
80
|
+
|
|
81
|
+
Run the command. If exit code != 0, show the error output and STOP.
|
|
82
|
+
</step>
|
|
83
|
+
|
|
84
|
+
<step name="post_update_guidance">
|
|
85
|
+
Show success message:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
Updated to v{latest}.
|
|
89
|
+
|
|
90
|
+
Restart Claude Code for changes to take effect, then run `/ms:doctor` to check for breaking changes.
|
|
91
|
+
```
|
|
92
|
+
</step>
|
|
93
|
+
|
|
94
|
+
</process>
|
|
95
|
+
|
|
96
|
+
<success_criteria>
|
|
97
|
+
- [ ] Post-update message includes restart and /ms:doctor instructions
|
|
98
|
+
- [ ] Passes correct --force and mode flags to installer
|
|
99
|
+
- [ ] Skips update when already on latest or development version
|
|
100
|
+
- [ ] Reports "not installed" when no VERSION file exists
|
|
101
|
+
- [ ] Handles npm fetch failures gracefully
|
|
102
|
+
</success_criteria>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<linear_cli>
|
|
2
|
+
CLI prefix: provided via `task_tracker.cli` in config.json
|
|
3
|
+
|
|
4
|
+
## Operations
|
|
5
|
+
|
|
6
|
+
| Command | Usage |
|
|
7
|
+
|----------------|-----------------------------------------|
|
|
8
|
+
| get | `{cli} get <ID> [-c for comments]` |
|
|
9
|
+
| comment | `{cli} comment <ID> "<body>"` |
|
|
10
|
+
| done | `{cli} done <ID>` |
|
|
11
|
+
| attach-commit | `{cli} attach-commit <ID> [sha]` |
|
|
12
|
+
|
|
13
|
+
Ticket ID pattern: `[A-Z]{2,4}-\d+` (e.g., MIN-123, PROJ-42)
|
|
14
|
+
|
|
15
|
+
## Ticket Detection
|
|
16
|
+
|
|
17
|
+
When `$ARGUMENTS` matches the ticket ID pattern:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
TICKET_ID=$(echo "$ARGUMENTS" | grep -oE '[A-Z]{2,4}-[0-9]+' | head -1)
|
|
21
|
+
TICKET_JSON=$($TRACKER_CLI get "$TICKET_ID" 2>/dev/null)
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Parse JSON response — extract `title` and `description` fields. Use ticket title as work description; append ticket description as additional context.
|
|
25
|
+
|
|
26
|
+
If fetch fails: treat full `$ARGUMENTS` as free-text description. No error — proceed normally.
|
|
27
|
+
|
|
28
|
+
## Planner Context
|
|
29
|
+
|
|
30
|
+
When spawning the plan writer with ticket context, include in the prompt:
|
|
31
|
+
- Ticket ID, title, and description
|
|
32
|
+
- Instruct planner to use title format: `# Adhoc: {Ticket Title} [{TICKET-ID}]`
|
|
33
|
+
- Instruct planner to include ticket description in the Context section
|
|
34
|
+
|
|
35
|
+
## Executor Instructions
|
|
36
|
+
|
|
37
|
+
When spawning the executor with a ticket ID, instruct it to append `[TICKET-ID]` to commit messages (e.g., `feat(adhoc-auth): description [MIN-140]`).
|
|
38
|
+
|
|
39
|
+
## Finalization
|
|
40
|
+
|
|
41
|
+
Run after knowledge consolidation. Each is a separate CLI call — verify exit code 0. If any fails, log a warning but continue.
|
|
42
|
+
|
|
43
|
+
**Comment on ticket:** Extract solution summary from SUMMARY.md (key decisions, files modified). Post via:
|
|
44
|
+
```bash
|
|
45
|
+
$TRACKER_CLI comment "$TICKET_ID" "$COMMENT_BODY"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Attach commit:**
|
|
49
|
+
```bash
|
|
50
|
+
$TRACKER_CLI attach-commit "$TICKET_ID"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Mark done:**
|
|
54
|
+
```bash
|
|
55
|
+
$TRACKER_CLI done "$TICKET_ID"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Commit Message Suffix
|
|
59
|
+
|
|
60
|
+
Append ` [TICKET-ID]` to the consolidation commit message when ticket-driven.
|
|
61
|
+
|
|
62
|
+
## Report Additions
|
|
63
|
+
|
|
64
|
+
When ticket was finalized, append to completion report:
|
|
65
|
+
```
|
|
66
|
+
**Ticket:** [TICKET-ID]
|
|
67
|
+
- Comment posted: [yes/failed]
|
|
68
|
+
- Commit attached: [yes/failed]
|
|
69
|
+
- State → Done: [yes/failed]
|
|
70
|
+
```
|
|
71
|
+
</linear_cli>
|
|
@@ -72,7 +72,11 @@ See full list in MILESTONE-AUDIT.md. Consider addressing in next milestone.
|
|
|
72
72
|
|
|
73
73
|
## ▶ Next Up
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
Review the gaps above, then choose the right tool:
|
|
76
|
+
|
|
77
|
+
- `/ms:adhoc` — for discovered fixes (missing wiring, edge cases)
|
|
78
|
+
- `/ms:add-phase "<description>"` — for a coherent set of related gaps
|
|
79
|
+
- `/ms:insert-phase <after> "<description>"` — if gaps must be fixed before a specific phase
|
|
76
80
|
|
|
77
81
|
<sub>`/clear` first → fresh context window</sub>
|
|
78
82
|
|
|
@@ -96,8 +100,8 @@ All requirements met. No critical blockers. Accumulated tech debt needs review.
|
|
|
96
100
|
**Tech debt tracked:** .planning/TECH-DEBT.md ({tech_debt_count} active items)
|
|
97
101
|
|
|
98
102
|
Address items using:
|
|
99
|
-
- `/ms:adhoc` — for
|
|
100
|
-
- `/ms:insert-phase` — for
|
|
103
|
+
- `/ms:adhoc` — for single-context fixes
|
|
104
|
+
- `/ms:insert-phase` — for multi-phase remediation
|
|
101
105
|
|
|
102
106
|
{If assumptions_count > 0:}
|
|
103
107
|
### Untested Assumptions: {assumptions_count} items
|
|
@@ -110,7 +114,8 @@ See full list in MILESTONE-AUDIT.md. Consider addressing in next milestone.
|
|
|
110
114
|
## ▶ Options
|
|
111
115
|
|
|
112
116
|
- `/ms:complete-milestone` — accept debt, track in backlog
|
|
113
|
-
- `/ms:
|
|
117
|
+
- `/ms:adhoc` — for single-context fixes
|
|
118
|
+
- `/ms:add-phase` — for multi-phase remediation
|
|
114
119
|
|
|
115
120
|
<sub>`/clear` first → fresh context window</sub>
|
|
116
121
|
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<todo_file>
|
|
2
|
+
|
|
3
|
+
## Todo Detection
|
|
4
|
+
|
|
5
|
+
When `$ARGUMENTS` matches a `.planning/todos/*.md` file path and the file exists:
|
|
6
|
+
|
|
7
|
+
Read the file and parse:
|
|
8
|
+
- **YAML frontmatter:** `title`, `subsystem`, `priority`, `estimate`
|
|
9
|
+
- **Body:** `## Problem` and `## Solution` sections
|
|
10
|
+
|
|
11
|
+
Use todo title as work description. Feed problem/solution as additional context.
|
|
12
|
+
|
|
13
|
+
If the file doesn't exist: treat `$ARGUMENTS` as free-text description. No error — proceed normally.
|
|
14
|
+
|
|
15
|
+
## Planner Context
|
|
16
|
+
|
|
17
|
+
When spawning the plan writer with todo context, include in the prompt:
|
|
18
|
+
- Todo title, subsystem, problem, and solution hints
|
|
19
|
+
- Instruct planner to use title format: `# Adhoc: {Todo Title}`
|
|
20
|
+
- Instruct planner to include todo problem/solution in the Context section
|
|
21
|
+
- Instruct planner to use todo's subsystem for plan inline metadata (`**Subsystem:**`)
|
|
22
|
+
|
|
23
|
+
## Executor Instructions
|
|
24
|
+
|
|
25
|
+
When spawning the executor with a todo, instruct it to include the todo filename (without path or extension) in commit message suffixes (e.g., `feat(adhoc-auth): description (2026-02-20-add-logout)`).
|
|
26
|
+
|
|
27
|
+
## Finalization
|
|
28
|
+
|
|
29
|
+
Run after knowledge consolidation. Move the todo file to `done/` and append an outcome section.
|
|
30
|
+
|
|
31
|
+
**Move to done:**
|
|
32
|
+
```bash
|
|
33
|
+
TODO_DIR=$(dirname "$TODO_PATH")
|
|
34
|
+
mkdir -p "${TODO_DIR}/done"
|
|
35
|
+
mv "$TODO_PATH" "${TODO_DIR}/done/$(basename "$TODO_PATH")"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Append outcome:** Read SUMMARY.md and extract solution summary (key decisions, files modified). Append to the moved file:
|
|
39
|
+
|
|
40
|
+
```markdown
|
|
41
|
+
|
|
42
|
+
## Outcome
|
|
43
|
+
[Solution summary from SUMMARY.md — key decisions, files modified]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Stage moved file:**
|
|
47
|
+
```bash
|
|
48
|
+
git add "${TODO_DIR}/done/$(basename "$TODO_PATH")"
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Commit Message Suffix
|
|
52
|
+
|
|
53
|
+
Append ` (todo-filename)` to the consolidation commit message when todo-driven, where `todo-filename` is the basename without `.md` extension.
|
|
54
|
+
|
|
55
|
+
## Report Additions
|
|
56
|
+
|
|
57
|
+
When todo was finalized, append to completion report:
|
|
58
|
+
```
|
|
59
|
+
**Todo:** [filename]
|
|
60
|
+
- Moved to: .planning/todos/done/[filename]
|
|
61
|
+
- Outcome appended: yes
|
|
62
|
+
```
|
|
63
|
+
</todo_file>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Adhoc Summary Template
|
|
2
2
|
|
|
3
|
-
Template for `.planning/adhoc/{timestamp}-{slug}-SUMMARY.md` — documentation for
|
|
3
|
+
Template for `.planning/adhoc/{timestamp}-{slug}-SUMMARY.md` — documentation for work items executed via `/ms:adhoc`.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -45,7 +45,7 @@ learnings:
|
|
|
45
45
|
|
|
46
46
|
<purpose>
|
|
47
47
|
|
|
48
|
-
Adhoc summaries document
|
|
48
|
+
Adhoc summaries document work items executed outside the normal phase workflow.
|
|
49
49
|
|
|
50
50
|
**Differences from phase SUMMARY.md:**
|
|
51
51
|
- Simplified frontmatter (no waves, depends_on, requires, provides, affects)
|
|
@@ -146,9 +146,8 @@ learnings:
|
|
|
146
146
|
- Required output from adhoc workflow
|
|
147
147
|
|
|
148
148
|
**Size:**
|
|
149
|
-
- Keep brief —
|
|
150
|
-
-
|
|
151
|
-
- 1-3 files typical
|
|
149
|
+
- Keep brief — proportional to work scope
|
|
150
|
+
- Summarize key accomplishments, not every file touched
|
|
152
151
|
|
|
153
152
|
**Commit reference:**
|
|
154
153
|
- Always include commit hash in frontmatter
|
|
@@ -4,7 +4,7 @@ Template for `.planning/knowledge/{subsystem}.md` — per-subsystem knowledge fi
|
|
|
4
4
|
|
|
5
5
|
**Purpose:** Curated reference per domain area. Bridges phase-scoped execution artifacts to topic-scoped knowledge. Each file contains decisions, architecture, design, pitfalls, and key files for one subsystem.
|
|
6
6
|
|
|
7
|
-
**Created by:** `ms-consolidator` agent during `execute-phase`
|
|
7
|
+
**Created by:** `ms-consolidator` agent during `execute-phase`, or `ms-compounder` agent during `ms:compound`
|
|
8
8
|
|
|
9
9
|
**Referenced by:** All pre-planning phases (discuss-phase, design-phase, research-phase, plan-phase)
|
|
10
10
|
|
|
@@ -35,6 +35,9 @@ Template for `.planning/PROJECT.md` — the living project context document.
|
|
|
35
35
|
- [Exclusion 1] — [why]
|
|
36
36
|
- [Exclusion 2] — [why]
|
|
37
37
|
|
|
38
|
+
## Deferred
|
|
39
|
+
- [Requirement] — deferred from [Milestone], [brief reason]
|
|
40
|
+
|
|
38
41
|
## Constraints
|
|
39
42
|
- **[Type]**: [What] — [Why]
|
|
40
43
|
- **[Type]**: [What] — [Why]
|
|
@@ -100,7 +103,14 @@ Common types: Tech stack, Timeline, Budget, Dependencies, Compatibility, Perform
|
|
|
100
103
|
**Out of Scope:**
|
|
101
104
|
- Explicit boundaries on what we're not building
|
|
102
105
|
- Always include reasoning (prevents re-adding later)
|
|
103
|
-
-
|
|
106
|
+
- Explicitly excluded items only — use Deferred for "wanted but not yet"
|
|
107
|
+
|
|
108
|
+
**Deferred:**
|
|
109
|
+
- Items the user wants to build but haven't shipped yet
|
|
110
|
+
- Each entry includes origin milestone and reason for deferral
|
|
111
|
+
- Audited at each milestone completion: promote to current milestone, keep deferred, move to Out of Scope, or discard
|
|
112
|
+
- Consumed by create-roadmap as v1 candidates for new milestones
|
|
113
|
+
- Format: `- [Requirement] — deferred from [Milestone], [brief reason]`
|
|
104
114
|
|
|
105
115
|
**Constraints:**
|
|
106
116
|
- Hard limits on implementation choices
|
|
@@ -148,9 +158,10 @@ PROJECT.md evolves throughout the project lifecycle.
|
|
|
148
158
|
**After each milestone:**
|
|
149
159
|
1. Full review of all sections including business context (Who It's For, Core Problem, How It's Different)
|
|
150
160
|
2. Core Value check — still the right priority?
|
|
151
|
-
3. Audit Out of Scope
|
|
152
|
-
4.
|
|
153
|
-
5.
|
|
161
|
+
3. Audit Deferred — still desired? Promote to current milestone, keep deferred, reclassify to Out of Scope, or discard
|
|
162
|
+
4. Audit Out of Scope — reasons still valid?
|
|
163
|
+
5. Update Technical Context with current state (users, feedback, metrics)
|
|
164
|
+
6. Key User Flows — validated against what users actually do?
|
|
154
165
|
|
|
155
166
|
</evolution>
|
|
156
167
|
|
|
@@ -55,15 +55,9 @@ Recent decisions affecting current work:
|
|
|
55
55
|
- [Phase X]: [Decision summary]
|
|
56
56
|
- [Phase Y]: [Decision summary]
|
|
57
57
|
|
|
58
|
-
### Pending Todos
|
|
59
|
-
|
|
60
|
-
[From .planning/todos/pending/ — ideas captured during sessions]
|
|
61
|
-
|
|
62
|
-
None yet.
|
|
63
|
-
|
|
64
58
|
### Recent Adhoc Work
|
|
65
59
|
|
|
66
|
-
[
|
|
60
|
+
[Work items executed via /ms:adhoc]
|
|
67
61
|
|
|
68
62
|
None yet.
|
|
69
63
|
|
|
@@ -155,12 +149,7 @@ Updated after each plan completion.
|
|
|
155
149
|
|
|
156
150
|
**Decisions:** Reference to PROJECT.md Key Decisions table, plus recent decisions summary for quick access. Full decision log lives in PROJECT.md.
|
|
157
151
|
|
|
158
|
-
**
|
|
159
|
-
- Count of pending todos
|
|
160
|
-
- Reference to .planning/todos/pending/
|
|
161
|
-
- Brief list if few, count if many (e.g., "5 pending todos — see /ms:check-todos")
|
|
162
|
-
|
|
163
|
-
**Recent Adhoc Work:** Small fixes executed via /ms:adhoc
|
|
152
|
+
**Recent Adhoc Work:** Discovered work executed via /ms:adhoc
|
|
164
153
|
- Last 5 adhoc work entries
|
|
165
154
|
- Format: `- [date]: [description] (.planning/adhoc/[file]-SUMMARY.md)`
|
|
166
155
|
- Full history remains in .planning/adhoc/ directory
|
|
@@ -212,6 +201,6 @@ The goal is "read once, know where we are" — if it's too long, that fails.
|
|
|
212
201
|
- Project Reference: Pointer to PROJECT.md with core value
|
|
213
202
|
- Current Position: Where we are now (phase, plan, status)
|
|
214
203
|
- Performance Metrics: Velocity tracking
|
|
215
|
-
- Accumulated Context: Recent decisions,
|
|
204
|
+
- Accumulated Context: Recent decisions, adhoc work, blockers
|
|
216
205
|
|
|
217
206
|
</guidelines>
|
|
@@ -6,7 +6,7 @@ Template for `.planning/TECH-DEBT.md` — single source of truth for all tech de
|
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
|
-
Created and updated by `/ms:audit-milestone`. Items persist across milestones. Users reference items manually via `/ms:adhoc` (
|
|
9
|
+
Created and updated by `/ms:audit-milestone`. Items persist across milestones. Users reference items manually via `/ms:adhoc` (single context work) or `/ms:insert-phase` (multi-phase remediation). Loaded automatically by `/ms:plan-phase` for quality/cleanup phases.
|
|
10
10
|
|
|
11
11
|
**Item IDs** use `TD-{N}` format — monotonically increasing, never reused. New items continue from highest existing ID.
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@ Created and updated by `/ms:audit-milestone`. Items persist across milestones. U
|
|
|
21
21
|
# Tech Debt
|
|
22
22
|
|
|
23
23
|
> Single source of truth for tech debt. Updated by `/ms:audit-milestone`.
|
|
24
|
-
> Address items via `/ms:adhoc` (
|
|
24
|
+
> Address items via `/ms:adhoc` (single context) or `/ms:insert-phase` (multi-phase work).
|
|
25
25
|
|
|
26
26
|
## {Severity}
|
|
27
27
|
<!-- Sections in order: Critical, High, Medium, Low. Omit empty sections. -->
|