@sienklogic/plan-build-run 2.54.0 → 2.56.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 +24 -0
- package/package.json +1 -1
- package/plugins/codex-pbr/.codex/config.toml +101 -0
- package/plugins/codex-pbr/AGENTS.md +653 -0
- package/plugins/codex-pbr/README.md +116 -0
- package/plugins/codex-pbr/agents/audit.md +223 -0
- package/plugins/codex-pbr/agents/codebase-mapper.md +196 -0
- package/plugins/codex-pbr/agents/debugger.md +245 -0
- package/plugins/codex-pbr/agents/dev-sync.md +142 -0
- package/plugins/codex-pbr/agents/executor.md +429 -0
- package/plugins/codex-pbr/agents/general.md +131 -0
- package/plugins/codex-pbr/agents/integration-checker.md +178 -0
- package/plugins/codex-pbr/agents/plan-checker.md +253 -0
- package/plugins/codex-pbr/agents/planner.md +343 -0
- package/plugins/codex-pbr/agents/researcher.md +253 -0
- package/plugins/codex-pbr/agents/synthesizer.md +183 -0
- package/plugins/codex-pbr/agents/verifier.md +352 -0
- package/plugins/codex-pbr/commands/audit.md +5 -0
- package/plugins/codex-pbr/commands/begin.md +5 -0
- package/plugins/codex-pbr/commands/build.md +5 -0
- package/plugins/codex-pbr/commands/config.md +5 -0
- package/plugins/codex-pbr/commands/continue.md +5 -0
- package/plugins/codex-pbr/commands/dashboard.md +5 -0
- package/plugins/codex-pbr/commands/debug.md +5 -0
- package/plugins/codex-pbr/commands/discuss.md +5 -0
- package/plugins/codex-pbr/commands/do.md +5 -0
- package/plugins/codex-pbr/commands/explore.md +5 -0
- package/plugins/codex-pbr/commands/health.md +5 -0
- package/plugins/codex-pbr/commands/help.md +5 -0
- package/plugins/codex-pbr/commands/import.md +5 -0
- package/plugins/codex-pbr/commands/milestone.md +5 -0
- package/plugins/codex-pbr/commands/note.md +5 -0
- package/plugins/codex-pbr/commands/pause.md +5 -0
- package/plugins/codex-pbr/commands/plan.md +5 -0
- package/plugins/codex-pbr/commands/quick.md +5 -0
- package/plugins/codex-pbr/commands/resume.md +5 -0
- package/plugins/codex-pbr/commands/review.md +5 -0
- package/plugins/codex-pbr/commands/scan.md +5 -0
- package/plugins/codex-pbr/commands/setup.md +5 -0
- package/plugins/codex-pbr/commands/status.md +5 -0
- package/plugins/codex-pbr/commands/statusline.md +5 -0
- package/plugins/codex-pbr/commands/test.md +5 -0
- package/plugins/codex-pbr/commands/todo.md +5 -0
- package/plugins/codex-pbr/commands/undo.md +5 -0
- package/plugins/codex-pbr/references/agent-contracts.md +324 -0
- package/plugins/codex-pbr/references/agent-teams.md +54 -0
- package/plugins/codex-pbr/references/common-bug-patterns.md +13 -0
- package/plugins/codex-pbr/references/config-reference.md +552 -0
- package/plugins/codex-pbr/references/continuation-format.md +212 -0
- package/plugins/codex-pbr/references/deviation-rules.md +112 -0
- package/plugins/codex-pbr/references/git-integration.md +256 -0
- package/plugins/codex-pbr/references/integration-patterns.md +117 -0
- package/plugins/codex-pbr/references/model-profiles.md +99 -0
- package/plugins/codex-pbr/references/model-selection.md +31 -0
- package/plugins/codex-pbr/references/pbr-tools-cli.md +400 -0
- package/plugins/codex-pbr/references/plan-authoring.md +246 -0
- package/plugins/codex-pbr/references/plan-format.md +313 -0
- package/plugins/codex-pbr/references/questioning.md +235 -0
- package/plugins/codex-pbr/references/reading-verification.md +127 -0
- package/plugins/codex-pbr/references/signal-files.md +41 -0
- package/plugins/codex-pbr/references/stub-patterns.md +160 -0
- package/plugins/codex-pbr/references/ui-formatting.md +444 -0
- package/plugins/codex-pbr/references/wave-execution.md +95 -0
- package/plugins/codex-pbr/skills/audit/SKILL.md +346 -0
- package/plugins/codex-pbr/skills/begin/SKILL.md +800 -0
- package/plugins/codex-pbr/skills/build/SKILL.md +958 -0
- package/plugins/codex-pbr/skills/config/SKILL.md +267 -0
- package/plugins/codex-pbr/skills/continue/SKILL.md +172 -0
- package/plugins/codex-pbr/skills/dashboard/SKILL.md +44 -0
- package/plugins/codex-pbr/skills/debug/SKILL.md +530 -0
- package/plugins/codex-pbr/skills/discuss/SKILL.md +355 -0
- package/plugins/codex-pbr/skills/do/SKILL.md +68 -0
- package/plugins/codex-pbr/skills/explore/SKILL.md +407 -0
- package/plugins/codex-pbr/skills/health/SKILL.md +300 -0
- package/plugins/codex-pbr/skills/help/SKILL.md +229 -0
- package/plugins/codex-pbr/skills/import/SKILL.md +538 -0
- package/plugins/codex-pbr/skills/milestone/SKILL.md +620 -0
- package/plugins/codex-pbr/skills/note/SKILL.md +215 -0
- package/plugins/codex-pbr/skills/pause/SKILL.md +258 -0
- package/plugins/codex-pbr/skills/plan/SKILL.md +650 -0
- package/plugins/codex-pbr/skills/quick/SKILL.md +417 -0
- package/plugins/codex-pbr/skills/resume/SKILL.md +403 -0
- package/plugins/codex-pbr/skills/review/SKILL.md +669 -0
- package/plugins/codex-pbr/skills/scan/SKILL.md +325 -0
- package/plugins/codex-pbr/skills/setup/SKILL.md +169 -0
- package/plugins/codex-pbr/skills/shared/commit-planning-docs.md +35 -0
- package/plugins/codex-pbr/skills/shared/config-loading.md +102 -0
- package/plugins/codex-pbr/skills/shared/context-budget.md +77 -0
- package/plugins/codex-pbr/skills/shared/context-loader-task.md +86 -0
- package/plugins/codex-pbr/skills/shared/digest-select.md +79 -0
- package/plugins/codex-pbr/skills/shared/domain-probes.md +125 -0
- package/plugins/codex-pbr/skills/shared/error-reporting.md +59 -0
- package/plugins/codex-pbr/skills/shared/gate-prompts.md +388 -0
- package/plugins/codex-pbr/skills/shared/phase-argument-parsing.md +45 -0
- package/plugins/codex-pbr/skills/shared/revision-loop.md +81 -0
- package/plugins/codex-pbr/skills/shared/state-update.md +169 -0
- package/plugins/codex-pbr/skills/shared/universal-anti-patterns.md +43 -0
- package/plugins/codex-pbr/skills/status/SKILL.md +449 -0
- package/plugins/codex-pbr/skills/statusline/SKILL.md +149 -0
- package/plugins/codex-pbr/skills/test/SKILL.md +210 -0
- package/plugins/codex-pbr/skills/todo/SKILL.md +281 -0
- package/plugins/codex-pbr/skills/undo/SKILL.md +172 -0
- package/plugins/codex-pbr/templates/CONTEXT.md.tmpl +52 -0
- package/plugins/codex-pbr/templates/INTEGRATION-REPORT.md.tmpl +167 -0
- package/plugins/codex-pbr/templates/RESEARCH-SUMMARY.md.tmpl +97 -0
- package/plugins/codex-pbr/templates/ROADMAP.md.tmpl +47 -0
- package/plugins/codex-pbr/templates/SUMMARY-complex.md.tmpl +95 -0
- package/plugins/codex-pbr/templates/SUMMARY-minimal.md.tmpl +48 -0
- package/plugins/codex-pbr/templates/SUMMARY.md.tmpl +81 -0
- package/plugins/codex-pbr/templates/VERIFICATION-DETAIL.md.tmpl +117 -0
- package/plugins/codex-pbr/templates/codebase/ARCHITECTURE.md.tmpl +98 -0
- package/plugins/codex-pbr/templates/codebase/CONCERNS.md.tmpl +93 -0
- package/plugins/codex-pbr/templates/codebase/CONVENTIONS.md.tmpl +104 -0
- package/plugins/codex-pbr/templates/codebase/INTEGRATIONS.md.tmpl +78 -0
- package/plugins/codex-pbr/templates/codebase/STACK.md.tmpl +78 -0
- package/plugins/codex-pbr/templates/codebase/STRUCTURE.md.tmpl +80 -0
- package/plugins/codex-pbr/templates/codebase/TESTING.md.tmpl +107 -0
- package/plugins/codex-pbr/templates/continue-here.md.tmpl +73 -0
- package/plugins/codex-pbr/templates/pr-body.md.tmpl +22 -0
- package/plugins/codex-pbr/templates/prompt-partials/phase-project-context.md.tmpl +37 -0
- package/plugins/codex-pbr/templates/research/ARCHITECTURE.md.tmpl +124 -0
- package/plugins/codex-pbr/templates/research/STACK.md.tmpl +71 -0
- package/plugins/codex-pbr/templates/research/SUMMARY.md.tmpl +112 -0
- package/plugins/codex-pbr/templates/research-outputs/phase-research.md.tmpl +81 -0
- package/plugins/codex-pbr/templates/research-outputs/project-research.md.tmpl +99 -0
- package/plugins/codex-pbr/templates/research-outputs/synthesis.md.tmpl +36 -0
- package/plugins/copilot-pbr/plugin.json +1 -1
- package/plugins/cursor-pbr/.cursor-plugin/plugin.json +1 -1
- package/plugins/jules-pbr/AGENTS.md +600 -0
- package/plugins/pbr/.claude-plugin/plugin.json +1 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Context Budget Rules
|
|
2
|
+
|
|
3
|
+
Standard rules for keeping orchestrator context lean. Reference this fragment in skills that spawn Task() agents.
|
|
4
|
+
|
|
5
|
+
See also: `skills/shared/universal-anti-patterns.md` for the complete set of universal rules (context budget + file reading + behavioral rules).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Universal Rules
|
|
10
|
+
|
|
11
|
+
Every skill that spawns agents or reads significant content must follow these rules:
|
|
12
|
+
|
|
13
|
+
1. **Never** read agent definition files (`agents/*.md`) — `subagent_type` auto-loads them
|
|
14
|
+
2. **Never** inline large files into Task() prompts — tell agents to read files from disk instead
|
|
15
|
+
3. **Minimize** reading subagent output into main context — read only frontmatter, not full content
|
|
16
|
+
4. **Delegate** heavy work to agents — the orchestrator routes, it doesn't execute
|
|
17
|
+
5. **Before spawning agents**: If you've already consumed significant context (large file reads, multiple subagent results), warn the user: "Context budget is getting heavy. Consider running `$pbr-pause` to checkpoint progress." Suggest pause proactively rather than waiting for compaction.
|
|
18
|
+
|
|
19
|
+
## Context Degradation Awareness
|
|
20
|
+
|
|
21
|
+
Quality degrades gradually before panic thresholds fire. Watch for these early warning signs:
|
|
22
|
+
|
|
23
|
+
- **Silent partial completion** — agent claims task is done but implementation is incomplete. Self-check catches file existence but not semantic completeness. Always verify agent output meets the plan's must_haves, not just that files exist.
|
|
24
|
+
- **Increasing vagueness** — agent starts using phrases like "appropriate handling" or "standard patterns" instead of specific code. This indicates context pressure even before budget warnings fire.
|
|
25
|
+
- **Skipped steps** — agent omits protocol steps it would normally follow. If an agent's success criteria has 8 items but it only reports 5, suspect context pressure.
|
|
26
|
+
|
|
27
|
+
When delegating to agents, the orchestrator cannot verify semantic correctness of agent output — only structural completeness. This is a fundamental limitation. Mitigate with must_haves.truths and spot-check verification.
|
|
28
|
+
|
|
29
|
+
## Customization
|
|
30
|
+
|
|
31
|
+
Skills should add skill-specific rules below the reference line. Common skill-specific additions:
|
|
32
|
+
|
|
33
|
+
- **build**: "Minimize reading executor output — read only SUMMARY.md frontmatter, not full content"
|
|
34
|
+
- **plan**: "Minimize reading subagent output — read only plan frontmatter for summaries"
|
|
35
|
+
- **review**: "Minimize reading subagent output — read only VERIFICATION.md frontmatter for summaries"
|
|
36
|
+
- **scan**: "Delegate ALL analysis to the 4 parallel codebase-mapper agents"
|
|
37
|
+
- **quick**: "Never implement the task yourself — ALL code changes go through a spawned executor"
|
|
38
|
+
- **debug**: "Never perform investigation work yourself — delegate ALL analysis to the debugger subagent"
|
|
39
|
+
|
|
40
|
+
Format in the SKILL.md:
|
|
41
|
+
|
|
42
|
+
```markdown
|
|
43
|
+
## Context Budget
|
|
44
|
+
|
|
45
|
+
Reference: `skills/shared/context-budget.md` for the universal orchestrator rules.
|
|
46
|
+
|
|
47
|
+
Additionally for this skill:
|
|
48
|
+
- {Skill-specific rule 1}
|
|
49
|
+
- {Skill-specific rule 2}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Agent Elapsed Time Estimates
|
|
53
|
+
|
|
54
|
+
When displaying agent spawn lines (e.g., "Spawning researcher..."), append a parenthetical estimate:
|
|
55
|
+
|
|
56
|
+
| Agent Type | Display Text | Estimate |
|
|
57
|
+
|------------|-------------|----------|
|
|
58
|
+
| researcher | Spawning researcher... | (est. 1-3 min) |
|
|
59
|
+
| planner | Spawning planner... | (est. 2-5 min) |
|
|
60
|
+
| executor | Spawning executor... | (est. 3-8 min) |
|
|
61
|
+
| verifier | Spawning verifier... | (est. 1-2 min) |
|
|
62
|
+
| codebase-mapper | Spawning codebase-mapper... | (est. 1-2 min) |
|
|
63
|
+
| plan-checker | Spawning plan-checker... | (est. 1-2 min) |
|
|
64
|
+
| integration-checker | Spawning integration-checker... | (est. 2-4 min) |
|
|
65
|
+
| debugger | Spawning debugger... | (est. 2-5 min) |
|
|
66
|
+
| general | Spawning agent... | (est. 1-4 min) |
|
|
67
|
+
| audit | Spawning audit... | (est. 2-4 min) |
|
|
68
|
+
|
|
69
|
+
**Usage**: In any skill that spawns Task() agents, prefix spawn displays with the agent name and append the estimate from this table. Example:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
Spawning researcher... (est. 1-3 min)
|
|
73
|
+
Spawning planner... (est. 2-5 min)
|
|
74
|
+
[Wave 1: 3 plans in parallel] Spawning executors... (est. 3-8 min each)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Skills that spawn agents: build, plan, review, debug, scan, milestone, quick.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Context Loader Task Pattern
|
|
2
|
+
|
|
3
|
+
Standard pattern for spawning a lightweight Task() to build a project briefing before the main skill logic runs. Used by skills that need project context but want to keep the orchestrator lean.
|
|
4
|
+
|
|
5
|
+
> Referenced by: explore, scan, discuss skills (and any skill that needs a project briefing before interactive work)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## When to Use
|
|
10
|
+
|
|
11
|
+
Use this pattern when:
|
|
12
|
+
- The skill runs mostly inline (conversation, presentation) rather than delegating to agents
|
|
13
|
+
- The skill needs awareness of project state, decisions, and progress
|
|
14
|
+
- Reading all context files directly would consume too much orchestrator context
|
|
15
|
+
|
|
16
|
+
Do NOT use this pattern when:
|
|
17
|
+
- The skill already uses `pbr-tools.js state load` (build, plan, review, import)
|
|
18
|
+
- The skill reads only STATE.md lines 1-20 (continue, status, resume)
|
|
19
|
+
- The skill has no project dependency (note with `--global`)
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Pattern: Briefing Task
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
Task({
|
|
27
|
+
prompt: "Read the following files and return a ~500 token briefing summarizing the project state, key decisions, and any context relevant to {skill_purpose}:
|
|
28
|
+
- .planning/STATE.md
|
|
29
|
+
- .planning/ROADMAP.md
|
|
30
|
+
- .planning/REQUIREMENTS.md
|
|
31
|
+
- .planning/CONTEXT.md
|
|
32
|
+
- Any .planning/phases/*/CONTEXT.md files
|
|
33
|
+
- .planning/research/SUMMARY.md (if exists)
|
|
34
|
+
- .planning/notes/*.md (if notes directory exists — read frontmatter for date/promoted status)
|
|
35
|
+
- .planning/HISTORY.md (if exists — scan for decisions relevant to current work only, do NOT summarize all history)
|
|
36
|
+
|
|
37
|
+
Return ONLY the briefing text. No preamble, no suggestions."
|
|
38
|
+
})
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Key Rules
|
|
42
|
+
|
|
43
|
+
1. **Only runs if `.planning/` directory exists.** Skills invoked on fresh projects with no planning directory skip this entirely.
|
|
44
|
+
2. **Budget: ~500 tokens.** The briefing must be concise. The subagent reads full files in its own context; the orchestrator receives only the summary.
|
|
45
|
+
3. **No suggestions.** The briefing reports state, it does not recommend actions. The skill logic decides what to do.
|
|
46
|
+
4. **Read-only.** The briefing task must not write any files.
|
|
47
|
+
|
|
48
|
+
### Using the Briefing
|
|
49
|
+
|
|
50
|
+
After the task completes:
|
|
51
|
+
- Use the briefing to inform conversation -- reference existing decisions, avoid re-litigating settled questions
|
|
52
|
+
- Connect new ideas or findings to existing project structure
|
|
53
|
+
- Identify relevant phases, requirements, or decisions without reading the source files yourself
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Variation: Topic-Scoped Briefing
|
|
58
|
+
|
|
59
|
+
When the skill has a specific topic (e.g., `$pbr-explore auth`), scope the briefing:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
Task({
|
|
63
|
+
prompt: "Read the following files and return a ~500 token briefing focused on {topic}:
|
|
64
|
+
- .planning/STATE.md
|
|
65
|
+
- .planning/ROADMAP.md
|
|
66
|
+
- .planning/REQUIREMENTS.md
|
|
67
|
+
- .planning/CONTEXT.md
|
|
68
|
+
- Any .planning/phases/*/CONTEXT.md files
|
|
69
|
+
- .planning/HISTORY.md (if exists — scan for decisions relevant to '{topic}' only, do NOT summarize all history)
|
|
70
|
+
|
|
71
|
+
Focus on: decisions, requirements, and phase goals related to '{topic}'.
|
|
72
|
+
Return ONLY the briefing text. No preamble, no suggestions."
|
|
73
|
+
})
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Variation: Scan Reconnaissance
|
|
79
|
+
|
|
80
|
+
For `$pbr-scan`, the pattern adapts to codebase analysis rather than project state:
|
|
81
|
+
|
|
82
|
+
1. The orchestrator performs a quick inline scan (detect project type, scale, key directories)
|
|
83
|
+
2. Writes the results to `.planning/codebase/RECON.md`
|
|
84
|
+
3. Passes RECON.md content to the spawned analysis agents as baseline context
|
|
85
|
+
|
|
86
|
+
This is the same principle (build context before main work) but the source is the codebase rather than planning files.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Digest-Select Pattern
|
|
2
|
+
|
|
3
|
+
Selective reading depth for prior phase SUMMARY.md files. Saves tokens by reading only what is needed based on the relationship to the current phase.
|
|
4
|
+
|
|
5
|
+
> Referenced by: plan, build, import skills
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Depth Rules
|
|
10
|
+
|
|
11
|
+
Not all prior phase SUMMARYs need the same level of detail. Use selective depth based on dependency distance:
|
|
12
|
+
|
|
13
|
+
| Relationship to current phase | Read depth |
|
|
14
|
+
|-------------------------------|------------|
|
|
15
|
+
| Direct dependency (listed in `depends_on` in ROADMAP.md) | Frontmatter + "Key Decisions" section. The subagent reads full bodies from disk in its own context. |
|
|
16
|
+
| 1 phase back from a dependency (transitive) | Frontmatter only (`provides`, `key_files`, `key_decisions`, `patterns`) |
|
|
17
|
+
| 2+ phases back | Skip entirely |
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
If planning Phase 5 which depends on Phase 4, and Phase 4 depends on Phase 3:
|
|
24
|
+
- Phase 4 SUMMARYs: frontmatter + "Key Decisions" section
|
|
25
|
+
- Phase 3 SUMMARYs: frontmatter only
|
|
26
|
+
- Phases 1-2 SUMMARYs: skip
|
|
27
|
+
|
|
28
|
+
This saves ~500 tokens per skipped SUMMARY for large projects.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## How to Determine Dependency Distance
|
|
33
|
+
|
|
34
|
+
1. Read ROADMAP.md and find the current phase's `depends_on` list
|
|
35
|
+
2. Those are the **direct dependencies** (distance 1) -- read frontmatter + key decisions
|
|
36
|
+
3. For each direct dependency, find ITS `depends_on` list -- those are **transitive** (distance 2) -- read frontmatter only
|
|
37
|
+
4. Everything else (distance 3+) -- skip
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Frontmatter Fields to Extract
|
|
42
|
+
|
|
43
|
+
When reading frontmatter only (transitive dependencies), extract these fields:
|
|
44
|
+
|
|
45
|
+
```yaml
|
|
46
|
+
status: complete
|
|
47
|
+
provides:
|
|
48
|
+
- "user authentication API"
|
|
49
|
+
- "session management middleware"
|
|
50
|
+
key_files:
|
|
51
|
+
- src/auth/controller.ts
|
|
52
|
+
- src/auth/middleware.ts
|
|
53
|
+
key_decisions:
|
|
54
|
+
- "JWT with refresh tokens"
|
|
55
|
+
- "bcrypt for password hashing"
|
|
56
|
+
patterns:
|
|
57
|
+
- "repository pattern for data access"
|
|
58
|
+
- "middleware chain for auth checks"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
These fields give downstream skills enough context to build on prior work without reading the full SUMMARY body.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Skill-Specific Notes
|
|
66
|
+
|
|
67
|
+
### $pbr-plan
|
|
68
|
+
- Direct dependencies: frontmatter + "Key Decisions" section (planner reads full bodies from disk)
|
|
69
|
+
- Used in Step 2: Load Context
|
|
70
|
+
|
|
71
|
+
### $pbr-build
|
|
72
|
+
- Direct dependencies (completed earlier waves): frontmatter only for prior work table
|
|
73
|
+
- Used in Step 6a: Spawn Executors (prior_work section of executor prompt)
|
|
74
|
+
|
|
75
|
+
### $pbr-import
|
|
76
|
+
- Direct dependencies: full SUMMARY body (needed for conflict detection)
|
|
77
|
+
- Transitive: frontmatter only
|
|
78
|
+
- 2+ back: skip
|
|
79
|
+
- Used in Step 2: Load Full Project Context
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# Domain-Aware Probing Patterns
|
|
2
|
+
|
|
3
|
+
Shared reference for `$pbr-explore`, `$pbr-begin`, and `$pbr-discuss`.
|
|
4
|
+
|
|
5
|
+
When the user mentions a technology area, use these probes to ask insightful follow-up questions. Don't run through them as a checklist — pick the 2-3 most relevant based on context. The goal is to surface hidden assumptions and trade-offs the user may not have considered yet.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Authentication
|
|
10
|
+
|
|
11
|
+
| User mentions | Agent probes with domain knowledge |
|
|
12
|
+
|---|---|
|
|
13
|
+
| "login" or "auth" | OAuth (which providers?), JWT, or session-based? Do you need social login or just email/password? |
|
|
14
|
+
| "users" or "accounts" | MFA required? Password reset flow? Email verification? |
|
|
15
|
+
| "sessions" | Session duration and refresh strategy? Server-side sessions or stateless tokens? |
|
|
16
|
+
| "roles" or "permissions" | RBAC, ABAC, or simple role checks? How many distinct roles? |
|
|
17
|
+
| "API keys" | Key rotation strategy? Scoped permissions per key? Rate limiting per key? |
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Real-Time Updates
|
|
22
|
+
|
|
23
|
+
| User mentions | Agent probes with domain knowledge |
|
|
24
|
+
|---|---|
|
|
25
|
+
| "real-time" or "live updates" | WebSockets, SSE, or polling? What specifically needs to be real-time vs. eventual? |
|
|
26
|
+
| "notifications" | Push notifications (browser/mobile), in-app only, or both? Persistence and read receipts? |
|
|
27
|
+
| "collaboration" or "multiplayer" | Conflict resolution strategy? Operational transforms or CRDTs? Expected concurrent users? |
|
|
28
|
+
| "chat" or "messaging" | Message history and search? Typing indicators? Read receipts? |
|
|
29
|
+
| "streaming" | Reconnection strategy? What happens when the connection drops — queue or discard? |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Dashboard
|
|
34
|
+
|
|
35
|
+
| User mentions | Agent probes with domain knowledge |
|
|
36
|
+
|---|---|
|
|
37
|
+
| "dashboard" | What data sources feed it? How many distinct views? |
|
|
38
|
+
| "charts" or "graphs" | Interactive or static? Drill-down capability? Export to CSV/PDF? |
|
|
39
|
+
| "metrics" or "KPIs" | Refresh strategy — real-time, periodic polling, or on-demand? Acceptable staleness? |
|
|
40
|
+
| "admin panel" | Role-based visibility? Which actions beyond viewing (edit, delete, approve)? |
|
|
41
|
+
| "mobile" or "responsive" | Simplified mobile view or full parity? Touch interactions for charts? |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## API Design
|
|
46
|
+
|
|
47
|
+
| User mentions | Agent probes with domain knowledge |
|
|
48
|
+
|---|---|
|
|
49
|
+
| "API" | REST, GraphQL, or RPC-style? Internal only or public-facing? |
|
|
50
|
+
| "endpoints" or "routes" | Versioning strategy (URL path, header, query param)? Breaking change policy? |
|
|
51
|
+
| "pagination" | Cursor-based or offset? Expected result set sizes? Stable ordering guarantee? |
|
|
52
|
+
| "rate limiting" | Per-user, per-IP, or per-API-key? Burst allowance? How to communicate limits to clients? |
|
|
53
|
+
| "errors" | Structured error format? Error codes vs. messages? How much detail in production errors? |
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Database
|
|
58
|
+
|
|
59
|
+
| User mentions | Agent probes with domain knowledge |
|
|
60
|
+
|---|---|
|
|
61
|
+
| "database" or "storage" | SQL or NoSQL? What drives the choice — relational integrity, flexibility, scale? |
|
|
62
|
+
| "ORM" or "queries" | ORM (which one?) or raw queries? Query builder as middle ground? |
|
|
63
|
+
| "migrations" | Migration tool? Rollback strategy? How do you handle data migrations vs. schema migrations? |
|
|
64
|
+
| "seeding" or "test data" | Seed data for development? Realistic fake data or minimal fixtures? |
|
|
65
|
+
| "scale" or "performance" | Read/write ratio? Read replicas? Connection pooling strategy? |
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Search
|
|
70
|
+
|
|
71
|
+
| User mentions | Agent probes with domain knowledge |
|
|
72
|
+
|---|---|
|
|
73
|
+
| "search" | Full-text or exact match? Dedicated search engine (Elasticsearch, Meilisearch) or database-level? |
|
|
74
|
+
| "filtering" or "facets" | Faceted filtering? How many filter dimensions? Combined filters (AND/OR)? |
|
|
75
|
+
| "autocomplete" or "typeahead" | Debounce strategy? Minimum character threshold? Result ranking? |
|
|
76
|
+
| "indexing" | Index size and update frequency? Real-time indexing or batch? Acceptable index lag? |
|
|
77
|
+
| "fuzzy" or "typo tolerance" | Fuzzy matching? Synonym support? Language-specific stemming? |
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## File Upload/Storage
|
|
82
|
+
|
|
83
|
+
| User mentions | Agent probes with domain knowledge |
|
|
84
|
+
|---|---|
|
|
85
|
+
| "upload" or "file upload" | Local filesystem or cloud (S3, GCS, Azure Blob)? Direct upload or through server? |
|
|
86
|
+
| "images" or "media" | Processing pipeline — resize, compress, thumbnail generation? Format conversion? |
|
|
87
|
+
| "size limits" | Max file size? Max total storage per user? What happens when limits are hit? |
|
|
88
|
+
| "CDN" | CDN for delivery? Cache invalidation for updated files? Signed URLs for access control? |
|
|
89
|
+
| "documents" or "attachments" | Virus scanning? Preview generation? Versioning of uploaded files? |
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Caching
|
|
94
|
+
|
|
95
|
+
| User mentions | Agent probes with domain knowledge |
|
|
96
|
+
|---|---|
|
|
97
|
+
| "caching" or "performance" | Where to cache — browser, CDN, application layer, database query cache? |
|
|
98
|
+
| "invalidation" | Invalidation strategy — TTL, event-driven, or manual? Cache-aside vs. write-through? |
|
|
99
|
+
| "stale data" | Acceptable staleness window? Stale-while-revalidate pattern? |
|
|
100
|
+
| "Redis" or "Memcached" | Cache topology — single node or clustered? Persistence needed or pure cache? |
|
|
101
|
+
| "CDN" or "edge" | Edge caching for static assets? Dynamic content at the edge? Cache key strategy? |
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Testing
|
|
106
|
+
|
|
107
|
+
| User mentions | Agent probes with domain knowledge |
|
|
108
|
+
|---|---|
|
|
109
|
+
| "testing" or "tests" | Unit, integration, and E2E balance? Where do you invest most testing effort? |
|
|
110
|
+
| "mocking" or "stubs" | Mock external services or use test containers? Database mocking strategy? |
|
|
111
|
+
| "CI" or "pipeline" | Tests in CI? Parallel test execution? Test-on-PR or test-on-push? |
|
|
112
|
+
| "coverage" | Coverage targets? Coverage as gate or advisory? Which metrics (line, branch, function)? |
|
|
113
|
+
| "E2E" or "browser testing" | Playwright, Cypress, or other? Headed vs. headless? Visual regression testing? |
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Deployment
|
|
118
|
+
|
|
119
|
+
| User mentions | Agent probes with domain knowledge |
|
|
120
|
+
|---|---|
|
|
121
|
+
| "deploy" or "hosting" | Container, serverless, or traditional VM/VPS? Managed platform (Vercel, Railway) or self-hosted? |
|
|
122
|
+
| "CI/CD" or "pipeline" | GitHub Actions, GitLab CI, or other? Deploy on merge to main or manual trigger? |
|
|
123
|
+
| "environments" | How many environments (dev, staging, prod)? Environment parity strategy? |
|
|
124
|
+
| "rollback" | Rollback strategy? Blue-green, canary, or instant rollback? Database rollback considerations? |
|
|
125
|
+
| "secrets" or "config" | Secret management — env vars, vault, or platform-native? Per-environment config strategy? |
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Error Reporting — Standard Format
|
|
2
|
+
|
|
3
|
+
Use the branded error box for all blocking errors. Present the box, explain what happened, and give a specific fix action.
|
|
4
|
+
|
|
5
|
+
## Error Box Format
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
9
|
+
║ ERROR ║
|
|
10
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
11
|
+
|
|
12
|
+
{one-line description of what went wrong}
|
|
13
|
+
|
|
14
|
+
**To fix:** {specific action the user should take}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Warning Format (non-blocking)
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
⚠ {one-line warning}
|
|
21
|
+
{optional detail or suggestion}
|
|
22
|
+
```
|
|
23
|
+
Continue execution after showing a warning.
|
|
24
|
+
|
|
25
|
+
## Common Error Patterns
|
|
26
|
+
|
|
27
|
+
### Phase not found
|
|
28
|
+
Message: "Phase {N} not found in ROADMAP.md."
|
|
29
|
+
Fix: "Run `$pbr-status` to see available phases."
|
|
30
|
+
|
|
31
|
+
### Missing prerequisites (no REQUIREMENTS.md or ROADMAP.md)
|
|
32
|
+
Message: "Project not initialized. Missing REQUIREMENTS.md or ROADMAP.md."
|
|
33
|
+
Fix: "Run `$pbr-begin` first."
|
|
34
|
+
|
|
35
|
+
### No plans found for phase
|
|
36
|
+
Message: "Phase {N} has no plans."
|
|
37
|
+
Fix: "Run `$pbr-plan {N}` first."
|
|
38
|
+
|
|
39
|
+
### Dependency phase not complete
|
|
40
|
+
Message: "Phase {N} depends on Phase {M}, which is not complete."
|
|
41
|
+
Fix: "Build Phase {M} first with `$pbr-build {M}`."
|
|
42
|
+
|
|
43
|
+
### Planner agent failure
|
|
44
|
+
Message: "Planner agent failed for Phase {N}."
|
|
45
|
+
Fix: "Try again with `$pbr-plan {N} --skip-research`. Check `.planning/CONTEXT.md` for conflicting constraints."
|
|
46
|
+
|
|
47
|
+
### Checker loops (3+ iterations without pass)
|
|
48
|
+
Message: "Plan checker failed to pass after 3 revision iterations for Phase {N}."
|
|
49
|
+
Fix: "Review the remaining issues below and decide whether to proceed or revise manually. Run `$pbr-plan {N}` to restart planning from scratch."
|
|
50
|
+
After displaying: present remaining issues and ask user to decide (proceed or intervene).
|
|
51
|
+
|
|
52
|
+
### Research agent failure
|
|
53
|
+
Display as WARNING (non-blocking): "Research agent failed. Planning without phase-specific research. This may result in less accurate plans."
|
|
54
|
+
Continue to the planning step.
|
|
55
|
+
|
|
56
|
+
## Usage
|
|
57
|
+
|
|
58
|
+
In skill files, replace repeated error box content with:
|
|
59
|
+
"Display a branded error box — use the format from `skills/shared/error-reporting.md`, pattern: {pattern name}."
|