@sienklogic/plan-build-run 2.9.1 → 2.11.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.
Files changed (128) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/package.json +1 -1
  3. package/plugins/copilot-pbr/agents/codebase-mapper.agent.md +42 -0
  4. package/plugins/copilot-pbr/agents/debugger.agent.md +4 -1
  5. package/plugins/copilot-pbr/agents/executor.agent.md +31 -1
  6. package/plugins/copilot-pbr/agents/integration-checker.agent.md +33 -2
  7. package/plugins/copilot-pbr/agents/planner.agent.md +58 -1
  8. package/plugins/copilot-pbr/agents/researcher.agent.md +23 -0
  9. package/plugins/copilot-pbr/agents/synthesizer.agent.md +24 -0
  10. package/plugins/copilot-pbr/agents/verifier.agent.md +35 -1
  11. package/plugins/copilot-pbr/plugin.json +1 -1
  12. package/plugins/copilot-pbr/references/agent-contracts.md +297 -0
  13. package/plugins/copilot-pbr/references/pbr-rules.md +1 -0
  14. package/plugins/copilot-pbr/references/pbr-tools-cli.md +285 -0
  15. package/plugins/copilot-pbr/references/ui-formatting.md +38 -56
  16. package/plugins/copilot-pbr/skills/begin/SKILL.md +30 -7
  17. package/plugins/copilot-pbr/skills/build/SKILL.md +28 -31
  18. package/plugins/copilot-pbr/skills/config/SKILL.md +9 -12
  19. package/plugins/copilot-pbr/skills/continue/SKILL.md +6 -6
  20. package/plugins/copilot-pbr/skills/dashboard/SKILL.md +12 -0
  21. package/plugins/copilot-pbr/skills/debug/SKILL.md +23 -26
  22. package/plugins/copilot-pbr/skills/discuss/SKILL.md +20 -10
  23. package/plugins/copilot-pbr/skills/do/SKILL.md +3 -3
  24. package/plugins/copilot-pbr/skills/explore/SKILL.md +11 -14
  25. package/plugins/copilot-pbr/skills/health/SKILL.md +75 -19
  26. package/plugins/copilot-pbr/skills/help/SKILL.md +6 -6
  27. package/plugins/copilot-pbr/skills/import/SKILL.md +22 -18
  28. package/plugins/copilot-pbr/skills/milestone/SKILL.md +90 -48
  29. package/plugins/copilot-pbr/skills/note/SKILL.md +3 -3
  30. package/plugins/copilot-pbr/skills/pause/SKILL.md +11 -10
  31. package/plugins/copilot-pbr/skills/plan/SKILL.md +22 -9
  32. package/plugins/copilot-pbr/skills/plan/templates/planner-prompt.md.tmpl +1 -1
  33. package/plugins/copilot-pbr/skills/quick/SKILL.md +9 -12
  34. package/plugins/copilot-pbr/skills/resume/SKILL.md +9 -9
  35. package/plugins/copilot-pbr/skills/review/SKILL.md +17 -12
  36. package/plugins/copilot-pbr/skills/scan/SKILL.md +9 -11
  37. package/plugins/copilot-pbr/skills/setup/SKILL.md +54 -8
  38. package/plugins/copilot-pbr/skills/shared/error-reporting.md +2 -1
  39. package/plugins/copilot-pbr/skills/shared/progress-display.md +0 -1
  40. package/plugins/copilot-pbr/skills/shared/universal-anti-patterns.md +10 -6
  41. package/plugins/copilot-pbr/skills/status/SKILL.md +3 -3
  42. package/plugins/copilot-pbr/skills/statusline/SKILL.md +12 -8
  43. package/plugins/copilot-pbr/skills/todo/SKILL.md +51 -28
  44. package/plugins/cursor-pbr/.cursor-plugin/plugin.json +1 -1
  45. package/plugins/cursor-pbr/agents/codebase-mapper.md +42 -0
  46. package/plugins/cursor-pbr/agents/debugger.md +4 -1
  47. package/plugins/cursor-pbr/agents/executor.md +31 -1
  48. package/plugins/cursor-pbr/agents/integration-checker.md +33 -2
  49. package/plugins/cursor-pbr/agents/planner.md +58 -1
  50. package/plugins/cursor-pbr/agents/researcher.md +23 -0
  51. package/plugins/cursor-pbr/agents/synthesizer.md +24 -0
  52. package/plugins/cursor-pbr/agents/verifier.md +35 -1
  53. package/plugins/cursor-pbr/references/agent-contracts.md +297 -0
  54. package/plugins/cursor-pbr/references/pbr-rules.md +1 -0
  55. package/plugins/cursor-pbr/references/pbr-tools-cli.md +285 -0
  56. package/plugins/cursor-pbr/references/ui-formatting.md +38 -56
  57. package/plugins/cursor-pbr/skills/begin/SKILL.md +30 -7
  58. package/plugins/cursor-pbr/skills/build/SKILL.md +28 -31
  59. package/plugins/cursor-pbr/skills/config/SKILL.md +9 -10
  60. package/plugins/cursor-pbr/skills/continue/SKILL.md +6 -6
  61. package/plugins/cursor-pbr/skills/dashboard/SKILL.md +12 -0
  62. package/plugins/cursor-pbr/skills/debug/SKILL.md +23 -23
  63. package/plugins/cursor-pbr/skills/discuss/SKILL.md +20 -10
  64. package/plugins/cursor-pbr/skills/do/SKILL.md +3 -3
  65. package/plugins/cursor-pbr/skills/explore/SKILL.md +11 -12
  66. package/plugins/cursor-pbr/skills/health/SKILL.md +75 -19
  67. package/plugins/cursor-pbr/skills/help/SKILL.md +6 -6
  68. package/plugins/cursor-pbr/skills/import/SKILL.md +22 -16
  69. package/plugins/cursor-pbr/skills/milestone/SKILL.md +90 -48
  70. package/plugins/cursor-pbr/skills/note/SKILL.md +3 -3
  71. package/plugins/cursor-pbr/skills/pause/SKILL.md +11 -9
  72. package/plugins/cursor-pbr/skills/plan/SKILL.md +22 -9
  73. package/plugins/cursor-pbr/skills/plan/templates/planner-prompt.md.tmpl +1 -1
  74. package/plugins/cursor-pbr/skills/quick/SKILL.md +9 -12
  75. package/plugins/cursor-pbr/skills/resume/SKILL.md +9 -9
  76. package/plugins/cursor-pbr/skills/review/SKILL.md +17 -12
  77. package/plugins/cursor-pbr/skills/scan/SKILL.md +9 -10
  78. package/plugins/cursor-pbr/skills/setup/SKILL.md +54 -8
  79. package/plugins/cursor-pbr/skills/shared/error-reporting.md +2 -1
  80. package/plugins/cursor-pbr/skills/shared/progress-display.md +0 -1
  81. package/plugins/cursor-pbr/skills/shared/universal-anti-patterns.md +10 -6
  82. package/plugins/cursor-pbr/skills/status/SKILL.md +3 -3
  83. package/plugins/cursor-pbr/skills/statusline/SKILL.md +12 -8
  84. package/plugins/cursor-pbr/skills/todo/SKILL.md +51 -28
  85. package/plugins/pbr/.claude-plugin/plugin.json +1 -1
  86. package/plugins/pbr/agents/codebase-mapper.md +42 -0
  87. package/plugins/pbr/agents/debugger.md +4 -1
  88. package/plugins/pbr/agents/executor.md +31 -1
  89. package/plugins/pbr/agents/integration-checker.md +34 -2
  90. package/plugins/pbr/agents/planner.md +58 -1
  91. package/plugins/pbr/agents/researcher.md +23 -0
  92. package/plugins/pbr/agents/synthesizer.md +24 -0
  93. package/plugins/pbr/agents/verifier.md +36 -1
  94. package/plugins/pbr/references/agent-contracts.md +297 -0
  95. package/plugins/pbr/references/pbr-rules.md +1 -0
  96. package/plugins/pbr/references/pbr-tools-cli.md +285 -0
  97. package/plugins/pbr/references/ui-formatting.md +37 -54
  98. package/plugins/pbr/scripts/check-skill-workflow.js +11 -0
  99. package/plugins/pbr/scripts/check-state-sync.js +58 -0
  100. package/plugins/pbr/scripts/check-subagent-output.js +43 -4
  101. package/plugins/pbr/scripts/validate-task.js +69 -17
  102. package/plugins/pbr/skills/begin/SKILL.md +36 -11
  103. package/plugins/pbr/skills/build/SKILL.md +37 -25
  104. package/plugins/pbr/skills/config/SKILL.md +12 -10
  105. package/plugins/pbr/skills/continue/SKILL.md +11 -9
  106. package/plugins/pbr/skills/dashboard/SKILL.md +12 -0
  107. package/plugins/pbr/skills/debug/SKILL.md +29 -23
  108. package/plugins/pbr/skills/discuss/SKILL.md +20 -10
  109. package/plugins/pbr/skills/do/SKILL.md +3 -3
  110. package/plugins/pbr/skills/explore/SKILL.md +14 -12
  111. package/plugins/pbr/skills/health/SKILL.md +76 -20
  112. package/plugins/pbr/skills/help/SKILL.md +8 -6
  113. package/plugins/pbr/skills/import/SKILL.md +25 -16
  114. package/plugins/pbr/skills/milestone/SKILL.md +88 -45
  115. package/plugins/pbr/skills/note/SKILL.md +3 -3
  116. package/plugins/pbr/skills/pause/SKILL.md +13 -9
  117. package/plugins/pbr/skills/plan/SKILL.md +28 -13
  118. package/plugins/pbr/skills/plan/templates/planner-prompt.md.tmpl +1 -1
  119. package/plugins/pbr/skills/quick/SKILL.md +12 -10
  120. package/plugins/pbr/skills/resume/SKILL.md +11 -9
  121. package/plugins/pbr/skills/review/SKILL.md +35 -24
  122. package/plugins/pbr/skills/scan/SKILL.md +12 -10
  123. package/plugins/pbr/skills/setup/SKILL.md +53 -7
  124. package/plugins/pbr/skills/shared/error-reporting.md +2 -0
  125. package/plugins/pbr/skills/shared/universal-anti-patterns.md +10 -6
  126. package/plugins/pbr/skills/status/SKILL.md +8 -6
  127. package/plugins/pbr/skills/statusline/SKILL.md +12 -8
  128. package/plugins/pbr/skills/todo/SKILL.md +51 -28
@@ -23,9 +23,9 @@ Additionally for this skill:
23
23
  **Before ANY tool calls**, display this banner:
24
24
 
25
25
  ```
26
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
27
- PLAN-BUILD-RUN ► STARTING PROJECT
28
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
26
+ ╔══════════════════════════════════════════════════════════════╗
27
+ PLAN-BUILD-RUN ► STARTING PROJECT
28
+ ╚══════════════════════════════════════════════════════════════╝
29
29
  ```
30
30
 
31
31
  Then proceed to Step 1.
@@ -168,6 +168,8 @@ Use the **yes-no** pattern from `skills/shared/gate-prompts.md`:
168
168
 
169
169
  **After gathering preferences:**
170
170
 
171
+ **CRITICAL: You MUST create the .planning/ directory and write config.json NOW. Do not proceed without this.**
172
+
171
173
  1. Read the config template from `skills/begin/templates/config.json.tmpl`
172
174
  2. Apply the user's choices to the template
173
175
  3. Create `.planning/` directory
@@ -175,6 +177,8 @@ Use the **yes-no** pattern from `skills/shared/gate-prompts.md`:
175
177
 
176
178
  **IMPORTANT**: This step MUST happen BEFORE research (Step 5) because depth controls how many researchers to spawn.
177
179
 
180
+ **CRITICAL: Write .active-skill NOW.** Write the text "begin" to `.planning/.active-skill` using the Write tool. Verify the file exists before proceeding.
181
+
178
182
  ---
179
183
 
180
184
  ### Step 4: Research Decision (inline)
@@ -209,7 +213,7 @@ Use the **yes-no** pattern from `skills/shared/gate-prompts.md`:
209
213
 
210
214
  Spawn parallel Task() subagents for research. Each researcher writes to `.planning/research/`.
211
215
 
212
- **Create `.planning/research/` directory first.**
216
+ **CRITICAL: Create .planning/research/ directory NOW before spawning researchers. Do NOT skip this step.**
213
217
 
214
218
  **For each research topic, spawn a Task():**
215
219
 
@@ -343,6 +347,9 @@ Each requirement must be:
343
347
  - **Specific** — not vague ("fast" is bad, "page loads in <2s" is good)
344
348
 
345
349
  **7e. Write REQUIREMENTS.md:**
350
+
351
+ **CRITICAL: Write REQUIREMENTS.md NOW. The roadmap planner depends on this file.**
352
+
346
353
  Read the template from `skills/begin/templates/REQUIREMENTS.md.tmpl` and write `.planning/REQUIREMENTS.md` with:
347
354
  - All v1 requirements grouped by category
348
355
  - All v2 requirements with deferral reasons
@@ -401,6 +408,10 @@ Read `skills/begin/templates/roadmap-prompt.md.tmpl` for the prompt structure.
401
408
 
402
409
  Write the project state files from templates:
403
410
 
411
+ **CRITICAL: You MUST write all 5 state initialization files (Steps 9a-9e). Do NOT skip any.**
412
+
413
+ **CRITICAL: Write PROJECT.md NOW. Do NOT skip this step.**
414
+
404
415
  **9a. Write PROJECT.md:**
405
416
  1. Read `skills/begin/templates/PROJECT.md.tmpl`
406
417
  2. Fill in:
@@ -413,6 +424,8 @@ Write the project state files from templates:
413
424
  3. Write to `.planning/PROJECT.md`
414
425
  4. Ensure the `## Milestones` section is filled in with the project name and phase count from the roadmap
415
426
 
427
+ **CRITICAL: Write STATE.md NOW. Do NOT skip this step.**
428
+
416
429
  **9b. Write STATE.md:**
417
430
  1. Read `skills/begin/templates/STATE.md.tmpl`
418
431
  2. Fill in:
@@ -425,6 +438,8 @@ Write the project state files from templates:
425
438
  4. Fill in the `## Milestone` section with the project name and total phase count
426
439
  5. **STATE.md size limit**: Follow size limit enforcement rules in `skills/shared/state-update.md` (150 lines max).
427
440
 
441
+ **CRITICAL: Write CONTEXT.md NOW. Do NOT skip this step.**
442
+
428
443
  **9c. Write CONTEXT.md:**
429
444
  Create `.planning/CONTEXT.md` from information gathered during questioning:
430
445
 
@@ -449,6 +464,8 @@ Create `.planning/CONTEXT.md` from information gathered during questioning:
449
464
  | {feature} | {reason} |
450
465
  ```
451
466
 
467
+ **CRITICAL: Write HISTORY.md NOW. Do NOT skip this step.**
468
+
452
469
  **9d. Write HISTORY.md:**
453
470
  Create `.planning/HISTORY.md` with an initial entry:
454
471
 
@@ -462,6 +479,8 @@ Create `.planning/HISTORY.md` with an initial entry:
462
479
  - Roadmap: {N} phases planned
463
480
  ```
464
481
 
482
+ **CRITICAL: Create phase directories NOW. Do NOT skip this step.**
483
+
465
484
  **9e. Create phase directories:**
466
485
  For each phase in the roadmap, create the directory structure:
467
486
  ```
@@ -505,6 +524,10 @@ If `gates.confirm_project` is true in config:
505
524
 
506
525
  ---
507
526
 
527
+ ## Cleanup
528
+
529
+ Delete `.planning/.active-skill` if it exists. This must happen on all paths (success, partial, and failure) before reporting results.
530
+
508
531
  ## Completion
509
532
 
510
533
  After all steps complete, present the final summary:
@@ -512,9 +535,9 @@ After all steps complete, present the final summary:
512
535
  Use the branded stage banner from `references/ui-formatting.md`:
513
536
 
514
537
  ```
515
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
516
- PLAN-BUILD-RUN ► PROJECT INITIALIZED ✓
517
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
538
+ ╔══════════════════════════════════════════════════════════════╗
539
+ PLAN-BUILD-RUN ► PROJECT INITIALIZED ✓
540
+ ╚══════════════════════════════════════════════════════════════╝
518
541
 
519
542
  **{name}**
520
543
 
@@ -530,9 +553,11 @@ Requirements: {N} committed, {M} deferred, {K} out-of-scope
530
553
 
531
554
  Then use the "Next Up" routing block:
532
555
  ```
533
- ───────────────────────────────────────────────────────────────
534
556
 
535
- ## ▶ Next Up
557
+
558
+ ╔══════════════════════════════════════════════════════════════╗
559
+ ║ ▶ NEXT UP ║
560
+ ╚══════════════════════════════════════════════════════════════╝
536
561
 
537
562
  **Phase 1: {Name}** — {one-line goal}
538
563
 
@@ -540,7 +565,7 @@ Then use the "Next Up" routing block:
540
565
 
541
566
  <sub>`/clear` first → fresh context window</sub>
542
567
 
543
- ───────────────────────────────────────────────────────────────
568
+
544
569
 
545
570
  **Also available:**
546
571
  - `/pbr:explore` — open-ended exploration before planning
@@ -548,7 +573,7 @@ Then use the "Next Up" routing block:
548
573
  - `/pbr:milestone new` — add a second milestone with new phases
549
574
  - `/pbr:config` — adjust workflow settings
550
575
 
551
- ───────────────────────────────────────────────────────────────
576
+
552
577
  ```
553
578
 
554
579
  ---
@@ -24,9 +24,9 @@ Additionally for this skill:
24
24
  **Before ANY tool calls**, display this banner:
25
25
 
26
26
  ```
27
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
28
- PLAN-BUILD-RUN ► BUILDING PHASE {N}
29
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
27
+ ╔══════════════════════════════════════════════════════════════╗
28
+ PLAN-BUILD-RUN ► BUILDING PHASE {N}
29
+ ╚══════════════════════════════════════════════════════════════╝
30
30
  ```
31
31
 
32
32
  Where `{N}` is the phase number from `$ARGUMENTS`. Then proceed to Step 1.
@@ -65,7 +65,7 @@ Reference: `skills/shared/config-loading.md` for the tooling shortcut and config
65
65
  1. Parse `$ARGUMENTS` for phase number and flags
66
66
  2. Read `.planning/config.json` for parallelization, model, and gate settings (see config-loading.md for field reference)
67
67
  3. Resolve depth profile: run `node ${CLAUDE_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.
68
- 4. Write `.planning/.active-skill` with the content `build` (registers with workflow enforcement hook)
68
+ 4. **CRITICAL: Write .active-skill NOW.** Write `.planning/.active-skill` with the content `build` (registers with workflow enforcement hook)
69
69
  5. Validate:
70
70
  - Phase directory exists at `.planning/phases/{NN}-{slug}/`
71
71
  - PLAN.md files exist in the directory
@@ -198,6 +198,8 @@ Validate wave consistency:
198
198
 
199
199
  ### Step 5b: Write Checkpoint Manifest (inline)
200
200
 
201
+ **CRITICAL: Write .checkpoint-manifest.json NOW before entering the wave loop.**
202
+
201
203
  Before entering the wave loop, write `.planning/phases/{NN}-{slug}/.checkpoint-manifest.json`:
202
204
 
203
205
  ```json
@@ -693,6 +695,8 @@ If triggered:
693
695
  ```
694
696
  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.
695
697
 
698
+ **CRITICAL: Update ROADMAP.md progress table NOW. Do NOT skip this step.**
699
+
696
700
  **8a. Update ROADMAP.md Progress table** (REQUIRED — do this BEFORE updating STATE.md):
697
701
 
698
702
  **Tooling shortcut**: Use the CLI for atomic ROADMAP.md table updates instead of manual editing:
@@ -709,6 +713,8 @@ These return `{ success, old_status, new_status }` or `{ success, old_plans, new
709
713
  5. Update the `Status` column to the final_status determined in Step 8-pre
710
714
  6. Save the file — do NOT skip this step
711
715
 
716
+ **CRITICAL: Update STATE.md NOW with phase completion status. Do NOT skip this step.**
717
+
712
718
  **8b. Update STATE.md:**
713
719
  - Phase status: {final_status from Step 8-pre}
714
720
  - Plan completion count
@@ -803,18 +809,20 @@ Then present the appropriate branded banner:
803
809
 
804
810
  **If `passed` + more phases:**
805
811
  ```
806
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
807
- PLAN-BUILD-RUN ► PHASE {N} COMPLETE ✓
808
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
812
+ ╔══════════════════════════════════════════════════════════════╗
813
+ PLAN-BUILD-RUN ► PHASE {N} COMPLETE ✓
814
+ ╚══════════════════════════════════════════════════════════════╝
809
815
 
810
816
  **Phase {N}: {Name}**
811
817
 
812
818
  {X} plans executed
813
819
  Goal verified ✓
814
820
 
815
- ───────────────────────────────────────────────────────────────
816
821
 
817
- ## ▶ Next Up
822
+
823
+ ╔══════════════════════════════════════════════════════════════╗
824
+ ║ ▶ NEXT UP ║
825
+ ╚══════════════════════════════════════════════════════════════╝
818
826
 
819
827
  **Phase {N+1}: {Name}** — {Goal from ROADMAP.md}
820
828
 
@@ -822,28 +830,30 @@ Goal verified ✓
822
830
 
823
831
  <sub>`/clear` first → fresh context window</sub>
824
832
 
825
- ───────────────────────────────────────────────────────────────
833
+
826
834
 
827
835
  **Also available:**
828
836
  - `/pbr:review {N}` — manual acceptance testing before continuing
829
837
  - `/pbr:discuss {N+1}` — talk through the next phase before planning
830
838
  - `/pbr:status` — see full project status
831
839
 
832
- ───────────────────────────────────────────────────────────────
840
+
833
841
  ```
834
842
 
835
843
  **If `passed` + last phase:**
836
844
  ```
837
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
838
- PLAN-BUILD-RUN ► MILESTONE COMPLETE 🎉
839
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
845
+ ╔══════════════════════════════════════════════════════════════╗
846
+ PLAN-BUILD-RUN ► MILESTONE COMPLETE 🎉
847
+ ╚══════════════════════════════════════════════════════════════╝
840
848
 
841
849
  {N} phases completed
842
850
  All phase goals verified ✓
843
851
 
844
- ───────────────────────────────────────────────────────────────
845
852
 
846
- ## ▶ Next Up
853
+
854
+ ╔══════════════════════════════════════════════════════════════╗
855
+ ║ ▶ NEXT UP ║
856
+ ╚══════════════════════════════════════════════════════════════╝
847
857
 
848
858
  **Audit milestone** — verify requirements, cross-phase integration, E2E flows
849
859
 
@@ -851,20 +861,20 @@ All phase goals verified ✓
851
861
 
852
862
  <sub>`/clear` first → fresh context window</sub>
853
863
 
854
- ───────────────────────────────────────────────────────────────
864
+
855
865
 
856
866
  **Also available:**
857
867
  - `/pbr:review` — manual acceptance testing
858
868
  - `/pbr:milestone complete` — archive milestone after audit passes
859
869
 
860
- ───────────────────────────────────────────────────────────────
870
+
861
871
  ```
862
872
 
863
873
  **If `gaps_found`:**
864
874
  ```
865
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
866
- PLAN-BUILD-RUN ► PHASE {N} GAPS FOUND ⚠
867
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
875
+ ╔══════════════════════════════════════════════════════════════╗
876
+ PLAN-BUILD-RUN ► PHASE {N} GAPS FOUND ⚠
877
+ ╚══════════════════════════════════════════════════════════════╝
868
878
 
869
879
  **Phase {N}: {Name}**
870
880
 
@@ -875,9 +885,11 @@ Report: .planning/phases/{phase_dir}/VERIFICATION.md
875
885
 
876
886
  {Extract gap summaries from VERIFICATION.md}
877
887
 
878
- ───────────────────────────────────────────────────────────────
879
888
 
880
- ## ▶ Next Up
889
+
890
+ ╔══════════════════════════════════════════════════════════════╗
891
+ ║ ▶ NEXT UP ║
892
+ ╚══════════════════════════════════════════════════════════════╝
881
893
 
882
894
  **Plan gap closure** — create additional plans to complete the phase
883
895
 
@@ -885,13 +897,13 @@ Report: .planning/phases/{phase_dir}/VERIFICATION.md
885
897
 
886
898
  <sub>`/clear` first → fresh context window</sub>
887
899
 
888
- ───────────────────────────────────────────────────────────────
900
+
889
901
 
890
902
  **Also available:**
891
903
  - `cat .planning/phases/{phase_dir}/VERIFICATION.md` — see full report
892
904
  - `/pbr:review {N}` — manual testing before planning
893
905
 
894
- ───────────────────────────────────────────────────────────────
906
+
895
907
  ```
896
908
 
897
909
  **8g. Display USER-SETUP.md (conditional):**
@@ -11,9 +11,9 @@ allowed-tools: Read, Write, Bash, Glob, AskUserQuestion
11
11
  **Before ANY tool calls**, display this banner:
12
12
 
13
13
  ```
14
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
15
- PLAN-BUILD-RUN ► CONFIGURATION
16
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
14
+ ╔══════════════════════════════════════════════════════════════╗
15
+ PLAN-BUILD-RUN ► CONFIGURATION
16
+ ╚══════════════════════════════════════════════════════════════╝
17
17
  ```
18
18
 
19
19
  Then proceed to Step 1.
@@ -187,17 +187,19 @@ If user types something else (freeform): interpret as a direct setting command a
187
187
 
188
188
  Update config.json with new values. Show what changed with a branded completion:
189
189
  ```
190
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
191
- PLAN-BUILD-RUN ► CONFIG UPDATED ✓
192
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
190
+ ╔══════════════════════════════════════════════════════════════╗
191
+ PLAN-BUILD-RUN ► CONFIG UPDATED ✓
192
+ ╚══════════════════════════════════════════════════════════════╝
193
193
 
194
194
  Updated:
195
195
  depth: standard → quick
196
196
  models.executor: inherit → sonnet
197
197
 
198
- ───────────────────────────────────────────────────────────────
199
198
 
200
- ## ▶ Next Up
199
+
200
+ ╔══════════════════════════════════════════════════════════════╗
201
+ ║ ▶ NEXT UP ║
202
+ ╚══════════════════════════════════════════════════════════════╝
201
203
 
202
204
  **Continue your workflow** — settings saved
203
205
 
@@ -205,13 +207,13 @@ Updated:
205
207
 
206
208
  <sub>`/clear` first → fresh context window</sub>
207
209
 
208
- ───────────────────────────────────────────────────────────────
210
+
209
211
 
210
212
  **Also available:**
211
213
  - `/pbr:continue` — execute next logical step
212
214
  - `/pbr:config` — change more settings
213
215
 
214
- ───────────────────────────────────────────────────────────────
216
+
215
217
  ```
216
218
 
217
219
  ## Config Schema
@@ -19,9 +19,9 @@ This skill runs **inline** and may delegate to other skills via Task().
19
19
  **Before ANY tool calls**, display this banner:
20
20
 
21
21
  ```
22
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
23
- PLAN-BUILD-RUN ► NEXT STEP
24
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
22
+ ╔══════════════════════════════════════════════════════════════╗
23
+ PLAN-BUILD-RUN ► NEXT STEP
24
+ ╚══════════════════════════════════════════════════════════════╝
25
25
  ```
26
26
 
27
27
  Then proceed to Step 1.
@@ -121,21 +121,23 @@ Where `{N}` is the current phase number determined from STATE.md in Step 1.
121
121
 
122
122
  After execution completes, display a branded completion:
123
123
  ```
124
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
125
- PLAN-BUILD-RUN ► STEP COMPLETE ✓
126
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
124
+ ╔══════════════════════════════════════════════════════════════╗
125
+ PLAN-BUILD-RUN ► STEP COMPLETE ✓
126
+ ╚══════════════════════════════════════════════════════════════╝
127
127
 
128
128
  ✓ Completed: {what was done}
129
129
 
130
- ───────────────────────────────────────────────────────────────
131
130
 
132
- ## ▶ Next Up
131
+
132
+ ╔══════════════════════════════════════════════════════════════╗
133
+ ║ ▶ NEXT UP ║
134
+ ╚══════════════════════════════════════════════════════════════╝
133
135
 
134
136
  **{Next action description}**
135
137
 
136
138
  `/pbr:continue` or `{specific command}`
137
139
 
138
- ───────────────────────────────────────────────────────────────
140
+
139
141
  ```
140
142
 
141
143
  **If `features.auto_advance` is `true` AND `mode` is `autonomous`:**
@@ -7,6 +7,18 @@ argument-hint: "[--port N]"
7
7
 
8
8
  **STOP — DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's plugin system. Begin executing immediately.**
9
9
 
10
+ ## Step 0 — Immediate Output
11
+
12
+ **Before ANY tool calls**, display this banner:
13
+
14
+ ```
15
+ ╔══════════════════════════════════════════════════════════════╗
16
+ ║ PLAN-BUILD-RUN ► DASHBOARD ║
17
+ ╚══════════════════════════════════════════════════════════════╝
18
+ ```
19
+
20
+ Then proceed to Step 1.
21
+
10
22
  ## Behavior
11
23
 
12
24
  1. **Parse arguments**: Extract `--port N` from the user's input. Default to `3000`.
@@ -12,9 +12,9 @@ argument-hint: "[issue description]"
12
12
  **Before ANY tool calls**, display this banner:
13
13
 
14
14
  ```
15
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
16
- PLAN-BUILD-RUN ► DEBUGGING
17
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
15
+ ╔══════════════════════════════════════════════════════════════╗
16
+ PLAN-BUILD-RUN ► DEBUGGING
17
+ ╚══════════════════════════════════════════════════════════════╝
18
18
  ```
19
19
 
20
20
  Then proceed to Step 1.
@@ -68,9 +68,11 @@ Scan `.planning/debug/` for existing debug files:
68
68
  ```
69
69
 
70
70
  Read each file's frontmatter to check status:
71
- - `status: active` — session is in progress
72
- - `status: resolved` — session is complete
73
- - `status: stale` — session was abandoned
71
+ - `status: gathering` — collecting symptoms from user
72
+ - `status: investigating` — testing hypotheses
73
+ - `status: fixing` — applying fix
74
+ - `status: verifying` — confirming fix works
75
+ - `status: resolved` — session complete
74
76
 
75
77
  **If active sessions found:**
76
78
 
@@ -129,7 +131,7 @@ Create `.planning/debug/{NNN}-{slug}.md`:
129
131
  ---
130
132
  id: "{NNN}"
131
133
  title: "{issue title}"
132
- status: active
134
+ status: gathering
133
135
  created: "{ISO date}"
134
136
  updated: "{ISO date}"
135
137
  severity: "{critical|high|medium|low}"
@@ -233,18 +235,20 @@ Actions:
233
235
  3. Report to user with branded output:
234
236
 
235
237
  ```
236
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
237
- PLAN-BUILD-RUN ► BUG RESOLVED ✓
238
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
238
+ ╔══════════════════════════════════════════════════════════════╗
239
+ PLAN-BUILD-RUN ► BUG RESOLVED ✓
240
+ ╚══════════════════════════════════════════════════════════════╝
239
241
 
240
242
  **Session #{NNN}:** {title}
241
243
  **Root cause:** {cause}
242
244
  **Fix:** {description}
243
245
  **Commit:** {hash}
244
246
 
245
- ───────────────────────────────────────────────────────────────
246
247
 
247
- ## ▶ Next Up
248
+
249
+ ╔══════════════════════════════════════════════════════════════╗
250
+ ║ ▶ NEXT UP ║
251
+ ╚══════════════════════════════════════════════════════════════╝
248
252
 
249
253
  **Continue your workflow** — the bug is fixed
250
254
 
@@ -252,13 +256,13 @@ Actions:
252
256
 
253
257
  <sub>`/clear` first → fresh context window</sub>
254
258
 
255
- ───────────────────────────────────────────────────────────────
259
+
256
260
 
257
261
  **Also available:**
258
262
  - `/pbr:continue` — execute next logical step
259
263
  - `/pbr:review {N}` — verify the current phase
260
264
 
261
- ───────────────────────────────────────────────────────────────
265
+
262
266
  ```
263
267
 
264
268
  #### ROOT CAUSE FOUND (no fix)
@@ -278,9 +282,11 @@ Actions:
278
282
  2. Suggest next steps to user:
279
283
 
280
284
  ```
281
- ───────────────────────────────────────────────────────────────
282
285
 
283
- ## ▶ Next Up
286
+
287
+ ╔══════════════════════════════════════════════════════════════╗
288
+ ║ ▶ NEXT UP ║
289
+ ╚══════════════════════════════════════════════════════════════╝
284
290
 
285
291
  **Apply the fix** — root cause identified, fix needed
286
292
 
@@ -288,13 +294,13 @@ Actions:
288
294
 
289
295
  <sub>`/clear` first → fresh context window</sub>
290
296
 
291
- ───────────────────────────────────────────────────────────────
297
+
292
298
 
293
299
  **Also available:**
294
300
  - `/pbr:plan` — for complex fixes that need planning
295
301
  - `/pbr:status` — see project status
296
302
 
297
- ───────────────────────────────────────────────────────────────
303
+
298
304
  ```
299
305
 
300
306
  #### CHECKPOINT
@@ -404,7 +410,7 @@ Use AskUserQuestion:
404
410
  - label: "Escalate" description: "Save context for manual debugging"
405
411
 
406
412
  - If "Extend": double the limit and continue
407
- - If "Wrap up": update debug file status to `stale`, record all findings, suggest next steps
413
+ - If "Wrap up": update debug file `status: resolved` with `resolution: abandoned`, record all findings, suggest next steps
408
414
  - If "Escalate": write a detailed handoff document to the debug file with all hypotheses, evidence, and suggested manual investigation steps
409
415
 
410
416
  ---
@@ -414,15 +420,15 @@ Use AskUserQuestion:
414
420
  ### Lifecycle
415
421
 
416
422
  ```
417
- activeresolved (root cause found and fixed)
418
- activestale (abandoned no updates for 7+ days)
419
- activeactive (resumed after pause)
423
+ gatheringinvestigating fixing verifying → resolved
424
+ (any non-resolved) resolved (with resolution: abandoned, if 7+ days stale)
425
+ (any non-resolved) → (same) (resumed after pause)
420
426
  ```
421
427
 
422
428
  ### Staleness Detection
423
429
 
424
430
  When scanning for active sessions, check the `updated` date. If more than 7 days old:
425
- - Mark as `stale` in status
431
+ - Set `status: resolved` with `resolution: abandoned` in frontmatter
426
432
  - Still offer to resume, but warn: "This session is {N} days old. Context may have changed."
427
433
 
428
434
  ### Cleanup