@howlil/ez-agents 2.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/LICENSE +21 -0
- package/README.md +845 -0
- package/README.zh-CN.md +702 -0
- package/agents/ez-codebase-mapper.md +770 -0
- package/agents/ez-debugger.md +1255 -0
- package/agents/ez-executor.md +487 -0
- package/agents/ez-integration-checker.md +443 -0
- package/agents/ez-nyquist-auditor.md +176 -0
- package/agents/ez-phase-researcher.md +553 -0
- package/agents/ez-plan-checker.md +706 -0
- package/agents/ez-planner.md +1307 -0
- package/agents/ez-project-researcher.md +629 -0
- package/agents/ez-research-synthesizer.md +247 -0
- package/agents/ez-roadmapper.md +650 -0
- package/agents/ez-ui-auditor.md +441 -0
- package/agents/ez-ui-checker.md +302 -0
- package/agents/ez-ui-researcher.md +355 -0
- package/agents/ez-verifier.md +579 -0
- package/bin/install.js +2862 -0
- package/bin/update.js +214 -0
- package/commands/ez/add-phase.md +43 -0
- package/commands/ez/add-tests.md +41 -0
- package/commands/ez/add-todo.md +47 -0
- package/commands/ez/audit-milestone.md +36 -0
- package/commands/ez/autonomous.md +41 -0
- package/commands/ez/check-todos.md +45 -0
- package/commands/ez/cleanup.md +18 -0
- package/commands/ez/complete-milestone.md +136 -0
- package/commands/ez/debug.md +168 -0
- package/commands/ez/discuss-phase.md +90 -0
- package/commands/ez/execute-phase.md +41 -0
- package/commands/ez/health.md +22 -0
- package/commands/ez/help.md +22 -0
- package/commands/ez/insert-phase.md +32 -0
- package/commands/ez/join-discord.md +18 -0
- package/commands/ez/list-phase-assumptions.md +46 -0
- package/commands/ez/map-codebase.md +71 -0
- package/commands/ez/new-milestone.md +44 -0
- package/commands/ez/new-project.md +42 -0
- package/commands/ez/pause-work.md +38 -0
- package/commands/ez/plan-milestone-gaps.md +34 -0
- package/commands/ez/plan-phase.md +45 -0
- package/commands/ez/progress.md +24 -0
- package/commands/ez/quick.md +45 -0
- package/commands/ez/reapply-patches.md +124 -0
- package/commands/ez/remove-phase.md +31 -0
- package/commands/ez/research-phase.md +190 -0
- package/commands/ez/resume-work.md +40 -0
- package/commands/ez/set-profile.md +34 -0
- package/commands/ez/settings.md +36 -0
- package/commands/ez/stats.md +18 -0
- package/commands/ez/ui-phase.md +34 -0
- package/commands/ez/ui-review.md +32 -0
- package/commands/ez/update.md +37 -0
- package/commands/ez/validate-phase.md +35 -0
- package/commands/ez/verify-work.md +38 -0
- package/get-shit-done/bin/ez-tools.cjs +598 -0
- package/get-shit-done/bin/lib/assistant-adapter.cjs +205 -0
- package/get-shit-done/bin/lib/audit-exec.cjs +150 -0
- package/get-shit-done/bin/lib/auth.cjs +175 -0
- package/get-shit-done/bin/lib/circuit-breaker.cjs +118 -0
- package/get-shit-done/bin/lib/commands.cjs +666 -0
- package/get-shit-done/bin/lib/config.cjs +183 -0
- package/get-shit-done/bin/lib/core.cjs +495 -0
- package/get-shit-done/bin/lib/file-lock.cjs +236 -0
- package/get-shit-done/bin/lib/frontmatter.cjs +299 -0
- package/get-shit-done/bin/lib/fs-utils.cjs +153 -0
- package/get-shit-done/bin/lib/git-utils.cjs +203 -0
- package/get-shit-done/bin/lib/health-check.cjs +163 -0
- package/get-shit-done/bin/lib/index.cjs +113 -0
- package/get-shit-done/bin/lib/init.cjs +710 -0
- package/get-shit-done/bin/lib/logger.cjs +117 -0
- package/get-shit-done/bin/lib/milestone.cjs +241 -0
- package/get-shit-done/bin/lib/model-provider.cjs +146 -0
- package/get-shit-done/bin/lib/phase.cjs +908 -0
- package/get-shit-done/bin/lib/retry.cjs +119 -0
- package/get-shit-done/bin/lib/roadmap.cjs +305 -0
- package/get-shit-done/bin/lib/safe-exec.cjs +128 -0
- package/get-shit-done/bin/lib/safe-path.cjs +130 -0
- package/get-shit-done/bin/lib/state.cjs +721 -0
- package/get-shit-done/bin/lib/temp-file.cjs +239 -0
- package/get-shit-done/bin/lib/template.cjs +222 -0
- package/get-shit-done/bin/lib/test-file-lock.cjs +112 -0
- package/get-shit-done/bin/lib/test-graceful.cjs +93 -0
- package/get-shit-done/bin/lib/test-logger.cjs +60 -0
- package/get-shit-done/bin/lib/test-safe-exec.cjs +38 -0
- package/get-shit-done/bin/lib/test-safe-path.cjs +33 -0
- package/get-shit-done/bin/lib/test-temp-file.cjs +125 -0
- package/get-shit-done/bin/lib/timeout-exec.cjs +62 -0
- package/get-shit-done/bin/lib/verify.cjs +820 -0
- package/get-shit-done/references/checkpoints.md +776 -0
- package/get-shit-done/references/continuation-format.md +249 -0
- package/get-shit-done/references/decimal-phase-calculation.md +65 -0
- package/get-shit-done/references/git-integration.md +248 -0
- package/get-shit-done/references/git-planning-commit.md +38 -0
- package/get-shit-done/references/model-profile-resolution.md +34 -0
- package/get-shit-done/references/model-profiles.md +93 -0
- package/get-shit-done/references/phase-argument-parsing.md +61 -0
- package/get-shit-done/references/planning-config.md +200 -0
- package/get-shit-done/references/questioning.md +162 -0
- package/get-shit-done/references/tdd.md +263 -0
- package/get-shit-done/references/ui-brand.md +160 -0
- package/get-shit-done/references/verification-patterns.md +612 -0
- package/get-shit-done/templates/DEBUG.md +164 -0
- package/get-shit-done/templates/UAT.md +247 -0
- package/get-shit-done/templates/UI-SPEC.md +100 -0
- package/get-shit-done/templates/VALIDATION.md +76 -0
- package/get-shit-done/templates/codebase/architecture.md +255 -0
- package/get-shit-done/templates/codebase/concerns.md +310 -0
- package/get-shit-done/templates/codebase/conventions.md +307 -0
- package/get-shit-done/templates/codebase/integrations.md +280 -0
- package/get-shit-done/templates/codebase/stack.md +186 -0
- package/get-shit-done/templates/codebase/structure.md +285 -0
- package/get-shit-done/templates/codebase/testing.md +480 -0
- package/get-shit-done/templates/config.json +37 -0
- package/get-shit-done/templates/context.md +352 -0
- package/get-shit-done/templates/continue-here.md +78 -0
- package/get-shit-done/templates/copilot-instructions.md +7 -0
- package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
- package/get-shit-done/templates/discovery.md +146 -0
- package/get-shit-done/templates/milestone-archive.md +123 -0
- package/get-shit-done/templates/milestone.md +115 -0
- package/get-shit-done/templates/phase-prompt.md +610 -0
- package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
- package/get-shit-done/templates/project.md +184 -0
- package/get-shit-done/templates/requirements.md +231 -0
- package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
- package/get-shit-done/templates/research-project/FEATURES.md +147 -0
- package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
- package/get-shit-done/templates/research-project/STACK.md +120 -0
- package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
- package/get-shit-done/templates/research.md +552 -0
- package/get-shit-done/templates/retrospective.md +54 -0
- package/get-shit-done/templates/roadmap.md +202 -0
- package/get-shit-done/templates/state.md +176 -0
- package/get-shit-done/templates/summary-complex.md +59 -0
- package/get-shit-done/templates/summary-minimal.md +41 -0
- package/get-shit-done/templates/summary-standard.md +48 -0
- package/get-shit-done/templates/summary.md +248 -0
- package/get-shit-done/templates/user-setup.md +311 -0
- package/get-shit-done/templates/verification-report.md +322 -0
- package/get-shit-done/workflows/add-phase.md +112 -0
- package/get-shit-done/workflows/add-tests.md +351 -0
- package/get-shit-done/workflows/add-todo.md +158 -0
- package/get-shit-done/workflows/audit-milestone.md +332 -0
- package/get-shit-done/workflows/autonomous.md +743 -0
- package/get-shit-done/workflows/check-todos.md +177 -0
- package/get-shit-done/workflows/cleanup.md +152 -0
- package/get-shit-done/workflows/complete-milestone.md +766 -0
- package/get-shit-done/workflows/diagnose-issues.md +219 -0
- package/get-shit-done/workflows/discovery-phase.md +289 -0
- package/get-shit-done/workflows/discuss-phase.md +762 -0
- package/get-shit-done/workflows/execute-phase.md +468 -0
- package/get-shit-done/workflows/execute-plan.md +483 -0
- package/get-shit-done/workflows/health.md +159 -0
- package/get-shit-done/workflows/help.md +492 -0
- package/get-shit-done/workflows/insert-phase.md +130 -0
- package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/get-shit-done/workflows/map-codebase.md +316 -0
- package/get-shit-done/workflows/new-milestone.md +384 -0
- package/get-shit-done/workflows/new-project.md +1111 -0
- package/get-shit-done/workflows/node-repair.md +92 -0
- package/get-shit-done/workflows/pause-work.md +122 -0
- package/get-shit-done/workflows/plan-milestone-gaps.md +274 -0
- package/get-shit-done/workflows/plan-phase.md +651 -0
- package/get-shit-done/workflows/progress.md +382 -0
- package/get-shit-done/workflows/quick.md +610 -0
- package/get-shit-done/workflows/remove-phase.md +155 -0
- package/get-shit-done/workflows/research-phase.md +74 -0
- package/get-shit-done/workflows/resume-project.md +307 -0
- package/get-shit-done/workflows/set-profile.md +81 -0
- package/get-shit-done/workflows/settings.md +242 -0
- package/get-shit-done/workflows/stats.md +57 -0
- package/get-shit-done/workflows/transition.md +544 -0
- package/get-shit-done/workflows/ui-phase.md +290 -0
- package/get-shit-done/workflows/ui-review.md +157 -0
- package/get-shit-done/workflows/update.md +320 -0
- package/get-shit-done/workflows/validate-phase.md +167 -0
- package/get-shit-done/workflows/verify-phase.md +243 -0
- package/get-shit-done/workflows/verify-work.md +584 -0
- package/package.json +55 -0
- package/scripts/build-hooks.js +43 -0
- package/scripts/run-tests.cjs +29 -0
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Execute small, ad-hoc tasks with GSD guarantees (atomic commits, STATE.md tracking). Quick mode spawns gsd-planner (quick mode) + gsd-executor(s), tracks tasks in `.planning/quick/`, and updates STATE.md's "Quick Tasks Completed" table.
|
|
3
|
+
|
|
4
|
+
With `--discuss` flag: lightweight discussion phase before planning. Surfaces assumptions, clarifies gray areas, captures decisions in CONTEXT.md so the planner treats them as locked.
|
|
5
|
+
|
|
6
|
+
With `--full` flag: enables plan-checking (max 2 iterations) and post-execution verification for quality guarantees without full milestone ceremony.
|
|
7
|
+
|
|
8
|
+
Flags are composable: `--discuss --full` gives discussion + plan-checking + verification.
|
|
9
|
+
</purpose>
|
|
10
|
+
|
|
11
|
+
<required_reading>
|
|
12
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
13
|
+
</required_reading>
|
|
14
|
+
|
|
15
|
+
<process>
|
|
16
|
+
**Step 1: Parse arguments and get task description**
|
|
17
|
+
|
|
18
|
+
Parse `$ARGUMENTS` for:
|
|
19
|
+
- `--full` flag → store as `$FULL_MODE` (true/false)
|
|
20
|
+
- `--discuss` flag → store as `$DISCUSS_MODE` (true/false)
|
|
21
|
+
- Remaining text → use as `$DESCRIPTION` if non-empty
|
|
22
|
+
|
|
23
|
+
If `$DESCRIPTION` is empty after parsing, prompt user interactively:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
AskUserQuestion(
|
|
27
|
+
header: "Quick Task",
|
|
28
|
+
question: "What do you want to do?",
|
|
29
|
+
followUp: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Store response as `$DESCRIPTION`.
|
|
34
|
+
|
|
35
|
+
If still empty, re-prompt: "Please provide a task description."
|
|
36
|
+
|
|
37
|
+
Display banner based on active flags:
|
|
38
|
+
|
|
39
|
+
If `$DISCUSS_MODE` and `$FULL_MODE`:
|
|
40
|
+
```
|
|
41
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
42
|
+
GSD ► QUICK TASK (DISCUSS + FULL)
|
|
43
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
44
|
+
|
|
45
|
+
◆ Discussion + plan checking + verification enabled
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
If `$DISCUSS_MODE` only:
|
|
49
|
+
```
|
|
50
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
51
|
+
GSD ► QUICK TASK (DISCUSS)
|
|
52
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
53
|
+
|
|
54
|
+
◆ Discussion phase enabled — surfacing gray areas before planning
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
If `$FULL_MODE` only:
|
|
58
|
+
```
|
|
59
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
60
|
+
GSD ► QUICK TASK (FULL MODE)
|
|
61
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
62
|
+
|
|
63
|
+
◆ Plan checking + verification enabled
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
**Step 2: Initialize**
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
INIT=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" init quick "$DESCRIPTION")
|
|
72
|
+
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Parse JSON for: `planner_model`, `executor_model`, `checker_model`, `verifier_model`, `commit_docs`, `quick_id`, `slug`, `date`, `timestamp`, `quick_dir`, `task_dir`, `roadmap_exists`, `planning_exists`.
|
|
76
|
+
|
|
77
|
+
**If `roadmap_exists` is false:** Error — Quick mode requires an active project with ROADMAP.md. Run `/ez:new-project` first.
|
|
78
|
+
|
|
79
|
+
Quick tasks can run mid-phase - validation only checks ROADMAP.md exists, not phase status.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
**Step 3: Create task directory**
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
mkdir -p "${task_dir}"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
**Step 4: Create quick task directory**
|
|
92
|
+
|
|
93
|
+
Create the directory for this quick task:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
QUICK_DIR=".planning/quick/${quick_id}-${slug}"
|
|
97
|
+
mkdir -p "$QUICK_DIR"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Report to user:
|
|
101
|
+
```
|
|
102
|
+
Creating quick task ${quick_id}: ${DESCRIPTION}
|
|
103
|
+
Directory: ${QUICK_DIR}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Store `$QUICK_DIR` for use in orchestration.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
**Step 4.5: Discussion phase (only when `$DISCUSS_MODE`)**
|
|
111
|
+
|
|
112
|
+
Skip this step entirely if NOT `$DISCUSS_MODE`.
|
|
113
|
+
|
|
114
|
+
Display banner:
|
|
115
|
+
```
|
|
116
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
117
|
+
GSD ► DISCUSSING QUICK TASK
|
|
118
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
119
|
+
|
|
120
|
+
◆ Surfacing gray areas for: ${DESCRIPTION}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**4.5a. Identify gray areas**
|
|
124
|
+
|
|
125
|
+
Analyze `$DESCRIPTION` to identify 2-4 gray areas — implementation decisions that would change the outcome and that the user should weigh in on.
|
|
126
|
+
|
|
127
|
+
Use the domain-aware heuristic to generate phase-specific (not generic) gray areas:
|
|
128
|
+
- Something users **SEE** → layout, density, interactions, states
|
|
129
|
+
- Something users **CALL** → responses, errors, auth, versioning
|
|
130
|
+
- Something users **RUN** → output format, flags, modes, error handling
|
|
131
|
+
- Something users **READ** → structure, tone, depth, flow
|
|
132
|
+
- Something being **ORGANIZED** → criteria, grouping, naming, exceptions
|
|
133
|
+
|
|
134
|
+
Each gray area should be a concrete decision point, not a vague category. Example: "Loading behavior" not "UX".
|
|
135
|
+
|
|
136
|
+
**4.5b. Present gray areas**
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
AskUserQuestion(
|
|
140
|
+
header: "Gray Areas",
|
|
141
|
+
question: "Which areas need clarification before planning?",
|
|
142
|
+
options: [
|
|
143
|
+
{ label: "${area_1}", description: "${why_it_matters_1}" },
|
|
144
|
+
{ label: "${area_2}", description: "${why_it_matters_2}" },
|
|
145
|
+
{ label: "${area_3}", description: "${why_it_matters_3}" },
|
|
146
|
+
{ label: "All clear", description: "Skip discussion — I know what I want" }
|
|
147
|
+
],
|
|
148
|
+
multiSelect: true
|
|
149
|
+
)
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
If user selects "All clear" → skip to Step 5 (no CONTEXT.md written).
|
|
153
|
+
|
|
154
|
+
**4.5c. Discuss selected areas**
|
|
155
|
+
|
|
156
|
+
For each selected area, ask 1-2 focused questions via AskUserQuestion:
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
AskUserQuestion(
|
|
160
|
+
header: "${area_name}",
|
|
161
|
+
question: "${specific_question_about_this_area}",
|
|
162
|
+
options: [
|
|
163
|
+
{ label: "${concrete_choice_1}", description: "${what_this_means}" },
|
|
164
|
+
{ label: "${concrete_choice_2}", description: "${what_this_means}" },
|
|
165
|
+
{ label: "${concrete_choice_3}", description: "${what_this_means}" },
|
|
166
|
+
{ label: "You decide", description: "Claude's discretion" }
|
|
167
|
+
],
|
|
168
|
+
multiSelect: false
|
|
169
|
+
)
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Rules:
|
|
173
|
+
- Options must be concrete choices, not abstract categories
|
|
174
|
+
- Highlight recommended choice where you have a clear opinion
|
|
175
|
+
- If user selects "Other" with freeform text, switch to plain text follow-up (per questioning.md freeform rule)
|
|
176
|
+
- If user selects "You decide", capture as Claude's Discretion in CONTEXT.md
|
|
177
|
+
- Max 2 questions per area — this is lightweight, not a deep dive
|
|
178
|
+
|
|
179
|
+
Collect all decisions into `$DECISIONS`.
|
|
180
|
+
|
|
181
|
+
**4.5d. Write CONTEXT.md**
|
|
182
|
+
|
|
183
|
+
Write `${QUICK_DIR}/${quick_id}-CONTEXT.md` using the standard context template structure:
|
|
184
|
+
|
|
185
|
+
```markdown
|
|
186
|
+
# Quick Task ${quick_id}: ${DESCRIPTION} - Context
|
|
187
|
+
|
|
188
|
+
**Gathered:** ${date}
|
|
189
|
+
**Status:** Ready for planning
|
|
190
|
+
|
|
191
|
+
<domain>
|
|
192
|
+
## Task Boundary
|
|
193
|
+
|
|
194
|
+
${DESCRIPTION}
|
|
195
|
+
|
|
196
|
+
</domain>
|
|
197
|
+
|
|
198
|
+
<decisions>
|
|
199
|
+
## Implementation Decisions
|
|
200
|
+
|
|
201
|
+
### ${area_1_name}
|
|
202
|
+
- ${decision_from_discussion}
|
|
203
|
+
|
|
204
|
+
### ${area_2_name}
|
|
205
|
+
- ${decision_from_discussion}
|
|
206
|
+
|
|
207
|
+
### Claude's Discretion
|
|
208
|
+
${areas_where_user_said_you_decide_or_areas_not_discussed}
|
|
209
|
+
|
|
210
|
+
</decisions>
|
|
211
|
+
|
|
212
|
+
<specifics>
|
|
213
|
+
## Specific Ideas
|
|
214
|
+
|
|
215
|
+
${any_specific_references_or_examples_from_discussion}
|
|
216
|
+
|
|
217
|
+
[If none: "No specific requirements — open to standard approaches"]
|
|
218
|
+
|
|
219
|
+
</specifics>
|
|
220
|
+
|
|
221
|
+
<canonical_refs>
|
|
222
|
+
## Canonical References
|
|
223
|
+
|
|
224
|
+
${any_specs_adrs_or_docs_referenced_during_discussion}
|
|
225
|
+
|
|
226
|
+
[If none: "No external specs — requirements fully captured in decisions above"]
|
|
227
|
+
|
|
228
|
+
</canonical_refs>
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Note: Quick task CONTEXT.md omits `<code_context>` and `<deferred>` sections (no codebase scouting, no phase scope to defer to). Keep it lean. The `<canonical_refs>` section is included when external docs were referenced — omit it only if no external docs apply.
|
|
232
|
+
|
|
233
|
+
Report: `Context captured: ${QUICK_DIR}/${quick_id}-CONTEXT.md`
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
**Step 5: Spawn planner (quick mode)**
|
|
238
|
+
|
|
239
|
+
**If `$FULL_MODE`:** Use `quick-full` mode with stricter constraints.
|
|
240
|
+
|
|
241
|
+
**If NOT `$FULL_MODE`:** Use standard `quick` mode.
|
|
242
|
+
|
|
243
|
+
```
|
|
244
|
+
Task(
|
|
245
|
+
prompt="
|
|
246
|
+
<planning_context>
|
|
247
|
+
|
|
248
|
+
**Mode:** ${FULL_MODE ? 'quick-full' : 'quick'}
|
|
249
|
+
**Directory:** ${QUICK_DIR}
|
|
250
|
+
**Description:** ${DESCRIPTION}
|
|
251
|
+
|
|
252
|
+
<files_to_read>
|
|
253
|
+
- .planning/STATE.md (Project State)
|
|
254
|
+
- ./CLAUDE.md (if exists — follow project-specific guidelines)
|
|
255
|
+
${DISCUSS_MODE ? '- ' + QUICK_DIR + '/' + quick_id + '-CONTEXT.md (User decisions — locked, do not revisit)' : ''}
|
|
256
|
+
</files_to_read>
|
|
257
|
+
|
|
258
|
+
**Project skills:** Check .claude/skills/ or .agents/skills/ directory (if either exists) — read SKILL.md files, plans should account for project skill rules
|
|
259
|
+
|
|
260
|
+
</planning_context>
|
|
261
|
+
|
|
262
|
+
<constraints>
|
|
263
|
+
- Create a SINGLE plan with 1-3 focused tasks
|
|
264
|
+
- Quick tasks should be atomic and self-contained
|
|
265
|
+
- No research phase
|
|
266
|
+
${FULL_MODE ? '- Target ~40% context usage (structured for verification)' : '- Target ~30% context usage (simple, focused)'}
|
|
267
|
+
${FULL_MODE ? '- MUST generate `must_haves` in plan frontmatter (truths, artifacts, key_links)' : ''}
|
|
268
|
+
${FULL_MODE ? '- Each task MUST have `files`, `action`, `verify`, `done` fields' : ''}
|
|
269
|
+
</constraints>
|
|
270
|
+
|
|
271
|
+
<output>
|
|
272
|
+
Write plan to: ${QUICK_DIR}/${quick_id}-PLAN.md
|
|
273
|
+
Return: ## PLANNING COMPLETE with plan path
|
|
274
|
+
</output>
|
|
275
|
+
",
|
|
276
|
+
subagent_type="ez-planner",
|
|
277
|
+
model="{planner_model}",
|
|
278
|
+
description="Quick plan: ${DESCRIPTION}"
|
|
279
|
+
)
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
After planner returns:
|
|
283
|
+
1. Verify plan exists at `${QUICK_DIR}/${quick_id}-PLAN.md`
|
|
284
|
+
2. Extract plan count (typically 1 for quick tasks)
|
|
285
|
+
3. Report: "Plan created: ${QUICK_DIR}/${quick_id}-PLAN.md"
|
|
286
|
+
|
|
287
|
+
If plan not found, error: "Planner failed to create ${quick_id}-PLAN.md"
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
**Step 5.5: Plan-checker loop (only when `$FULL_MODE`)**
|
|
292
|
+
|
|
293
|
+
Skip this step entirely if NOT `$FULL_MODE`.
|
|
294
|
+
|
|
295
|
+
Display banner:
|
|
296
|
+
```
|
|
297
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
298
|
+
GSD ► CHECKING PLAN
|
|
299
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
300
|
+
|
|
301
|
+
◆ Spawning plan checker...
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Checker prompt:
|
|
305
|
+
|
|
306
|
+
```markdown
|
|
307
|
+
<verification_context>
|
|
308
|
+
**Mode:** quick-full
|
|
309
|
+
**Task Description:** ${DESCRIPTION}
|
|
310
|
+
|
|
311
|
+
<files_to_read>
|
|
312
|
+
- ${QUICK_DIR}/${quick_id}-PLAN.md (Plan to verify)
|
|
313
|
+
</files_to_read>
|
|
314
|
+
|
|
315
|
+
**Scope:** This is a quick task, not a full phase. Skip checks that require a ROADMAP phase goal.
|
|
316
|
+
</verification_context>
|
|
317
|
+
|
|
318
|
+
<check_dimensions>
|
|
319
|
+
- Requirement coverage: Does the plan address the task description?
|
|
320
|
+
- Task completeness: Do tasks have files, action, verify, done fields?
|
|
321
|
+
- Key links: Are referenced files real?
|
|
322
|
+
- Scope sanity: Is this appropriately sized for a quick task (1-3 tasks)?
|
|
323
|
+
- must_haves derivation: Are must_haves traceable to the task description?
|
|
324
|
+
|
|
325
|
+
Skip: cross-plan deps (single plan), ROADMAP alignment
|
|
326
|
+
${DISCUSS_MODE ? '- Context compliance: Does the plan honor locked decisions from CONTEXT.md?' : '- Skip: context compliance (no CONTEXT.md)'}
|
|
327
|
+
</check_dimensions>
|
|
328
|
+
|
|
329
|
+
<expected_output>
|
|
330
|
+
- ## VERIFICATION PASSED — all checks pass
|
|
331
|
+
- ## ISSUES FOUND — structured issue list
|
|
332
|
+
</expected_output>
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
```
|
|
336
|
+
Task(
|
|
337
|
+
prompt=checker_prompt,
|
|
338
|
+
subagent_type="ez-plan-checker",
|
|
339
|
+
model="{checker_model}",
|
|
340
|
+
description="Check quick plan: ${DESCRIPTION}"
|
|
341
|
+
)
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
**Handle checker return:**
|
|
345
|
+
|
|
346
|
+
- **`## VERIFICATION PASSED`:** Display confirmation, proceed to step 6.
|
|
347
|
+
- **`## ISSUES FOUND`:** Display issues, check iteration count, enter revision loop.
|
|
348
|
+
|
|
349
|
+
**Revision loop (max 2 iterations):**
|
|
350
|
+
|
|
351
|
+
Track `iteration_count` (starts at 1 after initial plan + check).
|
|
352
|
+
|
|
353
|
+
**If iteration_count < 2:**
|
|
354
|
+
|
|
355
|
+
Display: `Sending back to planner for revision... (iteration ${N}/2)`
|
|
356
|
+
|
|
357
|
+
Revision prompt:
|
|
358
|
+
|
|
359
|
+
```markdown
|
|
360
|
+
<revision_context>
|
|
361
|
+
**Mode:** quick-full (revision)
|
|
362
|
+
|
|
363
|
+
<files_to_read>
|
|
364
|
+
- ${QUICK_DIR}/${quick_id}-PLAN.md (Existing plan)
|
|
365
|
+
</files_to_read>
|
|
366
|
+
|
|
367
|
+
**Checker issues:** ${structured_issues_from_checker}
|
|
368
|
+
|
|
369
|
+
</revision_context>
|
|
370
|
+
|
|
371
|
+
<instructions>
|
|
372
|
+
Make targeted updates to address checker issues.
|
|
373
|
+
Do NOT replan from scratch unless issues are fundamental.
|
|
374
|
+
Return what changed.
|
|
375
|
+
</instructions>
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
```
|
|
379
|
+
Task(
|
|
380
|
+
prompt=revision_prompt,
|
|
381
|
+
subagent_type="ez-planner",
|
|
382
|
+
model="{planner_model}",
|
|
383
|
+
description="Revise quick plan: ${DESCRIPTION}"
|
|
384
|
+
)
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
After planner returns → spawn checker again, increment iteration_count.
|
|
388
|
+
|
|
389
|
+
**If iteration_count >= 2:**
|
|
390
|
+
|
|
391
|
+
Display: `Max iterations reached. ${N} issues remain:` + issue list
|
|
392
|
+
|
|
393
|
+
Offer: 1) Force proceed, 2) Abort
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
**Step 6: Spawn executor**
|
|
398
|
+
|
|
399
|
+
Spawn gsd-executor with plan reference:
|
|
400
|
+
|
|
401
|
+
```
|
|
402
|
+
Task(
|
|
403
|
+
prompt="
|
|
404
|
+
Execute quick task ${quick_id}.
|
|
405
|
+
|
|
406
|
+
<files_to_read>
|
|
407
|
+
- ${QUICK_DIR}/${quick_id}-PLAN.md (Plan)
|
|
408
|
+
- .planning/STATE.md (Project state)
|
|
409
|
+
- ./CLAUDE.md (Project instructions, if exists)
|
|
410
|
+
- .claude/skills/ or .agents/skills/ (Project skills, if either exists — list skills, read SKILL.md for each, follow relevant rules during implementation)
|
|
411
|
+
</files_to_read>
|
|
412
|
+
|
|
413
|
+
<constraints>
|
|
414
|
+
- Execute all tasks in the plan
|
|
415
|
+
- Commit each task atomically
|
|
416
|
+
- Create summary at: ${QUICK_DIR}/${quick_id}-SUMMARY.md
|
|
417
|
+
- Do NOT update ROADMAP.md (quick tasks are separate from planned phases)
|
|
418
|
+
</constraints>
|
|
419
|
+
",
|
|
420
|
+
subagent_type="ez-executor",
|
|
421
|
+
model="{executor_model}",
|
|
422
|
+
description="Execute: ${DESCRIPTION}"
|
|
423
|
+
)
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
After executor returns:
|
|
427
|
+
1. Verify summary exists at `${QUICK_DIR}/${quick_id}-SUMMARY.md`
|
|
428
|
+
2. Extract commit hash from executor output
|
|
429
|
+
3. Report completion status
|
|
430
|
+
|
|
431
|
+
**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.
|
|
432
|
+
|
|
433
|
+
If summary not found, error: "Executor failed to create ${quick_id}-SUMMARY.md"
|
|
434
|
+
|
|
435
|
+
Note: For quick tasks producing multiple plans (rare), spawn executors in parallel waves per execute-phase patterns.
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
**Step 6.5: Verification (only when `$FULL_MODE`)**
|
|
440
|
+
|
|
441
|
+
Skip this step entirely if NOT `$FULL_MODE`.
|
|
442
|
+
|
|
443
|
+
Display banner:
|
|
444
|
+
```
|
|
445
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
446
|
+
GSD ► VERIFYING RESULTS
|
|
447
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
448
|
+
|
|
449
|
+
◆ Spawning verifier...
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
```
|
|
453
|
+
Task(
|
|
454
|
+
prompt="Verify quick task goal achievement.
|
|
455
|
+
Task directory: ${QUICK_DIR}
|
|
456
|
+
Task goal: ${DESCRIPTION}
|
|
457
|
+
|
|
458
|
+
<files_to_read>
|
|
459
|
+
- ${QUICK_DIR}/${quick_id}-PLAN.md (Plan)
|
|
460
|
+
</files_to_read>
|
|
461
|
+
|
|
462
|
+
Check must_haves against actual codebase. Create VERIFICATION.md at ${QUICK_DIR}/${quick_id}-VERIFICATION.md.",
|
|
463
|
+
subagent_type="ez-verifier",
|
|
464
|
+
model="{verifier_model}",
|
|
465
|
+
description="Verify: ${DESCRIPTION}"
|
|
466
|
+
)
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
Read verification status:
|
|
470
|
+
```bash
|
|
471
|
+
grep "^status:" "${QUICK_DIR}/${quick_id}-VERIFICATION.md" | cut -d: -f2 | tr -d ' '
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
Store as `$VERIFICATION_STATUS`.
|
|
475
|
+
|
|
476
|
+
| Status | Action |
|
|
477
|
+
|--------|--------|
|
|
478
|
+
| `passed` | Store `$VERIFICATION_STATUS = "Verified"`, continue to step 7 |
|
|
479
|
+
| `human_needed` | Display items needing manual check, store `$VERIFICATION_STATUS = "Needs Review"`, continue |
|
|
480
|
+
| `gaps_found` | Display gap summary, offer: 1) Re-run executor to fix gaps, 2) Accept as-is. Store `$VERIFICATION_STATUS = "Gaps"` |
|
|
481
|
+
|
|
482
|
+
---
|
|
483
|
+
|
|
484
|
+
**Step 7: Update STATE.md**
|
|
485
|
+
|
|
486
|
+
Update STATE.md with quick task completion record.
|
|
487
|
+
|
|
488
|
+
**7a. Check if "Quick Tasks Completed" section exists:**
|
|
489
|
+
|
|
490
|
+
Read STATE.md and check for `### Quick Tasks Completed` section.
|
|
491
|
+
|
|
492
|
+
**7b. If section doesn't exist, create it:**
|
|
493
|
+
|
|
494
|
+
Insert after `### Blockers/Concerns` section:
|
|
495
|
+
|
|
496
|
+
**If `$FULL_MODE`:**
|
|
497
|
+
```markdown
|
|
498
|
+
### Quick Tasks Completed
|
|
499
|
+
|
|
500
|
+
| # | Description | Date | Commit | Status | Directory |
|
|
501
|
+
|---|-------------|------|--------|--------|-----------|
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
**If NOT `$FULL_MODE`:**
|
|
505
|
+
```markdown
|
|
506
|
+
### Quick Tasks Completed
|
|
507
|
+
|
|
508
|
+
| # | Description | Date | Commit | Directory |
|
|
509
|
+
|---|-------------|------|--------|-----------|
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
**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.
|
|
513
|
+
|
|
514
|
+
**7c. Append new row to table:**
|
|
515
|
+
|
|
516
|
+
Use `date` from init:
|
|
517
|
+
|
|
518
|
+
**If `$FULL_MODE` (or table has Status column):**
|
|
519
|
+
```markdown
|
|
520
|
+
| ${quick_id} | ${DESCRIPTION} | ${date} | ${commit_hash} | ${VERIFICATION_STATUS} | [${quick_id}-${slug}](./quick/${quick_id}-${slug}/) |
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
**If NOT `$FULL_MODE` (and table has no Status column):**
|
|
524
|
+
```markdown
|
|
525
|
+
| ${quick_id} | ${DESCRIPTION} | ${date} | ${commit_hash} | [${quick_id}-${slug}](./quick/${quick_id}-${slug}/) |
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
**7d. Update "Last activity" line:**
|
|
529
|
+
|
|
530
|
+
Use `date` from init:
|
|
531
|
+
```
|
|
532
|
+
Last activity: ${date} - Completed quick task ${quick_id}: ${DESCRIPTION}
|
|
533
|
+
```
|
|
534
|
+
|
|
535
|
+
Use Edit tool to make these changes atomically
|
|
536
|
+
|
|
537
|
+
---
|
|
538
|
+
|
|
539
|
+
**Step 8: Final commit and completion**
|
|
540
|
+
|
|
541
|
+
Stage and commit quick task artifacts:
|
|
542
|
+
|
|
543
|
+
Build file list:
|
|
544
|
+
- `${QUICK_DIR}/${quick_id}-PLAN.md`
|
|
545
|
+
- `${QUICK_DIR}/${quick_id}-SUMMARY.md`
|
|
546
|
+
- `.planning/STATE.md`
|
|
547
|
+
- If `$DISCUSS_MODE` and context file exists: `${QUICK_DIR}/${quick_id}-CONTEXT.md`
|
|
548
|
+
- If `$FULL_MODE` and verification file exists: `${QUICK_DIR}/${quick_id}-VERIFICATION.md`
|
|
549
|
+
|
|
550
|
+
```bash
|
|
551
|
+
node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "docs(quick-${quick_id}): ${DESCRIPTION}" --files ${file_list}
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
Get final commit hash:
|
|
555
|
+
```bash
|
|
556
|
+
commit_hash=$(git rev-parse --short HEAD)
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
Display completion output:
|
|
560
|
+
|
|
561
|
+
**If `$FULL_MODE`:**
|
|
562
|
+
```
|
|
563
|
+
---
|
|
564
|
+
|
|
565
|
+
GSD > QUICK TASK COMPLETE (FULL MODE)
|
|
566
|
+
|
|
567
|
+
Quick Task ${quick_id}: ${DESCRIPTION}
|
|
568
|
+
|
|
569
|
+
Summary: ${QUICK_DIR}/${quick_id}-SUMMARY.md
|
|
570
|
+
Verification: ${QUICK_DIR}/${quick_id}-VERIFICATION.md (${VERIFICATION_STATUS})
|
|
571
|
+
Commit: ${commit_hash}
|
|
572
|
+
|
|
573
|
+
---
|
|
574
|
+
|
|
575
|
+
Ready for next task: /ez:quick
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
**If NOT `$FULL_MODE`:**
|
|
579
|
+
```
|
|
580
|
+
---
|
|
581
|
+
|
|
582
|
+
GSD > QUICK TASK COMPLETE
|
|
583
|
+
|
|
584
|
+
Quick Task ${quick_id}: ${DESCRIPTION}
|
|
585
|
+
|
|
586
|
+
Summary: ${QUICK_DIR}/${quick_id}-SUMMARY.md
|
|
587
|
+
Commit: ${commit_hash}
|
|
588
|
+
|
|
589
|
+
---
|
|
590
|
+
|
|
591
|
+
Ready for next task: /ez:quick
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
</process>
|
|
595
|
+
|
|
596
|
+
<success_criteria>
|
|
597
|
+
- [ ] ROADMAP.md validation passes
|
|
598
|
+
- [ ] User provides task description
|
|
599
|
+
- [ ] `--full` and `--discuss` flags parsed from arguments when present
|
|
600
|
+
- [ ] Slug generated (lowercase, hyphens, max 40 chars)
|
|
601
|
+
- [ ] Quick ID generated (YYMMDD-xxx format, 2s Base36 precision)
|
|
602
|
+
- [ ] Directory created at `.planning/quick/YYMMDD-xxx-slug/`
|
|
603
|
+
- [ ] (--discuss) Gray areas identified and presented, decisions captured in `${quick_id}-CONTEXT.md`
|
|
604
|
+
- [ ] `${quick_id}-PLAN.md` created by planner (honors CONTEXT.md decisions when --discuss)
|
|
605
|
+
- [ ] (--full) Plan checker validates plan, revision loop capped at 2
|
|
606
|
+
- [ ] `${quick_id}-SUMMARY.md` created by executor
|
|
607
|
+
- [ ] (--full) `${quick_id}-VERIFICATION.md` created by verifier
|
|
608
|
+
- [ ] STATE.md updated with quick task row (Status column when --full)
|
|
609
|
+
- [ ] Artifacts committed
|
|
610
|
+
</success_criteria>
|