@sienklogic/plan-build-run 2.34.0 → 2.38.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 +683 -0
- package/dashboard/public/css/command-center.css +152 -65
- package/dashboard/public/css/explorer.css +22 -41
- package/dashboard/public/css/layout.css +119 -1
- package/dashboard/public/css/tokens.css +13 -0
- package/dashboard/src/components/Layout.tsx +32 -6
- package/dashboard/src/components/explorer/tabs/PhasesTab.tsx +11 -1
- package/dashboard/src/components/explorer/tabs/TodosTab.tsx +18 -2
- package/dashboard/src/components/partials/AttentionPanel.tsx +7 -1
- package/dashboard/src/components/partials/CurrentPhaseCard.tsx +26 -24
- package/dashboard/src/components/partials/QuickActions.tsx +21 -11
- package/dashboard/src/components/partials/StatCardGrid.tsx +67 -0
- package/dashboard/src/components/partials/StatusHeader.tsx +1 -0
- package/dashboard/src/routes/command-center.routes.tsx +8 -7
- package/dashboard/src/routes/index.routes.tsx +32 -29
- package/package.json +2 -2
- package/plugins/copilot-pbr/agents/audit.agent.md +129 -16
- package/plugins/copilot-pbr/agents/codebase-mapper.agent.md +49 -1
- package/plugins/copilot-pbr/agents/debugger.agent.md +50 -1
- package/plugins/copilot-pbr/agents/dev-sync.agent.md +23 -0
- package/plugins/copilot-pbr/agents/executor.agent.md +153 -8
- package/plugins/copilot-pbr/agents/general.agent.md +46 -1
- package/plugins/copilot-pbr/agents/integration-checker.agent.md +55 -2
- package/plugins/copilot-pbr/agents/plan-checker.agent.md +50 -2
- package/plugins/copilot-pbr/agents/planner.agent.md +80 -1
- package/plugins/copilot-pbr/agents/researcher.agent.md +50 -2
- package/plugins/copilot-pbr/agents/synthesizer.agent.md +49 -1
- package/plugins/copilot-pbr/agents/verifier.agent.md +114 -13
- package/plugins/copilot-pbr/commands/test.md +5 -0
- package/plugins/copilot-pbr/hooks/hooks.json +11 -0
- package/plugins/copilot-pbr/plugin.json +1 -1
- package/plugins/copilot-pbr/references/agent-contracts.md +27 -0
- package/plugins/copilot-pbr/references/checkpoints.md +32 -1
- package/plugins/copilot-pbr/references/context-quality-tiers.md +45 -0
- package/plugins/copilot-pbr/references/pbr-tools-cli.md +115 -0
- package/plugins/copilot-pbr/references/questioning.md +21 -1
- package/plugins/copilot-pbr/references/verification-patterns.md +96 -18
- package/plugins/copilot-pbr/skills/audit/SKILL.md +19 -3
- package/plugins/copilot-pbr/skills/begin/SKILL.md +57 -4
- package/plugins/copilot-pbr/skills/build/SKILL.md +39 -2
- package/plugins/copilot-pbr/skills/config/SKILL.md +12 -2
- package/plugins/copilot-pbr/skills/debug/SKILL.md +12 -1
- package/plugins/copilot-pbr/skills/explore/SKILL.md +13 -2
- package/plugins/copilot-pbr/skills/health/SKILL.md +13 -5
- package/plugins/copilot-pbr/skills/import/SKILL.md +26 -1
- package/plugins/copilot-pbr/skills/milestone/SKILL.md +15 -3
- package/plugins/copilot-pbr/skills/plan/SKILL.md +50 -0
- package/plugins/copilot-pbr/skills/quick/SKILL.md +21 -0
- package/plugins/copilot-pbr/skills/review/SKILL.md +45 -0
- package/plugins/copilot-pbr/skills/scan/SKILL.md +20 -0
- package/plugins/copilot-pbr/skills/setup/SKILL.md +9 -1
- package/plugins/copilot-pbr/skills/shared/context-budget.md +10 -0
- package/plugins/copilot-pbr/skills/shared/universal-anti-patterns.md +6 -0
- package/plugins/copilot-pbr/skills/test/SKILL.md +210 -0
- package/plugins/copilot-pbr/templates/SUMMARY-complex.md.tmpl +95 -0
- package/plugins/copilot-pbr/templates/SUMMARY-minimal.md.tmpl +48 -0
- package/plugins/cursor-pbr/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor-pbr/agents/audit.md +52 -5
- package/plugins/cursor-pbr/agents/codebase-mapper.md +49 -1
- package/plugins/cursor-pbr/agents/debugger.md +50 -1
- package/plugins/cursor-pbr/agents/dev-sync.md +23 -0
- package/plugins/cursor-pbr/agents/executor.md +153 -8
- package/plugins/cursor-pbr/agents/general.md +46 -1
- package/plugins/cursor-pbr/agents/integration-checker.md +54 -1
- package/plugins/cursor-pbr/agents/plan-checker.md +49 -1
- package/plugins/cursor-pbr/agents/planner.md +80 -1
- package/plugins/cursor-pbr/agents/researcher.md +49 -1
- package/plugins/cursor-pbr/agents/synthesizer.md +49 -1
- package/plugins/cursor-pbr/agents/verifier.md +113 -12
- package/plugins/cursor-pbr/commands/test.md +5 -0
- package/plugins/cursor-pbr/hooks/hooks.json +9 -0
- package/plugins/cursor-pbr/references/agent-contracts.md +27 -0
- package/plugins/cursor-pbr/references/checkpoints.md +32 -1
- package/plugins/cursor-pbr/references/context-quality-tiers.md +45 -0
- package/plugins/cursor-pbr/references/pbr-tools-cli.md +115 -0
- package/plugins/cursor-pbr/references/questioning.md +21 -1
- package/plugins/cursor-pbr/references/verification-patterns.md +96 -18
- package/plugins/cursor-pbr/skills/audit/SKILL.md +19 -3
- package/plugins/cursor-pbr/skills/begin/SKILL.md +57 -4
- package/plugins/cursor-pbr/skills/build/SKILL.md +37 -2
- package/plugins/cursor-pbr/skills/config/SKILL.md +12 -2
- package/plugins/cursor-pbr/skills/debug/SKILL.md +12 -1
- package/plugins/cursor-pbr/skills/explore/SKILL.md +13 -2
- package/plugins/cursor-pbr/skills/health/SKILL.md +14 -5
- package/plugins/cursor-pbr/skills/import/SKILL.md +26 -1
- package/plugins/cursor-pbr/skills/milestone/SKILL.md +15 -3
- package/plugins/cursor-pbr/skills/plan/SKILL.md +50 -0
- package/plugins/cursor-pbr/skills/quick/SKILL.md +21 -0
- package/plugins/cursor-pbr/skills/review/SKILL.md +45 -0
- package/plugins/cursor-pbr/skills/scan/SKILL.md +20 -0
- package/plugins/cursor-pbr/skills/setup/SKILL.md +9 -1
- package/plugins/cursor-pbr/skills/shared/context-budget.md +10 -0
- package/plugins/cursor-pbr/skills/shared/universal-anti-patterns.md +6 -0
- package/plugins/cursor-pbr/skills/test/SKILL.md +211 -0
- package/plugins/cursor-pbr/templates/SUMMARY-complex.md.tmpl +95 -0
- package/plugins/cursor-pbr/templates/SUMMARY-minimal.md.tmpl +48 -0
- package/plugins/pbr/.claude-plugin/plugin.json +1 -1
- package/plugins/pbr/agents/audit.md +45 -0
- package/plugins/pbr/agents/codebase-mapper.md +48 -0
- package/plugins/pbr/agents/debugger.md +49 -0
- package/plugins/pbr/agents/dev-sync.md +23 -0
- package/plugins/pbr/agents/executor.md +151 -6
- package/plugins/pbr/agents/general.md +45 -0
- package/plugins/pbr/agents/integration-checker.md +53 -0
- package/plugins/pbr/agents/plan-checker.md +48 -0
- package/plugins/pbr/agents/planner.md +78 -1
- package/plugins/pbr/agents/researcher.md +48 -0
- package/plugins/pbr/agents/synthesizer.md +48 -0
- package/plugins/pbr/agents/verifier.md +112 -11
- package/plugins/pbr/commands/test.md +5 -0
- package/plugins/pbr/hooks/hooks.json +9 -0
- package/plugins/pbr/references/agent-contracts.md +27 -0
- package/plugins/pbr/references/checkpoints.md +32 -0
- package/plugins/pbr/references/context-quality-tiers.md +45 -0
- package/plugins/pbr/references/pbr-tools-cli.md +115 -0
- package/plugins/pbr/references/questioning.md +21 -0
- package/plugins/pbr/references/verification-patterns.md +96 -17
- package/plugins/pbr/scripts/check-plan-format.js +13 -1
- package/plugins/pbr/scripts/check-state-sync.js +26 -7
- package/plugins/pbr/scripts/check-subagent-output.js +30 -2
- package/plugins/pbr/scripts/config-schema.json +11 -1
- package/plugins/pbr/scripts/context-bridge.js +265 -0
- package/plugins/pbr/scripts/lib/config.js +271 -0
- package/plugins/pbr/scripts/lib/core.js +587 -0
- package/plugins/pbr/scripts/lib/history.js +73 -0
- package/plugins/pbr/scripts/lib/init.js +166 -0
- package/plugins/pbr/scripts/lib/migrate.js +169 -0
- package/plugins/pbr/scripts/lib/phase.js +364 -0
- package/plugins/pbr/scripts/lib/roadmap.js +175 -0
- package/plugins/pbr/scripts/lib/state.js +397 -0
- package/plugins/pbr/scripts/lib/todo.js +300 -0
- package/plugins/pbr/scripts/pbr-tools.js +425 -1310
- package/plugins/pbr/scripts/post-write-dispatch.js +5 -4
- package/plugins/pbr/scripts/pre-write-dispatch.js +1 -1
- package/plugins/pbr/scripts/progress-tracker.js +1 -1
- package/plugins/pbr/scripts/suggest-compact.js +1 -1
- package/plugins/pbr/scripts/track-context-budget.js +53 -2
- package/plugins/pbr/scripts/validate-task.js +20 -28
- package/plugins/pbr/skills/audit/SKILL.md +19 -3
- package/plugins/pbr/skills/begin/SKILL.md +48 -2
- package/plugins/pbr/skills/build/SKILL.md +39 -2
- package/plugins/pbr/skills/config/SKILL.md +12 -2
- package/plugins/pbr/skills/debug/SKILL.md +12 -1
- package/plugins/pbr/skills/debug/templates/continuation-prompt.md.tmpl +12 -1
- package/plugins/pbr/skills/debug/templates/initial-investigation-prompt.md.tmpl +12 -5
- package/plugins/pbr/skills/explore/SKILL.md +13 -2
- package/plugins/pbr/skills/health/SKILL.md +14 -3
- package/plugins/pbr/skills/help/SKILL.md +2 -0
- package/plugins/pbr/skills/import/SKILL.md +26 -1
- package/plugins/pbr/skills/milestone/SKILL.md +15 -3
- package/plugins/pbr/skills/plan/SKILL.md +52 -2
- package/plugins/pbr/skills/quick/SKILL.md +21 -0
- package/plugins/pbr/skills/review/SKILL.md +46 -0
- package/plugins/pbr/skills/scan/SKILL.md +20 -0
- package/plugins/pbr/skills/setup/SKILL.md +9 -1
- package/plugins/pbr/skills/shared/context-budget.md +10 -0
- package/plugins/pbr/skills/shared/universal-anti-patterns.md +6 -0
- package/plugins/pbr/skills/test/SKILL.md +212 -0
- package/plugins/pbr/templates/SUMMARY-complex.md.tmpl +95 -0
- package/plugins/pbr/templates/SUMMARY-minimal.md.tmpl +48 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test
|
|
3
|
+
description: "Generate tests for completed phase code. Detects test framework and targets key files."
|
|
4
|
+
allowed-tools: Read, Write, Bash, Glob, Grep, Task, AskUserQuestion
|
|
5
|
+
argument-hint: "<phase-number>"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
**STOP — DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's plugin system. Using the Read tool on this SKILL.md file wastes ~7,600 tokens. Begin executing Step 1 immediately.**
|
|
9
|
+
|
|
10
|
+
# /pbr:test — Post-Phase Test Generation
|
|
11
|
+
|
|
12
|
+
You are the orchestrator for `/pbr:test`. This skill generates tests for code that was built WITHOUT TDD mode. It targets key files from completed phases and creates meaningful test coverage.
|
|
13
|
+
|
|
14
|
+
## Context Budget
|
|
15
|
+
|
|
16
|
+
Reference: `skills/shared/context-budget.md` for the universal orchestrator rules.
|
|
17
|
+
|
|
18
|
+
Additionally for this skill:
|
|
19
|
+
- **Delegate** all test writing to executor subagents — never write test code in the main context
|
|
20
|
+
- Read only SUMMARY.md frontmatter for `key_files` lists — do not read full summaries
|
|
21
|
+
|
|
22
|
+
## Step 0 — Immediate Output
|
|
23
|
+
|
|
24
|
+
**Before ANY tool calls**, display this banner:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
28
|
+
║ PLAN-BUILD-RUN ► GENERATING TESTS FOR PHASE {N} ║
|
|
29
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Where `{N}` is the phase number from `$ARGUMENTS`. Then proceed to Step 1.
|
|
33
|
+
|
|
34
|
+
## Prerequisites
|
|
35
|
+
|
|
36
|
+
- `.planning/config.json` exists
|
|
37
|
+
- Phase has been built: SUMMARY.md files exist in `.planning/phases/{NN}-{slug}/`
|
|
38
|
+
- Phase should NOT already have TDD coverage (check if `features.tdd_mode` is false in config — if TDD mode is enabled, warn user that tests should already exist and ask to proceed anyway)
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Argument Parsing
|
|
43
|
+
|
|
44
|
+
Parse `$ARGUMENTS` according to `skills/shared/phase-argument-parsing.md`.
|
|
45
|
+
|
|
46
|
+
| Argument | Meaning |
|
|
47
|
+
|----------|---------|
|
|
48
|
+
| `3` | Generate tests for phase 3 |
|
|
49
|
+
| (no number) | Use current phase from STATE.md |
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Step 1 — Gather Context
|
|
54
|
+
|
|
55
|
+
**CRITICAL: Run init command to load project state efficiently.**
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
node "${CLAUDE_PLUGIN_ROOT}/scripts/pbr-tools.js" init execute-phase {phase_number}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
This returns STATE.md snapshot, phase plans, ROADMAP excerpt, and config — all in one call.
|
|
62
|
+
|
|
63
|
+
## Step 2 — Detect Test Framework
|
|
64
|
+
|
|
65
|
+
Scan the project root for test framework indicators:
|
|
66
|
+
|
|
67
|
+
1. Check `package.json` for `jest`, `vitest`, `mocha`, `ava` in devDependencies
|
|
68
|
+
2. Check for `pytest.ini`, `pyproject.toml` (with `[tool.pytest]`), `setup.cfg` (with `[tool:pytest]`)
|
|
69
|
+
3. Check for `jest.config.*`, `vitest.config.*`, `.mocharc.*`
|
|
70
|
+
4. Check for existing test directories: `tests/`, `test/`, `__tests__/`, `spec/`
|
|
71
|
+
5. Check for existing test file patterns: `*.test.*`, `*.spec.*`, `test_*.py`
|
|
72
|
+
|
|
73
|
+
If no test framework is detected, ask the user:
|
|
74
|
+
|
|
75
|
+
Use AskUserQuestion:
|
|
76
|
+
question: "No test framework detected. Which should I use?"
|
|
77
|
+
header: "Framework"
|
|
78
|
+
options:
|
|
79
|
+
- label: "Jest" description: "JavaScript/TypeScript testing (most common)"
|
|
80
|
+
- label: "Vitest" description: "Vite-native testing (faster, ESM-friendly)"
|
|
81
|
+
- label: "pytest" description: "Python testing framework"
|
|
82
|
+
multiSelect: false
|
|
83
|
+
|
|
84
|
+
## Step 3 — Collect Target Files
|
|
85
|
+
|
|
86
|
+
Read SUMMARY.md frontmatter from each plan in the phase to extract `key_files`:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
node "${CLAUDE_PLUGIN_ROOT}/scripts/pbr-tools.js" frontmatter .planning/phases/{NN}-{slug}/SUMMARY.md
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Collect all `key_files` across all plans in the phase. Filter to only source files (exclude config, docs, assets). Group by:
|
|
93
|
+
- **High priority**: Files with business logic, API endpoints, data models
|
|
94
|
+
- **Medium priority**: Utility functions, helpers, middleware
|
|
95
|
+
- **Low priority**: Config, types-only files, constants
|
|
96
|
+
|
|
97
|
+
Present the file list to the user:
|
|
98
|
+
|
|
99
|
+
Use AskUserQuestion:
|
|
100
|
+
question: "Found {N} source files from phase {P}. Generate tests for which?"
|
|
101
|
+
header: "Scope"
|
|
102
|
+
options:
|
|
103
|
+
- label: "High priority only" description: "{X} files — business logic, APIs, models"
|
|
104
|
+
- label: "High + Medium" description: "{Y} files — adds utilities and helpers"
|
|
105
|
+
- label: "All files" description: "{Z} files — comprehensive coverage"
|
|
106
|
+
multiSelect: false
|
|
107
|
+
|
|
108
|
+
## Step 4 — Generate Test Plans
|
|
109
|
+
|
|
110
|
+
For each target file, create a lightweight test plan (NOT a full PBR PLAN.md — just a task list):
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
File: src/auth/login.js
|
|
114
|
+
Tests to generate:
|
|
115
|
+
- Happy path: valid credentials return token
|
|
116
|
+
- Error: invalid password returns 401
|
|
117
|
+
- Error: missing email returns 400
|
|
118
|
+
- Edge: expired session handling
|
|
119
|
+
Framework: jest
|
|
120
|
+
Output: tests/auth/login.test.js
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Step 5 — Spawn Executor Agents
|
|
124
|
+
|
|
125
|
+
**CRITICAL: Delegate ALL test writing to subagents. Do NOT write test code in the main context.**
|
|
126
|
+
|
|
127
|
+
For each target file (or batch of related files), spawn an executor agent:
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
Spawn subagent_type: "pbr:executor"
|
|
131
|
+
|
|
132
|
+
Task: Generate tests for the following file(s):
|
|
133
|
+
|
|
134
|
+
<files_to_test>
|
|
135
|
+
{file_path}: {brief description from SUMMARY}
|
|
136
|
+
</files_to_test>
|
|
137
|
+
|
|
138
|
+
<test_framework>
|
|
139
|
+
{detected framework name and version}
|
|
140
|
+
Existing test directory: {path}
|
|
141
|
+
Test file naming: {pattern, e.g., *.test.js}
|
|
142
|
+
</test_framework>
|
|
143
|
+
|
|
144
|
+
<test_plan>
|
|
145
|
+
{test plan from Step 4}
|
|
146
|
+
</test_plan>
|
|
147
|
+
|
|
148
|
+
Instructions:
|
|
149
|
+
1. Read each source file to understand the implementation
|
|
150
|
+
2. Write test files following the project's existing test patterns
|
|
151
|
+
3. Each test file should cover: happy path, error cases, edge cases
|
|
152
|
+
4. Use the project's existing mocking patterns if any exist
|
|
153
|
+
5. Run the tests to verify they pass: {test command}
|
|
154
|
+
6. Commit with format: test({phase}-tests): add tests for {file}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Spawn up to `parallelization.max_concurrent_agents` agents in parallel for independent files.
|
|
158
|
+
|
|
159
|
+
## Step 6 — Verify and Report
|
|
160
|
+
|
|
161
|
+
After all agents complete, check results:
|
|
162
|
+
|
|
163
|
+
1. Glob for new test files created in this session
|
|
164
|
+
2. Run the test suite to verify all new tests pass:
|
|
165
|
+
```bash
|
|
166
|
+
{test_command}
|
|
167
|
+
```
|
|
168
|
+
3. Count: files tested, tests written, tests passing
|
|
169
|
+
|
|
170
|
+
Display completion:
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
174
|
+
║ PLAN-BUILD-RUN ► TESTS GENERATED ✓ ║
|
|
175
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
176
|
+
|
|
177
|
+
Phase {N}: {X} test files created, {Y} tests passing
|
|
178
|
+
|
|
179
|
+
Files tested:
|
|
180
|
+
- src/auth/login.js → tests/auth/login.test.js (8 tests)
|
|
181
|
+
- src/api/users.js → tests/api/users.test.js (12 tests)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
186
|
+
║ ▶ NEXT UP ║
|
|
187
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
188
|
+
|
|
189
|
+
**Run coverage check** to see how much is covered
|
|
190
|
+
|
|
191
|
+
`npm test -- --coverage`
|
|
192
|
+
|
|
193
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
**Also available:**
|
|
198
|
+
- `/pbr:review {N}` — verify the full phase
|
|
199
|
+
- `/pbr:continue` — execute next logical step
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Anti-Patterns
|
|
207
|
+
|
|
208
|
+
1. **DO NOT** write test code in the main orchestrator context — always delegate to executor agents
|
|
209
|
+
2. **DO NOT** generate tests for files not listed in SUMMARY.md key_files — stay scoped to the phase
|
|
210
|
+
3. **DO NOT** skip running the tests — always verify they pass before reporting success
|
|
211
|
+
4. **DO NOT** generate trivial tests (testing getters/setters, testing constants) — focus on behavior
|
|
212
|
+
5. **DO NOT** read full source files in the orchestrator — let the executor agents read them
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# SUMMARY-complex.md Template
|
|
2
|
+
|
|
3
|
+
> Use when: decisions were made OR fileCount > 6
|
|
4
|
+
> Referenced by: executor agent (complex plans, architectural work)
|
|
5
|
+
|
|
6
|
+
## Frontmatter (YAML)
|
|
7
|
+
|
|
8
|
+
```yaml
|
|
9
|
+
---
|
|
10
|
+
phase: "{phase_id}"
|
|
11
|
+
plan: "{plan_id}"
|
|
12
|
+
status: "complete" # complete | partial | checkpoint
|
|
13
|
+
subsystem: "{main subsystem affected}"
|
|
14
|
+
tags:
|
|
15
|
+
- "{tag1}"
|
|
16
|
+
requires:
|
|
17
|
+
- "{plan_id}: {artifact}"
|
|
18
|
+
provides:
|
|
19
|
+
- "{export/artifact description}"
|
|
20
|
+
affects:
|
|
21
|
+
- "{affected area 1}"
|
|
22
|
+
tech_stack:
|
|
23
|
+
- "{technology used}"
|
|
24
|
+
key_files:
|
|
25
|
+
- "{file1}: {what it does}"
|
|
26
|
+
key_decisions:
|
|
27
|
+
- "{decision 1}: {rationale}"
|
|
28
|
+
patterns:
|
|
29
|
+
- "{pattern used}: {where}"
|
|
30
|
+
metrics:
|
|
31
|
+
duration_minutes: {n}
|
|
32
|
+
tasks_completed: {n}
|
|
33
|
+
tasks_total: {n}
|
|
34
|
+
commits: {n}
|
|
35
|
+
files_created: {n}
|
|
36
|
+
files_modified: {n}
|
|
37
|
+
deferred:
|
|
38
|
+
- "{thing noticed but not implemented}"
|
|
39
|
+
self_check_failures:
|
|
40
|
+
- "{failure description}"
|
|
41
|
+
architecture_notes:
|
|
42
|
+
- "{key architectural decision and why}"
|
|
43
|
+
---
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Body Structure
|
|
47
|
+
|
|
48
|
+
```markdown
|
|
49
|
+
# Plan Summary: {plan_id}
|
|
50
|
+
|
|
51
|
+
## What Was Built
|
|
52
|
+
|
|
53
|
+
{2-3 paragraph description of what was accomplished}
|
|
54
|
+
|
|
55
|
+
## Architecture Decisions
|
|
56
|
+
|
|
57
|
+
| Decision | Options Considered | Chosen | Rationale |
|
|
58
|
+
|----------|-------------------|--------|-----------|
|
|
59
|
+
| {decision} | {opt1}, {opt2} | {chosen} | {why} |
|
|
60
|
+
|
|
61
|
+
## Task Results
|
|
62
|
+
|
|
63
|
+
| Task | Status | Commit | Files | Verify |
|
|
64
|
+
|------|--------|--------|-------|--------|
|
|
65
|
+
| {task_id}: {name} | done | {hash} | {count} | passed |
|
|
66
|
+
|
|
67
|
+
## Key Implementation Details
|
|
68
|
+
|
|
69
|
+
{Important details about HOW things were implemented}
|
|
70
|
+
|
|
71
|
+
## Integration Points
|
|
72
|
+
|
|
73
|
+
{How this plan connects to other plans - imports, exports, shared state}
|
|
74
|
+
|
|
75
|
+
## Known Issues
|
|
76
|
+
|
|
77
|
+
{Issues discovered during execution}
|
|
78
|
+
|
|
79
|
+
## Dependencies Provided
|
|
80
|
+
|
|
81
|
+
{What other plans can now depend on}
|
|
82
|
+
|
|
83
|
+
## Deferred Items
|
|
84
|
+
|
|
85
|
+
{Items noticed but intentionally deferred - with rationale}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Selection Heuristic
|
|
89
|
+
|
|
90
|
+
Use this template when ANY of the following are true:
|
|
91
|
+
- Key architectural decisions were made during execution
|
|
92
|
+
- Total files created or modified > 6
|
|
93
|
+
- Deviations from the plan occurred
|
|
94
|
+
- Multiple integration points were established
|
|
95
|
+
- The plan touched shared infrastructure or patterns
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# SUMMARY-minimal.md Template
|
|
2
|
+
|
|
3
|
+
> Use when: taskCount <= 2 AND fileCount <= 3
|
|
4
|
+
> Referenced by: executor agent (quick tasks, simple plans)
|
|
5
|
+
|
|
6
|
+
## Frontmatter (YAML)
|
|
7
|
+
|
|
8
|
+
```yaml
|
|
9
|
+
---
|
|
10
|
+
phase: "{phase_id}"
|
|
11
|
+
plan: "{plan_id}"
|
|
12
|
+
status: "complete" # complete | partial | checkpoint
|
|
13
|
+
requires: []
|
|
14
|
+
provides:
|
|
15
|
+
- "{export/artifact description}"
|
|
16
|
+
key_files:
|
|
17
|
+
- "{file1}: {what it does}"
|
|
18
|
+
deferred: []
|
|
19
|
+
metrics:
|
|
20
|
+
tasks_completed: {n}
|
|
21
|
+
tasks_total: {n}
|
|
22
|
+
commits: {n}
|
|
23
|
+
---
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Body Structure
|
|
27
|
+
|
|
28
|
+
```markdown
|
|
29
|
+
# Plan Summary: {plan_id}
|
|
30
|
+
|
|
31
|
+
## What Was Built
|
|
32
|
+
|
|
33
|
+
{1 paragraph description}
|
|
34
|
+
|
|
35
|
+
## Task Results
|
|
36
|
+
|
|
37
|
+
| Task | Status | Commit | Files |
|
|
38
|
+
|------|--------|--------|-------|
|
|
39
|
+
| {task_id}: {name} | done | {hash} | {count} |
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Selection Heuristic
|
|
43
|
+
|
|
44
|
+
Use this template when ALL of the following are true:
|
|
45
|
+
- Total tasks in the plan <= 2
|
|
46
|
+
- Total files created or modified <= 3
|
|
47
|
+
- No key decisions were made
|
|
48
|
+
- No deviations from the plan occurred
|