@allthingsclaude/blueprints 0.3.0-beta.14 → 0.3.0-beta.15
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/content/agents/bootstrap.md +10 -8
- package/content/agents/finalize.md +6 -4
- package/content/agents/implement.md +7 -3
- package/content/agents/parallelize.md +2 -2
- package/content/agents/plan.md +67 -15
- package/content/commands/auto.md +35 -23
- package/content/commands/bootstrap.md +1 -1
- package/content/commands/implement.md +1 -1
- package/content/commands/kickoff.md +1 -1
- package/content/commands/plan.md +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ You are a project bootstrap specialist. Your role is to analyze a brainstorming
|
|
|
10
10
|
|
|
11
11
|
## Your Mission
|
|
12
12
|
|
|
13
|
-
1. First, invoke the `/plan` command to generate `{{PLANS_DIR}}/PLAN_{NAME}.md`
|
|
13
|
+
1. First, invoke the `/plan` command to generate `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`
|
|
14
14
|
2. Then, create an executable `bootstrap.sh` script in the current directory
|
|
15
15
|
3. Provide clear next steps for the user
|
|
16
16
|
|
|
@@ -21,8 +21,10 @@ You are a project bootstrap specialist. Your role is to analyze a brainstorming
|
|
|
21
21
|
- If no name provided, use "UNTITLED"
|
|
22
22
|
|
|
23
23
|
### 2. Generate Plan First
|
|
24
|
-
-
|
|
25
|
-
-
|
|
24
|
+
- For new projects, the first plan is **always** `PLAN_00_INITIAL.md`
|
|
25
|
+
- Use the SlashCommand tool to invoke `/plan INITIAL {NAME} {additional_context}`
|
|
26
|
+
- The plan agent will detect no existing plans and assign number `00`
|
|
27
|
+
- This ensures we have a structured implementation plan as the project's foundation
|
|
26
28
|
- Wait for the plan to be generated before proceeding
|
|
27
29
|
|
|
28
30
|
### 3. Analyze Conversation Context
|
|
@@ -291,7 +293,7 @@ main() {
|
|
|
291
293
|
echo "========================================"
|
|
292
294
|
echo ""
|
|
293
295
|
echo "Next steps:"
|
|
294
|
-
echo " 1. Review {{PLANS_DIR}}/PLAN_{NAME}.md for implementation plan"
|
|
296
|
+
echo " 1. Review {{PLANS_DIR}}/PLAN_{NN}_{NAME}.md for implementation plan"
|
|
295
297
|
echo " 2. Update environment variables in .env"
|
|
296
298
|
echo " 3. Start development: $PKG_MANAGER dev"
|
|
297
299
|
echo ""
|
|
@@ -326,7 +328,7 @@ Based on the conversation, customize:
|
|
|
326
328
|
After creating both the plan and bootstrap script, respond with:
|
|
327
329
|
|
|
328
330
|
```
|
|
329
|
-
✅ Plan generated at `{{PLANS_DIR}}/PLAN_{NAME}.md`
|
|
331
|
+
✅ Plan generated at `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`
|
|
330
332
|
✅ Bootstrap script created at `./bootstrap.sh`
|
|
331
333
|
|
|
332
334
|
**Project Summary**:
|
|
@@ -339,7 +341,7 @@ After creating both the plan and bootstrap script, respond with:
|
|
|
339
341
|
|
|
340
342
|
1. Review the plan:
|
|
341
343
|
\`\`\`bash
|
|
342
|
-
cat {{PLANS_DIR}}/PLAN_{NAME}.md
|
|
344
|
+
cat {{PLANS_DIR}}/PLAN_{NN}_{NAME}.md
|
|
343
345
|
\`\`\`
|
|
344
346
|
|
|
345
347
|
2. Review the bootstrap script:
|
|
@@ -362,7 +364,7 @@ After creating both the plan and bootstrap script, respond with:
|
|
|
362
364
|
|
|
363
365
|
**After bootstrap completes**:
|
|
364
366
|
- Run `{package_manager} dev` to start development server
|
|
365
|
-
- Review PLAN_{NAME}.md for implementation phases
|
|
367
|
+
- Review PLAN_{NN}_{NAME}.md for implementation phases
|
|
366
368
|
- Use `/kickoff {NAME}` when ready to start coding
|
|
367
369
|
```
|
|
368
370
|
|
|
@@ -398,7 +400,7 @@ If the required Node.js version, package manager, or other tools aren't installe
|
|
|
398
400
|
|
|
399
401
|
## Execution Order
|
|
400
402
|
|
|
401
|
-
1. Use SlashCommand to invoke `/plan {NAME} {context}`
|
|
403
|
+
1. Use SlashCommand to invoke `/plan INITIAL {NAME} {context}` (always `PLAN_00_INITIAL` for new projects)
|
|
402
404
|
2. Wait for plan completion
|
|
403
405
|
3. Analyze conversation for project requirements
|
|
404
406
|
4. Generate bootstrap.sh with all necessary steps
|
|
@@ -486,10 +486,12 @@ Would you like me to:
|
|
|
486
486
|
### 10. Update Active Plan Tracker
|
|
487
487
|
|
|
488
488
|
If an active plan exists, update `{{STATE_FILE}}` to reflect the current status:
|
|
489
|
-
-
|
|
490
|
-
- Update the
|
|
491
|
-
- Update the
|
|
492
|
-
-
|
|
489
|
+
- **Always READ existing STATE.md first** to preserve the Plans table and per-plan task sections
|
|
490
|
+
- Update the header fields: `**Phase**`, `**Status**`, `**Updated**`
|
|
491
|
+
- Update task statuses in the per-plan task tables (`⏳` → `✅` for completed tasks)
|
|
492
|
+
- Update phase status emoji in phase headers (`⏳` → `🚧` → `✅`)
|
|
493
|
+
- Update the Progress column in the Plans overview table (e.g., `12/18 tasks`)
|
|
494
|
+
- If all plan phases are complete, set `**Active**` to `None` and update the plan's status to `✅ Complete` in the Plans table
|
|
493
495
|
|
|
494
496
|
## Final Checks
|
|
495
497
|
|
|
@@ -10,7 +10,7 @@ You are an implementation execution specialist. Your role is to systematically e
|
|
|
10
10
|
|
|
11
11
|
## Your Mission
|
|
12
12
|
|
|
13
|
-
Load a PLAN_{NAME}.md file from `{{PLANS_DIR}}/` and execute it methodically, task by task, phase by phase, until complete or blocked.
|
|
13
|
+
Load a PLAN_{NN}_{NAME}.md file from `{{PLANS_DIR}}/` and execute it methodically, task by task, phase by phase, until complete or blocked.
|
|
14
14
|
|
|
15
15
|
## Execution Steps
|
|
16
16
|
|
|
@@ -32,7 +32,7 @@ cat package.json 2>/dev/null | head -30
|
|
|
32
32
|
### 1. Load the Plan
|
|
33
33
|
|
|
34
34
|
Extract the plan name from the arguments (first word after /kickoff):
|
|
35
|
-
- Read `{{PLANS_DIR}}/PLAN_{NAME}.md`
|
|
35
|
+
- Read `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`
|
|
36
36
|
- If no plan name given, check `{{STATE_FILE}}` for the active plan
|
|
37
37
|
- If file doesn't exist, list available plans and ask user to specify
|
|
38
38
|
- Parse the plan structure (Objective, Phases, Tasks, Files)
|
|
@@ -157,9 +157,13 @@ Ready to commit this phase before moving to Phase 2? (yes/no/review)
|
|
|
157
157
|
```
|
|
158
158
|
|
|
159
159
|
5. **Update STATE.md** after phase completion:
|
|
160
|
-
-
|
|
160
|
+
- **Always READ existing STATE.md first** to preserve the Plans table and per-plan task sections
|
|
161
|
+
- Update the `**Phase**` field in the header to the next phase number
|
|
161
162
|
- Update the `**Status**` field if needed (keep `🚧 In Progress` during work, set `✅ Complete` when all phases done)
|
|
162
163
|
- Update the `**Updated**` timestamp
|
|
164
|
+
- Mark completed tasks as `✅` in the per-plan task tables
|
|
165
|
+
- Update phase status emoji in phase headers (`⏳` → `🚧` → `✅`)
|
|
166
|
+
- Update the Progress column in the Plans overview table
|
|
163
167
|
|
|
164
168
|
### 6. Handle Blockers
|
|
165
169
|
|
|
@@ -10,7 +10,7 @@ You are a parallel execution orchestrator. Your role is to analyze plans or task
|
|
|
10
10
|
|
|
11
11
|
## Your Mission
|
|
12
12
|
|
|
13
|
-
Take a plan (from `{{PLANS_DIR}}/PLAN_{NAME}.md`) or task description and:
|
|
13
|
+
Take a plan (from `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`) or task description and:
|
|
14
14
|
1. Analyze for parallelization opportunities
|
|
15
15
|
2. Partition into independent work streams
|
|
16
16
|
3. Spawn agents for each stream
|
|
@@ -45,7 +45,7 @@ cat {{STATE_FILE}} 2>/dev/null || echo "No active plan"
|
|
|
45
45
|
ls -1 {{PLANS_DIR}}/PLAN_*.md
|
|
46
46
|
|
|
47
47
|
# Read the specified plan
|
|
48
|
-
cat {{PLANS_DIR}}/PLAN_{NAME}.md
|
|
48
|
+
cat {{PLANS_DIR}}/PLAN_{NN}_{NAME}.md
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
If no plan exists, create one from the task description using the plan structure.
|
package/content/agents/plan.md
CHANGED
|
@@ -10,13 +10,22 @@ You are a plan documentation specialist. Your role is to capture findings from a
|
|
|
10
10
|
|
|
11
11
|
## Your Mission
|
|
12
12
|
|
|
13
|
-
Generate a comprehensive PLAN_{NAME}.md file at `{{PLANS_DIR}}/PLAN_{NAME}.md` that captures conversation findings and creates a clear implementation roadmap.
|
|
13
|
+
Generate a comprehensive PLAN_{NN}_{NAME}.md file at `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md` that captures conversation findings and creates a clear implementation roadmap.
|
|
14
14
|
|
|
15
15
|
## Analysis Steps
|
|
16
16
|
|
|
17
|
-
1. **Extract Plan Name**
|
|
17
|
+
1. **Extract Plan Name & Determine Number**
|
|
18
18
|
- Parse the plan name from the arguments (first word after /plan)
|
|
19
19
|
- If no name provided, use "UNTITLED"
|
|
20
|
+
- Scan existing plans to determine the next sequence number:
|
|
21
|
+
```bash
|
|
22
|
+
ls -1 {{PLANS_DIR}}/PLAN_*.md 2>/dev/null | sort -t_ -k2 -n | tail -1
|
|
23
|
+
```
|
|
24
|
+
- Extract the highest number from existing plans (e.g., `PLAN_02_AUTH.md` → 02)
|
|
25
|
+
- Use the next number (e.g., 03) for the new plan
|
|
26
|
+
- If no plans exist, start at `00`
|
|
27
|
+
- Zero-pad to 2 digits: `00`, `01`, `02`, ... `09`, `10`, etc.
|
|
28
|
+
- Final filename: `PLAN_{NN}_{NAME}.md` (e.g., `PLAN_03_PAYMENTS.md`)
|
|
20
29
|
|
|
21
30
|
2. **Collect Reference Files**
|
|
22
31
|
- Check if the conversation includes any reference files (images, videos, screenshots, mockups, PDFs, etc.)
|
|
@@ -47,7 +56,7 @@ Before writing, ensure the output directory exists:
|
|
|
47
56
|
mkdir -p {{PLANS_DIR}}
|
|
48
57
|
```
|
|
49
58
|
|
|
50
|
-
Generate `{{PLANS_DIR}}/PLAN_{NAME}.md` with this exact structure:
|
|
59
|
+
Generate `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md` with this exact structure:
|
|
51
60
|
|
|
52
61
|
```markdown
|
|
53
62
|
# 📋 Plan: {NAME}
|
|
@@ -307,9 +316,9 @@ Generate `{{PLANS_DIR}}/PLAN_{NAME}.md` with this exact structure:
|
|
|
307
316
|
|
|
308
317
|
The first word after `/plan` is the plan name. Everything after is additional context.
|
|
309
318
|
|
|
310
|
-
Examples:
|
|
311
|
-
- `/plan
|
|
312
|
-
- `/plan responsive-images some context here` →
|
|
319
|
+
Examples (assuming 2 plans already exist — `PLAN_00_INITIAL.md` and `PLAN_01_AUTH.md`):
|
|
320
|
+
- `/plan PAYMENTS` → `PLAN_02_PAYMENTS.md`
|
|
321
|
+
- `/plan responsive-images some context here` → `PLAN_02_RESPONSIVE_IMAGES.md`
|
|
313
322
|
- Additional context should be incorporated into the Background section
|
|
314
323
|
|
|
315
324
|
## Update Active Plan Tracker (MANDATORY)
|
|
@@ -320,27 +329,70 @@ Examples:
|
|
|
320
329
|
mkdir -p $(dirname {{STATE_FILE}})
|
|
321
330
|
```
|
|
322
331
|
|
|
323
|
-
Write to `{{STATE_FILE}}` using this **exact format** (other agents parse
|
|
332
|
+
Write to `{{STATE_FILE}}` using this **exact format** (other agents parse the header fields):
|
|
333
|
+
|
|
324
334
|
```markdown
|
|
325
|
-
#
|
|
326
|
-
|
|
335
|
+
# Project State
|
|
336
|
+
|
|
337
|
+
**Active**: {NN}_{NAME}
|
|
338
|
+
**File**: {{PLANS_DIR}}/PLAN_{NN}_{NAME}.md
|
|
327
339
|
**Phase**: 1
|
|
328
340
|
**Status**: 🚧 In Progress
|
|
329
341
|
**Updated**: [ISO timestamp]
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
## Plans
|
|
346
|
+
|
|
347
|
+
| # | Plan | File | Status | Progress |
|
|
348
|
+
|---|------|------|--------|----------|
|
|
349
|
+
| {NN} | {NAME} | PLAN_{NN}_{NAME}.md | 🚧 In Progress | 0/{total} tasks |
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## PLAN_{NN}_{NAME}
|
|
354
|
+
|
|
355
|
+
### Phase 1: {Phase Name} 🚧
|
|
356
|
+
|
|
357
|
+
| Task | Status |
|
|
358
|
+
|------|--------|
|
|
359
|
+
| {Task 1 from plan} | ⏳ |
|
|
360
|
+
| {Task 2 from plan} | ⏳ |
|
|
361
|
+
|
|
362
|
+
### Phase 2: {Phase Name} ⏳
|
|
363
|
+
|
|
364
|
+
| Task | Status |
|
|
365
|
+
|------|--------|
|
|
366
|
+
| {Task 1 from plan} | ⏳ |
|
|
367
|
+
| {Task 2 from plan} | ⏳ |
|
|
368
|
+
|
|
369
|
+
[Continue for all phases...]
|
|
330
370
|
```
|
|
331
371
|
|
|
332
|
-
**STATE.md
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
- **
|
|
372
|
+
**If previous plans already exist in STATE.md**, read the existing STATE.md first and **append** the new plan to the Plans table and add its phase/task sections below the existing ones. Update the **Active** field to point to the new plan.
|
|
373
|
+
|
|
374
|
+
**STATE.md contract** — all agents MUST preserve these parseable header fields:
|
|
375
|
+
- **Active** — the currently active plan identifier (`{NN}_{NAME}`) or `None`
|
|
376
|
+
- **File** — path to the active plan document (must be valid, readable path)
|
|
377
|
+
- **Phase** — current phase number of the active plan (starts at 1, incremented after each phase)
|
|
336
378
|
- **Status** — one of: `🚧 In Progress`, `⏸️ Paused`, `✅ Complete`
|
|
337
379
|
- **Updated** — ISO timestamp of last update (e.g., `2025-01-15T14:30:00Z`)
|
|
338
380
|
|
|
381
|
+
**Task status symbols**:
|
|
382
|
+
- `✅` — completed
|
|
383
|
+
- `🚧` — in progress
|
|
384
|
+
- `⏳` — pending
|
|
385
|
+
|
|
386
|
+
**Phase status symbols** (appended to phase header):
|
|
387
|
+
- `✅` — all tasks complete
|
|
388
|
+
- `🚧` — currently being worked on
|
|
389
|
+
- `⏳` — not started yet
|
|
390
|
+
|
|
339
391
|
## Final Step
|
|
340
392
|
|
|
341
|
-
After writing `{{PLANS_DIR}}/PLAN_{NAME}.md`, respond with:
|
|
393
|
+
After writing `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`, respond with:
|
|
342
394
|
|
|
343
|
-
"✅ Plan document created at `{{PLANS_DIR}}/PLAN_{NAME}.md`
|
|
395
|
+
"✅ Plan document created at `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`
|
|
344
396
|
|
|
345
397
|
**Plan Summary**:
|
|
346
398
|
- **Objective**: [One sentence]
|
package/content/commands/auto.md
CHANGED
|
@@ -42,7 +42,7 @@ You are now in **AUTO MODE** — a full development loop that orchestrates the e
|
|
|
42
42
|
|
|
43
43
|
Parse `$ARGUMENTS` for:
|
|
44
44
|
- **`--full`** flag: If present, run the entire loop without stopping for confirmation — commit automatically, skip approval prompts, maximize autonomy. Remove this flag from the remaining arguments before further processing.
|
|
45
|
-
- **Plan name**: If the first remaining word matches an existing plan in `{{PLANS_DIR}}/PLAN_{NAME}.md`, treat it as a plan name to execute.
|
|
45
|
+
- **Plan name**: If the first remaining word matches an existing plan in `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`, treat it as a plan name to execute.
|
|
46
46
|
- **Feature description**: Otherwise, treat remaining arguments as a feature description for brainstorming.
|
|
47
47
|
|
|
48
48
|
Store the `--full` preference — you'll check it at every commit checkpoint and decision point.
|
|
@@ -63,16 +63,17 @@ Read `{{STATE_FILE}}`. If it contains an active plan (status is `In Progress` or
|
|
|
63
63
|
|
|
64
64
|
#### 1b. Check if Arguments Match an Existing Plan
|
|
65
65
|
|
|
66
|
-
If a plan name was provided
|
|
66
|
+
If a plan name was provided, find the matching plan file in `{{PLANS_DIR}}/` (match by name portion, e.g., `AUTH` matches `PLAN_01_AUTH.md`):
|
|
67
67
|
- Load that plan
|
|
68
|
-
- **STATE UPDATE**:
|
|
68
|
+
- **STATE UPDATE**: Update `{{STATE_FILE}}` to activate this plan. Read the existing STATE.md first to preserve the Plans table and other plan sections. Update the header fields:
|
|
69
69
|
```markdown
|
|
70
|
-
|
|
71
|
-
**File**: {{PLANS_DIR}}/PLAN_{NAME}.md
|
|
70
|
+
**Active**: {NN}_{NAME}
|
|
71
|
+
**File**: {{PLANS_DIR}}/PLAN_{NN}_{NAME}.md
|
|
72
72
|
**Phase**: 1
|
|
73
73
|
**Status**: 🚧 In Progress
|
|
74
74
|
**Updated**: [ISO timestamp]
|
|
75
75
|
```
|
|
76
|
+
- Update the plan's status in the Plans table to `🚧 In Progress`
|
|
76
77
|
- Skip to **Step 3** (branch) then **Step 4** (execute)
|
|
77
78
|
|
|
78
79
|
#### 1c. No Active Work — Enter Brainstorm
|
|
@@ -125,7 +126,7 @@ After the bootstrap agent completes, ask the user: "Bootstrap script is ready. S
|
|
|
125
126
|
- Use the Task tool to launch the commit agent (`subagent_type="commit"`) with context: "chore: bootstrap {NAME} project scaffolding"
|
|
126
127
|
|
|
127
128
|
**If existing project:**
|
|
128
|
-
Use the Task tool to launch the plan agent (`subagent_type="plan"`) with the feature name and brainstorm context. This will generate `{{PLANS_DIR}}/PLAN_{NAME}.md` and update `{{STATE_FILE}}`.
|
|
129
|
+
Use the Task tool to launch the plan agent (`subagent_type="plan"`) with the feature name and brainstorm context. This will generate `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md` and update `{{STATE_FILE}}`.
|
|
129
130
|
|
|
130
131
|
Wait for the plan agent to complete, then load and display a brief summary of the plan.
|
|
131
132
|
|
|
@@ -154,7 +155,7 @@ Report: "Working on branch: `feat/{name}`"
|
|
|
154
155
|
|
|
155
156
|
### Step 4: Execute the Plan (Phase by Phase)
|
|
156
157
|
|
|
157
|
-
Load the plan from `{{PLANS_DIR}}/PLAN_{NAME}.md` and identify all phases.
|
|
158
|
+
Load the plan from `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md` and identify all phases.
|
|
158
159
|
|
|
159
160
|
**For each phase**, repeat this cycle:
|
|
160
161
|
|
|
@@ -187,10 +188,13 @@ Present the blockers to the user and ask how to proceed. Do NOT continue until b
|
|
|
187
188
|
- The commit agent will determine the appropriate prefix (`feat:`, `fix:`, `refactor:`, `chore:`, etc.) based on the nature of the changes
|
|
188
189
|
- The commit message should reference the plan and phase (e.g., "feat: implement user authentication (PLAN_AUTH Phase 1)")
|
|
189
190
|
|
|
190
|
-
**STATE UPDATE**:
|
|
191
|
+
**STATE UPDATE**: Read and update `{{STATE_FILE}}`:
|
|
191
192
|
- Increment `**Phase**` to the next phase number
|
|
192
193
|
- Keep `**Status**` as `🚧 In Progress`
|
|
193
194
|
- Update `**Updated**` timestamp
|
|
195
|
+
- Mark completed tasks as `✅` in the per-plan task tables
|
|
196
|
+
- Update completed phase headers from `🚧` to `✅`
|
|
197
|
+
- Update the Progress column in the Plans overview table
|
|
194
198
|
|
|
195
199
|
#### 4d. Continue to Next Phase
|
|
196
200
|
|
|
@@ -252,11 +256,12 @@ Review security report:
|
|
|
252
256
|
|
|
253
257
|
### Step 6: Report
|
|
254
258
|
|
|
255
|
-
**STATE UPDATE**: Before reporting, update `{{STATE_FILE}}` to reflect final status:
|
|
256
|
-
- If all phases and validation passed:
|
|
257
|
-
- If partially complete (blockers, user stopped): keep
|
|
259
|
+
**STATE UPDATE**: Before reporting, read and update `{{STATE_FILE}}` to reflect final status:
|
|
260
|
+
- If all phases and validation passed: set `**Active**` to `None`, update plan's status to `✅ Complete` in Plans table, set `**Status**: ✅ Complete`
|
|
261
|
+
- If partially complete (blockers, user stopped): keep `**Active**` pointing to the plan, set `**Status**: ⏸️ Paused`
|
|
258
262
|
- Update `**Phase**` to the last completed phase number
|
|
259
263
|
- Update `**Updated**` timestamp
|
|
264
|
+
- Update all task statuses in the per-plan task tables to reflect final state
|
|
260
265
|
|
|
261
266
|
After everything is done (or stopped), provide a final summary:
|
|
262
267
|
|
|
@@ -332,26 +337,33 @@ Auto mode commits **early and often** using the commit agent (`subagent_type="co
|
|
|
332
337
|
`{{STATE_FILE}}` must ALWAYS reflect current progress. Update it at these points:
|
|
333
338
|
1. **Step 1b** — when activating an existing plan (set Phase 1, Status In Progress)
|
|
334
339
|
2. **Step 2** — plan agent creates it (verify it exists after plan agent completes)
|
|
335
|
-
3. **Step 4c** — after each phase commit (increment Phase, update timestamp)
|
|
340
|
+
3. **Step 4c** — after each phase commit (increment Phase, update timestamp, mark completed tasks as ✅ in task tables)
|
|
336
341
|
4. **Step 6** — final status (Complete or Paused)
|
|
337
342
|
|
|
338
|
-
**STATE.md
|
|
343
|
+
**STATE.md header fields** (always keep these parseable at the top):
|
|
339
344
|
```markdown
|
|
340
|
-
#
|
|
341
|
-
|
|
345
|
+
# Project State
|
|
346
|
+
|
|
347
|
+
**Active**: {NN}_{NAME}
|
|
348
|
+
**File**: {{PLANS_DIR}}/PLAN_{NN}_{NAME}.md
|
|
342
349
|
**Phase**: {current_phase_number}
|
|
343
350
|
**Status**: 🚧 In Progress
|
|
344
351
|
**Updated**: {ISO timestamp}
|
|
345
352
|
```
|
|
346
353
|
|
|
347
|
-
When
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
354
|
+
**When updating STATE.md**:
|
|
355
|
+
- Always READ existing STATE.md first to preserve the Plans table and per-plan task sections
|
|
356
|
+
- Update the header fields (Active, File, Phase, Status, Updated)
|
|
357
|
+
- Update the active plan's status in the Plans overview table
|
|
358
|
+
- Update task statuses (`⏳` → `🚧` → `✅`) in the per-plan task tables
|
|
359
|
+
- Update phase status emoji in phase headers (`⏳` → `🚧` → `✅`)
|
|
360
|
+
- Update the Progress column in the Plans table (e.g., `5/18 tasks`)
|
|
361
|
+
|
|
362
|
+
**When all work on a plan is done**:
|
|
363
|
+
- Set `**Active**` to `None` (or the next plan if one exists)
|
|
364
|
+
- Update the plan's status in the Plans table to `✅ Complete`
|
|
365
|
+
- Mark all tasks as `✅` in the plan's task tables
|
|
366
|
+
- Set `**Status**` to `✅ Complete`
|
|
355
367
|
|
|
356
368
|
If `/auto` is interrupted or paused, ensure STATE.md reflects where it stopped so the next `/auto` run can resume correctly. Plan document checkboxes are updated by the implement/parallelize agents.
|
|
357
369
|
|
|
@@ -26,7 +26,7 @@ $ARGUMENTS
|
|
|
26
26
|
## Generating Plan & Bootstrap Script
|
|
27
27
|
|
|
28
28
|
Launching the bootstrap agent to analyze our brainstorming conversation and generate:
|
|
29
|
-
1. `{{PLANS_DIR}}/
|
|
29
|
+
1. `{{PLANS_DIR}}/PLAN_00_INITIAL.md` — the first plan is always numbered `00` for new projects
|
|
30
30
|
2. `./bootstrap.sh` (executable setup script)
|
|
31
31
|
|
|
32
32
|
The agent will:
|
|
@@ -31,7 +31,7 @@ Launching the **implement agent** which will work independently in a separate co
|
|
|
31
31
|
|
|
32
32
|
### What the Agent Will Do
|
|
33
33
|
|
|
34
|
-
- ✅ Load `{{PLANS_DIR}}/PLAN_{NAME}.md`
|
|
34
|
+
- ✅ Load `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`
|
|
35
35
|
- ✅ Parse all phases, tasks, and dependencies
|
|
36
36
|
- ✅ Create comprehensive task tracking (TodoWrite)
|
|
37
37
|
- ✅ Execute tasks systematically with validation
|
|
@@ -55,7 +55,7 @@ I'll work through this plan collaboratively with you:
|
|
|
55
55
|
|
|
56
56
|
Now let me load the plan and we'll get started together.
|
|
57
57
|
|
|
58
|
-
Use Read to load `{{PLANS_DIR}}/PLAN_{NAME}.md`, display a comprehensive summary with:
|
|
58
|
+
Use Read to load `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`, display a comprehensive summary with:
|
|
59
59
|
- Objective
|
|
60
60
|
- Phases and task counts
|
|
61
61
|
- Key files involved
|
package/content/commands/plan.md
CHANGED
|
@@ -25,7 +25,7 @@ $ARGUMENTS
|
|
|
25
25
|
|
|
26
26
|
## Generating Plan
|
|
27
27
|
|
|
28
|
-
Launching the plan agent to analyze our conversation and generate `{{PLANS_DIR}}/PLAN_{NAME}.md`...
|
|
28
|
+
Launching the plan agent to analyze our conversation and generate `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`...
|
|
29
29
|
|
|
30
30
|
The agent will:
|
|
31
31
|
- ✅ Summarize key findings from our discussion
|
package/package.json
CHANGED