maxsimcli 5.0.6 → 5.1.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 +316 -288
- package/dist/assets/CHANGELOG.md +14 -0
- package/dist/assets/hooks/maxsim-capture-learnings.cjs +128 -0
- package/dist/assets/hooks/maxsim-capture-learnings.cjs.map +1 -0
- package/dist/assets/hooks/maxsim-check-update.cjs +126 -88
- package/dist/assets/hooks/maxsim-check-update.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-notification-sound.cjs +87 -43
- package/dist/assets/hooks/maxsim-notification-sound.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-statusline.cjs +45 -171
- package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-stop-sound.cjs +86 -43
- package/dist/assets/hooks/maxsim-stop-sound.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-sync-reminder.cjs +72 -21
- package/dist/assets/hooks/maxsim-sync-reminder.cjs.map +1 -1
- package/dist/assets/templates/agents/AGENTS.md +62 -51
- package/dist/assets/templates/agents/executor.md +44 -59
- package/dist/assets/templates/agents/planner.md +36 -31
- package/dist/assets/templates/agents/researcher.md +35 -43
- package/dist/assets/templates/agents/verifier.md +29 -31
- package/dist/assets/templates/commands/maxsim/debug.md +20 -154
- package/dist/assets/templates/commands/maxsim/execute.md +19 -33
- package/dist/assets/templates/commands/maxsim/go.md +21 -20
- package/dist/assets/templates/commands/maxsim/help.md +5 -14
- package/dist/assets/templates/commands/maxsim/init.md +18 -40
- package/dist/assets/templates/commands/maxsim/plan.md +22 -37
- package/dist/assets/templates/commands/maxsim/progress.md +15 -16
- package/dist/assets/templates/commands/maxsim/quick.md +18 -29
- package/dist/assets/templates/commands/maxsim/settings.md +18 -26
- package/dist/assets/templates/references/continuation-format.md +2 -4
- package/dist/assets/templates/references/model-profiles.md +2 -2
- package/dist/assets/templates/references/planning-config.md +10 -11
- package/dist/assets/templates/references/self-improvement.md +120 -0
- package/dist/assets/templates/rules/conventions.md +1 -1
- package/dist/assets/templates/rules/verification-protocol.md +1 -1
- package/dist/assets/templates/skills/brainstorming/SKILL.md +35 -26
- package/dist/assets/templates/skills/code-review/SKILL.md +78 -55
- package/dist/assets/templates/skills/commit-conventions/SKILL.md +70 -36
- package/dist/assets/templates/skills/github-operations/SKILL.md +142 -0
- package/dist/assets/templates/skills/handoff-contract/SKILL.md +62 -28
- package/dist/assets/templates/skills/maxsim-batch/SKILL.md +68 -42
- package/dist/assets/templates/skills/maxsim-simplify/SKILL.md +65 -40
- package/dist/assets/templates/skills/project-memory/SKILL.md +121 -0
- package/dist/assets/templates/skills/research/SKILL.md +126 -0
- package/dist/assets/templates/skills/roadmap-writing/SKILL.md +71 -68
- package/dist/assets/templates/skills/systematic-debugging/SKILL.md +37 -25
- package/dist/assets/templates/skills/tdd/SKILL.md +36 -39
- package/dist/assets/templates/skills/using-maxsim/SKILL.md +69 -55
- package/dist/assets/templates/skills/verification/SKILL.md +167 -0
- package/dist/assets/templates/workflows/batch.md +249 -268
- package/dist/assets/templates/workflows/diagnose-issues.md +225 -151
- package/dist/assets/templates/workflows/execute-plan.md +191 -981
- package/dist/assets/templates/workflows/execute.md +350 -309
- package/dist/assets/templates/workflows/go.md +119 -138
- package/dist/assets/templates/workflows/health.md +71 -114
- package/dist/assets/templates/workflows/help.md +85 -147
- package/dist/assets/templates/workflows/init-existing.md +180 -1373
- package/dist/assets/templates/workflows/init.md +53 -165
- package/dist/assets/templates/workflows/new-milestone.md +91 -334
- package/dist/assets/templates/workflows/new-project.md +165 -1384
- package/dist/assets/templates/workflows/plan-create.md +182 -73
- package/dist/assets/templates/workflows/plan-discuss.md +89 -82
- package/dist/assets/templates/workflows/plan-research.md +191 -85
- package/dist/assets/templates/workflows/plan.md +122 -58
- package/dist/assets/templates/workflows/progress.md +76 -310
- package/dist/assets/templates/workflows/quick.md +70 -495
- package/dist/assets/templates/workflows/sdd.md +231 -221
- package/dist/assets/templates/workflows/settings.md +90 -120
- package/dist/assets/templates/workflows/verify-phase.md +296 -258
- package/dist/cli.cjs +17 -23465
- package/dist/cli.cjs.map +1 -1
- package/dist/install.cjs +356 -8358
- package/dist/install.cjs.map +1 -1
- package/package.json +16 -22
- package/dist/assets/templates/skills/agent-system-map/SKILL.md +0 -92
- package/dist/assets/templates/skills/evidence-collection/SKILL.md +0 -87
- package/dist/assets/templates/skills/github-artifact-protocol/SKILL.md +0 -67
- package/dist/assets/templates/skills/github-tools-guide/SKILL.md +0 -89
- package/dist/assets/templates/skills/input-validation/SKILL.md +0 -51
- package/dist/assets/templates/skills/memory-management/SKILL.md +0 -75
- package/dist/assets/templates/skills/research-methodology/SKILL.md +0 -137
- package/dist/assets/templates/skills/sdd/SKILL.md +0 -91
- package/dist/assets/templates/skills/tool-priority-guide/SKILL.md +0 -80
- package/dist/assets/templates/skills/verification-before-completion/SKILL.md +0 -71
- package/dist/assets/templates/skills/verification-gates/SKILL.md +0 -169
- package/dist/assets/templates/workflows/discuss-phase.md +0 -683
- package/dist/assets/templates/workflows/research-phase.md +0 -73
- package/dist/assets/templates/workflows/verify-work.md +0 -572
- package/dist/core-D5zUr9cb.cjs +0 -4305
- package/dist/core-D5zUr9cb.cjs.map +0 -1
- package/dist/skills-CjFWZIGM.cjs +0 -6824
- package/dist/skills-CjFWZIGM.cjs.map +0 -1
|
@@ -1,48 +1,47 @@
|
|
|
1
1
|
<purpose>
|
|
2
|
-
Auto-detect project state through live GitHub queries, surface problems proactively, and dispatch to the appropriate MAXSIM command. Uses the Show + Act pattern: display detection reasoning first, then act immediately.
|
|
2
|
+
Auto-detect project state through live GitHub queries, surface problems proactively, and dispatch to the appropriate MAXSIM command. Uses the Show + Act pattern: display detection reasoning first, then act immediately. GitHub Issues are the sole source of truth — no local .planning/ directory is consulted.
|
|
3
3
|
</purpose>
|
|
4
4
|
|
|
5
|
-
<required_reading>
|
|
6
|
-
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
-
</required_reading>
|
|
8
|
-
|
|
9
5
|
<process>
|
|
10
6
|
|
|
11
7
|
<step name="immediate_feedback">
|
|
12
|
-
|
|
8
|
+
## Step 1: Immediate Feedback
|
|
9
|
+
|
|
10
|
+
Print immediately so the user knows work is happening:
|
|
13
11
|
|
|
14
12
|
```
|
|
15
13
|
Analyzing project state...
|
|
16
14
|
```
|
|
17
|
-
|
|
18
|
-
This ensures the user sees something immediately while context gathering runs.
|
|
19
15
|
</step>
|
|
20
16
|
|
|
21
|
-
<step name="
|
|
22
|
-
|
|
17
|
+
<step name="initialization_check">
|
|
18
|
+
## Step 2: Check Initialization
|
|
23
19
|
|
|
24
|
-
|
|
20
|
+
Verify MAXSIM is initialized by checking for the config file:
|
|
25
21
|
|
|
26
|
-
**1. Project existence check:**
|
|
27
22
|
```bash
|
|
28
|
-
|
|
23
|
+
INITIALIZED=$(test -f .claude/maxsim/config.json && echo "true" || echo "false")
|
|
29
24
|
```
|
|
30
25
|
|
|
31
|
-
If
|
|
26
|
+
If `INITIALIZED` is `false`, stop immediately and display:
|
|
32
27
|
|
|
33
|
-
**2. Load local project context (always from local files per WIRE-02):**
|
|
34
|
-
```bash
|
|
35
|
-
# State snapshot (local)
|
|
36
|
-
STATE=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs state-snapshot 2>/dev/null || echo "{}")
|
|
37
28
|
```
|
|
29
|
+
## MAXSIM Not Initialized
|
|
38
30
|
|
|
39
|
-
|
|
40
|
-
- `.planning/STATE.md` — blockers, decisions, session continuity
|
|
41
|
-
- `.planning/ROADMAP.md` — phase structure and phase ordering
|
|
31
|
+
No MAXSIM configuration found in this directory (.claude/maxsim/config.json missing).
|
|
42
32
|
|
|
43
|
-
|
|
33
|
+
Run /maxsim:init to set up this project.
|
|
34
|
+
```
|
|
44
35
|
|
|
45
|
-
|
|
36
|
+
Do not proceed further. Exit.
|
|
37
|
+
</step>
|
|
38
|
+
|
|
39
|
+
<step name="context_gathering">
|
|
40
|
+
## Step 3: Deep Context Gathering
|
|
41
|
+
|
|
42
|
+
Gather all signals in parallel for speed. Run these simultaneously:
|
|
43
|
+
|
|
44
|
+
**1. Live GitHub project board state (primary source of truth):**
|
|
46
45
|
|
|
47
46
|
```bash
|
|
48
47
|
node ~/.claude/maxsim/bin/maxsim-tools.cjs github status
|
|
@@ -50,210 +49,192 @@ node ~/.claude/maxsim/bin/maxsim-tools.cjs github status
|
|
|
50
49
|
|
|
51
50
|
Returns: `phase_number`, `title`, `issue_number`, `total_tasks`, `completed_tasks`, `remaining_tasks`, `status` (GitHub board column: To Do / In Progress / In Review / Done), and any interrupted phase detection.
|
|
52
51
|
|
|
53
|
-
**
|
|
52
|
+
**2. Open bugs and issues:**
|
|
53
|
+
|
|
54
54
|
```bash
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
gh issue list --label "bug" --state open --json number,title,createdAt
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**3. Git context:**
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
```bash
|
|
61
|
+
GIT_STATUS=$(git status --porcelain 2>/dev/null | head -20)
|
|
59
62
|
RECENT_COMMITS=$(git log --oneline -5 2>/dev/null)
|
|
60
63
|
```
|
|
61
|
-
</step>
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
**Phase 2: Problem Detection**
|
|
65
|
+
If `github status` fails (GitHub CLI not available, not authenticated, no remote), display:
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
```
|
|
68
|
+
## GitHub Unavailable
|
|
67
69
|
|
|
68
|
-
|
|
70
|
+
GitHub integration is required. Check:
|
|
71
|
+
- gh auth status
|
|
72
|
+
- git remote -v
|
|
69
73
|
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
git status --porcelain .planning/ 2>/dev/null | head -10
|
|
73
|
-
```
|
|
74
|
-
If uncommitted changes exist in `.planning/`:
|
|
74
|
+
Fix the issue, then re-run /maxsim:go.
|
|
75
75
|
```
|
|
76
|
-
## Problem Detected
|
|
77
76
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
**Resolution:** Commit planning changes to preserve state
|
|
77
|
+
Exit. Do not fall back to local file scanning.
|
|
78
|
+
</step>
|
|
81
79
|
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
<step name="problem_detection">
|
|
81
|
+
## Step 4: Problem Detection
|
|
84
82
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
Check for problems BEFORE suggesting any action. All problems are blocking — surface each one and wait for user resolution before continuing.
|
|
84
|
+
|
|
85
|
+
**Problem 1: Failed verification on GitHub**
|
|
86
|
+
|
|
87
|
+
Check if any phase issue is stuck in "In Review" with a verification FAIL comment. Query the current phase issue comments:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github get-issue --issue-number N --include-comments
|
|
89
91
|
```
|
|
90
92
|
|
|
91
|
-
|
|
93
|
+
If a FAIL is found:
|
|
92
94
|
|
|
93
|
-
**2. Blockers in STATE.md**
|
|
94
|
-
Extract blockers from state snapshot. If any exist:
|
|
95
95
|
```
|
|
96
96
|
## Problem Detected
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
Issue: Phase verification failed
|
|
99
|
+
Phase: {phase number and name} (GitHub Issue #{issue_number})
|
|
100
|
+
Impact: Phase is not verified complete — may have gaps
|
|
101
|
+
Resolution: Re-run verification or fix identified issues
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
1.
|
|
105
|
-
2.
|
|
103
|
+
Options:
|
|
104
|
+
1. View verification results (check GitHub issue comments)
|
|
105
|
+
2. Re-execute to fix issues
|
|
106
106
|
3. Skip and continue anyway
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
Wait for user response before continuing.
|
|
110
110
|
|
|
111
|
-
**
|
|
112
|
-
|
|
111
|
+
**Problem 2: Open bug issues**
|
|
112
|
+
|
|
113
|
+
If `gh issue list --label "bug"` returned open issues:
|
|
113
114
|
|
|
114
|
-
```bash
|
|
115
|
-
node ~/.claude/maxsim/bin/maxsim-tools.cjs github get-issue --issue-number N --include-comments
|
|
116
|
-
```
|
|
117
115
|
```
|
|
118
116
|
## Problem Detected
|
|
119
117
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
Issue: {N} open bug(s) on GitHub
|
|
119
|
+
Bugs:
|
|
120
|
+
#{number} — {title}
|
|
121
|
+
...
|
|
122
|
+
Impact: Active bugs may affect current phase execution
|
|
123
|
+
Resolution: Address bugs or route to /maxsim:debug
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
1.
|
|
127
|
-
2.
|
|
125
|
+
Options:
|
|
126
|
+
1. Route to /maxsim:debug
|
|
127
|
+
2. View bugs on GitHub
|
|
128
128
|
3. Skip and continue anyway
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
**If any problem is found:** Surface it and wait for user resolution. Do NOT proceed to the decision tree until all problems are cleared or explicitly skipped.
|
|
131
|
+
Wait for user response before continuing.
|
|
134
132
|
|
|
135
|
-
|
|
133
|
+
If no problems are found, proceed directly to the decision tree.
|
|
136
134
|
</step>
|
|
137
135
|
|
|
138
136
|
<step name="decision_tree">
|
|
139
|
-
|
|
137
|
+
## Step 5: Decision Tree
|
|
140
138
|
|
|
141
|
-
Apply rules in strict precedence order. The FIRST matching rule determines the action.
|
|
142
|
-
|
|
143
|
-
Use live GitHub data from `github status` (gathered in Phase 1) as the primary source of truth for phase state. Use local ROADMAP.md for phase ordering only.
|
|
139
|
+
Apply rules in strict precedence order. The FIRST matching rule determines the action. Use live GitHub data from `github status` as the sole source of truth for phase state.
|
|
144
140
|
|
|
145
141
|
```
|
|
146
|
-
Rule 1:
|
|
147
|
-
-> Action:
|
|
148
|
-
-> Reasoning: "No
|
|
149
|
-
|
|
150
|
-
Rule 2: Has blockers in STATE.md? (not cleared in problem detection)
|
|
151
|
-
-> Action: Surface blocker, suggest resolution
|
|
152
|
-
-> Reasoning: "BLOCKED: {blocker text}"
|
|
142
|
+
Rule 1: GitHub status returns no phases at all?
|
|
143
|
+
-> Action: Suggest creating roadmap
|
|
144
|
+
-> Reasoning: "No phases found on GitHub. Create a roadmap to get started."
|
|
145
|
+
-> Suggest: /maxsim:plan
|
|
153
146
|
|
|
154
|
-
Rule
|
|
147
|
+
Rule 2: Interrupted phase detected (from github status)?
|
|
155
148
|
-> Action: /maxsim:execute {N}
|
|
156
149
|
-> Reasoning: "Phase {N} ({name}) was interrupted. Resuming execution."
|
|
157
150
|
|
|
158
|
-
Rule
|
|
159
|
-
-> Check: `github status` returns a phase with status="In Progress" and remaining_tasks > 0
|
|
151
|
+
Rule 3: Phase status = "In Progress" with remaining_tasks > 0?
|
|
160
152
|
-> Action: /maxsim:execute {N}
|
|
161
|
-
-> Reasoning: "Phase {N} ({name}) has {remaining} tasks remaining.
|
|
153
|
+
-> Reasoning: "Phase {N} ({name}) has {remaining} tasks remaining."
|
|
162
154
|
|
|
163
|
-
Rule
|
|
164
|
-
-> Check: `github status` returns the next unstarted phase (status="To Do")
|
|
155
|
+
Rule 4: Phase status = "To Do" (next unstarted phase)?
|
|
165
156
|
-> Action: /maxsim:plan {N}
|
|
166
157
|
-> Reasoning: "Phase {N} ({name}) needs planning."
|
|
167
158
|
|
|
168
|
-
|
|
169
|
-
-> If yes: "Discussion complete, ready for research + planning."
|
|
170
|
-
-> If no: "Starting from discussion stage."
|
|
171
|
-
|
|
172
|
-
Rule 6: Current phase "In Review" on GitHub board?
|
|
173
|
-
-> Check: `github status` returns a phase with status="In Review"
|
|
159
|
+
Rule 5: Phase status = "In Review"?
|
|
174
160
|
-> Action: /maxsim:execute {N}
|
|
175
161
|
-> Reasoning: "Phase {N} ({name}) is awaiting verification."
|
|
176
162
|
|
|
177
|
-
Rule
|
|
178
|
-
-> Check: `github status` — all phases have status="Done"
|
|
163
|
+
Rule 6: All phases status = "Done"?
|
|
179
164
|
-> Action: /maxsim:progress
|
|
180
165
|
-> Reasoning: "All phases complete. Milestone ready for review."
|
|
181
166
|
|
|
182
|
-
Rule
|
|
183
|
-
-> Action: Show interactive menu
|
|
184
|
-
-> Reasoning: "Project state is ambiguous.
|
|
167
|
+
Rule 7: None of the above?
|
|
168
|
+
-> Action: Show interactive menu (see Step 6)
|
|
169
|
+
-> Reasoning: "Project state is ambiguous."
|
|
185
170
|
```
|
|
186
171
|
</step>
|
|
187
172
|
|
|
188
173
|
<step name="show_and_act">
|
|
189
|
-
|
|
174
|
+
## Step 6: Show + Act
|
|
190
175
|
|
|
191
|
-
Once a rule matches, display detection reasoning FIRST, then
|
|
176
|
+
Once a rule matches (Rules 1–6), display detection reasoning FIRST, then invoke the Skill tool to run the recommended command. Do NOT ask for confirmation — the user can Ctrl+C if the detection is wrong.
|
|
192
177
|
|
|
193
|
-
**
|
|
178
|
+
**Display format:**
|
|
194
179
|
|
|
195
180
|
```
|
|
196
181
|
## Detected: {summary of what was found}
|
|
197
182
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
**Tasks:** {completed}/{total} complete
|
|
183
|
+
Project: {project name from config.json}
|
|
184
|
+
Current phase: Phase {N} — {name} (GitHub Issue #{issue_number})
|
|
185
|
+
GitHub status: {board column}
|
|
186
|
+
Tasks: {completed}/{total} complete
|
|
203
187
|
|
|
204
|
-
|
|
188
|
+
Action: Running /maxsim:{command} {args}...
|
|
205
189
|
```
|
|
206
190
|
|
|
207
|
-
Then
|
|
208
|
-
|
|
209
|
-
**Important:** Show the detection block, then dispatch. Do not ask for confirmation — this is Show + Act, not Show + Ask.
|
|
191
|
+
Then invoke the Skill tool with the recommended command.
|
|
210
192
|
</step>
|
|
211
193
|
|
|
212
194
|
<step name="interactive_menu">
|
|
213
|
-
|
|
195
|
+
## Step 7: Interactive Menu (Rule 7 only)
|
|
214
196
|
|
|
215
|
-
When no clear action is detected, show a contextual menu.
|
|
197
|
+
When no clear action is detected, show a contextual menu. Filter items based on live GitHub data — do not show static options that don't apply.
|
|
216
198
|
|
|
217
199
|
```
|
|
218
200
|
## Project Status
|
|
219
201
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
**GitHub Progress:** {X}/{Y} phases Done on board
|
|
202
|
+
Project: {project name}
|
|
203
|
+
GitHub: {X}/{Y} phases Done on board
|
|
223
204
|
|
|
224
205
|
What would you like to do?
|
|
225
206
|
|
|
226
207
|
1. /maxsim:plan {next_phase} — Plan next phase
|
|
227
|
-
2. /maxsim:
|
|
228
|
-
3. /maxsim:
|
|
229
|
-
4. /maxsim:
|
|
208
|
+
2. /maxsim:execute {N} — Continue phase execution
|
|
209
|
+
3. /maxsim:quick — Quick ad-hoc task
|
|
210
|
+
4. /maxsim:progress — View detailed progress
|
|
230
211
|
|
|
231
212
|
Or describe what you'd like to do:
|
|
232
213
|
```
|
|
233
214
|
|
|
234
|
-
**
|
|
235
|
-
|
|
236
|
-
-
|
|
237
|
-
-
|
|
238
|
-
-
|
|
239
|
-
- Always
|
|
240
|
-
- Always include
|
|
241
|
-
- If GitHub not available (CLI calls fail): show error: "GitHub integration required. Run `/maxsim:init` to configure GitHub." Do NOT fall back to local file scanning.
|
|
215
|
+
**Filtering rules:**
|
|
216
|
+
|
|
217
|
+
- Show `/maxsim:execute {N}` only if an in-progress phase exists on GitHub
|
|
218
|
+
- Show `/maxsim:plan {N}` only if an unstarted phase exists on GitHub
|
|
219
|
+
- Show `/maxsim:progress` if all phases are Done
|
|
220
|
+
- Always show `/maxsim:quick`
|
|
221
|
+
- Always include the open-ended fallback
|
|
242
222
|
|
|
243
|
-
Wait for user selection, then
|
|
223
|
+
Wait for user selection, then invoke the Skill tool for the chosen command.
|
|
244
224
|
</step>
|
|
245
225
|
|
|
246
226
|
</process>
|
|
247
227
|
|
|
248
228
|
<constraints>
|
|
229
|
+
- Tool name is Agent (NOT Task)
|
|
230
|
+
- No SlashCommand tool — use the Skill tool to invoke commands
|
|
231
|
+
- GitHub Issues is the SOLE source of truth for phase state
|
|
232
|
+
- No local .planning/ directory references anywhere
|
|
233
|
+
- Use `node ~/.claude/maxsim/bin/maxsim-tools.cjs` for all CLI operations
|
|
249
234
|
- Never ask for confirmation before dispatching (Show + Act, not Show + Ask)
|
|
250
235
|
- Always surface problems BEFORE suggesting actions
|
|
251
|
-
- All problems
|
|
236
|
+
- All problems are blocking — no warnings, no severity tiers
|
|
252
237
|
- No arguments accepted — this is pure auto-detection
|
|
253
|
-
-
|
|
254
|
-
-
|
|
255
|
-
- Primary source for phase state: live GitHub (`github status`)
|
|
256
|
-
- Local reads: STATE.md for blockers/decisions, ROADMAP.md for phase ordering only
|
|
257
|
-
- If context gathering fails (tools not available, etc.), fall back to the interactive menu
|
|
238
|
+
- Show "Analyzing..." before heavy operations
|
|
239
|
+
- If GitHub is unavailable, fail explicitly — do not fall back to local files
|
|
258
240
|
</constraints>
|
|
259
|
-
</output>
|
|
@@ -1,156 +1,113 @@
|
|
|
1
1
|
<purpose>
|
|
2
|
-
|
|
2
|
+
Verify MaxsimCLI installation and GitHub connectivity. Report the status of each check with actionable fix instructions.
|
|
3
3
|
</purpose>
|
|
4
4
|
|
|
5
|
-
<required_reading>
|
|
6
|
-
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
-
</required_reading>
|
|
8
|
-
|
|
9
5
|
<process>
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
**Parse arguments:**
|
|
13
|
-
|
|
14
|
-
Check if `--repair` flag is present in the command arguments.
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
REPAIR_FLAG=""
|
|
18
|
-
if arguments contain "--repair"; then
|
|
19
|
-
REPAIR_FLAG="--repair"
|
|
20
|
-
fi
|
|
21
|
-
```
|
|
22
|
-
</step>
|
|
7
|
+
## Step 1: Check .claude/ directory structure
|
|
23
8
|
|
|
24
|
-
|
|
25
|
-
**Run health validation:**
|
|
9
|
+
Verify the required files exist:
|
|
26
10
|
|
|
27
11
|
```bash
|
|
28
|
-
node ~/.claude/maxsim/bin/maxsim-tools.cjs validate
|
|
12
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs validate structure
|
|
29
13
|
```
|
|
30
14
|
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
- `
|
|
35
|
-
- `
|
|
36
|
-
- `repairable_count`: Number of auto-fixable issues
|
|
37
|
-
- `repairs_performed[]`: Actions taken if --repair was used
|
|
38
|
-
</step>
|
|
15
|
+
Expected checks:
|
|
16
|
+
- `~/.claude/` directory exists
|
|
17
|
+
- `~/.claude/maxsim/` directory exists
|
|
18
|
+
- `~/.claude/maxsim/bin/maxsim-tools.cjs` exists
|
|
19
|
+
- `~/.claude/maxsim/config.json` exists (or create with defaults)
|
|
39
20
|
|
|
40
|
-
|
|
41
|
-
**Format and display results:**
|
|
21
|
+
Record PASS/FAIL for each.
|
|
42
22
|
|
|
43
|
-
|
|
44
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
45
|
-
MAXSIM Health Check
|
|
46
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
23
|
+
---
|
|
47
24
|
|
|
48
|
-
|
|
49
|
-
Errors: N | Warnings: N | Info: N
|
|
50
|
-
```
|
|
25
|
+
## Step 2: Check gh CLI
|
|
51
26
|
|
|
52
|
-
|
|
27
|
+
```bash
|
|
28
|
+
gh --version
|
|
53
29
|
```
|
|
54
|
-
## Repairs Performed
|
|
55
30
|
|
|
56
|
-
|
|
57
|
-
- ✓ STATE.md: Regenerated from roadmap
|
|
58
|
-
```
|
|
31
|
+
If not found: FAIL — "gh CLI not installed. Install from: https://cli.github.com"
|
|
59
32
|
|
|
60
|
-
|
|
33
|
+
```bash
|
|
34
|
+
gh auth status
|
|
61
35
|
```
|
|
62
|
-
## Errors
|
|
63
36
|
|
|
64
|
-
|
|
65
|
-
Fix: Run /maxsim:progress (health check) --repair to reset to defaults
|
|
37
|
+
If not authenticated: FAIL — "Not authenticated. Run: gh auth login"
|
|
66
38
|
|
|
67
|
-
|
|
68
|
-
Fix: Run /maxsim:init to create
|
|
69
|
-
```
|
|
39
|
+
Record PASS/FAIL.
|
|
70
40
|
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
## Warnings
|
|
41
|
+
---
|
|
74
42
|
|
|
75
|
-
|
|
76
|
-
Fix: Run /maxsim:progress (health check) --repair to regenerate
|
|
43
|
+
## Step 3: Check GitHub repo
|
|
77
44
|
|
|
78
|
-
|
|
79
|
-
|
|
45
|
+
```bash
|
|
46
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github status
|
|
80
47
|
```
|
|
81
48
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
49
|
+
If the command returns an error:
|
|
50
|
+
- Check if the current directory is a git repo: `git remote get-url origin`
|
|
51
|
+
- If no remote: FAIL — "No GitHub remote found. Add one or run /maxsim:init in a GitHub repo."
|
|
52
|
+
- If remote exists but API fails: FAIL — "GitHub API unreachable. Check: gh auth status"
|
|
85
53
|
|
|
86
|
-
|
|
87
|
-
Note: May be in progress
|
|
88
|
-
```
|
|
54
|
+
Record PASS/FAIL.
|
|
89
55
|
|
|
90
|
-
**Footer (if repairable issues exist and --repair was NOT used):**
|
|
91
|
-
```
|
|
92
56
|
---
|
|
93
|
-
N issues can be auto-repaired. Run: /maxsim:progress (health check) --repair
|
|
94
|
-
```
|
|
95
|
-
</step>
|
|
96
57
|
|
|
97
|
-
|
|
98
|
-
|
|
58
|
+
## Step 4: Check project board
|
|
59
|
+
|
|
60
|
+
From the `github status` output, verify a project board is configured.
|
|
61
|
+
|
|
62
|
+
If no project board: WARN — "No GitHub Project board linked. Run /maxsim:init to configure."
|
|
99
63
|
|
|
100
|
-
|
|
64
|
+
Record PASS/WARN/FAIL.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Step 5: Report results
|
|
101
69
|
|
|
102
70
|
```
|
|
103
|
-
|
|
71
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
72
|
+
MAXSIM ► HEALTH CHECK
|
|
73
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
74
|
+
|
|
75
|
+
| Check | Status | Notes |
|
|
76
|
+
|------------------------------|--------|-------|
|
|
77
|
+
| .claude/ structure | PASS | |
|
|
78
|
+
| maxsim-tools.cjs present | PASS | |
|
|
79
|
+
| gh CLI installed | PASS | v2.x |
|
|
80
|
+
| gh CLI authenticated | PASS | user@github.com |
|
|
81
|
+
| GitHub repo accessible | PASS | org/repo |
|
|
82
|
+
| Project board linked | PASS | Project #N |
|
|
83
|
+
|
|
84
|
+
Overall: HEALTHY / DEGRADED / BROKEN
|
|
104
85
|
```
|
|
105
86
|
|
|
106
|
-
If
|
|
107
|
-
|
|
87
|
+
**If any check FAILed**, list fix instructions after the table:
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
## Issues Found
|
|
108
91
|
|
|
109
|
-
|
|
110
|
-
|
|
92
|
+
- [Check Name]: [Error message]
|
|
93
|
+
Fix: [exact command or instruction to resolve]
|
|
94
|
+
```
|
|
111
95
|
|
|
112
|
-
|
|
96
|
+
**If all checks PASS:**
|
|
113
97
|
|
|
114
|
-
```bash
|
|
115
|
-
node ~/.claude/maxsim/bin/maxsim-tools.cjs validate health
|
|
116
98
|
```
|
|
99
|
+
All systems operational. MAXSIM is ready to use.
|
|
117
100
|
|
|
118
|
-
|
|
119
|
-
|
|
101
|
+
Run /maxsim:go to resume your project.
|
|
102
|
+
```
|
|
120
103
|
|
|
121
104
|
</process>
|
|
122
105
|
|
|
123
|
-
<
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
| E005 | error | config.json parse error | Yes |
|
|
132
|
-
| W001 | warning | PROJECT.md missing required section | No |
|
|
133
|
-
| W002 | warning | STATE.md references invalid phase | Yes |
|
|
134
|
-
| W003 | warning | config.json not found | Yes |
|
|
135
|
-
| W004 | warning | config.json invalid field value | No |
|
|
136
|
-
| W005 | warning | Phase directory naming mismatch | No |
|
|
137
|
-
| W006 | warning | Phase in ROADMAP but no directory | No |
|
|
138
|
-
| W007 | warning | Phase on disk but not in ROADMAP | No |
|
|
139
|
-
| I001 | info | Plan without SUMMARY (may be in progress) | No |
|
|
140
|
-
|
|
141
|
-
</error_codes>
|
|
142
|
-
|
|
143
|
-
<repair_actions>
|
|
144
|
-
|
|
145
|
-
| Action | Effect | Risk |
|
|
146
|
-
|--------|--------|------|
|
|
147
|
-
| createConfig | Create config.json with defaults | None |
|
|
148
|
-
| resetConfig | Delete + recreate config.json | Loses custom settings |
|
|
149
|
-
| regenerateState | Create STATE.md from ROADMAP structure | Loses session history |
|
|
150
|
-
|
|
151
|
-
**Not repairable (too risky):**
|
|
152
|
-
- PROJECT.md, ROADMAP.md content
|
|
153
|
-
- Phase directory renaming
|
|
154
|
-
- Orphaned plan cleanup
|
|
155
|
-
|
|
156
|
-
</repair_actions>
|
|
106
|
+
<success_criteria>
|
|
107
|
+
- [ ] .claude/ directory structure verified
|
|
108
|
+
- [ ] gh CLI installation and authentication checked
|
|
109
|
+
- [ ] GitHub repo accessibility confirmed
|
|
110
|
+
- [ ] Project board existence confirmed
|
|
111
|
+
- [ ] Status of each check reported with fix instructions for failures
|
|
112
|
+
- [ ] Overall health status (HEALTHY / DEGRADED / BROKEN) displayed
|
|
113
|
+
</success_criteria>
|