@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.
- package/CHANGELOG.md +28 -0
- package/package.json +4 -2
- package/plugins/copilot-pbr/agents/audit.agent.md +2 -5
- package/plugins/copilot-pbr/agents/codebase-mapper.agent.md +1 -4
- package/plugins/copilot-pbr/agents/debugger.agent.md +1 -4
- package/plugins/copilot-pbr/agents/dev-sync.agent.md +6 -9
- package/plugins/copilot-pbr/agents/executor.agent.md +1 -6
- package/plugins/copilot-pbr/agents/general.agent.md +1 -4
- package/plugins/copilot-pbr/agents/integration-checker.agent.md +1 -4
- package/plugins/copilot-pbr/agents/plan-checker.agent.md +1 -4
- package/plugins/copilot-pbr/agents/planner.agent.md +1 -4
- package/plugins/copilot-pbr/agents/researcher.agent.md +1 -4
- package/plugins/copilot-pbr/agents/synthesizer.agent.md +1 -4
- package/plugins/copilot-pbr/agents/verifier.agent.md +2 -4
- package/plugins/copilot-pbr/commands/audit.md +5 -0
- package/plugins/copilot-pbr/commands/begin.md +5 -0
- package/plugins/copilot-pbr/commands/build.md +5 -0
- package/plugins/copilot-pbr/commands/config.md +5 -0
- package/plugins/copilot-pbr/commands/continue.md +5 -0
- package/plugins/copilot-pbr/commands/dashboard.md +5 -0
- package/plugins/copilot-pbr/commands/debug.md +5 -0
- package/plugins/copilot-pbr/commands/discuss.md +5 -0
- package/plugins/copilot-pbr/commands/do.md +5 -0
- package/plugins/copilot-pbr/commands/explore.md +5 -0
- package/plugins/copilot-pbr/commands/health.md +5 -0
- package/plugins/copilot-pbr/commands/help.md +5 -0
- package/plugins/copilot-pbr/commands/import.md +5 -0
- package/plugins/copilot-pbr/commands/milestone.md +5 -0
- package/plugins/copilot-pbr/commands/note.md +5 -0
- package/plugins/copilot-pbr/commands/pause.md +5 -0
- package/plugins/copilot-pbr/commands/plan.md +5 -0
- package/plugins/copilot-pbr/commands/quick.md +5 -0
- package/plugins/copilot-pbr/commands/resume.md +5 -0
- package/plugins/copilot-pbr/commands/review.md +5 -0
- package/plugins/copilot-pbr/commands/scan.md +5 -0
- package/plugins/copilot-pbr/commands/setup.md +5 -0
- package/plugins/copilot-pbr/commands/status.md +5 -0
- package/plugins/copilot-pbr/commands/statusline.md +5 -0
- package/plugins/copilot-pbr/commands/todo.md +5 -0
- package/plugins/copilot-pbr/plugin.json +1 -1
- package/plugins/copilot-pbr/references/agent-teams.md +0 -1
- package/plugins/copilot-pbr/references/common-bug-patterns.md +0 -1
- package/plugins/copilot-pbr/references/config-reference.md +0 -1
- package/plugins/copilot-pbr/references/continuation-format.md +0 -1
- package/plugins/copilot-pbr/references/deviation-rules.md +0 -1
- package/plugins/copilot-pbr/references/git-integration.md +0 -1
- package/plugins/copilot-pbr/references/integration-patterns.md +0 -1
- package/plugins/copilot-pbr/references/model-profiles.md +0 -1
- package/plugins/copilot-pbr/references/model-selection.md +0 -1
- package/plugins/copilot-pbr/references/plan-authoring.md +0 -1
- package/plugins/copilot-pbr/references/plan-format.md +0 -1
- package/plugins/copilot-pbr/references/reading-verification.md +0 -1
- package/plugins/copilot-pbr/references/signal-files.md +41 -0
- package/plugins/copilot-pbr/references/stub-patterns.md +0 -1
- package/plugins/copilot-pbr/references/wave-execution.md +0 -1
- package/plugins/copilot-pbr/skills/begin/SKILL.md +74 -52
- package/plugins/copilot-pbr/skills/build/SKILL.md +55 -69
- package/plugins/copilot-pbr/skills/config/SKILL.md +7 -0
- package/plugins/copilot-pbr/skills/continue/SKILL.md +31 -24
- package/plugins/copilot-pbr/skills/dashboard/SKILL.md +8 -7
- package/plugins/copilot-pbr/skills/debug/SKILL.md +11 -0
- package/plugins/copilot-pbr/skills/discuss/SKILL.md +2 -0
- package/plugins/copilot-pbr/skills/do/SKILL.md +2 -0
- package/plugins/copilot-pbr/skills/explore/SKILL.md +7 -1
- package/plugins/copilot-pbr/skills/health/SKILL.md +2 -0
- package/plugins/copilot-pbr/skills/help/SKILL.md +6 -0
- package/plugins/copilot-pbr/skills/import/SKILL.md +9 -0
- package/plugins/copilot-pbr/skills/milestone/SKILL.md +20 -196
- package/plugins/copilot-pbr/skills/note/SKILL.md +2 -0
- package/plugins/copilot-pbr/skills/pause/SKILL.md +5 -0
- package/plugins/copilot-pbr/skills/plan/SKILL.md +87 -119
- package/plugins/copilot-pbr/skills/quick/SKILL.md +13 -8
- package/plugins/copilot-pbr/skills/resume/SKILL.md +4 -0
- package/plugins/copilot-pbr/skills/review/SKILL.md +85 -47
- package/plugins/copilot-pbr/skills/scan/SKILL.md +6 -0
- package/plugins/copilot-pbr/skills/setup/SKILL.md +2 -0
- package/plugins/copilot-pbr/skills/shared/commit-planning-docs.md +0 -1
- package/plugins/copilot-pbr/skills/shared/config-loading.md +0 -1
- package/plugins/copilot-pbr/skills/shared/context-budget.md +0 -1
- package/plugins/copilot-pbr/skills/shared/context-loader-task.md +0 -1
- package/plugins/copilot-pbr/skills/shared/digest-select.md +0 -1
- package/plugins/copilot-pbr/skills/shared/domain-probes.md +0 -1
- package/plugins/copilot-pbr/skills/shared/gate-prompts.md +0 -1
- package/plugins/copilot-pbr/skills/shared/phase-argument-parsing.md +0 -1
- package/plugins/copilot-pbr/skills/shared/revision-loop.md +0 -1
- package/plugins/copilot-pbr/skills/shared/state-update.md +0 -1
- package/plugins/copilot-pbr/skills/shared/universal-anti-patterns.md +1 -2
- package/plugins/copilot-pbr/skills/status/SKILL.md +35 -26
- package/plugins/copilot-pbr/skills/test/SKILL.md +2 -2
- package/plugins/copilot-pbr/skills/todo/SKILL.md +2 -0
- package/plugins/copilot-pbr/templates/CONTEXT.md.tmpl +0 -1
- package/plugins/copilot-pbr/templates/INTEGRATION-REPORT.md.tmpl +0 -1
- package/plugins/copilot-pbr/templates/RESEARCH-SUMMARY.md.tmpl +0 -1
- package/plugins/copilot-pbr/templates/ROADMAP.md.tmpl +0 -1
- package/plugins/copilot-pbr/templates/SUMMARY.md.tmpl +0 -1
- package/plugins/copilot-pbr/templates/VERIFICATION-DETAIL.md.tmpl +0 -1
- package/plugins/copilot-pbr/templates/continue-here.md.tmpl +0 -1
- package/plugins/copilot-pbr/templates/prompt-partials/phase-project-context.md.tmpl +0 -1
- package/plugins/cursor-pbr/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor-pbr/agents/audit.md +1 -1
- package/plugins/cursor-pbr/agents/codebase-mapper.md +1 -1
- package/plugins/cursor-pbr/agents/debugger.md +1 -1
- package/plugins/cursor-pbr/agents/dev-sync.md +6 -6
- package/plugins/cursor-pbr/agents/executor.md +1 -3
- package/plugins/cursor-pbr/agents/general.md +1 -1
- package/plugins/cursor-pbr/agents/integration-checker.md +2 -2
- package/plugins/cursor-pbr/agents/plan-checker.md +2 -2
- package/plugins/cursor-pbr/agents/planner.md +1 -1
- package/plugins/cursor-pbr/agents/researcher.md +2 -2
- package/plugins/cursor-pbr/agents/synthesizer.md +1 -1
- package/plugins/cursor-pbr/agents/verifier.md +3 -2
- package/plugins/cursor-pbr/commands/audit.md +5 -0
- package/plugins/cursor-pbr/commands/begin.md +5 -0
- package/plugins/cursor-pbr/commands/build.md +5 -0
- package/plugins/cursor-pbr/commands/config.md +5 -0
- package/plugins/cursor-pbr/commands/continue.md +5 -0
- package/plugins/cursor-pbr/commands/dashboard.md +5 -0
- package/plugins/cursor-pbr/commands/debug.md +5 -0
- package/plugins/cursor-pbr/commands/discuss.md +5 -0
- package/plugins/cursor-pbr/commands/do.md +5 -0
- package/plugins/cursor-pbr/commands/explore.md +5 -0
- package/plugins/cursor-pbr/commands/health.md +5 -0
- package/plugins/cursor-pbr/commands/help.md +5 -0
- package/plugins/cursor-pbr/commands/import.md +5 -0
- package/plugins/cursor-pbr/commands/milestone.md +5 -0
- package/plugins/cursor-pbr/commands/note.md +5 -0
- package/plugins/cursor-pbr/commands/pause.md +5 -0
- package/plugins/cursor-pbr/commands/plan.md +5 -0
- package/plugins/cursor-pbr/commands/quick.md +5 -0
- package/plugins/cursor-pbr/commands/resume.md +5 -0
- package/plugins/cursor-pbr/commands/review.md +5 -0
- package/plugins/cursor-pbr/commands/scan.md +5 -0
- package/plugins/cursor-pbr/commands/setup.md +5 -0
- package/plugins/cursor-pbr/commands/status.md +5 -0
- package/plugins/cursor-pbr/commands/statusline.md +5 -0
- package/plugins/cursor-pbr/commands/todo.md +5 -0
- package/plugins/cursor-pbr/hooks/hooks.json +4 -10
- package/plugins/cursor-pbr/references/agent-teams.md +0 -1
- package/plugins/{copilot-pbr/references → cursor-pbr/references/archive}/agent-anti-patterns.md +0 -1
- package/plugins/cursor-pbr/references/{pbr-rules.md → archive/pbr-rules.md} +0 -1
- package/plugins/cursor-pbr/references/common-bug-patterns.md +0 -1
- package/plugins/cursor-pbr/references/config-reference.md +0 -1
- package/plugins/cursor-pbr/references/continuation-format.md +0 -1
- package/plugins/cursor-pbr/references/deviation-rules.md +0 -1
- package/plugins/cursor-pbr/references/git-integration.md +0 -1
- package/plugins/cursor-pbr/references/integration-patterns.md +0 -1
- package/plugins/cursor-pbr/references/model-profiles.md +0 -1
- package/plugins/cursor-pbr/references/model-selection.md +0 -1
- package/plugins/cursor-pbr/references/plan-authoring.md +0 -1
- package/plugins/cursor-pbr/references/plan-format.md +0 -1
- package/plugins/cursor-pbr/references/reading-verification.md +0 -1
- package/plugins/cursor-pbr/references/signal-files.md +41 -0
- package/plugins/cursor-pbr/references/stub-patterns.md +0 -1
- package/plugins/cursor-pbr/references/wave-execution.md +0 -1
- package/plugins/cursor-pbr/skills/begin/SKILL.md +74 -52
- package/plugins/cursor-pbr/skills/build/SKILL.md +58 -70
- package/plugins/cursor-pbr/skills/config/SKILL.md +5 -0
- package/plugins/cursor-pbr/skills/continue/SKILL.md +31 -24
- package/plugins/cursor-pbr/skills/dashboard/SKILL.md +8 -7
- package/plugins/cursor-pbr/skills/debug/SKILL.md +8 -0
- package/plugins/cursor-pbr/skills/discuss/SKILL.md +2 -0
- package/plugins/cursor-pbr/skills/do/SKILL.md +2 -0
- package/plugins/cursor-pbr/skills/explore/SKILL.md +5 -1
- package/plugins/cursor-pbr/skills/health/SKILL.md +2 -0
- package/plugins/cursor-pbr/skills/help/SKILL.md +6 -0
- package/plugins/cursor-pbr/skills/import/SKILL.md +7 -0
- package/plugins/cursor-pbr/skills/milestone/SKILL.md +20 -196
- package/plugins/cursor-pbr/skills/note/SKILL.md +2 -0
- package/plugins/cursor-pbr/skills/pause/SKILL.md +4 -0
- package/plugins/cursor-pbr/skills/plan/SKILL.md +87 -119
- package/plugins/cursor-pbr/skills/quick/SKILL.md +13 -8
- package/plugins/cursor-pbr/skills/resume/SKILL.md +4 -0
- package/plugins/cursor-pbr/skills/review/SKILL.md +85 -47
- package/plugins/cursor-pbr/skills/scan/SKILL.md +5 -0
- package/plugins/cursor-pbr/skills/setup/SKILL.md +2 -0
- package/plugins/cursor-pbr/skills/shared/commit-planning-docs.md +0 -1
- package/plugins/cursor-pbr/skills/shared/config-loading.md +0 -1
- package/plugins/cursor-pbr/skills/shared/context-budget.md +0 -1
- package/plugins/cursor-pbr/skills/shared/context-loader-task.md +0 -1
- package/plugins/cursor-pbr/skills/shared/digest-select.md +0 -1
- package/plugins/cursor-pbr/skills/shared/domain-probes.md +0 -1
- package/plugins/cursor-pbr/skills/shared/gate-prompts.md +0 -1
- package/plugins/cursor-pbr/skills/shared/phase-argument-parsing.md +0 -1
- package/plugins/cursor-pbr/skills/shared/revision-loop.md +0 -1
- package/plugins/cursor-pbr/skills/shared/state-update.md +0 -1
- package/plugins/cursor-pbr/skills/shared/universal-anti-patterns.md +1 -2
- package/plugins/cursor-pbr/skills/status/SKILL.md +35 -26
- package/plugins/cursor-pbr/skills/test/SKILL.md +2 -2
- package/plugins/cursor-pbr/skills/todo/SKILL.md +2 -0
- package/plugins/cursor-pbr/templates/CONTEXT.md.tmpl +0 -1
- package/plugins/cursor-pbr/templates/INTEGRATION-REPORT.md.tmpl +0 -1
- package/plugins/cursor-pbr/templates/RESEARCH-SUMMARY.md.tmpl +0 -1
- package/plugins/cursor-pbr/templates/ROADMAP.md.tmpl +0 -1
- package/plugins/cursor-pbr/templates/SUMMARY.md.tmpl +0 -1
- package/plugins/cursor-pbr/templates/VERIFICATION-DETAIL.md.tmpl +0 -1
- package/plugins/cursor-pbr/templates/continue-here.md.tmpl +0 -1
- package/plugins/cursor-pbr/templates/prompt-partials/phase-project-context.md.tmpl +0 -1
- package/plugins/pbr/.claude-plugin/plugin.json +1 -1
- package/plugins/pbr/agents/executor.md +0 -2
- package/plugins/{cursor-pbr/references → pbr/references/archive}/agent-anti-patterns.md +0 -1
- package/plugins/{copilot-pbr/references → pbr/references/archive}/pbr-rules.md +0 -1
- package/plugins/pbr/references/signal-files.md +41 -0
- package/plugins/pbr/scripts/check-skill-workflow.js +7 -8
- package/plugins/pbr/scripts/check-subagent-output.js +7 -6
- package/plugins/pbr/scripts/context-budget-check.js +13 -1
- package/plugins/pbr/scripts/enforce-pbr-workflow.js +15 -6
- package/plugins/pbr/scripts/lib/core.js +53 -1
- package/plugins/pbr/scripts/log-subagent.js +7 -10
- package/plugins/pbr/scripts/pbr-tools.js +49 -3
- package/plugins/pbr/scripts/progress-tracker.js +13 -3
- package/plugins/pbr/scripts/session-cleanup.js +6 -0
- package/plugins/pbr/scripts/suggest-compact.js +13 -1
- package/plugins/pbr/skills/begin/SKILL.md +13 -13
- package/plugins/pbr/skills/build/SKILL.md +24 -7
- package/plugins/pbr/skills/milestone/SKILL.md +10 -10
- package/plugins/pbr/skills/plan/SKILL.md +9 -9
- package/plugins/pbr/skills/quick/SKILL.md +3 -3
- package/plugins/pbr/skills/review/SKILL.md +6 -6
- /package/plugins/{pbr/references → copilot-pbr/references/archive}/agent-anti-patterns.md +0 -0
- /package/plugins/copilot-pbr/references/{checkpoints.md → archive/checkpoints.md} +0 -0
- /package/plugins/copilot-pbr/references/{context-quality-tiers.md → archive/context-quality-tiers.md} +0 -0
- /package/plugins/{pbr/references → copilot-pbr/references/archive}/pbr-rules.md +0 -0
- /package/plugins/copilot-pbr/references/{verification-patterns.md → archive/verification-patterns.md} +0 -0
- /package/plugins/cursor-pbr/references/{checkpoints.md → archive/checkpoints.md} +0 -0
- /package/plugins/cursor-pbr/references/{context-quality-tiers.md → archive/context-quality-tiers.md} +0 -0
- /package/plugins/cursor-pbr/references/{verification-patterns.md → archive/verification-patterns.md} +0 -0
- /package/plugins/pbr/references/{checkpoints.md → archive/checkpoints.md} +0 -0
- /package/plugins/pbr/references/{context-quality-tiers.md → archive/context-quality-tiers.md} +0 -0
- /package/plugins/pbr/references/{verification-patterns.md → archive/verification-patterns.md} +0 -0
|
@@ -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.
|
|
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 `
|
|
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
|
|
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
|
|
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
|
-
| `${
|
|
37
|
-
| "subagent" / "
|
|
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
|
-
- `${
|
|
60
|
+
- `${PLUGIN_ROOT}` → `${PLUGIN_ROOT}`
|
|
61
61
|
- "subagent" → "agent" (case-sensitive, whole word when possible)
|
|
62
|
-
- "
|
|
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
|
-
- `${
|
|
76
|
-
- "subagent" → "agent", "
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
@@ -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/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`.
|
|
@@ -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. |
|