@every-env/compound-plugin 2.37.1 → 2.39.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.
@@ -22,38 +22,39 @@ Do not proceed until you have a clear feature description from the user.
22
22
 
23
23
  ### 0. Idea Refinement
24
24
 
25
- **Check for brainstorm output first:**
25
+ **Check for requirements document first:**
26
26
 
27
- Before asking questions, look for recent brainstorm documents in `docs/brainstorms/` that match this feature:
27
+ Before asking questions, look for recent requirements documents in `docs/brainstorms/` that match this feature:
28
28
 
29
29
  ```bash
30
- ls -la docs/brainstorms/*.md 2>/dev/null | head -10
30
+ ls -la docs/brainstorms/*-requirements.md 2>/dev/null | head -10
31
31
  ```
32
32
 
33
- **Relevance criteria:** A brainstorm is relevant if:
33
+ **Relevance criteria:** A requirements document is relevant if:
34
34
  - The topic (from filename or YAML frontmatter) semantically matches the feature description
35
35
  - Created within the last 14 days
36
36
  - If multiple candidates match, use the most recent one
37
37
 
38
- **If a relevant brainstorm exists:**
39
- 1. Read the brainstorm document **thoroughly** — every section matters
40
- 2. Announce: "Found brainstorm from [date]: [topic]. Using as foundation for planning."
38
+ **If a relevant requirements document exists:**
39
+ 1. Read the source document **thoroughly** — every section matters
40
+ 2. Announce: "Found source document from [date]: [topic]. Using as foundation for planning."
41
41
  3. Extract and carry forward **ALL** of the following into the plan:
42
42
  - Key decisions and their rationale
43
43
  - Chosen approach and why alternatives were rejected
44
- - Constraints and requirements discovered during brainstorming
45
- - Open questions (flag these for resolution during planning)
44
+ - Problem framing, constraints, and requirements captured during brainstorming
45
+ - Outstanding questions, preserving whether they block planning or are intentionally deferred
46
46
  - Success criteria and scope boundaries
47
- - Any specific technical choices or patterns discussed
48
- 4. **Skip the idea refinement questions below** — the brainstorm already answered WHAT to build
49
- 5. Use brainstorm content as the **primary input** to research and planning phases
50
- 6. **Critical: The brainstorm is the origin document.** Throughout the plan, reference specific decisions with `(see brainstorm: docs/brainstorms/<filename>)` when carrying forward conclusions. Do not paraphrase decisions in a way that loses their original context — link back to the source.
51
- 7. **Do not omit brainstorm content** — if the brainstorm discussed it, the plan must address it (even if briefly). Scan each brainstorm section before finalizing the plan to verify nothing was dropped.
47
+ - Dependencies and assumptions, plus any high-level technical direction only when the origin document is inherently technical
48
+ 4. **Skip the idea refinement questions below** — the source document already answered WHAT to build
49
+ 5. Use source document content as the **primary input** to research and planning phases
50
+ 6. **Critical: The source document is the origin document.** Throughout the plan, reference specific decisions with `(see origin: <source-path>)` when carrying forward conclusions. Do not paraphrase decisions in a way that loses their original context — link back to the source.
51
+ 7. **Do not omit source content** — if the source document discussed it, the plan must address it (even if briefly). Scan each section before finalizing the plan to verify nothing was dropped.
52
+ 8. **If `Resolve Before Planning` contains any items, stop.** Do not proceed with planning. Tell the user planning is blocked by unanswered brainstorm questions and direct them to resume `/ce:brainstorm` or answer those questions first.
52
53
 
53
- **If multiple brainstorms could match:**
54
- Use **AskUserQuestion tool** to ask which brainstorm to use, or whether to proceed without one.
54
+ **If multiple source documents could match:**
55
+ Use **AskUserQuestion tool** to ask which source document to use, or whether to proceed without one.
55
56
 
56
- **If no brainstorm found (or not relevant), run idea refinement:**
57
+ **If no requirements document is found (or not relevant), run idea refinement:**
57
58
 
58
59
  Refine the idea through collaborative dialogue using the **AskUserQuestion tool**:
59
60
 
@@ -191,7 +192,7 @@ title: [Issue Title]
191
192
  type: [feat|fix|refactor]
192
193
  status: active
193
194
  date: YYYY-MM-DD
194
- origin: docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md # if originated from brainstorm, otherwise omit
195
+ origin: docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md # if originated from a requirements doc, otherwise omit
195
196
  ---
196
197
 
197
198
  # [Issue Title]
@@ -221,7 +222,7 @@ end
221
222
 
222
223
  ## Sources
223
224
 
224
- - **Origin brainstorm:** [docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md](path) — include if plan originated from a brainstorm
225
+ - **Origin document:** [docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md](path) — include if plan originated from an upstream requirements doc
225
226
  - Related issue: #[issue_number]
226
227
  - Documentation: [relevant_docs_url]
227
228
  ````
@@ -246,7 +247,7 @@ title: [Issue Title]
246
247
  type: [feat|fix|refactor]
247
248
  status: active
248
249
  date: YYYY-MM-DD
249
- origin: docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md # if originated from brainstorm, otherwise omit
250
+ origin: docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md # if originated from a requirements doc, otherwise omit
250
251
  ---
251
252
 
252
253
  # [Issue Title]
@@ -293,7 +294,7 @@ origin: docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md # if originated from
293
294
 
294
295
  ## Sources & References
295
296
 
296
- - **Origin brainstorm:** [docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md](path) — include if plan originated from a brainstorm
297
+ - **Origin document:** [docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md](path) — include if plan originated from an upstream requirements doc
297
298
  - Similar implementations: [file_path:line_number]
298
299
  - Best practices: [documentation_url]
299
300
  - Related PRs: #[pr_number]
@@ -321,7 +322,7 @@ title: [Issue Title]
321
322
  type: [feat|fix|refactor]
322
323
  status: active
323
324
  date: YYYY-MM-DD
324
- origin: docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md # if originated from brainstorm, otherwise omit
325
+ origin: docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md # if originated from a requirements doc, otherwise omit
325
326
  ---
326
327
 
327
328
  # [Issue Title]
@@ -436,7 +437,7 @@ origin: docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md # if originated from
436
437
 
437
438
  ### Origin
438
439
 
439
- - **Brainstorm document:** [docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md](path) — include if plan originated from a brainstorm. Key decisions carried forward: [list 2-3 major decisions from brainstorm]
440
+ - **Origin document:** [docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md](path) — include if plan originated from an upstream requirements doc. Key decisions carried forward: [list 2-3 major decisions from the origin]
440
441
 
441
442
  ### Internal References
442
443
 
@@ -515,15 +516,15 @@ end
515
516
 
516
517
  ### 6. Final Review & Submission
517
518
 
518
- **Brainstorm cross-check (if plan originated from a brainstorm):**
519
+ **Origin document cross-check (if plan originated from a requirements doc):**
519
520
 
520
- Before finalizing, re-read the brainstorm document and verify:
521
- - [ ] Every key decision from the brainstorm is reflected in the plan
522
- - [ ] The chosen approach matches what was decided in the brainstorm
523
- - [ ] Constraints and requirements from the brainstorm are captured in acceptance criteria
524
- - [ ] Open questions from the brainstorm are either resolved or flagged
525
- - [ ] The `origin:` frontmatter field points to the brainstorm file
526
- - [ ] The Sources section includes the brainstorm with a summary of carried-forward decisions
521
+ Before finalizing, re-read the origin document and verify:
522
+ - [ ] Every key decision from the origin document is reflected in the plan
523
+ - [ ] The chosen approach matches what was decided in the origin document
524
+ - [ ] Constraints and requirements from the origin document are captured in acceptance criteria
525
+ - [ ] Open questions from the origin document are either resolved or flagged
526
+ - [ ] The `origin:` frontmatter field points to the correct source file
527
+ - [ ] The Sources section includes the origin document with a summary of carried-forward decisions
527
528
 
528
529
  **Pre-submission Checklist:**
529
530
 
@@ -53,6 +53,7 @@ Ensure that the code is ready for analysis (either in worktree or on current bra
53
53
  <protected_artifacts>
54
54
  The following paths are compound-engineering pipeline artifacts and must never be flagged for deletion, removal, or gitignore by any review agent:
55
55
 
56
+ - `docs/brainstorms/*-requirements.md` — Requirements documents created by `/ce:brainstorm`. These are the product-definition artifacts that planning depends on.
56
57
  - `docs/plans/*.md` — Plan files created by `/ce:plan`. These are living documents that track implementation progress (checkboxes are checked off by `/ce:work`).
57
58
  - `docs/solutions/*.md` — Solution documents created during the pipeline.
58
59
 
@@ -253,7 +254,7 @@ Remove duplicates, prioritize by severity and impact.
253
254
 
254
255
  - [ ] Collect findings from all parallel agents
255
256
  - [ ] Surface learnings-researcher results: if past solutions are relevant, flag them as "Known Pattern" with links to docs/solutions/ files
256
- - [ ] Discard any findings that recommend deleting or gitignoring files in `docs/plans/` or `docs/solutions/` (see Protected Artifacts above)
257
+ - [ ] Discard any findings that recommend deleting or gitignoring files in `docs/brainstorms/`, `docs/plans/`, or `docs/solutions/` (see Protected Artifacts above)
257
258
  - [ ] Categorize by type: security, performance, architecture, quality, etc.
258
259
  - [ ] Assign severity levels: 🔴 CRITICAL (P1), 🟡 IMPORTANT (P2), 🔵 NICE-TO-HAVE (P3)
259
260
  - [ ] Remove duplicate or overlapping findings
@@ -1,17 +1,17 @@
1
1
  ---
2
2
  name: document-review
3
- description: This skill should be used to refine brainstorm or plan documents before proceeding to the next workflow step. It applies when a brainstorm or plan document exists and the user wants to improve it.
3
+ description: This skill should be used to refine requirements or plan documents before proceeding to the next workflow step. It applies when a requirements document or plan document exists and the user wants to improve it.
4
4
  ---
5
5
 
6
6
  # Document Review
7
7
 
8
- Improve brainstorm or plan documents through structured review.
8
+ Improve requirements or plan documents through structured review.
9
9
 
10
10
  ## Step 1: Get the Document
11
11
 
12
12
  **If a document path is provided:** Read it, then proceed to Step 2.
13
13
 
14
- **If no document is specified:** Ask which document to review, or look for the most recent brainstorm/plan in `docs/brainstorms/` or `docs/plans/`.
14
+ **If no document is specified:** Ask which document to review, or look for the most recent requirements/plan in `docs/brainstorms/` or `docs/plans/`.
15
15
 
16
16
  ## Step 2: Assess
17
17
 
@@ -32,9 +32,10 @@ Score the document against these criteria:
32
32
  | Criterion | What to Check |
33
33
  |-----------|---------------|
34
34
  | **Clarity** | Problem statement is clear, no vague language ("probably," "consider," "try to") |
35
- | **Completeness** | Required sections present, constraints stated, open questions flagged |
36
- | **Specificity** | Concrete enough for next step (brainstorm → can plan, plan → can implement) |
37
- | **YAGNI** | No hypothetical features, simplest approach chosen |
35
+ | **Completeness** | Required sections present, constraints stated, and outstanding questions clearly marked as blocking or deferred |
36
+ | **Specificity** | Concrete enough for next step (requirements → can plan, plan → can implement) |
37
+ | **Appropriate Level** | Requirements doc stays at behavior/scope level and does not drift into implementation unless the document is inherently technical |
38
+ | **YAGNI** | Avoid speculative complexity whose carrying cost outweighs its value; keep low-cost, meaningful polish when it is easy to maintain |
38
39
 
39
40
  If invoked within a workflow (after `/ce:brainstorm` or `/ce:plan`), also check:
40
41
  - **User intent fidelity** — Document reflects what was discussed, assumptions validated
@@ -56,7 +57,7 @@ Present your findings, then:
56
57
  Simplification is purposeful removal of unnecessary complexity, not shortening for its own sake.
57
58
 
58
59
  **Simplify when:**
59
- - Content serves hypothetical future needs, not current ones
60
+ - Content serves hypothetical future needs without enough current value to justify its carrying cost
60
61
  - Sections repeat information already covered elsewhere
61
62
  - Detail exceeds what's needed to take the next step
62
63
  - Abstractions or structure add overhead without clarity
@@ -65,6 +66,10 @@ Simplification is purposeful removal of unnecessary complexity, not shortening f
65
66
  - Constraints or edge cases that affect implementation
66
67
  - Rationale that explains why alternatives were rejected
67
68
  - Open questions that need resolution
69
+ - Deferred technical or research questions that are intentionally carried forward to the next stage
70
+
71
+ **Also remove when inappropriate:**
72
+ - Library choices, file structures, endpoints, schemas, or other implementation details that do not belong in a non-technical requirements document
68
73
 
69
74
  ## Step 6: Offer Next Action
70
75
 
@@ -12,7 +12,7 @@ Resolve all TODO comments using parallel processing.
12
12
 
13
13
  Get all unresolved TODOs from the /todos/\*.md directory
14
14
 
15
- If any todo recommends deleting, removing, or gitignoring files in `docs/plans/` or `docs/solutions/`, skip it and mark it as `wont_fix`. These are compound-engineering pipeline artifacts that are intentional and permanent.
15
+ If any todo recommends deleting, removing, or gitignoring files in `docs/brainstorms/`, `docs/plans/`, or `docs/solutions/`, skip it and mark it as `wont_fix`. These are compound-engineering pipeline artifacts that are intentional and permanent.
16
16
 
17
17
  ### 2. Plan
18
18
 
@@ -1,190 +0,0 @@
1
- ---
2
- name: brainstorming
3
- description: This skill should be used before implementing features, building components, or making changes. It guides exploring user intent, approaches, and design decisions before planning. Triggers on "let's brainstorm", "help me think through", "what should we build", "explore approaches", ambiguous feature requests, or when the user's request has multiple valid interpretations that need clarification.
4
- ---
5
-
6
- # Brainstorming
7
-
8
- This skill provides detailed process knowledge for effective brainstorming sessions that clarify **WHAT** to build before diving into **HOW** to build it.
9
-
10
- ## When to Use This Skill
11
-
12
- Brainstorming is valuable when:
13
- - Requirements are unclear or ambiguous
14
- - Multiple approaches could solve the problem
15
- - Trade-offs need to be explored with the user
16
- - The user hasn't fully articulated what they want
17
- - The feature scope needs refinement
18
-
19
- Brainstorming can be skipped when:
20
- - Requirements are explicit and detailed
21
- - The user knows exactly what they want
22
- - The task is a straightforward bug fix or well-defined change
23
-
24
- ## Core Process
25
-
26
- ### Phase 0: Assess Requirement Clarity
27
-
28
- Before diving into questions, assess whether brainstorming is needed.
29
-
30
- **Signals that requirements are clear:**
31
- - User provided specific acceptance criteria
32
- - User referenced existing patterns to follow
33
- - User described exact behavior expected
34
- - Scope is constrained and well-defined
35
-
36
- **Signals that brainstorming is needed:**
37
- - User used vague terms ("make it better", "add something like")
38
- - Multiple reasonable interpretations exist
39
- - Trade-offs haven't been discussed
40
- - User seems unsure about the approach
41
-
42
- If requirements are clear, suggest: "Your requirements seem clear. Consider proceeding directly to planning or implementation."
43
-
44
- ### Phase 1: Understand the Idea
45
-
46
- Ask questions **one at a time** to understand the user's intent. Avoid overwhelming with multiple questions.
47
-
48
- **Question Techniques:**
49
-
50
- 1. **Prefer multiple choice when natural options exist**
51
- - Good: "Should the notification be: (a) email only, (b) in-app only, or (c) both?"
52
- - Avoid: "How should users be notified?"
53
-
54
- 2. **Start broad, then narrow**
55
- - First: What is the core purpose?
56
- - Then: Who are the users?
57
- - Finally: What constraints exist?
58
-
59
- 3. **Validate assumptions explicitly**
60
- - "I'm assuming users will be logged in. Is that correct?"
61
-
62
- 4. **Ask about success criteria early**
63
- - "How will you know this feature is working well?"
64
-
65
- **Key Topics to Explore:**
66
-
67
- | Topic | Example Questions |
68
- |-------|-------------------|
69
- | Purpose | What problem does this solve? What's the motivation? |
70
- | Users | Who uses this? What's their context? |
71
- | Constraints | Any technical limitations? Timeline? Dependencies? |
72
- | Success | How will you measure success? What's the happy path? |
73
- | Edge Cases | What shouldn't happen? Any error states to consider? |
74
- | Existing Patterns | Are there similar features in the codebase to follow? |
75
-
76
- **Exit Condition:** Continue until the idea is clear OR user says "proceed" or "let's move on"
77
-
78
- ### Phase 2: Explore Approaches
79
-
80
- After understanding the idea, propose 2-3 concrete approaches.
81
-
82
- **Structure for Each Approach:**
83
-
84
- ```markdown
85
- ### Approach A: [Name]
86
-
87
- [2-3 sentence description]
88
-
89
- **Pros:**
90
- - [Benefit 1]
91
- - [Benefit 2]
92
-
93
- **Cons:**
94
- - [Drawback 1]
95
- - [Drawback 2]
96
-
97
- **Best when:** [Circumstances where this approach shines]
98
- ```
99
-
100
- **Guidelines:**
101
- - Lead with a recommendation and explain why
102
- - Be honest about trade-offs
103
- - Consider YAGNI—simpler is usually better
104
- - Reference codebase patterns when relevant
105
-
106
- ### Phase 3: Capture the Design
107
-
108
- Summarize key decisions in a structured format.
109
-
110
- **Design Doc Structure:**
111
-
112
- ```markdown
113
- ---
114
- date: YYYY-MM-DD
115
- topic: <kebab-case-topic>
116
- ---
117
-
118
- # <Topic Title>
119
-
120
- ## What We're Building
121
- [Concise description—1-2 paragraphs max]
122
-
123
- ## Why This Approach
124
- [Brief explanation of approaches considered and why this one was chosen]
125
-
126
- ## Key Decisions
127
- - [Decision 1]: [Rationale]
128
- - [Decision 2]: [Rationale]
129
-
130
- ## Open Questions
131
- - [Any unresolved questions for the planning phase]
132
-
133
- ## Next Steps
134
- → `/ce:plan` for implementation details
135
- ```
136
-
137
- **Output Location:** `docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md`
138
-
139
- ### Phase 4: Handoff
140
-
141
- Present clear options for what to do next:
142
-
143
- 1. **Proceed to planning** → Run `/ce:plan`
144
- 2. **Refine further** → Continue exploring the design
145
- 3. **Done for now** → User will return later
146
-
147
- ## YAGNI Principles
148
-
149
- During brainstorming, actively resist complexity:
150
-
151
- - **Don't design for hypothetical future requirements**
152
- - **Choose the simplest approach that solves the stated problem**
153
- - **Prefer boring, proven patterns over clever solutions**
154
- - **Ask "Do we really need this?" when complexity emerges**
155
- - **Defer decisions that don't need to be made now**
156
-
157
- ## Incremental Validation
158
-
159
- Keep sections short—200-300 words maximum. After each section of output, pause to validate understanding:
160
-
161
- - "Does this match what you had in mind?"
162
- - "Any adjustments before we continue?"
163
- - "Is this the direction you want to go?"
164
-
165
- This prevents wasted effort on misaligned designs.
166
-
167
- ## Anti-Patterns to Avoid
168
-
169
- | Anti-Pattern | Better Approach |
170
- |--------------|-----------------|
171
- | Asking 5 questions at once | Ask one at a time |
172
- | Jumping to implementation details | Stay focused on WHAT, not HOW |
173
- | Proposing overly complex solutions | Start simple, add complexity only if needed |
174
- | Ignoring existing codebase patterns | Research what exists first |
175
- | Making assumptions without validating | State assumptions explicitly and confirm |
176
- | Creating lengthy design documents | Keep it concise—details go in the plan |
177
-
178
- ## Integration with Planning
179
-
180
- Brainstorming answers **WHAT** to build:
181
- - Requirements and acceptance criteria
182
- - Chosen approach and rationale
183
- - Key decisions and trade-offs
184
-
185
- Planning answers **HOW** to build it:
186
- - Implementation steps and file changes
187
- - Technical details and code patterns
188
- - Testing strategy and verification
189
-
190
- When brainstorm output exists, `/ce:plan` should detect it and use it as input, skipping its own idea refinement phase.