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,29 +1,14 @@
|
|
|
1
|
-
<sanity_check>
|
|
2
|
-
Before executing any step in this workflow, verify:
|
|
3
|
-
1. The current directory contains a `.planning/` folder — if not, stop and tell the user to run `/maxsim:init` first.
|
|
4
|
-
2. `.planning/ROADMAP.md` exists — if not, stop and tell the user to initialize the project.
|
|
5
|
-
</sanity_check>
|
|
6
|
-
|
|
7
1
|
<purpose>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Quick mode spawns planner (quick mode) + executor(s), tracks tasks as GitHub Issues (label: "quick"), and updates STATE.md's "Quick Tasks Completed" table.
|
|
11
|
-
|
|
12
|
-
With `--full` flag: enables plan-checking (max 2 iterations) and post-execution verification for quality guarantees without full milestone ceremony.
|
|
2
|
+
Simplified flow for small tasks that don't need full phase planning. Creates a GitHub Issue, executes the task directly, runs verification, commits, and closes the issue.
|
|
13
3
|
</purpose>
|
|
14
4
|
|
|
15
|
-
<required_reading>
|
|
16
|
-
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
17
|
-
</required_reading>
|
|
18
|
-
|
|
19
5
|
<process>
|
|
20
|
-
**Step 1: Parse arguments and detect mode**
|
|
21
6
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
## Step 1: Get task description
|
|
8
|
+
|
|
9
|
+
Parse `$ARGUMENTS` for task description text.
|
|
25
10
|
|
|
26
|
-
If
|
|
11
|
+
If empty, prompt:
|
|
27
12
|
|
|
28
13
|
```
|
|
29
14
|
AskUserQuestion(
|
|
@@ -33,550 +18,140 @@ AskUserQuestion(
|
|
|
33
18
|
)
|
|
34
19
|
```
|
|
35
20
|
|
|
36
|
-
Store
|
|
37
|
-
|
|
38
|
-
If still empty, re-prompt: "Please provide a task description."
|
|
39
|
-
|
|
40
|
-
If `$FULL_MODE`:
|
|
41
|
-
```
|
|
42
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
43
|
-
MAXSIM ► QUICK TASK (FULL MODE)
|
|
44
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
45
|
-
|
|
46
|
-
◆ Plan checking + verification enabled
|
|
47
|
-
```
|
|
21
|
+
Store as `$DESCRIPTION`. If still empty, re-prompt: "Please provide a task description."
|
|
48
22
|
|
|
49
23
|
---
|
|
50
24
|
|
|
51
|
-
|
|
25
|
+
## Step 2: Create GitHub Issue
|
|
52
26
|
|
|
53
27
|
```bash
|
|
54
|
-
|
|
28
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github create-issue \
|
|
29
|
+
--title "$DESCRIPTION" \
|
|
30
|
+
--label "type:quick" \
|
|
31
|
+
--body "Quick task: $DESCRIPTION"
|
|
55
32
|
```
|
|
56
33
|
|
|
57
|
-
Parse JSON for
|
|
34
|
+
Parse JSON response for `issue_number`. Store as `$ISSUE_NUM`.
|
|
58
35
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Quick tasks can run mid-phase - validation only checks ROADMAP.md exists, not phase status.
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
**Step 3: Create task directory**
|
|
36
|
+
Move issue to "In Progress" on the project board:
|
|
66
37
|
|
|
67
38
|
```bash
|
|
68
|
-
|
|
39
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github move-issue \
|
|
40
|
+
--issue-number $ISSUE_NUM \
|
|
41
|
+
--status "In Progress"
|
|
69
42
|
```
|
|
70
43
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
**Step 4: Create quick task directory**
|
|
44
|
+
Display:
|
|
74
45
|
|
|
75
|
-
Create the directory for this quick task:
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
QUICK_DIR=".planning/quick/${next_num}-${slug}"
|
|
79
|
-
mkdir -p "$QUICK_DIR"
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
Report to user:
|
|
83
|
-
```
|
|
84
|
-
Creating quick task ${next_num}: ${DESCRIPTION}
|
|
85
|
-
Directory: ${QUICK_DIR}
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
Store `$QUICK_DIR` for use in orchestration.
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
**Step 5: Spawn planner (quick mode)**
|
|
93
|
-
|
|
94
|
-
**If `$FULL_MODE`:** Use `quick-full` mode with stricter constraints.
|
|
95
|
-
|
|
96
|
-
**If NOT `$FULL_MODE`:** Use standard `quick` mode.
|
|
97
|
-
|
|
98
|
-
```
|
|
99
|
-
Task(
|
|
100
|
-
prompt="
|
|
101
|
-
<planning_context>
|
|
102
|
-
|
|
103
|
-
**Mode:** ${FULL_MODE ? 'quick-full' : 'quick'}
|
|
104
|
-
**Directory:** ${QUICK_DIR}
|
|
105
|
-
**Description:** ${DESCRIPTION}
|
|
106
|
-
|
|
107
|
-
<files_to_read>
|
|
108
|
-
- .planning/STATE.md (Project State)
|
|
109
|
-
- ./CLAUDE.md (if exists — follow project-specific guidelines)
|
|
110
|
-
</files_to_read>
|
|
111
|
-
|
|
112
|
-
**Project skills:** Check .skills/ directory (if exists) — read SKILL.md files, plans should account for project skill rules
|
|
113
|
-
|
|
114
|
-
</planning_context>
|
|
115
|
-
|
|
116
|
-
<constraints>
|
|
117
|
-
- Create a SINGLE plan with 1-3 focused tasks
|
|
118
|
-
- Quick tasks should be atomic and self-contained
|
|
119
|
-
- No research phase
|
|
120
|
-
${FULL_MODE ? '- Target ~40% context usage (structured for verification)' : '- Target ~30% context usage (simple, focused)'}
|
|
121
|
-
${FULL_MODE ? '- MUST generate `must_haves` in plan frontmatter (truths, artifacts, key_links)' : ''}
|
|
122
|
-
${FULL_MODE ? '- Each task MUST have `files`, `action`, `verify`, `done` fields' : ''}
|
|
123
|
-
</constraints>
|
|
124
|
-
|
|
125
|
-
<output>
|
|
126
|
-
Write plan to: ${QUICK_DIR}/${next_num}-PLAN.md
|
|
127
|
-
Return: ## PLANNING COMPLETE with plan path
|
|
128
|
-
</output>
|
|
129
|
-
",
|
|
130
|
-
subagent_type="planner",
|
|
131
|
-
model="{planner_model}",
|
|
132
|
-
description="Quick plan: ${DESCRIPTION}"
|
|
133
|
-
)
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
After planner returns:
|
|
137
|
-
1. Verify plan exists at `${QUICK_DIR}/${next_num}-PLAN.md`
|
|
138
|
-
2. Extract plan count (typically 1 for quick tasks)
|
|
139
|
-
3. Report: "Plan created: ${QUICK_DIR}/${next_num}-PLAN.md"
|
|
140
|
-
|
|
141
|
-
If plan not found, error: "Planner failed to create ${next_num}-PLAN.md"
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
**Step 5.5: Plan-checker loop (only when `$FULL_MODE`)**
|
|
146
|
-
|
|
147
|
-
Skip this step entirely if NOT `$FULL_MODE`.
|
|
148
|
-
|
|
149
|
-
Display banner:
|
|
150
46
|
```
|
|
151
47
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
152
|
-
MAXSIM ►
|
|
48
|
+
MAXSIM ► QUICK TASK #$ISSUE_NUM
|
|
153
49
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
154
50
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
Checker prompt:
|
|
159
|
-
|
|
160
|
-
```markdown
|
|
161
|
-
<verification_context>
|
|
162
|
-
**Mode:** quick-full
|
|
163
|
-
**Task Description:** ${DESCRIPTION}
|
|
164
|
-
|
|
165
|
-
<files_to_read>
|
|
166
|
-
- ${QUICK_DIR}/${next_num}-PLAN.md (Plan to verify)
|
|
167
|
-
</files_to_read>
|
|
168
|
-
|
|
169
|
-
**Scope:** This is a quick task, not a full phase. Skip checks that require a ROADMAP phase goal.
|
|
170
|
-
</verification_context>
|
|
171
|
-
|
|
172
|
-
<check_dimensions>
|
|
173
|
-
- Requirement coverage: Does the plan address the task description?
|
|
174
|
-
- Task completeness: Do tasks have files, action, verify, done fields?
|
|
175
|
-
- Key links: Are referenced files real?
|
|
176
|
-
- Scope sanity: Is this appropriately sized for a quick task (1-3 tasks)?
|
|
177
|
-
- must_haves derivation: Are must_haves traceable to the task description?
|
|
178
|
-
|
|
179
|
-
Skip: context compliance (no CONTEXT.md), cross-plan deps (single plan), ROADMAP alignment
|
|
180
|
-
</check_dimensions>
|
|
181
|
-
|
|
182
|
-
<expected_output>
|
|
183
|
-
- ## VERIFICATION PASSED — all checks pass
|
|
184
|
-
- ## ISSUES FOUND — structured issue list
|
|
185
|
-
</expected_output>
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
```
|
|
189
|
-
Task(
|
|
190
|
-
prompt="## Task: Verify plans achieve phase goal\n\n## Suggested Skills: verification-gates\n\n" + checker_prompt,
|
|
191
|
-
subagent_type="planner",
|
|
192
|
-
model="{checker_model}",
|
|
193
|
-
description="Check quick plan: ${DESCRIPTION}"
|
|
194
|
-
)
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
**Handle checker return:**
|
|
198
|
-
|
|
199
|
-
- **`## VERIFICATION PASSED`:** Display confirmation, proceed to step 6.
|
|
200
|
-
- **`## ISSUES FOUND`:** Display issues, check iteration count, enter revision loop.
|
|
201
|
-
|
|
202
|
-
**Revision loop (max 2 iterations):**
|
|
203
|
-
|
|
204
|
-
Track `iteration_count` (starts at 1 after initial plan + check).
|
|
205
|
-
|
|
206
|
-
**If iteration_count < 2:**
|
|
207
|
-
|
|
208
|
-
Display: `Sending back to planner for revision... (iteration ${N}/2)`
|
|
209
|
-
|
|
210
|
-
Revision prompt:
|
|
211
|
-
|
|
212
|
-
```markdown
|
|
213
|
-
<revision_context>
|
|
214
|
-
**Mode:** quick-full (revision)
|
|
215
|
-
|
|
216
|
-
<files_to_read>
|
|
217
|
-
- ${QUICK_DIR}/${next_num}-PLAN.md (Existing plan)
|
|
218
|
-
</files_to_read>
|
|
219
|
-
|
|
220
|
-
**Checker issues:** ${structured_issues_from_checker}
|
|
221
|
-
|
|
222
|
-
</revision_context>
|
|
223
|
-
|
|
224
|
-
<instructions>
|
|
225
|
-
Make targeted updates to address checker issues.
|
|
226
|
-
Do NOT replan from scratch unless issues are fundamental.
|
|
227
|
-
Return what changed.
|
|
228
|
-
</instructions>
|
|
51
|
+
Task: $DESCRIPTION
|
|
52
|
+
Issue: #$ISSUE_NUM (In Progress)
|
|
229
53
|
```
|
|
230
54
|
|
|
231
|
-
```
|
|
232
|
-
Task(
|
|
233
|
-
prompt=revision_prompt,
|
|
234
|
-
subagent_type="planner",
|
|
235
|
-
model="{planner_model}",
|
|
236
|
-
description="Revise quick plan: ${DESCRIPTION}"
|
|
237
|
-
)
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
After planner returns → spawn checker again, increment iteration_count.
|
|
241
|
-
|
|
242
|
-
**If iteration_count >= 2:**
|
|
243
|
-
|
|
244
|
-
Display: `Max iterations reached. ${N} issues remain:` + issue list
|
|
245
|
-
|
|
246
|
-
Offer: 1) Force proceed, 2) Abort
|
|
247
|
-
|
|
248
55
|
---
|
|
249
56
|
|
|
250
|
-
|
|
57
|
+
## Step 3: Execute the task
|
|
251
58
|
|
|
252
|
-
Spawn executor
|
|
59
|
+
Spawn an executor agent to implement the task directly — no wave scheduling, no plan files:
|
|
253
60
|
|
|
254
61
|
```
|
|
255
|
-
|
|
62
|
+
Agent(
|
|
256
63
|
prompt="
|
|
257
|
-
Execute
|
|
64
|
+
Execute this task: $DESCRIPTION
|
|
258
65
|
|
|
259
|
-
|
|
260
|
-
- ${QUICK_DIR}/${next_num}-PLAN.md (Plan)
|
|
261
|
-
- .planning/STATE.md (Project state)
|
|
262
|
-
- ./CLAUDE.md (Project instructions, if exists)
|
|
263
|
-
- .skills/ (Project skills, if exists — list skills, read SKILL.md for each, follow relevant rules during implementation)
|
|
264
|
-
</files_to_read>
|
|
66
|
+
GitHub Issue: #$ISSUE_NUM
|
|
265
67
|
|
|
266
68
|
<constraints>
|
|
267
|
-
-
|
|
268
|
-
- Commit
|
|
269
|
-
-
|
|
270
|
-
-
|
|
69
|
+
- Implement the task fully
|
|
70
|
+
- Commit changes atomically with message: feat(quick-#$ISSUE_NUM): $DESCRIPTION
|
|
71
|
+
- Do NOT create .planning/ files (quick tasks skip phase ceremony)
|
|
72
|
+
- Return a short summary of what was done and the commit hash
|
|
271
73
|
</constraints>
|
|
272
74
|
",
|
|
273
75
|
subagent_type="executor",
|
|
274
|
-
|
|
275
|
-
description="Execute: ${DESCRIPTION}"
|
|
76
|
+
description="Execute quick task #$ISSUE_NUM: $DESCRIPTION"
|
|
276
77
|
)
|
|
277
78
|
```
|
|
278
79
|
|
|
279
|
-
|
|
280
|
-
1. Verify summary exists at `${QUICK_DIR}/${next_num}-SUMMARY.md`
|
|
281
|
-
2. Extract commit hash from executor output
|
|
282
|
-
3. Report completion status
|
|
283
|
-
|
|
284
|
-
**Known Claude Code bug (classifyHandoffIfNeeded):** If executor reports "failed" with error `classifyHandoffIfNeeded is not defined`, this is a Claude Code runtime bug — not a real failure. Check if summary file exists and git log shows commits. If so, treat as successful.
|
|
285
|
-
|
|
286
|
-
If summary not found, error: "Executor failed to create ${next_num}-SUMMARY.md"
|
|
287
|
-
|
|
288
|
-
Note: For quick tasks producing multiple plans (rare), spawn executors in parallel waves per execute-phase patterns.
|
|
80
|
+
Extract `$COMMIT_HASH` and `$SUMMARY` from executor output.
|
|
289
81
|
|
|
290
82
|
---
|
|
291
83
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
Run spec-compliance and code-quality review on the completed quick task. This applies to ALL quick tasks regardless of model profile or `--full` flag (per locked decision: "Quick means fast planning, not skipped quality gates").
|
|
295
|
-
|
|
296
|
-
Display banner:
|
|
297
|
-
```
|
|
298
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
299
|
-
MAXSIM ► REVIEWING RESULTS
|
|
300
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
301
|
-
|
|
302
|
-
◆ Running two-stage review...
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
1. Read the completed SUMMARY.md from `${QUICK_DIR}/${next_num}-SUMMARY.md` to understand what was built.
|
|
306
|
-
2. Get modified files: `git diff --name-only HEAD~{N}` where N = number of commits from the executor.
|
|
307
|
-
3. Read the quick plan at `${QUICK_DIR}/${next_num}-PLAN.md` to get task specs.
|
|
308
|
-
|
|
309
|
-
**Spec Review:**
|
|
310
|
-
|
|
311
|
-
```
|
|
312
|
-
Task(
|
|
313
|
-
prompt="
|
|
314
|
-
## Task: Review for spec compliance
|
|
315
|
-
|
|
316
|
-
## Suggested Skills: verification-gates, evidence-collection
|
|
317
|
-
|
|
318
|
-
<review_context>
|
|
319
|
-
**Plan:** quick-${next_num}
|
|
320
|
-
**Description:** ${DESCRIPTION}
|
|
321
|
-
|
|
322
|
-
<task_specs>
|
|
323
|
-
{Copy task specs (action, done criteria, files) from ${QUICK_DIR}/${next_num}-PLAN.md}
|
|
324
|
-
</task_specs>
|
|
325
|
-
|
|
326
|
-
<modified_files>
|
|
327
|
-
{output of git diff --name-only HEAD~N}
|
|
328
|
-
</modified_files>
|
|
329
|
-
|
|
330
|
-
<plan_frontmatter>
|
|
331
|
-
{Plan frontmatter including requirements if present}
|
|
332
|
-
</plan_frontmatter>
|
|
333
|
-
</review_context>
|
|
334
|
-
",
|
|
335
|
-
subagent_type="verifier",
|
|
336
|
-
model="{executor_model}",
|
|
337
|
-
description="Spec review: ${DESCRIPTION}"
|
|
338
|
-
)
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
Parse output frontmatter for `status:` field.
|
|
342
|
-
If FAIL: fix issues, commit (`fix(quick-${next_num}): address spec review findings`), retry (max 2 retries).
|
|
343
|
-
On retry exhaustion (3 total attempts):
|
|
344
|
-
|
|
345
|
-
```
|
|
346
|
-
## REVIEW BLOCKED
|
|
347
|
-
|
|
348
|
-
**Stage:** Spec Compliance
|
|
349
|
-
**Task:** quick-${next_num}: ${DESCRIPTION}
|
|
350
|
-
**Attempts:** 3 (initial + 2 retries)
|
|
351
|
-
**Failing Issues:**
|
|
352
|
-
- {issue list from review}
|
|
353
|
-
|
|
354
|
-
**Options:**
|
|
355
|
-
1. Fix manually and continue
|
|
356
|
-
2. Skip review for this task
|
|
357
|
-
3. Abort execution
|
|
358
|
-
```
|
|
84
|
+
## Step 4: Verify
|
|
359
85
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
**Code Review:**
|
|
86
|
+
Run a focused verification of the completed work:
|
|
363
87
|
|
|
364
88
|
```
|
|
365
|
-
|
|
89
|
+
Agent(
|
|
366
90
|
prompt="
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
## Suggested Skills: code-review
|
|
370
|
-
|
|
371
|
-
<review_context>
|
|
372
|
-
**Plan:** quick-${next_num}
|
|
91
|
+
Verify this quick task was completed correctly:
|
|
373
92
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
93
|
+
Task: $DESCRIPTION
|
|
94
|
+
GitHub Issue: #$ISSUE_NUM
|
|
95
|
+
Commit: $COMMIT_HASH
|
|
377
96
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
97
|
+
Check:
|
|
98
|
+
1. Does the implementation match the task description?
|
|
99
|
+
2. Are there any obvious issues or regressions?
|
|
381
100
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
</test_results>
|
|
385
|
-
</review_context>
|
|
386
|
-
",
|
|
101
|
+
Return: PASS or FAIL with brief reasoning.
|
|
102
|
+
",
|
|
387
103
|
subagent_type="verifier",
|
|
388
|
-
|
|
389
|
-
description="Code review: ${DESCRIPTION}"
|
|
104
|
+
description="Verify quick task #$ISSUE_NUM"
|
|
390
105
|
)
|
|
391
106
|
```
|
|
392
107
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
**Record review results** in the quick task SUMMARY.md:
|
|
108
|
+
Store `$VERIFY_STATUS` (PASS or FAIL).
|
|
396
109
|
|
|
397
|
-
|
|
398
|
-
```markdown
|
|
399
|
-
## Review Cycle
|
|
400
|
-
- Spec: {PASS/FAIL/SKIPPED} ({retry_count} retries)
|
|
401
|
-
- Code: {PASS/FAIL/SKIPPED} ({retry_count} retries)
|
|
402
|
-
- Issues: {critical_count} critical, {warning_count} warnings
|
|
403
|
-
```
|
|
404
|
-
|
|
405
|
-
If `--full` flag was set: this review is part of the full quality pipeline (alongside plan-checking and verification that `--full` already enables).
|
|
406
|
-
If `--full` was NOT set: the review STILL runs (per locked decision).
|
|
110
|
+
If FAIL: display issues, ask user whether to fix or accept as-is.
|
|
407
111
|
|
|
408
112
|
---
|
|
409
113
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
Skip this step entirely if NOT `$FULL_MODE`.
|
|
413
|
-
|
|
414
|
-
Display banner:
|
|
415
|
-
```
|
|
416
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
417
|
-
MAXSIM ► VERIFYING RESULTS
|
|
418
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
419
|
-
|
|
420
|
-
◆ Spawning verifier...
|
|
421
|
-
```
|
|
422
|
-
|
|
423
|
-
```
|
|
424
|
-
Task(
|
|
425
|
-
prompt="Verify quick task goal achievement.
|
|
426
|
-
Task directory: ${QUICK_DIR}
|
|
427
|
-
Task goal: ${DESCRIPTION}
|
|
114
|
+
## Step 5: Commit artifacts, close issue, move to Done
|
|
428
115
|
|
|
429
|
-
|
|
430
|
-
- ${QUICK_DIR}/${next_num}-PLAN.md (Plan)
|
|
431
|
-
</files_to_read>
|
|
116
|
+
Post completion comment to the issue:
|
|
432
117
|
|
|
433
|
-
Check must_haves against actual codebase. Create VERIFICATION.md at ${QUICK_DIR}/${next_num}-VERIFICATION.md.",
|
|
434
|
-
subagent_type="verifier",
|
|
435
|
-
model="{verifier_model}",
|
|
436
|
-
description="Verify: ${DESCRIPTION}"
|
|
437
|
-
)
|
|
438
|
-
```
|
|
439
|
-
|
|
440
|
-
Read verification status:
|
|
441
118
|
```bash
|
|
442
|
-
|
|
119
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github comment-issue \
|
|
120
|
+
--issue-number $ISSUE_NUM \
|
|
121
|
+
--body "Completed. Commit: $COMMIT_HASH\n\nSummary: $SUMMARY\n\nVerification: $VERIFY_STATUS"
|
|
443
122
|
```
|
|
444
123
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
| Status | Action |
|
|
448
|
-
|--------|--------|
|
|
449
|
-
| `passed` | Store `$VERIFICATION_STATUS = "Verified"`, continue to step 7 |
|
|
450
|
-
| `human_needed` | Display items needing manual check, store `$VERIFICATION_STATUS = "Needs Review"`, continue |
|
|
451
|
-
| `gaps_found` | Display gap summary, offer: 1) Re-run executor to fix gaps, 2) Accept as-is. Store `$VERIFICATION_STATUS = "Gaps"` |
|
|
452
|
-
|
|
453
|
-
---
|
|
454
|
-
|
|
455
|
-
**Step 7: Update STATE.md**
|
|
456
|
-
|
|
457
|
-
Update STATE.md with quick task completion record.
|
|
458
|
-
|
|
459
|
-
**7a. Check if "Quick Tasks Completed" section exists:**
|
|
460
|
-
|
|
461
|
-
Read STATE.md and check for `### Quick Tasks Completed` section.
|
|
462
|
-
|
|
463
|
-
**7b. If section doesn't exist, create it:**
|
|
464
|
-
|
|
465
|
-
Insert after `### Blockers/Concerns` section:
|
|
466
|
-
|
|
467
|
-
**If `$FULL_MODE`:**
|
|
468
|
-
```markdown
|
|
469
|
-
### Quick Tasks Completed
|
|
470
|
-
|
|
471
|
-
| # | Description | Date | Commit | Status | Directory |
|
|
472
|
-
|---|-------------|------|--------|--------|-----------|
|
|
473
|
-
```
|
|
474
|
-
|
|
475
|
-
**If NOT `$FULL_MODE`:**
|
|
476
|
-
```markdown
|
|
477
|
-
### Quick Tasks Completed
|
|
478
|
-
|
|
479
|
-
| # | Description | Date | Commit | Directory |
|
|
480
|
-
|---|-------------|------|--------|-----------|
|
|
481
|
-
```
|
|
482
|
-
|
|
483
|
-
**Note:** If the table already exists, match its existing column format. If adding `--full` to a project that already has quick tasks without a Status column, add the Status column to the header and separator rows, and leave Status empty for the new row's predecessors.
|
|
484
|
-
|
|
485
|
-
**7c. Append new row to table:**
|
|
486
|
-
|
|
487
|
-
Use `date` from init:
|
|
488
|
-
|
|
489
|
-
**If `$FULL_MODE` (or table has Status column):**
|
|
490
|
-
```markdown
|
|
491
|
-
| ${next_num} | ${DESCRIPTION} | ${date} | ${commit_hash} | ${VERIFICATION_STATUS} | [${next_num}-${slug}](./quick/${next_num}-${slug}/) |
|
|
492
|
-
```
|
|
493
|
-
|
|
494
|
-
**If NOT `$FULL_MODE` (and table has no Status column):**
|
|
495
|
-
```markdown
|
|
496
|
-
| ${next_num} | ${DESCRIPTION} | ${date} | ${commit_hash} | [${next_num}-${slug}](./quick/${next_num}-${slug}/) |
|
|
497
|
-
```
|
|
498
|
-
|
|
499
|
-
**7d. Update "Last activity" line:**
|
|
500
|
-
|
|
501
|
-
Use `date` from init:
|
|
502
|
-
```
|
|
503
|
-
Last activity: ${date} - Completed quick task ${next_num}: ${DESCRIPTION}
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
Use Edit tool to make these changes atomically
|
|
507
|
-
|
|
508
|
-
---
|
|
509
|
-
|
|
510
|
-
**Step 8: Final commit and completion**
|
|
511
|
-
|
|
512
|
-
Stage and commit quick task artifacts:
|
|
513
|
-
|
|
514
|
-
Build file list:
|
|
515
|
-
- `${QUICK_DIR}/${next_num}-PLAN.md`
|
|
516
|
-
- `${QUICK_DIR}/${next_num}-SUMMARY.md`
|
|
517
|
-
- `.planning/STATE.md`
|
|
518
|
-
- If `$FULL_MODE` and verification file exists: `${QUICK_DIR}/${next_num}-VERIFICATION.md`
|
|
124
|
+
Close the issue and move to Done:
|
|
519
125
|
|
|
520
126
|
```bash
|
|
521
|
-
node ~/.claude/maxsim/bin/maxsim-tools.cjs
|
|
127
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github close-issue --issue-number $ISSUE_NUM
|
|
128
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github move-issue \
|
|
129
|
+
--issue-number $ISSUE_NUM \
|
|
130
|
+
--status "Done"
|
|
522
131
|
```
|
|
523
132
|
|
|
524
|
-
|
|
525
|
-
```bash
|
|
526
|
-
commit_hash=$(git rev-parse --short HEAD)
|
|
527
|
-
```
|
|
528
|
-
|
|
529
|
-
Display completion output:
|
|
530
|
-
|
|
531
|
-
**If `$FULL_MODE`:**
|
|
532
|
-
```
|
|
533
|
-
---
|
|
133
|
+
Display:
|
|
534
134
|
|
|
535
|
-
MAXSIM > QUICK TASK COMPLETE (FULL MODE)
|
|
536
|
-
|
|
537
|
-
Quick Task ${next_num}: ${DESCRIPTION}
|
|
538
|
-
|
|
539
|
-
Summary: ${QUICK_DIR}/${next_num}-SUMMARY.md
|
|
540
|
-
Verification: ${QUICK_DIR}/${next_num}-VERIFICATION.md (${VERIFICATION_STATUS})
|
|
541
|
-
Commit: ${commit_hash}
|
|
542
|
-
|
|
543
|
-
---
|
|
544
|
-
|
|
545
|
-
Ready for next task: /maxsim:quick
|
|
546
135
|
```
|
|
136
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
137
|
+
MAXSIM ► QUICK TASK COMPLETE
|
|
138
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
547
139
|
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
MAXSIM > QUICK TASK COMPLETE
|
|
553
|
-
|
|
554
|
-
Quick Task ${next_num}: ${DESCRIPTION}
|
|
555
|
-
|
|
556
|
-
Summary: ${QUICK_DIR}/${next_num}-SUMMARY.md
|
|
557
|
-
Commit: ${commit_hash}
|
|
558
|
-
|
|
559
|
-
---
|
|
140
|
+
Task: $DESCRIPTION
|
|
141
|
+
Issue: #$ISSUE_NUM (Done)
|
|
142
|
+
Commit: $COMMIT_HASH
|
|
143
|
+
Verification: $VERIFY_STATUS
|
|
560
144
|
|
|
561
145
|
Ready for next task: /maxsim:quick
|
|
562
146
|
```
|
|
563
147
|
|
|
564
|
-
---
|
|
565
|
-
|
|
566
148
|
</process>
|
|
567
149
|
|
|
568
150
|
<success_criteria>
|
|
569
|
-
|
|
570
|
-
- [ ]
|
|
571
|
-
- [ ]
|
|
572
|
-
- [ ]
|
|
573
|
-
- [ ]
|
|
574
|
-
- [ ]
|
|
575
|
-
- [ ] Directory created at `.planning/quick/NNN-slug/`
|
|
576
|
-
- [ ] `${next_num}-PLAN.md` created by planner
|
|
577
|
-
- [ ] (--full) Plan checker validates plan, revision loop capped at 2
|
|
578
|
-
- [ ] `${next_num}-SUMMARY.md` created by executor
|
|
579
|
-
- [ ] (--full) `${next_num}-VERIFICATION.md` created by verifier
|
|
580
|
-
- [ ] STATE.md updated with quick task row (Status column when --full)
|
|
581
|
-
- [ ] Artifacts committed
|
|
151
|
+
- [ ] GitHub Issue created with label "type:quick"
|
|
152
|
+
- [ ] Issue moved to "In Progress" on project board
|
|
153
|
+
- [ ] Task executed directly (no plan files)
|
|
154
|
+
- [ ] Verification run and result recorded
|
|
155
|
+
- [ ] Completion comment posted to issue
|
|
156
|
+
- [ ] Issue closed and moved to "Done"
|
|
582
157
|
</success_criteria>
|