@sienklogic/plan-build-run 2.51.0 → 2.53.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 (229) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +4 -2
  3. package/plugins/copilot-pbr/agents/audit.agent.md +2 -5
  4. package/plugins/copilot-pbr/agents/codebase-mapper.agent.md +1 -4
  5. package/plugins/copilot-pbr/agents/debugger.agent.md +1 -4
  6. package/plugins/copilot-pbr/agents/dev-sync.agent.md +6 -9
  7. package/plugins/copilot-pbr/agents/executor.agent.md +1 -6
  8. package/plugins/copilot-pbr/agents/general.agent.md +1 -4
  9. package/plugins/copilot-pbr/agents/integration-checker.agent.md +1 -4
  10. package/plugins/copilot-pbr/agents/plan-checker.agent.md +1 -4
  11. package/plugins/copilot-pbr/agents/planner.agent.md +1 -4
  12. package/plugins/copilot-pbr/agents/researcher.agent.md +1 -4
  13. package/plugins/copilot-pbr/agents/synthesizer.agent.md +1 -4
  14. package/plugins/copilot-pbr/agents/verifier.agent.md +2 -4
  15. package/plugins/copilot-pbr/commands/audit.md +5 -0
  16. package/plugins/copilot-pbr/commands/begin.md +5 -0
  17. package/plugins/copilot-pbr/commands/build.md +5 -0
  18. package/plugins/copilot-pbr/commands/config.md +5 -0
  19. package/plugins/copilot-pbr/commands/continue.md +5 -0
  20. package/plugins/copilot-pbr/commands/dashboard.md +5 -0
  21. package/plugins/copilot-pbr/commands/debug.md +5 -0
  22. package/plugins/copilot-pbr/commands/discuss.md +5 -0
  23. package/plugins/copilot-pbr/commands/do.md +5 -0
  24. package/plugins/copilot-pbr/commands/explore.md +5 -0
  25. package/plugins/copilot-pbr/commands/health.md +5 -0
  26. package/plugins/copilot-pbr/commands/help.md +5 -0
  27. package/plugins/copilot-pbr/commands/import.md +5 -0
  28. package/plugins/copilot-pbr/commands/milestone.md +5 -0
  29. package/plugins/copilot-pbr/commands/note.md +5 -0
  30. package/plugins/copilot-pbr/commands/pause.md +5 -0
  31. package/plugins/copilot-pbr/commands/plan.md +5 -0
  32. package/plugins/copilot-pbr/commands/quick.md +5 -0
  33. package/plugins/copilot-pbr/commands/resume.md +5 -0
  34. package/plugins/copilot-pbr/commands/review.md +5 -0
  35. package/plugins/copilot-pbr/commands/scan.md +5 -0
  36. package/plugins/copilot-pbr/commands/setup.md +5 -0
  37. package/plugins/copilot-pbr/commands/status.md +5 -0
  38. package/plugins/copilot-pbr/commands/statusline.md +5 -0
  39. package/plugins/copilot-pbr/commands/todo.md +5 -0
  40. package/plugins/copilot-pbr/plugin.json +1 -1
  41. package/plugins/copilot-pbr/references/agent-teams.md +0 -1
  42. package/plugins/copilot-pbr/references/common-bug-patterns.md +0 -1
  43. package/plugins/copilot-pbr/references/config-reference.md +0 -1
  44. package/plugins/copilot-pbr/references/continuation-format.md +0 -1
  45. package/plugins/copilot-pbr/references/deviation-rules.md +0 -1
  46. package/plugins/copilot-pbr/references/git-integration.md +0 -1
  47. package/plugins/copilot-pbr/references/integration-patterns.md +0 -1
  48. package/plugins/copilot-pbr/references/model-profiles.md +0 -1
  49. package/plugins/copilot-pbr/references/model-selection.md +0 -1
  50. package/plugins/copilot-pbr/references/plan-authoring.md +0 -1
  51. package/plugins/copilot-pbr/references/plan-format.md +0 -1
  52. package/plugins/copilot-pbr/references/reading-verification.md +0 -1
  53. package/plugins/copilot-pbr/references/signal-files.md +41 -0
  54. package/plugins/copilot-pbr/references/stub-patterns.md +0 -1
  55. package/plugins/copilot-pbr/references/wave-execution.md +0 -1
  56. package/plugins/copilot-pbr/skills/begin/SKILL.md +74 -52
  57. package/plugins/copilot-pbr/skills/build/SKILL.md +55 -69
  58. package/plugins/copilot-pbr/skills/config/SKILL.md +7 -0
  59. package/plugins/copilot-pbr/skills/continue/SKILL.md +31 -24
  60. package/plugins/copilot-pbr/skills/dashboard/SKILL.md +8 -7
  61. package/plugins/copilot-pbr/skills/debug/SKILL.md +11 -0
  62. package/plugins/copilot-pbr/skills/discuss/SKILL.md +2 -0
  63. package/plugins/copilot-pbr/skills/do/SKILL.md +2 -0
  64. package/plugins/copilot-pbr/skills/explore/SKILL.md +7 -1
  65. package/plugins/copilot-pbr/skills/health/SKILL.md +2 -0
  66. package/plugins/copilot-pbr/skills/help/SKILL.md +6 -0
  67. package/plugins/copilot-pbr/skills/import/SKILL.md +9 -0
  68. package/plugins/copilot-pbr/skills/milestone/SKILL.md +20 -196
  69. package/plugins/copilot-pbr/skills/note/SKILL.md +2 -0
  70. package/plugins/copilot-pbr/skills/pause/SKILL.md +5 -0
  71. package/plugins/copilot-pbr/skills/plan/SKILL.md +87 -119
  72. package/plugins/copilot-pbr/skills/quick/SKILL.md +13 -8
  73. package/plugins/copilot-pbr/skills/resume/SKILL.md +4 -0
  74. package/plugins/copilot-pbr/skills/review/SKILL.md +85 -47
  75. package/plugins/copilot-pbr/skills/scan/SKILL.md +6 -0
  76. package/plugins/copilot-pbr/skills/setup/SKILL.md +2 -0
  77. package/plugins/copilot-pbr/skills/shared/commit-planning-docs.md +0 -1
  78. package/plugins/copilot-pbr/skills/shared/config-loading.md +0 -1
  79. package/plugins/copilot-pbr/skills/shared/context-budget.md +0 -1
  80. package/plugins/copilot-pbr/skills/shared/context-loader-task.md +0 -1
  81. package/plugins/copilot-pbr/skills/shared/digest-select.md +0 -1
  82. package/plugins/copilot-pbr/skills/shared/domain-probes.md +0 -1
  83. package/plugins/copilot-pbr/skills/shared/gate-prompts.md +0 -1
  84. package/plugins/copilot-pbr/skills/shared/phase-argument-parsing.md +0 -1
  85. package/plugins/copilot-pbr/skills/shared/revision-loop.md +0 -1
  86. package/plugins/copilot-pbr/skills/shared/state-update.md +0 -1
  87. package/plugins/copilot-pbr/skills/shared/universal-anti-patterns.md +1 -2
  88. package/plugins/copilot-pbr/skills/status/SKILL.md +35 -26
  89. package/plugins/copilot-pbr/skills/test/SKILL.md +2 -2
  90. package/plugins/copilot-pbr/skills/todo/SKILL.md +2 -0
  91. package/plugins/copilot-pbr/templates/CONTEXT.md.tmpl +0 -1
  92. package/plugins/copilot-pbr/templates/INTEGRATION-REPORT.md.tmpl +0 -1
  93. package/plugins/copilot-pbr/templates/RESEARCH-SUMMARY.md.tmpl +0 -1
  94. package/plugins/copilot-pbr/templates/ROADMAP.md.tmpl +0 -1
  95. package/plugins/copilot-pbr/templates/SUMMARY.md.tmpl +0 -1
  96. package/plugins/copilot-pbr/templates/VERIFICATION-DETAIL.md.tmpl +0 -1
  97. package/plugins/copilot-pbr/templates/continue-here.md.tmpl +0 -1
  98. package/plugins/copilot-pbr/templates/prompt-partials/phase-project-context.md.tmpl +0 -1
  99. package/plugins/cursor-pbr/.cursor-plugin/plugin.json +1 -1
  100. package/plugins/cursor-pbr/agents/audit.md +1 -1
  101. package/plugins/cursor-pbr/agents/codebase-mapper.md +1 -1
  102. package/plugins/cursor-pbr/agents/debugger.md +1 -1
  103. package/plugins/cursor-pbr/agents/dev-sync.md +6 -6
  104. package/plugins/cursor-pbr/agents/executor.md +1 -3
  105. package/plugins/cursor-pbr/agents/general.md +1 -1
  106. package/plugins/cursor-pbr/agents/integration-checker.md +2 -2
  107. package/plugins/cursor-pbr/agents/plan-checker.md +2 -2
  108. package/plugins/cursor-pbr/agents/planner.md +1 -1
  109. package/plugins/cursor-pbr/agents/researcher.md +2 -2
  110. package/plugins/cursor-pbr/agents/synthesizer.md +1 -1
  111. package/plugins/cursor-pbr/agents/verifier.md +3 -2
  112. package/plugins/cursor-pbr/commands/audit.md +5 -0
  113. package/plugins/cursor-pbr/commands/begin.md +5 -0
  114. package/plugins/cursor-pbr/commands/build.md +5 -0
  115. package/plugins/cursor-pbr/commands/config.md +5 -0
  116. package/plugins/cursor-pbr/commands/continue.md +5 -0
  117. package/plugins/cursor-pbr/commands/dashboard.md +5 -0
  118. package/plugins/cursor-pbr/commands/debug.md +5 -0
  119. package/plugins/cursor-pbr/commands/discuss.md +5 -0
  120. package/plugins/cursor-pbr/commands/do.md +5 -0
  121. package/plugins/cursor-pbr/commands/explore.md +5 -0
  122. package/plugins/cursor-pbr/commands/health.md +5 -0
  123. package/plugins/cursor-pbr/commands/help.md +5 -0
  124. package/plugins/cursor-pbr/commands/import.md +5 -0
  125. package/plugins/cursor-pbr/commands/milestone.md +5 -0
  126. package/plugins/cursor-pbr/commands/note.md +5 -0
  127. package/plugins/cursor-pbr/commands/pause.md +5 -0
  128. package/plugins/cursor-pbr/commands/plan.md +5 -0
  129. package/plugins/cursor-pbr/commands/quick.md +5 -0
  130. package/plugins/cursor-pbr/commands/resume.md +5 -0
  131. package/plugins/cursor-pbr/commands/review.md +5 -0
  132. package/plugins/cursor-pbr/commands/scan.md +5 -0
  133. package/plugins/cursor-pbr/commands/setup.md +5 -0
  134. package/plugins/cursor-pbr/commands/status.md +5 -0
  135. package/plugins/cursor-pbr/commands/statusline.md +5 -0
  136. package/plugins/cursor-pbr/commands/todo.md +5 -0
  137. package/plugins/cursor-pbr/hooks/hooks.json +4 -10
  138. package/plugins/cursor-pbr/references/agent-teams.md +0 -1
  139. package/plugins/{copilot-pbr/references → cursor-pbr/references/archive}/agent-anti-patterns.md +0 -1
  140. package/plugins/cursor-pbr/references/{pbr-rules.md → archive/pbr-rules.md} +0 -1
  141. package/plugins/cursor-pbr/references/common-bug-patterns.md +0 -1
  142. package/plugins/cursor-pbr/references/config-reference.md +0 -1
  143. package/plugins/cursor-pbr/references/continuation-format.md +0 -1
  144. package/plugins/cursor-pbr/references/deviation-rules.md +0 -1
  145. package/plugins/cursor-pbr/references/git-integration.md +0 -1
  146. package/plugins/cursor-pbr/references/integration-patterns.md +0 -1
  147. package/plugins/cursor-pbr/references/model-profiles.md +0 -1
  148. package/plugins/cursor-pbr/references/model-selection.md +0 -1
  149. package/plugins/cursor-pbr/references/plan-authoring.md +0 -1
  150. package/plugins/cursor-pbr/references/plan-format.md +0 -1
  151. package/plugins/cursor-pbr/references/reading-verification.md +0 -1
  152. package/plugins/cursor-pbr/references/signal-files.md +41 -0
  153. package/plugins/cursor-pbr/references/stub-patterns.md +0 -1
  154. package/plugins/cursor-pbr/references/wave-execution.md +0 -1
  155. package/plugins/cursor-pbr/skills/begin/SKILL.md +74 -52
  156. package/plugins/cursor-pbr/skills/build/SKILL.md +58 -70
  157. package/plugins/cursor-pbr/skills/config/SKILL.md +5 -0
  158. package/plugins/cursor-pbr/skills/continue/SKILL.md +31 -24
  159. package/plugins/cursor-pbr/skills/dashboard/SKILL.md +8 -7
  160. package/plugins/cursor-pbr/skills/debug/SKILL.md +8 -0
  161. package/plugins/cursor-pbr/skills/discuss/SKILL.md +2 -0
  162. package/plugins/cursor-pbr/skills/do/SKILL.md +2 -0
  163. package/plugins/cursor-pbr/skills/explore/SKILL.md +5 -1
  164. package/plugins/cursor-pbr/skills/health/SKILL.md +2 -0
  165. package/plugins/cursor-pbr/skills/help/SKILL.md +6 -0
  166. package/plugins/cursor-pbr/skills/import/SKILL.md +7 -0
  167. package/plugins/cursor-pbr/skills/milestone/SKILL.md +20 -196
  168. package/plugins/cursor-pbr/skills/note/SKILL.md +2 -0
  169. package/plugins/cursor-pbr/skills/pause/SKILL.md +4 -0
  170. package/plugins/cursor-pbr/skills/plan/SKILL.md +87 -119
  171. package/plugins/cursor-pbr/skills/quick/SKILL.md +13 -8
  172. package/plugins/cursor-pbr/skills/resume/SKILL.md +4 -0
  173. package/plugins/cursor-pbr/skills/review/SKILL.md +85 -47
  174. package/plugins/cursor-pbr/skills/scan/SKILL.md +5 -0
  175. package/plugins/cursor-pbr/skills/setup/SKILL.md +2 -0
  176. package/plugins/cursor-pbr/skills/shared/commit-planning-docs.md +0 -1
  177. package/plugins/cursor-pbr/skills/shared/config-loading.md +0 -1
  178. package/plugins/cursor-pbr/skills/shared/context-budget.md +0 -1
  179. package/plugins/cursor-pbr/skills/shared/context-loader-task.md +0 -1
  180. package/plugins/cursor-pbr/skills/shared/digest-select.md +0 -1
  181. package/plugins/cursor-pbr/skills/shared/domain-probes.md +0 -1
  182. package/plugins/cursor-pbr/skills/shared/gate-prompts.md +0 -1
  183. package/plugins/cursor-pbr/skills/shared/phase-argument-parsing.md +0 -1
  184. package/plugins/cursor-pbr/skills/shared/revision-loop.md +0 -1
  185. package/plugins/cursor-pbr/skills/shared/state-update.md +0 -1
  186. package/plugins/cursor-pbr/skills/shared/universal-anti-patterns.md +1 -2
  187. package/plugins/cursor-pbr/skills/status/SKILL.md +35 -26
  188. package/plugins/cursor-pbr/skills/test/SKILL.md +2 -2
  189. package/plugins/cursor-pbr/skills/todo/SKILL.md +2 -0
  190. package/plugins/cursor-pbr/templates/CONTEXT.md.tmpl +0 -1
  191. package/plugins/cursor-pbr/templates/INTEGRATION-REPORT.md.tmpl +0 -1
  192. package/plugins/cursor-pbr/templates/RESEARCH-SUMMARY.md.tmpl +0 -1
  193. package/plugins/cursor-pbr/templates/ROADMAP.md.tmpl +0 -1
  194. package/plugins/cursor-pbr/templates/SUMMARY.md.tmpl +0 -1
  195. package/plugins/cursor-pbr/templates/VERIFICATION-DETAIL.md.tmpl +0 -1
  196. package/plugins/cursor-pbr/templates/continue-here.md.tmpl +0 -1
  197. package/plugins/cursor-pbr/templates/prompt-partials/phase-project-context.md.tmpl +0 -1
  198. package/plugins/pbr/.claude-plugin/plugin.json +1 -1
  199. package/plugins/pbr/agents/executor.md +0 -2
  200. package/plugins/{cursor-pbr/references → pbr/references/archive}/agent-anti-patterns.md +0 -1
  201. package/plugins/{copilot-pbr/references → pbr/references/archive}/pbr-rules.md +0 -1
  202. package/plugins/pbr/references/signal-files.md +41 -0
  203. package/plugins/pbr/scripts/check-skill-workflow.js +7 -8
  204. package/plugins/pbr/scripts/check-subagent-output.js +7 -6
  205. package/plugins/pbr/scripts/context-budget-check.js +13 -1
  206. package/plugins/pbr/scripts/enforce-pbr-workflow.js +15 -6
  207. package/plugins/pbr/scripts/lib/core.js +53 -1
  208. package/plugins/pbr/scripts/log-subagent.js +7 -10
  209. package/plugins/pbr/scripts/pbr-tools.js +49 -3
  210. package/plugins/pbr/scripts/progress-tracker.js +13 -3
  211. package/plugins/pbr/scripts/session-cleanup.js +6 -0
  212. package/plugins/pbr/scripts/suggest-compact.js +13 -1
  213. package/plugins/pbr/skills/begin/SKILL.md +13 -13
  214. package/plugins/pbr/skills/build/SKILL.md +24 -7
  215. package/plugins/pbr/skills/milestone/SKILL.md +10 -10
  216. package/plugins/pbr/skills/plan/SKILL.md +9 -9
  217. package/plugins/pbr/skills/quick/SKILL.md +3 -3
  218. package/plugins/pbr/skills/review/SKILL.md +6 -6
  219. /package/plugins/{pbr/references → copilot-pbr/references/archive}/agent-anti-patterns.md +0 -0
  220. /package/plugins/copilot-pbr/references/{checkpoints.md → archive/checkpoints.md} +0 -0
  221. /package/plugins/copilot-pbr/references/{context-quality-tiers.md → archive/context-quality-tiers.md} +0 -0
  222. /package/plugins/{pbr/references → copilot-pbr/references/archive}/pbr-rules.md +0 -0
  223. /package/plugins/copilot-pbr/references/{verification-patterns.md → archive/verification-patterns.md} +0 -0
  224. /package/plugins/cursor-pbr/references/{checkpoints.md → archive/checkpoints.md} +0 -0
  225. /package/plugins/cursor-pbr/references/{context-quality-tiers.md → archive/context-quality-tiers.md} +0 -0
  226. /package/plugins/cursor-pbr/references/{verification-patterns.md → archive/verification-patterns.md} +0 -0
  227. /package/plugins/pbr/references/{checkpoints.md → archive/checkpoints.md} +0 -0
  228. /package/plugins/pbr/references/{context-quality-tiers.md → archive/context-quality-tiers.md} +0 -0
  229. /package/plugins/pbr/references/{verification-patterns.md → archive/verification-patterns.md} +0 -0
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/templates/RESEARCH-SUMMARY.md.tmpl -->
2
1
  # Research Summary
3
2
 
4
3
  > Synthesized: {date}
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/templates/ROADMAP.md.tmpl -->
2
1
  # Project Roadmap
3
2
 
4
3
  > Generated: {date}
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/templates/SUMMARY.md.tmpl -->
2
1
  # SUMMARY.md Template
3
2
 
4
3
  > Referenced by: executor agent, build skill, review skill
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/templates/VERIFICATION-DETAIL.md.tmpl -->
2
1
  <!-- Source: agents/verifier.md | Purpose: Detailed output format for verification reports produced by the verifier agent -->
3
2
 
4
3
  ```yaml
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/templates/continue-here.md.tmpl -->
2
1
  <!-- Source: skills/pause/SKILL.md | Purpose: Handoff file for session pause/resume, placed in the active phase directory -->
3
2
 
4
3
  # Template: Continue Here Handoff File
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../../pbr/templates/prompt-partials/phase-project-context.md.tmpl -->
2
1
  <!-- Source: templates/prompt-partials/ | Purpose: Shared context blocks for agent prompt templates -->
3
2
  <!-- Usage: Read this file and fill in placeholders, then include the result in agent prompts. -->
4
3
  <!-- Orchestrators should omit sections that don't apply to their agent type. -->
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pbr",
3
3
  "displayName": "Plan-Build-Run",
4
- "version": "2.51.0",
4
+ "version": "2.53.0",
5
5
  "description": "Plan-Build-Run — Structured development workflow for Cursor. Solves context rot through disciplined subagent delegation, structured planning, atomic execution, and goal-backward verification.",
6
6
  "author": {
7
7
  "name": "SienkLogic",
@@ -27,7 +27,7 @@ You are **audit**, the session analysis agent for the Plan-Build-Run development
27
27
 
28
28
  You receive a prompt containing:
29
29
  - **Session JSONL path**: Absolute path to the session log file
30
- - **Subagent paths**: Optional paths to subagent logs in the `subagents/` subdirectory
30
+ - **Subagent paths**: Optional paths to subagent logs in the `agents/` subdirectory
31
31
  - **Audit mode**: `compliance` (workflow correctness) or `ux` (user experience) or `full` (both)
32
32
  - **Output path**: Where to write findings
33
33
 
@@ -184,7 +184,7 @@ Orchestrators pattern-match on these markers to route results. Omitting causes s
184
184
  9. DO NOT contradict locked decisions in CONTEXT.md
185
185
  10. DO NOT implement deferred ideas from CONTEXT.md
186
186
  11. DO NOT consume more than 50% context before producing output
187
- 12. DO NOT read agent .md files from agents/ — auto-loaded via agent:
187
+ 12. DO NOT read agent .md files from agents/ — auto-loaded via subagent_type
188
188
 
189
189
  Additionally for this agent:
190
190
 
@@ -205,7 +205,7 @@ Reference: `references/common-bug-patterns.md` — covers off-by-one, null/undef
205
205
  9. DO NOT contradict locked decisions in CONTEXT.md
206
206
  10. DO NOT implement deferred ideas from CONTEXT.md
207
207
  11. DO NOT consume more than 50% context before producing output
208
- 12. DO NOT read agent .md files from agents/ — auto-loaded via agent:
208
+ 12. DO NOT read agent .md files from agents/ — auto-loaded via subagent_type
209
209
 
210
210
  ### Debugger-Specific
211
211
 
@@ -33,8 +33,8 @@ Spawned by the orchestrator after edits to PBR plugin files. You receive either:
33
33
  |---------|-------------|-----------------|-------------------|
34
34
  | `allowed-tools:` frontmatter | KEEP | REMOVE entire line | REMOVE entire line |
35
35
  | `argument-hint:` frontmatter | KEEP | KEEP | REMOVE entire line |
36
- | `${CLAUDE_PLUGIN_ROOT}` | As-is | Replace → `${PLUGIN_ROOT}` | Replace → `${PLUGIN_ROOT}` |
37
- | "subagent" / "subagents" | As-is | Replace → "agent" / "agents" | Replace → "agent" / "agents" |
36
+ | `${PLUGIN_ROOT}` | As-is | Replace → `${PLUGIN_ROOT}` | Replace → `${PLUGIN_ROOT}` |
37
+ | "subagent" / "agents" | As-is | Replace → "agent" / "agents" | Replace → "agent" / "agents" |
38
38
  | `subagent_type:` | As-is | Replace → `agent:` | Replace → `agent:` |
39
39
 
40
40
  **Paths**:
@@ -57,9 +57,9 @@ Spawned by the orchestrator after edits to PBR plugin files. You receive either:
57
57
 
58
58
  **Text swaps** (same for both Cursor and Copilot agent bodies):
59
59
 
60
- - `${CLAUDE_PLUGIN_ROOT}` → `${PLUGIN_ROOT}`
60
+ - `${PLUGIN_ROOT}` → `${PLUGIN_ROOT}`
61
61
  - "subagent" → "agent" (case-sensitive, whole word when possible)
62
- - "subagents" → "agents"
62
+ - "agents" → "agents"
63
63
  - `subagent_type:` → `agent:`
64
64
 
65
65
  **Paths**:
@@ -72,8 +72,8 @@ Spawned by the orchestrator after edits to PBR plugin files. You receive either:
72
72
 
73
73
  These are copied with text swaps only (no frontmatter changes):
74
74
 
75
- - `${CLAUDE_PLUGIN_ROOT}` → `${PLUGIN_ROOT}`
76
- - "subagent" → "agent", "subagents" → "agents"
75
+ - `${PLUGIN_ROOT}` → `${PLUGIN_ROOT}`
76
+ - "subagent" → "agent", "agents" → "agents"
77
77
  - `subagent_type:` → `agent:`
78
78
 
79
79
  **Paths**:
@@ -134,8 +134,6 @@ Only append to the LAST commit of the plan — intermediate commits (RED/GREEN i
134
134
 
135
135
  ## Deviation Rules
136
136
 
137
- Reference: `references/deviation-rules.md` for examples and decision tree.
138
-
139
137
  | Rule | Trigger | Action | Approval |
140
138
  |------|---------|--------|----------|
141
139
  | 1 — Bug | Code bug (typo, wrong import, syntax) | Auto-fix in same commit. 3 attempts max. | No |
@@ -361,7 +359,7 @@ Record timestamps at start and end using `node -e "console.log(new Date().toISOS
361
359
  9. DO NOT contradict locked decisions in CONTEXT.md
362
360
  10. DO NOT implement deferred ideas from CONTEXT.md
363
361
  11. DO NOT consume more than 50% context before producing output — write incrementally
364
- 12. DO NOT read agent .md files from agents/ — they're auto-loaded via agent:
362
+ 12. DO NOT read agent .md files from agents/ — they're auto-loaded via subagent_type
365
363
 
366
364
  ### Executor-Specific
367
365
 
@@ -101,7 +101,7 @@ If your task hits any of these, STOP and recommend the appropriate agent:
101
101
  9. DO NOT contradict locked decisions in CONTEXT.md
102
102
  10. DO NOT implement deferred ideas from CONTEXT.md
103
103
  11. DO NOT consume more than 50% context before producing output
104
- 12. DO NOT read agent .md files from agents/ — auto-loaded via agent:
104
+ 12. DO NOT read agent .md files from agents/ — auto-loaded via subagent_type
105
105
 
106
106
  ### Agent-Specific
107
107
  1. DO NOT take on large implementation tasks — escalate to executor
@@ -2,7 +2,7 @@
2
2
  name: integration-checker
3
3
  description: "Cross-phase integration and E2E flow verification. Checks exports used by imports, API coverage, auth protection, and complete user workflows."
4
4
  model: sonnet
5
- readonly: true
5
+ readonly: false
6
6
  ---
7
7
 
8
8
  <files_to_read>
@@ -143,7 +143,7 @@ See `references/integration-patterns.md` for grep/search patterns by framework.
143
143
  9. DO NOT contradict locked decisions in CONTEXT.md
144
144
  10. DO NOT implement deferred ideas from CONTEXT.md
145
145
  11. DO NOT consume more than 50% context before producing output
146
- 12. DO NOT read agent .md files from agents/ — auto-loaded via agent:
146
+ 12. DO NOT read agent .md files from agents/ — auto-loaded via subagent_type
147
147
 
148
148
  ### Agent-Specific
149
149
  - Never attempt to fix issues — you REPORT them
@@ -2,7 +2,7 @@
2
2
  name: plan-checker
3
3
  description: "Verifies plans will achieve phase goals before execution. Goal-backward analysis of plan quality across 10 dimensions."
4
4
  model: sonnet
5
- readonly: true
5
+ readonly: false
6
6
  ---
7
7
 
8
8
  <files_to_read>
@@ -238,7 +238,7 @@ Plans: {count} | Tasks: {count} | Blockers: {count} | Warnings: {count} | Info:
238
238
  9. DO NOT contradict locked decisions in CONTEXT.md
239
239
  10. DO NOT implement deferred ideas from CONTEXT.md
240
240
  11. DO NOT consume more than 50% context before producing output
241
- 12. DO NOT read agent .md files from agents/ — auto-loaded via agent:
241
+ 12. DO NOT read agent .md files from agents/ — auto-loaded via subagent_type
242
242
 
243
243
  </anti_patterns>
244
244
 
@@ -322,7 +322,7 @@ One-line task descriptions in `<name>`. File paths in `<files>`, not explanation
322
322
  9. DO NOT contradict locked decisions in CONTEXT.md
323
323
  10. DO NOT implement deferred ideas from CONTEXT.md
324
324
  11. DO NOT consume more than 50% context before producing output — write incrementally
325
- 12. DO NOT read agent .md files from agents/ — they're auto-loaded via agent:
325
+ 12. DO NOT read agent .md files from agents/ — they're auto-loaded via subagent_type
326
326
 
327
327
  ### Planner-Specific Anti-Patterns
328
328
  1. DO NOT create plans that violate CONTEXT.md locked decisions
@@ -2,7 +2,7 @@
2
2
  name: researcher
3
3
  description: "Unified research agent for project domains, phase implementation approaches, and synthesis. Follows source-hierarchy methodology with confidence levels."
4
4
  model: sonnet
5
- readonly: true
5
+ readonly: false
6
6
  ---
7
7
 
8
8
  <files_to_read>
@@ -215,7 +215,7 @@ coverage: "complete|partial|minimal"
215
215
  9. DO NOT contradict locked decisions in CONTEXT.md
216
216
  10. DO NOT implement deferred ideas from CONTEXT.md
217
217
  11. DO NOT consume more than 50% context before producing output — write incrementally
218
- 12. DO NOT read agent .md files from agents/ — auto-loaded via agent:
218
+ 12. DO NOT read agent .md files from agents/ — they're auto-loaded via subagent_type
219
219
 
220
220
  Additionally for this agent:
221
221
 
@@ -146,7 +146,7 @@ Use the returned `summary` string as your working copy of that document's findin
146
146
  9. DO NOT contradict locked decisions in CONTEXT.md
147
147
  10. DO NOT implement deferred ideas from CONTEXT.md
148
148
  11. DO NOT consume more than 50% context before producing output
149
- 12. DO NOT read agent .md files from agents/ — auto-loaded via agent:
149
+ 12. DO NOT read agent .md files from agents/ — auto-loaded via subagent_type
150
150
 
151
151
  ### Agent-Specific
152
152
  1. DO NOT re-research topics — synthesize what's already been researched
@@ -2,7 +2,8 @@
2
2
  name: verifier
3
3
  description: "Goal-backward phase verification. Checks codebase reality against phase goals - existence, substantiveness, and wiring of all deliverables."
4
4
  model: sonnet
5
- readonly: true
5
+ isolation: worktree
6
+ readonly: false
6
7
  ---
7
8
 
8
9
  <files_to_read>
@@ -332,7 +333,7 @@ Orchestrators pattern-match on these markers to route results. Omitting causes s
332
333
  9. DO NOT contradict locked decisions in CONTEXT.md
333
334
  10. DO NOT implement deferred ideas from CONTEXT.md
334
335
  11. DO NOT consume more than 50% context before producing output — write incrementally
335
- 12. DO NOT read agent .md files from agents/ — they're auto-loaded via agent:
336
+ 12. DO NOT read agent .md files from agents/ — they're auto-loaded via subagent_type
336
337
 
337
338
  ### Verifier-Specific Anti-Patterns
338
339
  1. DO NOT trust SUMMARY.md claims without verifying the actual codebase
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Review past Claude Code sessions for PBR workflow compliance and UX quality."
3
+ ---
4
+
5
+ This command is provided by the `pbr:audit` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Start a new project. Deep questioning, research, requirements, and roadmap."
3
+ ---
4
+
5
+ This command is provided by the `pbr:begin` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Execute all plans in a phase. Spawns agents to build in parallel, commits atomically."
3
+ ---
4
+
5
+ This command is provided by the `pbr:build` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Configure Plan-Build-Run settings. Model selection, workflow toggles, depth, gates, and parallelization."
3
+ ---
4
+
5
+ This command is provided by the `pbr:config` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Execute the next logical step automatically. No prompts, no decisions — just do it."
3
+ ---
4
+
5
+ This command is provided by the `pbr:continue` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Launch the PBR web dashboard for the current project."
3
+ ---
4
+
5
+ This command is provided by the `pbr:dashboard` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Systematic debugging with hypothesis testing. Persistent across sessions."
3
+ ---
4
+
5
+ This command is provided by the `pbr:debug` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Talk through a phase before planning. Identifies gray areas and captures your decisions."
3
+ ---
4
+
5
+ This command is provided by the `pbr:discuss` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Route freeform text to the right PBR skill automatically."
3
+ ---
4
+
5
+ This command is provided by the `pbr:do` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Explore ideas, think through approaches, and route insights to the right artifacts."
3
+ ---
4
+
5
+ This command is provided by the `pbr:explore` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Check planning directory integrity. Find and fix corrupted state."
3
+ ---
4
+
5
+ This command is provided by the `pbr:health` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Command reference and workflow guide for Plan-Build-Run."
3
+ ---
4
+
5
+ This command is provided by the `pbr:help` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Import an external plan document. Validates against project context, detects conflicts, and generates PLAN.md files."
3
+ ---
4
+
5
+ This command is provided by the `pbr:import` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Manage milestones: new, complete, audit, gaps."
3
+ ---
4
+
5
+ This command is provided by the `pbr:milestone` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Zero-friction idea capture. Append, list, or promote notes to todos."
3
+ ---
4
+
5
+ This command is provided by the `pbr:note` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Save your current session state for later resumption."
3
+ ---
4
+
5
+ This command is provided by the `pbr:pause` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Create a detailed plan for a phase. Research, plan, and verify before building."
3
+ ---
4
+
5
+ This command is provided by the `pbr:plan` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Execute a quick ad-hoc task. Atomic commits + state tracking, skips full plan/review cycle."
3
+ ---
4
+
5
+ This command is provided by the `pbr:quick` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Pick up where you left off. Restores context and suggests next action."
3
+ ---
4
+
5
+ This command is provided by the `pbr:resume` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Verify the build matched the plan. Automated checks + walkthrough with you."
3
+ ---
4
+
5
+ This command is provided by the `pbr:review` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Analyze an existing codebase. Maps structure, architecture, conventions, and concerns."
3
+ ---
4
+
5
+ This command is provided by the `pbr:scan` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Interactive onboarding wizard for new Plan-Build-Run projects."
3
+ ---
4
+
5
+ This command is provided by the `pbr:setup` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Show current project status and suggest what to do next."
3
+ ---
4
+
5
+ This command is provided by the `pbr:status` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Install or configure the PBR status line in Claude Code."
3
+ ---
4
+
5
+ This command is provided by the `pbr:statusline` skill.
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "Persistent file-based todos that survive across sessions. Add, list, and complete todo items."
3
+ ---
4
+
5
+ This command is provided by the `pbr:todo` skill.
@@ -196,9 +196,7 @@
196
196
  {
197
197
  "type": "command",
198
198
  "command": "node -e \"var r=process.env.CLAUDE_PLUGIN_ROOT||'',m=r.match(/^\\/([a-zA-Z])\\/(.*)/);if(m)r=m[1]+String.fromCharCode(58)+String.fromCharCode(92)+m[2];require(require('path').resolve(r,'..','pbr','scripts','run-hook.js'))\" log-subagent.js stop",
199
- "statusMessage": "Logging agent completion...",
200
- "async": true,
201
- "timeout": 30
199
+ "statusMessage": "Logging agent completion..."
202
200
  }
203
201
  ]
204
202
  },
@@ -207,9 +205,7 @@
207
205
  {
208
206
  "type": "command",
209
207
  "command": "node -e \"var r=process.env.CLAUDE_PLUGIN_ROOT||'',m=r.match(/^\\/([a-zA-Z])\\/(.*)/);if(m)r=m[1]+String.fromCharCode(58)+String.fromCharCode(92)+m[2];require(require('path').resolve(r,'..','pbr','scripts','run-hook.js'))\" event-handler.js",
210
- "statusMessage": "Checking for auto-verification...",
211
- "async": true,
212
- "timeout": 10
208
+ "statusMessage": "Checking for auto-verification..."
213
209
  }
214
210
  ]
215
211
  }
@@ -242,12 +238,10 @@
242
238
  {
243
239
  "type": "command",
244
240
  "command": "node -e \"var r=process.env.CLAUDE_PLUGIN_ROOT||'',m=r.match(/^\\/([a-zA-Z])\\/(.*)/);if(m)r=m[1]+String.fromCharCode(58)+String.fromCharCode(92)+m[2];require(require('path').resolve(r,'..','pbr','scripts','run-hook.js'))\" session-cleanup.js",
245
- "statusMessage": "Cleaning up session...",
246
- "async": true,
247
- "timeout": 30
241
+ "statusMessage": "Cleaning up session..."
248
242
  }
249
243
  ]
250
244
  }
251
245
  ]
252
246
  }
253
- }
247
+ }
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/agent-teams.md -->
2
1
  # Agent Teams Reference
3
2
 
4
3
  Agent Teams enable parallel specialist perspectives for critical phases. Teams are off by default.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/agent-anti-patterns.md -->
2
1
  # Universal Agent Anti-Patterns
3
2
 
4
3
  These anti-patterns apply to ALL Plan-Build-Run agents. Each agent also has role-specific anti-patterns defined in its own agent file.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/pbr-rules.md -->
2
1
  # Plan-Build-Run Rules
3
2
 
4
3
  Authoritative rules for all Plan-Build-Run skills, agents, hooks, and workflows.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/common-bug-patterns.md -->
2
1
  # Common Bug Patterns
3
2
 
4
3
  Quick reference for the debugger agent. Check these patterns early — they cover ~80% of bugs.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/config-reference.md -->
2
1
  # Config Reference Guide
3
2
 
4
3
  Complete reference for `.planning/config.json` -- the file that controls all Plan-Build-Run workflow behavior. Created by `/pbr:begin`, modifiable via `/pbr:config` or direct editing. Validated against `config-schema.json`.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/continuation-format.md -->
2
1
  # Continuation Protocol
3
2
 
4
3
  How to spawn a fresh executor agent to continue from a checkpoint or partial completion.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/deviation-rules.md -->
2
1
  # Deviation Rules
3
2
 
4
3
  When execution doesn't go exactly as planned, these 5 rules govern what the executor can do on its own versus what requires user approval.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/git-integration.md -->
2
1
  # Git Integration Reference
3
2
 
4
3
  Plan-Build-Run's commit conventions, commit points, branching strategy, and hook scripts.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/integration-patterns.md -->
2
1
  # Integration Patterns Reference
3
2
 
4
3
  Technology-specific grep/search patterns and E2E flow templates for integration-checker.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/model-profiles.md -->
2
1
  # Model Profiles Reference
3
2
 
4
3
  How Plan-Build-Run maps agents to models and how to configure model selection.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/model-selection.md -->
2
1
  # Model Selection Reference
3
2
 
4
3
  Plan-Build-Run uses adaptive model selection to balance cost and capability.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/plan-authoring.md -->
2
1
  # Plan Authoring Guide
3
2
 
4
3
  Quality guidelines for writing executable plans. Used by planner and plan-checker.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/plan-format.md -->
2
1
  # Plan Format Reference
3
2
 
4
3
  Complete reference for the XML task specification used in Plan-Build-Run plan files.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/reading-verification.md -->
2
1
  # Reading Verification Reports
3
2
 
4
3
  A user-friendly guide to understanding verification results. For agent-facing patterns, see `verification-patterns.md`.
@@ -0,0 +1,41 @@
1
+ # Signal Files Reference
2
+
3
+ Signal files are ephemeral files in `.planning/` that coordinate state between hook scripts
4
+ and skills. They are scoped to either the current session or the current phase/plan.
5
+
6
+ ## Session-Scoped Files
7
+
8
+ All 5 session signals are consolidated in `.planning/.session.json`. Scripts must read and write
9
+ `.session.json` via `pbr-tools session get|set|clear` — never read the raw `.session.json` file directly.
10
+ The `.session.json` schema is an object with the keys documented below.
11
+
12
+ | JSON Key | Former File | Written By | Read By | Semantics |
13
+ |----------|-------------|------------|---------|-----------|
14
+ | `activeSkill` | `.active-skill` | Skills (Write tool) | check-skill-workflow, enforce-pbr-workflow, check-subagent-output, log-subagent, block-skill-self-read | Which skill is active. Written at skill start, cleared at skill end (session-cleanup). |
15
+ | `compactCounter` | `.compact-counter` | suggest-compact.js | suggest-compact.js | Write count since last /compact. Resets on SessionStart. |
16
+ | `sessionStart` | `.session-start` | progress-tracker.js | local-llm metrics | ISO timestamp of session start. Used for LLM metrics correlation. |
17
+ | `activeOperation` | `.active-operation` | context-budget-check.js | context-budget-check.js | Current named operation for budget display. |
18
+ | `activePlan` | `.active-plan` | context-budget-check.js | context-budget-check.js | Current plan ID for budget display. |
19
+
20
+ **Atomic access**: Use `pbr-tools session get|set|clear` for safe reads/writes from hook scripts.
21
+
22
+ **Lifecycle**: Written during SessionStart (progress-tracker), cleared during SessionEnd (session-cleanup).
23
+ Stale sessions (> 60 min) are auto-cleaned by progress-tracker.js on next SessionStart.
24
+
25
+ ## One-Shot Files
26
+
27
+ These files are NOT consolidated — they use write-once, delete-on-read semantics.
28
+
29
+ | File | Written By | Read By | Semantics |
30
+ |------|------------|---------|-----------|
31
+ | `.planning/.auto-next` | auto-continue.js | auto-continue.js (Stop hook) | Next command to run after session stops. Deleted after read. |
32
+ | `.planning/.auto-verify` | event-handler.js | event-handler.js (SubagentStop hook) | Trigger auto-verification after agent completes. Deleted after read. |
33
+
34
+ ## Phase-Scoped Files
35
+
36
+ These files persist across sessions, scoped to a specific phase or plan.
37
+
38
+ | File Pattern | Written By | Read By | Semantics |
39
+ |-------------|------------|---------|-----------|
40
+ | `.planning/phases/{id}/.checkpoint-manifest.json` | build skill | validate-task.js, session-cleanup.js | Checkpoint state for a plan in progress. Cleaned up after 24h. |
41
+ | `.planning/phases/{id}/.PROGRESS-{taskId}` | executor agent | validate-task.js | Task progress marker for crash recovery. Orphaned files warn on SessionStart. |
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/stub-patterns.md -->
2
1
  # Stub Detection Patterns
3
2
 
4
3
  Technology-aware patterns for detecting incomplete implementations. Used by the verifier during Layer 2 (Substantiveness) checks.
@@ -1,4 +1,3 @@
1
- <!-- canonical: ../../pbr/references/wave-execution.md -->
2
1
  # Wave-Based Execution
3
2
 
4
3
  How Plan-Build-Run parallelizes plan execution within a phase while respecting dependencies.