@sienklogic/plan-build-run 2.10.0 → 2.12.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/CHANGELOG.md +51 -0
- package/package.json +1 -1
- package/plugins/copilot-pbr/agents/codebase-mapper.agent.md +42 -0
- package/plugins/copilot-pbr/agents/debugger.agent.md +4 -1
- package/plugins/copilot-pbr/agents/executor.agent.md +31 -1
- package/plugins/copilot-pbr/agents/integration-checker.agent.md +33 -2
- package/plugins/copilot-pbr/agents/planner.agent.md +58 -1
- package/plugins/copilot-pbr/agents/researcher.agent.md +23 -0
- package/plugins/copilot-pbr/agents/synthesizer.agent.md +24 -0
- package/plugins/copilot-pbr/agents/verifier.agent.md +35 -1
- package/plugins/copilot-pbr/plugin.json +1 -1
- package/plugins/copilot-pbr/references/agent-contracts.md +297 -0
- package/plugins/copilot-pbr/references/ui-formatting.md +38 -56
- package/plugins/copilot-pbr/skills/begin/SKILL.md +30 -7
- package/plugins/copilot-pbr/skills/build/SKILL.md +28 -31
- package/plugins/copilot-pbr/skills/config/SKILL.md +9 -12
- package/plugins/copilot-pbr/skills/continue/SKILL.md +6 -6
- package/plugins/copilot-pbr/skills/dashboard/SKILL.md +3 -3
- package/plugins/copilot-pbr/skills/debug/SKILL.md +23 -26
- package/plugins/copilot-pbr/skills/discuss/SKILL.md +20 -10
- package/plugins/copilot-pbr/skills/do/SKILL.md +3 -3
- package/plugins/copilot-pbr/skills/explore/SKILL.md +11 -14
- package/plugins/copilot-pbr/skills/health/SKILL.md +75 -19
- package/plugins/copilot-pbr/skills/help/SKILL.md +6 -6
- package/plugins/copilot-pbr/skills/import/SKILL.md +22 -18
- package/plugins/copilot-pbr/skills/milestone/SKILL.md +90 -48
- package/plugins/copilot-pbr/skills/note/SKILL.md +3 -3
- package/plugins/copilot-pbr/skills/pause/SKILL.md +11 -10
- package/plugins/copilot-pbr/skills/plan/SKILL.md +22 -9
- package/plugins/copilot-pbr/skills/plan/templates/planner-prompt.md.tmpl +1 -1
- package/plugins/copilot-pbr/skills/quick/SKILL.md +9 -12
- package/plugins/copilot-pbr/skills/resume/SKILL.md +9 -9
- package/plugins/copilot-pbr/skills/review/SKILL.md +17 -12
- package/plugins/copilot-pbr/skills/scan/SKILL.md +9 -11
- package/plugins/copilot-pbr/skills/setup/SKILL.md +31 -8
- package/plugins/copilot-pbr/skills/shared/error-reporting.md +2 -1
- package/plugins/copilot-pbr/skills/shared/progress-display.md +0 -1
- package/plugins/copilot-pbr/skills/shared/universal-anti-patterns.md +10 -6
- package/plugins/copilot-pbr/skills/status/SKILL.md +3 -3
- package/plugins/copilot-pbr/skills/statusline/SKILL.md +12 -8
- package/plugins/copilot-pbr/skills/todo/SKILL.md +51 -28
- package/plugins/cursor-pbr/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor-pbr/agents/codebase-mapper.md +42 -0
- package/plugins/cursor-pbr/agents/debugger.md +4 -1
- package/plugins/cursor-pbr/agents/executor.md +31 -1
- package/plugins/cursor-pbr/agents/integration-checker.md +33 -2
- package/plugins/cursor-pbr/agents/planner.md +58 -1
- package/plugins/cursor-pbr/agents/researcher.md +23 -0
- package/plugins/cursor-pbr/agents/synthesizer.md +24 -0
- package/plugins/cursor-pbr/agents/verifier.md +35 -1
- package/plugins/cursor-pbr/references/agent-contracts.md +297 -0
- package/plugins/cursor-pbr/references/ui-formatting.md +38 -56
- package/plugins/cursor-pbr/skills/begin/SKILL.md +30 -7
- package/plugins/cursor-pbr/skills/build/SKILL.md +28 -31
- package/plugins/cursor-pbr/skills/config/SKILL.md +9 -10
- package/plugins/cursor-pbr/skills/continue/SKILL.md +6 -6
- package/plugins/cursor-pbr/skills/dashboard/SKILL.md +3 -3
- package/plugins/cursor-pbr/skills/debug/SKILL.md +23 -23
- package/plugins/cursor-pbr/skills/discuss/SKILL.md +20 -10
- package/plugins/cursor-pbr/skills/do/SKILL.md +3 -3
- package/plugins/cursor-pbr/skills/explore/SKILL.md +11 -12
- package/plugins/cursor-pbr/skills/health/SKILL.md +75 -19
- package/plugins/cursor-pbr/skills/help/SKILL.md +6 -6
- package/plugins/cursor-pbr/skills/import/SKILL.md +22 -16
- package/plugins/cursor-pbr/skills/milestone/SKILL.md +90 -48
- package/plugins/cursor-pbr/skills/note/SKILL.md +3 -3
- package/plugins/cursor-pbr/skills/pause/SKILL.md +11 -9
- package/plugins/cursor-pbr/skills/plan/SKILL.md +22 -9
- package/plugins/cursor-pbr/skills/plan/templates/planner-prompt.md.tmpl +1 -1
- package/plugins/cursor-pbr/skills/quick/SKILL.md +9 -12
- package/plugins/cursor-pbr/skills/resume/SKILL.md +9 -9
- package/plugins/cursor-pbr/skills/review/SKILL.md +17 -12
- package/plugins/cursor-pbr/skills/scan/SKILL.md +9 -10
- package/plugins/cursor-pbr/skills/setup/SKILL.md +31 -8
- package/plugins/cursor-pbr/skills/shared/error-reporting.md +2 -1
- package/plugins/cursor-pbr/skills/shared/progress-display.md +0 -1
- package/plugins/cursor-pbr/skills/shared/universal-anti-patterns.md +10 -6
- package/plugins/cursor-pbr/skills/status/SKILL.md +3 -3
- package/plugins/cursor-pbr/skills/statusline/SKILL.md +12 -8
- package/plugins/cursor-pbr/skills/todo/SKILL.md +51 -28
- package/plugins/pbr/.claude-plugin/plugin.json +1 -1
- package/plugins/pbr/agents/codebase-mapper.md +42 -0
- package/plugins/pbr/agents/debugger.md +4 -1
- package/plugins/pbr/agents/executor.md +31 -1
- package/plugins/pbr/agents/integration-checker.md +34 -2
- package/plugins/pbr/agents/planner.md +58 -1
- package/plugins/pbr/agents/researcher.md +23 -0
- package/plugins/pbr/agents/synthesizer.md +24 -0
- package/plugins/pbr/agents/verifier.md +36 -1
- package/plugins/pbr/references/agent-contracts.md +297 -0
- package/plugins/pbr/references/ui-formatting.md +37 -54
- package/plugins/pbr/scripts/check-roadmap-sync.js +9 -1
- package/plugins/pbr/scripts/check-skill-workflow.js +11 -0
- package/plugins/pbr/scripts/check-state-sync.js +58 -0
- package/plugins/pbr/scripts/check-subagent-output.js +75 -6
- package/plugins/pbr/scripts/log-tool-failure.js +1 -1
- package/plugins/pbr/scripts/progress-tracker.js +14 -0
- package/plugins/pbr/scripts/track-context-budget.js +10 -1
- package/plugins/pbr/scripts/validate-task.js +81 -17
- package/plugins/pbr/skills/begin/SKILL.md +36 -11
- package/plugins/pbr/skills/build/SKILL.md +37 -25
- package/plugins/pbr/skills/config/SKILL.md +12 -10
- package/plugins/pbr/skills/continue/SKILL.md +11 -9
- package/plugins/pbr/skills/dashboard/SKILL.md +3 -3
- package/plugins/pbr/skills/debug/SKILL.md +29 -23
- package/plugins/pbr/skills/discuss/SKILL.md +20 -10
- package/plugins/pbr/skills/do/SKILL.md +3 -3
- package/plugins/pbr/skills/explore/SKILL.md +14 -12
- package/plugins/pbr/skills/health/SKILL.md +76 -20
- package/plugins/pbr/skills/help/SKILL.md +8 -6
- package/plugins/pbr/skills/import/SKILL.md +25 -16
- package/plugins/pbr/skills/milestone/SKILL.md +88 -45
- package/plugins/pbr/skills/note/SKILL.md +3 -3
- package/plugins/pbr/skills/pause/SKILL.md +13 -9
- package/plugins/pbr/skills/plan/SKILL.md +28 -13
- package/plugins/pbr/skills/plan/templates/planner-prompt.md.tmpl +1 -1
- package/plugins/pbr/skills/quick/SKILL.md +12 -10
- package/plugins/pbr/skills/resume/SKILL.md +11 -9
- package/plugins/pbr/skills/review/SKILL.md +35 -24
- package/plugins/pbr/skills/scan/SKILL.md +12 -10
- package/plugins/pbr/skills/setup/SKILL.md +30 -7
- package/plugins/pbr/skills/shared/error-reporting.md +2 -0
- package/plugins/pbr/skills/shared/universal-anti-patterns.md +10 -6
- package/plugins/pbr/skills/status/SKILL.md +8 -6
- package/plugins/pbr/skills/statusline/SKILL.md +12 -8
- package/plugins/pbr/skills/todo/SKILL.md +51 -28
|
@@ -22,9 +22,9 @@ Additionally for this skill:
|
|
|
22
22
|
**Before ANY tool calls**, display this banner:
|
|
23
23
|
|
|
24
24
|
```
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
26
|
+
║ PLAN-BUILD-RUN ► BUILDING PHASE {N} ║
|
|
27
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Where `{N}` is the phase number from `$ARGUMENTS`. Then proceed to Step 1.
|
|
@@ -63,7 +63,7 @@ Reference: `skills/shared/config-loading.md` for the tooling shortcut and config
|
|
|
63
63
|
1. Parse `$ARGUMENTS` for phase number and flags
|
|
64
64
|
2. Read `.planning/config.json` for parallelization, model, and gate settings (see config-loading.md for field reference)
|
|
65
65
|
3. Resolve depth profile: run `node ${PLUGIN_ROOT}/scripts/pbr-tools.js config resolve-depth` to get the effective feature/gate settings for the current depth. Store the result for use in later gating decisions.
|
|
66
|
-
4. Write `.planning/.active-skill` with the content `build` (registers with workflow enforcement hook)
|
|
66
|
+
4. **CRITICAL: Write .active-skill NOW.** Write `.planning/.active-skill` with the content `build` (registers with workflow enforcement hook)
|
|
67
67
|
5. Validate:
|
|
68
68
|
- Phase directory exists at `.planning/phases/{NN}-{slug}/`
|
|
69
69
|
- PLAN.md files exist in the directory
|
|
@@ -196,6 +196,8 @@ Validate wave consistency:
|
|
|
196
196
|
|
|
197
197
|
### Step 5b: Write Checkpoint Manifest (inline)
|
|
198
198
|
|
|
199
|
+
**CRITICAL: Write .checkpoint-manifest.json NOW before entering the wave loop.**
|
|
200
|
+
|
|
199
201
|
Before entering the wave loop, write `.planning/phases/{NN}-{slug}/.checkpoint-manifest.json`:
|
|
200
202
|
|
|
201
203
|
```json
|
|
@@ -691,6 +693,8 @@ If triggered:
|
|
|
691
693
|
```
|
|
692
694
|
4. Do NOT block on this — use `run_in_background: true` and continue to Step 8a. Report completion in Step 8f if it finishes in time.
|
|
693
695
|
|
|
696
|
+
**CRITICAL: Update ROADMAP.md progress table NOW. Do NOT skip this step.**
|
|
697
|
+
|
|
694
698
|
**8a. Update ROADMAP.md Progress table** (REQUIRED — do this BEFORE updating STATE.md):
|
|
695
699
|
|
|
696
700
|
**Tooling shortcut**: Use the CLI for atomic ROADMAP.md table updates instead of manual editing:
|
|
@@ -707,6 +711,8 @@ These return `{ success, old_status, new_status }` or `{ success, old_plans, new
|
|
|
707
711
|
5. Update the `Status` column to the final_status determined in Step 8-pre
|
|
708
712
|
6. Save the file — do NOT skip this step
|
|
709
713
|
|
|
714
|
+
**CRITICAL: Update STATE.md NOW with phase completion status. Do NOT skip this step.**
|
|
715
|
+
|
|
710
716
|
**8b. Update STATE.md:**
|
|
711
717
|
- Phase status: {final_status from Step 8-pre}
|
|
712
718
|
- Plan completion count
|
|
@@ -801,18 +807,18 @@ Then present the appropriate branded banner:
|
|
|
801
807
|
|
|
802
808
|
**If `passed` + more phases:**
|
|
803
809
|
```
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
810
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
811
|
+
║ PLAN-BUILD-RUN ► PHASE {N} COMPLETE ✓ ║
|
|
812
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
807
813
|
|
|
808
814
|
**Phase {N}: {Name}**
|
|
809
815
|
|
|
810
816
|
{X} plans executed
|
|
811
817
|
Goal verified ✓
|
|
812
818
|
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
819
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
820
|
+
║ ▶ NEXT UP ║
|
|
821
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
816
822
|
|
|
817
823
|
**Phase {N+1}: {Name}** — {Goal from ROADMAP.md}
|
|
818
824
|
|
|
@@ -820,28 +826,25 @@ Goal verified ✓
|
|
|
820
826
|
|
|
821
827
|
<sub>`/clear` first → fresh context window</sub>
|
|
822
828
|
|
|
823
|
-
───────────────────────────────────────────────────────────────
|
|
824
|
-
|
|
825
829
|
**Also available:**
|
|
826
830
|
- `/pbr:review {N}` — manual acceptance testing before continuing
|
|
827
831
|
- `/pbr:discuss {N+1}` — talk through the next phase before planning
|
|
828
832
|
- `/pbr:status` — see full project status
|
|
829
833
|
|
|
830
|
-
───────────────────────────────────────────────────────────────
|
|
831
834
|
```
|
|
832
835
|
|
|
833
836
|
**If `passed` + last phase:**
|
|
834
837
|
```
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
839
|
+
║ PLAN-BUILD-RUN ► MILESTONE COMPLETE 🎉 ║
|
|
840
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
838
841
|
|
|
839
842
|
{N} phases completed
|
|
840
843
|
All phase goals verified ✓
|
|
841
844
|
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
846
|
+
║ ▶ NEXT UP ║
|
|
847
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
845
848
|
|
|
846
849
|
**Audit milestone** — verify requirements, cross-phase integration, E2E flows
|
|
847
850
|
|
|
@@ -849,20 +852,17 @@ All phase goals verified ✓
|
|
|
849
852
|
|
|
850
853
|
<sub>`/clear` first → fresh context window</sub>
|
|
851
854
|
|
|
852
|
-
───────────────────────────────────────────────────────────────
|
|
853
|
-
|
|
854
855
|
**Also available:**
|
|
855
856
|
- `/pbr:review` — manual acceptance testing
|
|
856
857
|
- `/pbr:milestone complete` — archive milestone after audit passes
|
|
857
858
|
|
|
858
|
-
───────────────────────────────────────────────────────────────
|
|
859
859
|
```
|
|
860
860
|
|
|
861
861
|
**If `gaps_found`:**
|
|
862
862
|
```
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
863
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
864
|
+
║ PLAN-BUILD-RUN ► PHASE {N} GAPS FOUND ⚠ ║
|
|
865
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
866
866
|
|
|
867
867
|
**Phase {N}: {Name}**
|
|
868
868
|
|
|
@@ -873,9 +873,9 @@ Report: .planning/phases/{phase_dir}/VERIFICATION.md
|
|
|
873
873
|
|
|
874
874
|
{Extract gap summaries from VERIFICATION.md}
|
|
875
875
|
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
876
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
877
|
+
║ ▶ NEXT UP ║
|
|
878
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
879
879
|
|
|
880
880
|
**Plan gap closure** — create additional plans to complete the phase
|
|
881
881
|
|
|
@@ -883,13 +883,10 @@ Report: .planning/phases/{phase_dir}/VERIFICATION.md
|
|
|
883
883
|
|
|
884
884
|
<sub>`/clear` first → fresh context window</sub>
|
|
885
885
|
|
|
886
|
-
───────────────────────────────────────────────────────────────
|
|
887
|
-
|
|
888
886
|
**Also available:**
|
|
889
887
|
- `cat .planning/phases/{phase_dir}/VERIFICATION.md` — see full report
|
|
890
888
|
- `/pbr:review {N}` — manual testing before planning
|
|
891
889
|
|
|
892
|
-
───────────────────────────────────────────────────────────────
|
|
893
890
|
```
|
|
894
891
|
|
|
895
892
|
**8g. Display USER-SETUP.md (conditional):**
|
|
@@ -8,9 +8,9 @@ description: "Configure settings: depth, model profiles, features, git, and gate
|
|
|
8
8
|
**Before ANY tool calls**, display this banner:
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
12
|
+
║ PLAN-BUILD-RUN ► CONFIGURATION ║
|
|
13
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Then proceed to Step 1.
|
|
@@ -184,17 +184,17 @@ If user types something else (freeform): interpret as a direct setting command a
|
|
|
184
184
|
|
|
185
185
|
Update config.json with new values. Show what changed with a branded completion:
|
|
186
186
|
```
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
188
|
+
║ PLAN-BUILD-RUN ► CONFIG UPDATED ✓ ║
|
|
189
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
190
190
|
|
|
191
191
|
Updated:
|
|
192
192
|
depth: standard → quick
|
|
193
193
|
models.executor: inherit → sonnet
|
|
194
194
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
196
|
+
║ ▶ NEXT UP ║
|
|
197
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
198
198
|
|
|
199
199
|
**Continue your workflow** — settings saved
|
|
200
200
|
|
|
@@ -202,13 +202,10 @@ Updated:
|
|
|
202
202
|
|
|
203
203
|
<sub>`/clear` first → fresh context window</sub>
|
|
204
204
|
|
|
205
|
-
───────────────────────────────────────────────────────────────
|
|
206
|
-
|
|
207
205
|
**Also available:**
|
|
208
206
|
- `/pbr:continue` — execute next logical step
|
|
209
207
|
- `/pbr:config` — change more settings
|
|
210
208
|
|
|
211
|
-
───────────────────────────────────────────────────────────────
|
|
212
209
|
```
|
|
213
210
|
|
|
214
211
|
## Config Schema
|
|
@@ -16,9 +16,9 @@ This skill runs **inline** and may delegate to other skills via agent invocation
|
|
|
16
16
|
**Before ANY tool calls**, display this banner:
|
|
17
17
|
|
|
18
18
|
```
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
20
|
+
║ PLAN-BUILD-RUN ► NEXT STEP ║
|
|
21
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Then proceed to Step 1.
|
|
@@ -115,9 +115,9 @@ Where `{N}` is the current phase number determined from STATE.md in Step 1.
|
|
|
115
115
|
|
|
116
116
|
After execution completes, display a branded completion:
|
|
117
117
|
```
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
119
|
+
║ PLAN-BUILD-RUN ► STEP COMPLETE ║
|
|
120
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
121
121
|
|
|
122
122
|
Completed: {what was done}
|
|
123
123
|
|
|
@@ -8,9 +8,9 @@ description: "Launch the PBR web dashboard for the current project."
|
|
|
8
8
|
**Before ANY tool calls**, display this banner:
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
12
|
+
║ PLAN-BUILD-RUN ► DASHBOARD ║
|
|
13
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Then proceed to Step 1.
|
|
@@ -8,9 +8,9 @@ description: "Systematic debugging with hypothesis testing. Persistent across se
|
|
|
8
8
|
**Before ANY tool calls**, display this banner:
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
12
|
+
║ PLAN-BUILD-RUN ► DEBUGGING ║
|
|
13
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Then proceed to Step 1.
|
|
@@ -64,9 +64,11 @@ Scan `.planning/debug/` for existing debug files:
|
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
Read each file's frontmatter to check status:
|
|
67
|
-
- `status:
|
|
68
|
-
- `status:
|
|
69
|
-
- `status:
|
|
67
|
+
- `status: gathering` — collecting symptoms from user
|
|
68
|
+
- `status: investigating` — testing hypotheses
|
|
69
|
+
- `status: fixing` — applying fix
|
|
70
|
+
- `status: verifying` — confirming fix works
|
|
71
|
+
- `status: resolved` — session complete
|
|
70
72
|
|
|
71
73
|
**If active sessions found:**
|
|
72
74
|
|
|
@@ -125,7 +127,7 @@ Create `.planning/debug/{NNN}-{slug}.md`:
|
|
|
125
127
|
---
|
|
126
128
|
id: "{NNN}"
|
|
127
129
|
title: "{issue title}"
|
|
128
|
-
status:
|
|
130
|
+
status: gathering
|
|
129
131
|
created: "{ISO date}"
|
|
130
132
|
updated: "{ISO date}"
|
|
131
133
|
severity: "{critical|high|medium|low}"
|
|
@@ -229,18 +231,18 @@ Actions:
|
|
|
229
231
|
3. Report to user with branded output:
|
|
230
232
|
|
|
231
233
|
```
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
235
|
+
║ PLAN-BUILD-RUN ► BUG RESOLVED ✓ ║
|
|
236
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
235
237
|
|
|
236
238
|
**Session #{NNN}:** {title}
|
|
237
239
|
**Root cause:** {cause}
|
|
238
240
|
**Fix:** {description}
|
|
239
241
|
**Commit:** {hash}
|
|
240
242
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
243
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
244
|
+
║ ▶ NEXT UP ║
|
|
245
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
244
246
|
|
|
245
247
|
**Continue your workflow** — the bug is fixed
|
|
246
248
|
|
|
@@ -248,13 +250,10 @@ Actions:
|
|
|
248
250
|
|
|
249
251
|
<sub>`/clear` first → fresh context window</sub>
|
|
250
252
|
|
|
251
|
-
───────────────────────────────────────────────────────────────
|
|
252
|
-
|
|
253
253
|
**Also available:**
|
|
254
254
|
- `/pbr:continue` — execute next logical step
|
|
255
255
|
- `/pbr:review {N}` — verify the current phase
|
|
256
256
|
|
|
257
|
-
───────────────────────────────────────────────────────────────
|
|
258
257
|
```
|
|
259
258
|
|
|
260
259
|
#### ROOT CAUSE FOUND (no fix)
|
|
@@ -274,9 +273,10 @@ Actions:
|
|
|
274
273
|
2. Suggest next steps to user:
|
|
275
274
|
|
|
276
275
|
```
|
|
277
|
-
───────────────────────────────────────────────────────────────
|
|
278
276
|
|
|
279
|
-
|
|
277
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
278
|
+
║ ▶ NEXT UP ║
|
|
279
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
280
280
|
|
|
281
281
|
**Apply the fix** — root cause identified, fix needed
|
|
282
282
|
|
|
@@ -284,13 +284,10 @@ Actions:
|
|
|
284
284
|
|
|
285
285
|
<sub>`/clear` first → fresh context window</sub>
|
|
286
286
|
|
|
287
|
-
───────────────────────────────────────────────────────────────
|
|
288
|
-
|
|
289
287
|
**Also available:**
|
|
290
288
|
- `/pbr:plan` — for complex fixes that need planning
|
|
291
289
|
- `/pbr:status` — see project status
|
|
292
290
|
|
|
293
|
-
───────────────────────────────────────────────────────────────
|
|
294
291
|
```
|
|
295
292
|
|
|
296
293
|
#### CHECKPOINT
|
|
@@ -400,7 +397,7 @@ Use AskUserQuestion:
|
|
|
400
397
|
- label: "Escalate" description: "Save context for manual debugging"
|
|
401
398
|
|
|
402
399
|
- If "Extend": double the limit and continue
|
|
403
|
-
- If "Wrap up": update debug file status
|
|
400
|
+
- If "Wrap up": update debug file `status: resolved` with `resolution: abandoned`, record all findings, suggest next steps
|
|
404
401
|
- If "Escalate": write a detailed handoff document to the debug file with all hypotheses, evidence, and suggested manual investigation steps
|
|
405
402
|
|
|
406
403
|
---
|
|
@@ -410,15 +407,15 @@ Use AskUserQuestion:
|
|
|
410
407
|
### Lifecycle
|
|
411
408
|
|
|
412
409
|
```
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
410
|
+
gathering → investigating → fixing → verifying → resolved
|
|
411
|
+
(any non-resolved) → resolved (with resolution: abandoned, if 7+ days stale)
|
|
412
|
+
(any non-resolved) → (same) (resumed after pause)
|
|
416
413
|
```
|
|
417
414
|
|
|
418
415
|
### Staleness Detection
|
|
419
416
|
|
|
420
417
|
When scanning for active sessions, check the `updated` date. If more than 7 days old:
|
|
421
|
-
-
|
|
418
|
+
- Set `status: resolved` with `resolution: abandoned` in frontmatter
|
|
422
419
|
- Still offer to resume, but warn: "This session is {N} days old. Context may have changed."
|
|
423
420
|
|
|
424
421
|
### Cleanup
|
|
@@ -8,9 +8,9 @@ description: "Talk through a phase before planning. Identifies gray areas and ca
|
|
|
8
8
|
**Before ANY tool calls**, display this banner:
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
12
|
+
║ PLAN-BUILD-RUN ► DISCUSSION ║
|
|
13
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Then proceed to Step 1.
|
|
@@ -149,17 +149,23 @@ If more than 3 concrete options exist for a gray area, present only the top 3 pl
|
|
|
149
149
|
|
|
150
150
|
For each gray area where the user made a decision (not "Let Claude decide"), ask **4 follow-up questions** to fully capture their intent.
|
|
151
151
|
|
|
152
|
+
**CRITICAL — STOP: Do NOT skip ANY of the 4 follow-up areas below. All 4 MUST be asked for each gray area where the user made a decision.**
|
|
153
|
+
|
|
152
154
|
**Follow-up question types:**
|
|
153
155
|
|
|
156
|
+
**CRITICAL — STOP: Do NOT skip this follow-up area.**
|
|
154
157
|
1. **Scope boundary**: "Should {feature} also handle {edge case}?"
|
|
155
158
|
Use the **yes-no** pattern — this is a binary decision.
|
|
156
159
|
|
|
160
|
+
**CRITICAL — STOP: Do NOT skip this follow-up area.**
|
|
157
161
|
2. **Quality level**: "How polished should this be?"
|
|
158
162
|
Do NOT use AskUserQuestion — this is freeform. Let the user describe their quality expectations in their own words.
|
|
159
163
|
|
|
164
|
+
**CRITICAL — STOP: Do NOT skip this follow-up area.**
|
|
160
165
|
3. **Integration**: "How should this interact with {existing component}?"
|
|
161
166
|
Do NOT use AskUserQuestion — this is freeform. The answer depends on the specific component and context.
|
|
162
167
|
|
|
168
|
+
**CRITICAL — STOP: Do NOT skip this follow-up area.**
|
|
163
169
|
4. **Future-proofing**: "Should we design this to support {potential future need}, or keep it simple?"
|
|
164
170
|
Use the **yes-no** pattern:
|
|
165
171
|
question: "Design {feature} to support {future need}, or keep it simple for now?"
|
|
@@ -173,6 +179,8 @@ For each gray area where the user made a decision (not "Let Claude decide"), ask
|
|
|
173
179
|
- If the user gives a short answer, capture it as-is
|
|
174
180
|
- If the user says "you decide" on a follow-up, move that specific sub-decision to Claude's Discretion
|
|
175
181
|
|
|
182
|
+
**Completion check:** After all follow-up questions for all gray areas, verify that all 4 follow-up areas produced output for each decided gray area. If any area was missed, go back and ask it before proceeding to Step 6.
|
|
183
|
+
|
|
176
184
|
### Step 6: Capture Deferred Ideas
|
|
177
185
|
|
|
178
186
|
During the conversation, the user may mention ideas they want but not in this phase. Track these separately:
|
|
@@ -217,17 +225,19 @@ This creates a pointer so `/pbr:resume` and `progress-tracker.js` know that phas
|
|
|
217
225
|
After writing CONTEXT.md, display branded output:
|
|
218
226
|
|
|
219
227
|
```
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
228
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
229
|
+
║ PLAN-BUILD-RUN ► DISCUSSION CAPTURED ✓ ║
|
|
230
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
223
231
|
|
|
224
232
|
**Phase {N}: {name}**
|
|
225
233
|
|
|
226
234
|
Decisions: {count} locked, {count} deferred, {count} discretion
|
|
227
235
|
|
|
228
|
-
───────────────────────────────────────────────────────────────
|
|
229
236
|
|
|
230
|
-
|
|
237
|
+
|
|
238
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
239
|
+
║ ▶ NEXT UP ║
|
|
240
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
231
241
|
|
|
232
242
|
**Plan this phase** — your decisions will be honored
|
|
233
243
|
|
|
@@ -235,13 +245,13 @@ Decisions: {count} locked, {count} deferred, {count} discretion
|
|
|
235
245
|
|
|
236
246
|
<sub>`/clear` first → fresh context window</sub>
|
|
237
247
|
|
|
238
|
-
|
|
248
|
+
|
|
239
249
|
|
|
240
250
|
**Also available:**
|
|
241
251
|
- `/pbr:status` — see project status
|
|
242
252
|
- `/pbr:explore` — explore ideas further
|
|
243
253
|
|
|
244
|
-
|
|
254
|
+
|
|
245
255
|
```
|
|
246
256
|
|
|
247
257
|
---
|
|
@@ -12,9 +12,9 @@ You are running the **do** skill. Your job is to analyze freeform text from the
|
|
|
12
12
|
**Before ANY tool calls**, display this banner:
|
|
13
13
|
|
|
14
14
|
```
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
16
|
+
║ PLAN-BUILD-RUN ► ROUTING ║
|
|
17
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Then proceed to Step 1.
|
|
@@ -8,9 +8,9 @@ description: "Explore ideas, think through approaches, and route insights to the
|
|
|
8
8
|
**Before ANY tool calls**, display this banner:
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
12
|
+
║ PLAN-BUILD-RUN ► EXPLORING ║
|
|
13
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Then proceed to Step 1.
|
|
@@ -174,7 +174,7 @@ Suggest specific outputs with reasoning. Present no more than 4 suggestions —
|
|
|
174
174
|
| Phase decision | Clarifies an existing phase | Write/append to phase `CONTEXT.md` |
|
|
175
175
|
| Research question | Needs deeper investigation | `.planning/research/questions.md` |
|
|
176
176
|
| New phase | Big enough for its own phase | Append to `ROADMAP.md` |
|
|
177
|
-
| Note | Not actionable yet, worth remembering | `.planning/notes/{slug}.md` |
|
|
177
|
+
| Note | Not actionable yet, worth remembering | `.planning/notes/{YYYY-MM-DD}-{slug}.md` |
|
|
178
178
|
| Quick capture | One-liner idea, no context needed | Suggest `/pbr:note <text>` to the user |
|
|
179
179
|
| Seed | Idea with trigger conditions | `.planning/seeds/SEED-{NNN}-{slug}.md` |
|
|
180
180
|
|
|
@@ -214,15 +214,15 @@ Create only the approved artifacts. A single explore session can produce multipl
|
|
|
214
214
|
After creating artifacts (or if user chose "Skip"), display:
|
|
215
215
|
|
|
216
216
|
```
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
218
|
+
║ PLAN-BUILD-RUN ► EXPLORATION CAPTURED ✓ ║
|
|
219
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
220
220
|
|
|
221
221
|
{count} artifacts created: {list of artifact types}
|
|
222
222
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
224
|
+
║ ▶ NEXT UP ║
|
|
225
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
226
226
|
|
|
227
227
|
**{Primary route based on what was created}**
|
|
228
228
|
|
|
@@ -238,14 +238,11 @@ After creating artifacts (or if user chose "Skip"), display:
|
|
|
238
238
|
|
|
239
239
|
<sub>`/clear` first → fresh context window</sub>
|
|
240
240
|
|
|
241
|
-
───────────────────────────────────────────────────────────────
|
|
242
|
-
|
|
243
241
|
**Also available:**
|
|
244
242
|
- `/pbr:status` — see project status
|
|
245
243
|
- `/pbr:continue` — execute next logical step
|
|
246
244
|
- `/pbr:milestone new` — start a new milestone with new phases
|
|
247
245
|
|
|
248
|
-
───────────────────────────────────────────────────────────────
|
|
249
246
|
```
|
|
250
247
|
|
|
251
248
|
---
|
|
@@ -288,7 +285,7 @@ Append to `.planning/ROADMAP.md` following the existing phase format. Assign the
|
|
|
288
285
|
|
|
289
286
|
### Note
|
|
290
287
|
|
|
291
|
-
Write to `.planning/notes/{
|
|
288
|
+
Write to `.planning/notes/{YYYY-MM-DD}-{slug}.md` where the date prefix is today's date in ISO format. Scan `.planning/notes/` to avoid filename collisions — if a file with the same date and slug exists, append `-2` (or increment).
|
|
292
289
|
|
|
293
290
|
```markdown
|
|
294
291
|
---
|