@fro.bot/systematic 1.23.0 → 1.23.2

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 (62) hide show
  1. package/agents/research/best-practices-researcher.md +9 -3
  2. package/agents/research/framework-docs-researcher.md +2 -0
  3. package/agents/research/git-history-analyzer.md +9 -6
  4. package/agents/research/issue-intelligence-analyst.md +232 -0
  5. package/agents/research/repo-research-analyst.md +6 -10
  6. package/commands/.gitkeep +0 -0
  7. package/package.json +1 -1
  8. package/skills/agent-browser/SKILL.md +4 -3
  9. package/skills/ce-brainstorm/SKILL.md +242 -52
  10. package/skills/ce-compound/SKILL.md +60 -40
  11. package/skills/ce-compound-refresh/SKILL.md +528 -0
  12. package/skills/ce-ideate/SKILL.md +371 -0
  13. package/skills/ce-plan/SKILL.md +40 -39
  14. package/skills/ce-plan-beta/SKILL.md +572 -0
  15. package/skills/ce-review/SKILL.md +7 -6
  16. package/skills/ce-work/SKILL.md +85 -75
  17. package/skills/create-agent-skill/SKILL.md +1 -1
  18. package/skills/create-agent-skills/SKILL.md +6 -5
  19. package/skills/deepen-plan/SKILL.md +11 -11
  20. package/skills/deepen-plan-beta/SKILL.md +323 -0
  21. package/skills/document-review/SKILL.md +14 -8
  22. package/skills/generate_command/SKILL.md +3 -2
  23. package/skills/lfg/SKILL.md +10 -7
  24. package/skills/report-bug/SKILL.md +15 -14
  25. package/skills/resolve_parallel/SKILL.md +2 -1
  26. package/skills/resolve_todo_parallel/SKILL.md +1 -1
  27. package/skills/slfg/SKILL.md +7 -4
  28. package/skills/test-browser/SKILL.md +3 -3
  29. package/skills/test-xcode/SKILL.md +2 -2
  30. package/agents/workflow/every-style-editor.md +0 -66
  31. package/commands/agent-native-audit.md +0 -279
  32. package/commands/ce/brainstorm.md +0 -145
  33. package/commands/ce/compound.md +0 -240
  34. package/commands/ce/plan.md +0 -636
  35. package/commands/ce/review.md +0 -525
  36. package/commands/ce/work.md +0 -456
  37. package/commands/changelog.md +0 -139
  38. package/commands/create-agent-skill.md +0 -9
  39. package/commands/deepen-plan.md +0 -546
  40. package/commands/deploy-docs.md +0 -120
  41. package/commands/feature-video.md +0 -352
  42. package/commands/generate_command.md +0 -164
  43. package/commands/heal-skill.md +0 -147
  44. package/commands/lfg.md +0 -20
  45. package/commands/report-bug.md +0 -151
  46. package/commands/reproduce-bug.md +0 -100
  47. package/commands/resolve_parallel.md +0 -36
  48. package/commands/resolve_todo_parallel.md +0 -37
  49. package/commands/slfg.md +0 -32
  50. package/commands/test-browser.md +0 -340
  51. package/commands/test-xcode.md +0 -332
  52. package/commands/triage.md +0 -311
  53. package/commands/workflows/brainstorm.md +0 -145
  54. package/commands/workflows/compound.md +0 -10
  55. package/commands/workflows/plan.md +0 -10
  56. package/commands/workflows/review.md +0 -10
  57. package/commands/workflows/work.md +0 -10
  58. package/skills/brainstorming/SKILL.md +0 -190
  59. package/skills/skill-creator/SKILL.md +0 -210
  60. package/skills/skill-creator/scripts/init_skill.py +0 -303
  61. package/skills/skill-creator/scripts/package_skill.py +0 -110
  62. package/skills/skill-creator/scripts/quick_validate.py +0 -65
@@ -1,16 +1,38 @@
1
1
  ---
2
- name: ce-brainstorm
3
- description: Explore requirements and approaches through collaborative dialogue before planning implementation
2
+ name: ce:brainstorm
3
+ description: Explore requirements and approaches through collaborative dialogue before writing a right-sized requirements document and planning implementation. Use for feature ideas, problem framing, when the user says 'let's brainstorm', or when they want to think through options before deciding what to build. Also use when a user describes a vague or ambitious feature request, asks 'what should we build', 'help me think through X', presents a problem with multiple valid solutions, or seems unsure about scope or direction — even if they don't explicitly ask to brainstorm.
4
4
  argument-hint: '[feature idea or problem to explore]'
5
5
  ---
6
6
 
7
7
  # Brainstorm a Feature or Improvement
8
8
 
9
- **Note: The current year is 2026.** Use this when dating brainstorm documents.
9
+ **Note: The current year is 2026.** Use this when dating requirements documents.
10
10
 
11
- Brainstorming helps answer **WHAT** to build through collaborative dialogue. It precedes `/ce:plan`, which answers **HOW** to build it.
11
+ Brainstorming helps answer **WHAT** to build through collaborative dialogue. It precedes `/systematic:ce-plan`, which answers **HOW** to build it.
12
12
 
13
- **Process knowledge:** Load the `brainstorming` skill for detailed question techniques, approach exploration patterns, and YAGNI principles.
13
+ The durable output of this workflow is a **requirements document**. In other workflows this might be called a lightweight PRD or feature brief. In compound engineering, keep the workflow name `brainstorm`, but make the written artifact strong enough that planning does not need to invent product behavior, scope boundaries, or success criteria.
14
+
15
+ This skill does not implement code. It explores, clarifies, and documents decisions for later planning or execution.
16
+
17
+ ## Core Principles
18
+
19
+ 1. **Assess scope first** - Match the amount of ceremony to the size and ambiguity of the work.
20
+ 2. **Be a thinking partner** - Suggest alternatives, challenge assumptions, and explore what-ifs instead of only extracting requirements.
21
+ 3. **Resolve product decisions here** - User-facing behavior, scope boundaries, and success criteria belong in this workflow. Detailed implementation belongs in planning.
22
+ 4. **Keep implementation out of the requirements doc by default** - Do not include libraries, schemas, endpoints, file layouts, or code-level design unless the brainstorm itself is inherently about a technical or architectural change.
23
+ 5. **Right-size the artifact** - Simple work gets a compact requirements document or brief alignment. Larger work gets a fuller document. Do not add ceremony that does not help planning.
24
+ 6. **Apply YAGNI to carrying cost, not coding effort** - Prefer the simplest approach that delivers meaningful value. Avoid speculative complexity and hypothetical future-proofing, but low-cost polish or delight is worth including when its ongoing cost is small and easy to maintain.
25
+
26
+ ## Interaction Rules
27
+
28
+ 1. **Ask one question at a time** - Do not batch several unrelated questions into one message.
29
+ 2. **Prefer single-select multiple choice** - Use single-select when choosing one direction, one priority, or one next step.
30
+ 3. **Use multi-select rarely and intentionally** - Use it only for compatible sets such as goals, constraints, non-goals, or success criteria that can all coexist. If prioritization matters, follow up by asking which selected item is primary.
31
+ 4. **Use the platform's question tool when available** - When asking the user a question, prefer the platform's blocking question tool if one exists (`AskUserQuestion` in OpenCode, `request_user_input` in Codex, `ask_user` in Gemini). Otherwise, present numbered options in chat and wait for the user's reply before proceeding.
32
+
33
+ ## Output Guidance
34
+
35
+ - **Keep outputs concise** - Prefer short sections, brief bullets, and only enough detail to support the next decision.
14
36
 
15
37
  ## Feature Description
16
38
 
@@ -22,9 +44,16 @@ Do not proceed until you have a feature description from the user.
22
44
 
23
45
  ## Execution Flow
24
46
 
25
- ### Phase 0: Assess Requirements Clarity
47
+ ### Phase 0: Resume, Assess, and Route
48
+
49
+ #### 0.1 Resume Existing Work When Appropriate
26
50
 
27
- Evaluate whether brainstorming is needed based on the feature description.
51
+ If the user references an existing brainstorm topic or document, or there is an obvious recent matching `*-requirements.md` file in `docs/brainstorms/`:
52
+ - Read the document
53
+ - Confirm with the user before resuming: "Found an existing requirements doc for [topic]. Should I continue from this, or start fresh?"
54
+ - If resuming, summarize the current state briefly, continue from its existing decisions and outstanding questions, and update the existing document instead of creating a duplicate
55
+
56
+ #### 0.2 Assess Whether Brainstorming Is Needed
28
57
 
29
58
  **Clear requirements indicators:**
30
59
  - Specific acceptance criteria provided
@@ -33,71 +62,228 @@ Evaluate whether brainstorming is needed based on the feature description.
33
62
  - Constrained, well-defined scope
34
63
 
35
64
  **If requirements are already clear:**
36
- Use **question tool** to suggest: "Your requirements seem detailed enough to proceed directly to planning. Should I run `/ce:plan` instead, or would you like to explore the idea further?"
65
+ Keep the interaction brief. Confirm understanding and present concise next-step options rather than forcing a long brainstorm. Only write a short requirements document when a durable handoff to planning or later review would be valuable. Skip Phase 1.1 and 1.2 entirely — go straight to Phase 1.3 or Phase 3.
66
+
67
+ #### 0.3 Assess Scope
68
+
69
+ Use the feature description plus a light repo scan to classify the work:
70
+ - **Lightweight** - small, well-bounded, low ambiguity
71
+ - **Standard** - normal feature or bounded refactor with some decisions to make
72
+ - **Deep** - cross-cutting, strategic, or highly ambiguous
73
+
74
+ If the scope is unclear, ask one targeted question to disambiguate and then proceed.
37
75
 
38
76
  ### Phase 1: Understand the Idea
39
77
 
40
- #### 1.1 Repository Research (Lightweight)
78
+ #### 1.1 Existing Context Scan
79
+
80
+ Scan the repo before substantive brainstorming. Match depth to scope:
81
+
82
+ **Lightweight** — Search for the topic, check if something similar already exists, and move on.
83
+
84
+ **Standard and Deep** — Two passes:
41
85
 
42
- Run a quick repo scan to understand existing patterns:
86
+ *Constraint Check* Check project instruction files (`AGENTS.md`, `CLAUDE.md`) for workflow, product, or scope constraints that affect the brainstorm. If these add nothing, move on.
43
87
 
44
- - task systematic:research:repo-research-analyst("Understand existing patterns related to: <feature_description>")
88
+ *Topic Scan* Search for relevant terms. Read the most relevant existing artifact if one exists (brainstorm, plan, spec, skill, feature doc). Skim adjacent examples covering similar behavior.
45
89
 
46
- Focus on: similar features, established patterns, AGENTS.md guidance.
90
+ If nothing obvious appears after a short scan, say so and continue. Do not drift into technical planning — avoid inspecting tests, migrations, deployment, or low-level architecture unless the brainstorm is itself about a technical decision.
47
91
 
48
- #### 1.2 Collaborative Dialogue
92
+ #### 1.2 Product Pressure Test
49
93
 
50
- Use the **question tool** to ask questions **one at a time**.
94
+ Before generating approaches, challenge the request to catch misframing. Match depth to scope:
51
95
 
52
- **Guidelines (see `brainstorming` skill for detailed techniques):**
96
+ **Lightweight:**
97
+ - Is this solving the real user problem?
98
+ - Are we duplicating something that already covers this?
99
+ - Is there a clearly better framing with near-zero extra cost?
100
+
101
+ **Standard:**
102
+ - Is this the right problem, or a proxy for a more important one?
103
+ - What user or business outcome actually matters here?
104
+ - What happens if we do nothing?
105
+ - Is there a nearby framing that creates more user value without more carrying cost? If so, what complexity does it add?
106
+ - Given the current project state, user goal, and constraints, what is the single highest-leverage move right now: the request as framed, a reframing, one adjacent addition, a simplification, or doing nothing?
107
+ - Favor moves that compound value, reduce future carrying cost, or make the product meaningfully more useful or compelling
108
+ - Use the result to sharpen the conversation, not to bulldoze the user's intent
109
+
110
+ **Deep** — Standard questions plus:
111
+ - What durable capability should this create in 6-12 months?
112
+ - Does this move the product toward that, or is it only a local patch?
113
+
114
+ #### 1.3 Collaborative Dialogue
115
+
116
+ Use the platform's blocking question tool when available (see Interaction Rules). Otherwise, present numbered options in chat and wait for the user's reply before proceeding.
117
+
118
+ **Guidelines:**
119
+ - Ask questions **one at a time**
53
120
  - Prefer multiple choice when natural options exist
54
- - Start broad (purpose, users) then narrow (constraints, edge cases)
55
- - Validate assumptions explicitly
56
- - Ask about success criteria
121
+ - Prefer **single-select** when choosing one direction, one priority, or one next step
122
+ - Use **multi-select** only for compatible sets that can all coexist; if prioritization matters, ask which selected item is primary
123
+ - Start broad (problem, users, value) then narrow (constraints, exclusions, edge cases)
124
+ - Clarify the problem frame, validate assumptions, and ask about success criteria
125
+ - Make requirements concrete enough that planning will not need to invent behavior
126
+ - Surface dependencies or prerequisites only when they materially affect scope
127
+ - Resolve product decisions here; leave technical implementation choices for planning
128
+ - Bring ideas, alternatives, and challenges instead of only interviewing
57
129
 
58
- **Exit condition:** Continue until the idea is clear OR user says "proceed"
130
+ **Exit condition:** Continue until the idea is clear OR the user explicitly wants to proceed.
59
131
 
60
132
  ### Phase 2: Explore Approaches
61
133
 
62
- Propose **2-3 concrete approaches** based on research and conversation.
134
+ If multiple plausible directions remain, propose **2-3 concrete approaches** based on research and conversation. Otherwise state the recommended direction directly.
135
+
136
+ When useful, include one deliberately higher-upside alternative:
137
+ - Identify what adjacent addition or reframing would most increase usefulness, compounding value, or durability without disproportionate carrying cost. Present it as a challenger option alongside the baseline, not as the default. Omit it when the work is already obviously over-scoped or the baseline request is clearly the right move.
63
138
 
64
139
  For each approach, provide:
65
140
  - Brief description (2-3 sentences)
66
141
  - Pros and cons
142
+ - Key risks or unknowns
67
143
  - When it's best suited
68
144
 
69
- Lead with your recommendation and explain why. Apply YAGNI—prefer simpler solutions.
145
+ Lead with your recommendation and explain why. Prefer simpler solutions when added complexity creates real carrying cost, but do not reject low-cost, high-value polish just because it is not strictly necessary.
146
+
147
+ If one approach is clearly best and alternatives are not meaningful, skip the menu and state the recommendation directly.
148
+
149
+ If relevant, call out whether the choice is:
150
+ - Reuse an existing pattern
151
+ - Extend an existing capability
152
+ - Build something net new
153
+
154
+ ### Phase 3: Capture the Requirements
155
+
156
+ Write or update a requirements document only when the conversation produced durable decisions worth preserving.
157
+
158
+ This document should behave like a lightweight PRD without PRD ceremony. Include what planning needs to execute well, and skip sections that add no value for the scope.
159
+
160
+ The requirements document is for product definition and scope control. Do **not** include implementation details such as libraries, schemas, endpoints, file layouts, or code structure unless the brainstorm is inherently technical and those details are themselves the subject of the decision.
161
+
162
+ **Required content for non-trivial work:**
163
+ - Problem frame
164
+ - Concrete requirements or intended behavior with stable IDs
165
+ - Scope boundaries
166
+ - Success criteria
167
+
168
+ **Include when materially useful:**
169
+ - Key decisions and rationale
170
+ - Dependencies or assumptions
171
+ - Outstanding questions
172
+ - Alternatives considered
173
+ - High-level technical direction only when the work is inherently technical and the direction is part of the product/architecture decision
174
+
175
+ **Document structure:** Use this template and omit clearly inapplicable optional sections:
70
176
 
71
- Use **question tool** to ask which approach the user prefers.
177
+ ```markdown
178
+ ---
179
+ date: YYYY-MM-DD
180
+ topic: <kebab-case-topic>
181
+ ---
182
+
183
+ # <Topic Title>
184
+
185
+ ## Problem Frame
186
+ [Who is affected, what is changing, and why it matters]
187
+
188
+ ## Requirements
189
+ - R1. [Concrete user-facing behavior or requirement]
190
+ - R2. [Concrete user-facing behavior or requirement]
191
+
192
+ ## Success Criteria
193
+ - [How we will know this solved the right problem]
194
+
195
+ ## Scope Boundaries
196
+ - [Deliberate non-goal or exclusion]
197
+
198
+ ## Key Decisions
199
+ - [Decision]: [Rationale]
200
+
201
+ ## Dependencies / Assumptions
202
+ - [Only include if material]
203
+
204
+ ## Outstanding Questions
205
+
206
+ ### Resolve Before Planning
207
+ - [Affects R1][User decision] [Question that must be answered before planning can proceed]
208
+
209
+ ### Deferred to Planning
210
+ - [Affects R2][Technical] [Question that should be answered during planning or codebase exploration]
211
+ - [Affects R2][Needs research] [Question that likely requires research during planning]
212
+
213
+ ## Next Steps
214
+ [If `Resolve Before Planning` is empty: `→ /systematic:ce-plan` for structured implementation planning]
215
+ [If `Resolve Before Planning` is not empty: `→ Resume /systematic:ce-brainstorm` to resolve blocking questions before planning]
216
+ ```
217
+
218
+ For **Standard** and **Deep** brainstorms, a requirements document is usually warranted.
72
219
 
73
- ### Phase 3: Capture the Design
220
+ For **Lightweight** brainstorms, keep the document compact. Skip document creation when the user only needs brief alignment and no durable decisions need to be preserved.
74
221
 
75
- Write a brainstorm document to `docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md`.
222
+ For very small requirements docs with only 1-3 simple requirements, plain bullet requirements are acceptable. For **Standard** and **Deep** requirements docs, use stable IDs like `R1`, `R2`, `R3` so planning and later review can refer to them unambiguously.
76
223
 
77
- **Document structure:** See the `brainstorming` skill for the template format. Key sections: What We're Building, Why This Approach, Key Decisions, Open Questions.
224
+ When the work is simple, combine sections rather than padding them. A short requirements document is better than a bloated one.
225
+
226
+ Before finalizing, check:
227
+ - What would `ce:plan` still have to invent if this brainstorm ended now?
228
+ - Do any requirements depend on something claimed to be out of scope?
229
+ - Are any unresolved items actually product decisions rather than planning questions?
230
+ - Did implementation details leak in when they shouldn't have?
231
+ - Is there a low-cost change that would make this materially more useful?
232
+
233
+ If planning would need to invent product behavior, scope boundaries, or success criteria, the brainstorm is not complete yet.
78
234
 
79
235
  Ensure `docs/brainstorms/` directory exists before writing.
80
236
 
81
- **IMPORTANT:** Before proceeding to Phase 4, check if there are any Open Questions listed in the brainstorm document. If there are open questions, YOU MUST ask the user about each one using question before offering to proceed to planning. Move resolved questions to a "Resolved Questions" section.
237
+ If a document contains outstanding questions:
238
+ - Use `Resolve Before Planning` only for questions that truly block planning
239
+ - If `Resolve Before Planning` is non-empty, keep working those questions during the brainstorm by default
240
+ - If the user explicitly wants to proceed anyway, convert each remaining item into an explicit decision, assumption, or `Deferred to Planning` question before proceeding
241
+ - Do not force resolution of technical questions during brainstorming just to remove uncertainty
242
+ - Put technical questions, or questions that require validation or research, under `Deferred to Planning` when they are better answered there
243
+ - Use tags like `[Needs research]` when the planner should likely investigate the question rather than answer it from repo context alone
244
+ - Carry deferred questions forward explicitly rather than treating them as a failure to finish the requirements doc
82
245
 
83
246
  ### Phase 4: Handoff
84
247
 
85
- Use **question tool** to present next steps:
248
+ #### 4.1 Present Next-Step Options
249
+
250
+ Present next steps using the platform's blocking question tool when available (see Interaction Rules). Otherwise present numbered options in chat and end the turn.
251
+
252
+ If `Resolve Before Planning` contains any items:
253
+ - Ask the blocking questions now, one at a time, by default
254
+ - If the user explicitly wants to proceed anyway, first convert each remaining item into an explicit decision, assumption, or `Deferred to Planning` question
255
+ - If the user chooses to pause instead, present the handoff as paused or blocked rather than complete
256
+ - Do not offer `Proceed to planning` or `Proceed directly to work` while `Resolve Before Planning` remains non-empty
257
+
258
+ **Question when no blocking questions remain:** "Brainstorm complete. What would you like to do next?"
259
+
260
+ **Question when blocking questions remain and user wants to pause:** "Brainstorm paused. Planning is blocked until the remaining questions are resolved. What would you like to do next?"
261
+
262
+ Present only the options that apply:
263
+ - **Proceed to planning (Recommended)** - Run `/systematic:ce-plan` for structured implementation planning
264
+ - **Proceed directly to work** - Only offer this when scope is lightweight, success criteria are clear, scope boundaries are clear, and no meaningful technical or research questions remain
265
+ - **Review and refine** - Offer this only when a requirements document exists and can be improved through structured review
266
+ - **Ask more questions** - Continue clarifying scope, preferences, or edge cases
267
+ - **Share to Proof** - Offer this only when a requirements document exists
268
+ - **Done for now** - Return later
269
+
270
+ If the direct-to-work gate is not satisfied, omit that option entirely.
86
271
 
87
- **Question:** "Brainstorm captured. What would you like to do next?"
272
+ #### 4.2 Handle the Selected Option
88
273
 
89
- **Options:**
90
- 1. **Review and refine** - Improve the document through structured self-review
91
- 2. **Proceed to planning** - Run `/ce:plan` (will auto-detect this brainstorm)
92
- 3. **Share to Proof** - Upload to Proof for collaborative review and sharing
93
- 4. **Ask more questions** - I have more questions to clarify before moving on
94
- 5. **Done for now** - Return later
274
+ **If user selects "Proceed to planning (Recommended)":**
275
+
276
+ Immediately run `/systematic:ce-plan` in the current session. Pass the requirements document path when one exists; otherwise pass a concise summary of the finalized brainstorm decisions. Do not print the closing summary first.
277
+
278
+ **If user selects "Proceed directly to work":**
279
+
280
+ Immediately run `/systematic:ce-work` in the current session using the finalized brainstorm output as context. If a compact requirements document exists, pass its path. Do not print the closing summary first.
95
281
 
96
282
  **If user selects "Share to Proof":**
97
283
 
98
284
  ```bash
99
- CONTENT=$(cat docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md)
100
- TITLE="Brainstorm: <topic title>"
285
+ CONTENT=$(cat docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md)
286
+ TITLE="Requirements: <topic title>"
101
287
  RESPONSE=$(curl -s -X POST https://www.proofeditor.ai/share/markdown \
102
288
  -H "Content-Type: application/json" \
103
289
  -d "$(jq -n --arg title "$TITLE" --arg markdown "$CONTENT" --arg by "ai:compound" '{title: $title, markdown: $markdown, by: $by}')")
@@ -108,39 +294,43 @@ Display the URL prominently: `View & collaborate in Proof: <PROOF_URL>`
108
294
 
109
295
  If the curl fails, skip silently. Then return to the Phase 4 options.
110
296
 
111
- **If user selects "Ask more questions":** YOU (Claude) return to Phase 1.2 (Collaborative Dialogue) and continue asking the USER questions one at a time to further refine the design. The user wants YOU to probe deeper - ask about edge cases, constraints, preferences, or areas not yet explored. Continue until the user is satisfied, then return to Phase 4.
297
+ **If user selects "Ask more questions":** Return to Phase 1.3 (Collaborative Dialogue) and continue asking the user questions one at a time to further refine the design. Probe deeper into edge cases, constraints, preferences, or areas not yet explored. Continue until the user is satisfied, then return to Phase 4. Do not show the closing summary yet.
112
298
 
113
299
  **If user selects "Review and refine":**
114
300
 
115
- Load the `document-review` skill and apply it to the brainstorm document.
301
+ Load the `document-review` skill and apply it to the requirements document.
116
302
 
117
- When document-review returns "Review complete", present next steps:
303
+ When document-review returns "Review complete", return to the normal Phase 4 options and present only the options that still apply. Do not show the closing summary yet.
118
304
 
119
- 1. **Move to planning** - Continue to `/ce:plan` with this document
120
- 2. **Done for now** - Brainstorming complete. To start planning later: `/ce:plan [document-path]`
305
+ #### 4.3 Closing Summary
121
306
 
122
- ## Output Summary
307
+ Use the closing summary only when this run of the workflow is ending or handing off, not when returning to the Phase 4 options.
123
308
 
124
- When complete, display:
309
+ When complete and ready for planning, display:
125
310
 
126
- ```
311
+ ```text
127
312
  Brainstorm complete!
128
313
 
129
- Document: docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md
314
+ Requirements doc: docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md # if one was created
130
315
 
131
316
  Key decisions:
132
317
  - [Decision 1]
133
318
  - [Decision 2]
134
319
 
135
- Next: Run `/ce:plan` when ready to implement.
320
+ Recommended next step: `/systematic:ce-plan`
136
321
  ```
137
322
 
138
- ## Important Guidelines
323
+ If the user pauses with `Resolve Before Planning` still populated, display:
139
324
 
140
- - **Stay focused on WHAT, not HOW** - Implementation details belong in the plan
141
- - **Ask one question at a time** - Don't overwhelm
142
- - **Apply YAGNI** - Prefer simpler approaches
143
- - **Keep outputs concise** - 200-300 words per section max
325
+ ```text
326
+ Brainstorm paused.
144
327
 
145
- NEVER CODE! Just explore and document decisions.
328
+ Requirements doc: docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md # if one was created
329
+
330
+ Planning is blocked by:
331
+ - [Blocking question 1]
332
+ - [Blocking question 2]
333
+
334
+ Resume with `/systematic:ce-brainstorm` when ready to resolve these before planning.
335
+ ```
146
336
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: ce-compound
2
+ name: ce:compound
3
3
  description: Document a recently solved problem to compound your team's knowledge
4
4
  argument-hint: '[optional: brief context about the fix]'
5
5
  ---
@@ -17,45 +17,15 @@ Captures problem solutions while context is fresh, creating structured documenta
17
17
  ## Usage
18
18
 
19
19
  ```bash
20
- /ce:compound # Document the most recent fix
21
- /ce:compound [brief context] # Provide additional context hint
20
+ /systematic:ce-compound # Document the most recent fix
21
+ /systematic:ce-compound [brief context] # Provide additional context hint
22
22
  ```
23
23
 
24
- ## Execution Strategy: Context-Aware Orchestration
24
+ ## Execution Strategy
25
25
 
26
- ### Phase 0: Context Budget Check
26
+ **Always run full mode by default.** Proceed directly to Phase 1 unless the user explicitly requests compact-safe mode (e.g., `/systematic:ce-compound --compact` or "use compact mode").
27
27
 
28
- <critical_requirement>
29
- **Run this check BEFORE launching any subagents.**
30
-
31
- The /compound command is token-heavy - it launches 5 parallel subagents that collectively consume ~10k tokens of context. Running near context limits risks compaction mid-compound, which degrades output quality significantly.
32
- </critical_requirement>
33
-
34
- Before proceeding, the orchestrator MUST:
35
-
36
- 1. **Assess context usage**: Check how long the current conversation has been running. If there has been significant back-and-forth (many tool calls, large file reads, extensive debugging), context is likely constrained.
37
-
38
- 2. **Warn the user**:
39
- ```
40
- ⚠️ Context Budget Check
41
-
42
- /compound launches 5 parallel subagents (~10k tokens). Long conversations
43
- risk compaction mid-compound, which degrades documentation quality.
44
-
45
- Tip: For best results, run /compound early in a session - right after
46
- verifying a fix, before continuing other work.
47
- ```
48
-
49
- 3. **Offer the user a choice**:
50
- ```
51
- How would you like to proceed?
52
-
53
- 1. Full compound (5 parallel subagents, ~10k tokens) - best quality
54
- 2. Compact-safe mode (single pass, ~2k tokens) - safe near context limits
55
- ```
56
-
57
- 4. **If the user picks option 1** (or confirms full mode): proceed to Phase 1 below.
58
- 5. **If the user picks option 2** (or requests compact-safe): skip to the **Compact-Safe Mode** section below.
28
+ Compact-safe mode exists as a lightweight alternative — see the **Compact-Safe Mode** section below. It's there if the user wants it, not something to push.
59
29
 
60
30
  ---
61
31
 
@@ -89,7 +59,8 @@ Launch these subagents IN PARALLEL. Each returns text data to the orchestrator.
89
59
  - Searches `docs/solutions/` for related documentation
90
60
  - Identifies cross-references and links
91
61
  - Finds related GitHub issues
92
- - Returns: Links and relationships
62
+ - Flags any related learning or pattern docs that may now be stale, contradicted, or overly broad
63
+ - Returns: Links, relationships, and any refresh candidates
93
64
 
94
65
  #### 4. **Prevention Strategist**
95
66
  - Develops prevention strategies
@@ -121,6 +92,53 @@ The orchestrating agent (main conversation) performs these steps:
121
92
 
122
93
  </sequential_tasks>
123
94
 
95
+ ### Phase 2.5: Selective Refresh Check
96
+
97
+ After writing the new learning, decide whether this new solution is evidence that older docs should be refreshed.
98
+
99
+ `ce:compound-refresh` is **not** a default follow-up. Use it selectively when the new learning suggests an older learning or pattern doc may now be inaccurate.
100
+
101
+ It makes sense to invoke `ce:compound-refresh` when one or more of these are true:
102
+
103
+ 1. A related learning or pattern doc recommends an approach that the new fix now contradicts
104
+ 2. The new fix clearly supersedes an older documented solution
105
+ 3. The current work involved a refactor, migration, rename, or dependency upgrade that likely invalidated references in older docs
106
+ 4. A pattern doc now looks overly broad, outdated, or no longer supported by the refreshed reality
107
+ 5. The Related Docs Finder surfaced high-confidence refresh candidates in the same problem space
108
+
109
+ It does **not** make sense to invoke `ce:compound-refresh` when:
110
+
111
+ 1. No related docs were found
112
+ 2. Related docs still appear consistent with the new learning
113
+ 3. The overlap is superficial and does not change prior guidance
114
+ 4. Refresh would require a broad historical review with weak evidence
115
+
116
+ Use these rules:
117
+
118
+ - If there is **one obvious stale candidate**, invoke `ce:compound-refresh` with a narrow scope hint after the new learning is written
119
+ - If there are **multiple candidates in the same area**, ask the user whether to run a targeted refresh for that module, category, or pattern set
120
+ - If context is already tight or you are in compact-safe mode, do not expand into a broad refresh automatically; instead recommend `ce:compound-refresh` as the next step with a scope hint
121
+
122
+ When invoking or recommending `ce:compound-refresh`, be explicit about the argument to pass. Prefer the narrowest useful scope:
123
+
124
+ - **Specific file** when one learning or pattern doc is the likely stale artifact
125
+ - **Module or component name** when several related docs may need review
126
+ - **Category name** when the drift is concentrated in one solutions area
127
+ - **Pattern filename or pattern topic** when the stale guidance lives in `docs/solutions/patterns/`
128
+
129
+ Examples:
130
+
131
+ - `/systematic:ce-compound-refresh plugin-versioning-requirements`
132
+ - `/systematic:ce-compound-refresh payments`
133
+ - `/systematic:ce-compound-refresh performance-issues`
134
+ - `/systematic:ce-compound-refresh critical-patterns`
135
+
136
+ A single scope hint may still expand to multiple related docs when the change is cross-cutting within one domain, category, or pattern area.
137
+
138
+ Do not invoke `ce:compound-refresh` without an argument unless the user explicitly wants a broad sweep.
139
+
140
+ Always capture the new learning first. Refresh is a targeted maintenance follow-up, not a prerequisite for documentation.
141
+
124
142
  ### Phase 3: Optional Enhancement
125
143
 
126
144
  **WAIT for Phase 2 to complete before proceeding.**
@@ -173,6 +191,8 @@ re-run /compound in a fresh session.
173
191
 
174
192
  **No subagents are launched. No parallel tasks. One file written.**
175
193
 
194
+ In compact-safe mode, only suggest `ce:compound-refresh` if there is an obvious narrow refresh target. Do not broaden into a large refresh sweep from a compact-safe session.
195
+
176
196
  ---
177
197
 
178
198
  ## What It Captures
@@ -279,7 +299,7 @@ Build → Test → Find Issue → Research → Improve → Document → Validate
279
299
 
280
300
  <auto_invoke> <trigger_phrases> - "that worked" - "it's fixed" - "working now" - "problem solved" </trigger_phrases>
281
301
 
282
- <manual_override> Use /ce:compound [context] to document immediately without waiting for auto-detection. </manual_override> </auto_invoke>
302
+ <manual_override> Use /systematic:ce-compound [context] to document immediately without waiting for auto-detection. </manual_override> </auto_invoke>
283
303
 
284
304
  ## Routes To
285
305
 
@@ -307,11 +327,11 @@ Based on problem type, these agents can enhance documentation:
307
327
 
308
328
  ### When to Invoke
309
329
  - **Auto-triggered** (optional): Agents can run post-documentation for enhancement
310
- - **Manual trigger**: User can invoke agents after /ce:compound completes for deeper review
330
+ - **Manual trigger**: User can invoke agents after /systematic:ce-compound completes for deeper review
311
331
  - **Customize agents**: Edit `compound-engineering.local.md` or invoke the `setup` skill to configure which review agents are used across all workflows
312
332
 
313
333
  ## Related Commands
314
334
 
315
335
  - `/research [topic]` - Deep investigation (searches docs/solutions/ for patterns)
316
- - `/ce:plan` - Planning workflow (references documented solutions)
336
+ - `/systematic:ce-plan` - Planning workflow (references documented solutions)
317
337