@zcy2nn/agent-forge 1.1.1 → 1.1.3

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.
@@ -1,186 +1,186 @@
1
- ---
2
- name: brainstorming
3
- description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."
4
- ---
5
-
6
- # Brainstorming Ideas Into Designs
7
-
8
- Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
9
-
10
- Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
11
-
12
- <HARD-GATE>
13
- For Medium/Complex tasks: Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it.
14
-
15
- For Simple tasks: You may proceed directly if the task is a knowledge question, small config change, or single-file edit with no design decisions. If uncertain whether a design is needed, err on the side of presenting a Lightweight design (2-3 sentences) and getting oral confirmation.
16
- </HARD-GATE>
17
-
18
- ## Complexity Adaptation
19
-
20
- This skill adapts to the complexity tier determined by session-bootstrap:
21
-
22
- - **Simple tasks** (direct answer tier): Skip this skill entirely unless the task involves design decisions. If a Simple task does need design, use Lightweight mode.
23
- - **Medium tasks**: Use Lightweight or Standard mode.
24
- - **Complex tasks**: Use Standard or Deep mode. The HARD-GATE above applies in full.
25
-
26
- Don't skip design when it matters — "simple" tasks with unexamined assumptions cause the most wasted work. But don't force ceremony when it genuinely doesn't add value.
27
-
28
- ## Checklist
29
-
30
- You MUST create a task for each of these items and complete them in order:
31
-
32
- 1. **Explore project context** — check files, docs, recent commits
33
- 2. **Offer visual companion** (if topic will involve visual questions) — this is its own message, not combined with a clarifying question. See the Visual Companion section below.
34
- 3. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
35
- 4. **Propose 2-3 approaches** — with trade-offs and your recommendation
36
- 5. **Present design** — in sections scaled to their complexity, get user approval after each section
37
- 6. **Write design doc** — save to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` and commit
38
- 7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below)
39
- 8. **User reviews written spec** — ask user to review the spec file before proceeding
40
- 9. **Transition to implementation** — invoke writing-plans skill to create implementation plan
41
-
42
- ## Process Flow
43
-
44
- ```dot
45
- digraph brainstorming {
46
- "Explore project context" [shape=box];
47
- "Visual questions ahead?" [shape=diamond];
48
- "Offer Visual Companion\n(own message, no other content)" [shape=box];
49
- "Ask clarifying questions" [shape=box];
50
- "Propose 2-3 approaches" [shape=box];
51
- "Present design sections" [shape=box];
52
- "User approves design?" [shape=diamond];
53
- "Write design doc" [shape=box];
54
- "Spec self-review\n(fix inline)" [shape=box];
55
- "User reviews spec?" [shape=diamond];
56
- "Invoke writing-plans skill" [shape=doublecircle];
57
-
58
- "Explore project context" -> "Visual questions ahead?";
59
- "Visual questions ahead?" -> "Offer Visual Companion\n(own message, no other content)" [label="yes"];
60
- "Visual questions ahead?" -> "Ask clarifying questions" [label="no"];
61
- "Offer Visual Companion\n(own message, no other content)" -> "Ask clarifying questions";
62
- "Ask clarifying questions" -> "Propose 2-3 approaches";
63
- "Propose 2-3 approaches" -> "Present design sections";
64
- "Present design sections" -> "User approves design?";
65
- "User approves design?" -> "Present design sections" [label="no, revise"];
66
- "User approves design?" -> "Write design doc" [label="yes"];
67
- "Write design doc" -> "Spec self-review\n(fix inline)";
68
- "Spec self-review\n(fix inline)" -> "User reviews spec?";
69
- "User reviews spec?" -> "Write design doc" [label="changes requested"];
70
- "User reviews spec?" -> "Invoke writing-plans skill" [label="approved"];
71
- }
72
- ```
73
-
74
- **The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
75
-
76
- ## The Process
77
-
78
- **Understanding the idea:**
79
-
80
- - Check out the current project state first (files, docs, recent commits)
81
- - Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., "build a platform with chat, file storage, billing, and analytics"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.
82
- - If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.
83
- - For appropriately-scoped projects, ask questions one at a time to refine the idea
84
- - Prefer multiple choice questions when possible, but open-ended is fine too
85
- - Only one question per message - if a topic needs more exploration, break it into multiple questions
86
- - Focus on understanding: purpose, constraints, success criteria
87
-
88
- **Exploring approaches:**
89
-
90
- - Propose 2-3 different approaches with trade-offs
91
- - Present options conversationally with your recommendation and reasoning
92
- - Lead with your recommended option and explain why
93
-
94
- **Presenting the design:**
95
-
96
- - Once you believe you understand what you're building, present the design
97
- - Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
98
- - Ask after each section whether it looks right so far
99
- - Cover: architecture, components, data flow, error handling, testing
100
- - Be ready to go back and clarify if something doesn't make sense
101
-
102
- **Design for isolation and clarity:**
103
-
104
- - Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently
105
- - For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?
106
- - Can someone understand what a unit does without reading its internals? Can you change the internals without breaking consumers? If not, the boundaries need work.
107
- - Smaller, well-bounded units are also easier for you to work with - you reason better about code you can hold in context at once, and your edits are more reliable when files are focused. When a file grows large, that's often a signal that it's doing too much.
108
-
109
- **Working in existing codebases:**
110
-
111
- - Explore the current structure before proposing changes. Follow existing patterns.
112
- - Where existing code has problems that affect the work (e.g., a file that's grown too large, unclear boundaries, tangled responsibilities), include targeted improvements as part of the design - the way a good developer improves code they're working in.
113
- - Don't propose unrelated refactoring. Stay focused on what serves the current goal.
114
-
115
- ## After the Design
116
-
117
- **Documentation:**
118
-
119
- - Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`
120
- - (User preferences for spec location override this default)
121
- - Use elements-of-style:writing-clearly-and-concisely skill if available
122
- - Commit the design document to git
123
-
124
- **Spec Self-Review:**
125
- After writing the spec document, look at it with fresh eyes:
126
-
127
- 1. **Placeholder scan:** Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
128
- 2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?
129
- 3. **Scope check:** Is this focused enough for a single implementation plan, or does it need decomposition?
130
- 4. **Ambiguity check:** Could any requirement be interpreted two different ways? If so, pick one and make it explicit.
131
-
132
- Fix any issues inline. No need to re-review — just fix and move on.
133
-
134
- **User Review Gate:**
135
- After the spec review loop passes, ask the user to review the written spec before proceeding:
136
-
137
- > "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
138
-
139
- Wait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.
140
-
141
- **Implementation:**
142
-
143
- - Invoke the writing-plans skill to create a detailed implementation plan
144
- - Do NOT invoke any other skill. writing-plans is the next step.
145
-
146
- ## Key Principles
147
-
148
- - **One question at a time** - Don't overwhelm with multiple questions
149
- - **Multiple choice preferred** - Easier to answer than open-ended when possible
150
- - **YAGNI ruthlessly** - Remove unnecessary features from all designs
151
- - **Explore alternatives** - Always propose 2-3 approaches before settling
152
- - **Incremental validation** - Present design, get approval before moving on
153
- - **Be flexible** - Go back and clarify when something doesn't make sense
154
-
155
- ## Complexity Assessment
156
-
157
- **Lightweight usage:**
158
- - Skip context exploration, skip one-by-one questions
159
- - Give 2-3 options directly for user to pick
160
- - No spec document — oral confirmation is enough
161
- - Applies when session-bootstrap classifies the task as Simple and design is still warranted
162
-
163
- **Standard usage:**
164
- - Full flow: explore context → one-by-one questions → compare approaches → present design → write spec
165
-
166
- **Deep usage:**
167
- - Standard + visual companion + detailed spec self-review + multiple revisions
168
-
169
- ## Visual Companion
170
-
171
- A browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.
172
-
173
- **Offering the companion:** When you anticipate that upcoming questions will involve visual content (mockups, layouts, diagrams), offer it once for consent:
174
- > "Some of what we're working on might be easier to explain if I can show it to you in a web browser. I can put together mockups, diagrams, comparisons, and other visuals as we go. This feature is still new and can be token-intensive. Want to try it? (Requires opening a local URL)"
175
-
176
- **This offer MUST be its own message.** Do not combine it with clarifying questions, context summaries, or any other content. The message should contain ONLY the offer above and nothing else. Wait for the user's response before continuing. If they decline, proceed with text-only brainstorming.
177
-
178
- **Per-question decision:** Even after the user accepts, decide FOR EACH QUESTION whether to use the browser or the terminal. The test: **would the user understand this better by seeing it than reading it?**
179
-
180
- - **Use the browser** for content that IS visual — mockups, wireframes, layout comparisons, architecture diagrams, side-by-side visual designs
181
- - **Use the terminal** for content that is text — requirements questions, conceptual choices, tradeoff lists, A/B/C/D text options, scope decisions
182
-
183
- A question about a UI topic is not automatically a visual question. "What does personality mean in this context?" is a conceptual question — use the terminal. "Which wizard layout works better?" is a visual question — use the browser.
184
-
185
- If they agree to the companion, read the detailed guide before proceeding:
186
- `skills/brainstorming/visual-companion.md`
1
+ ---
2
+ name: brainstorming
3
+ description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."
4
+ ---
5
+
6
+ # Brainstorming Ideas Into Designs
7
+
8
+ Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
9
+
10
+ Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
11
+
12
+ <HARD-GATE>
13
+ For Medium/Complex tasks: Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it.
14
+
15
+ For Simple tasks: You may proceed directly if the task is a knowledge question, small config change, or single-file edit with no design decisions. If uncertain whether a design is needed, err on the side of presenting a Lightweight design (2-3 sentences) and getting oral confirmation.
16
+ </HARD-GATE>
17
+
18
+ ## Complexity Adaptation
19
+
20
+ This skill adapts to the complexity tier determined by session-bootstrap:
21
+
22
+ - **Simple tasks** (direct answer tier): Skip this skill entirely unless the task involves design decisions. If a Simple task does need design, use Lightweight mode.
23
+ - **Medium tasks**: Use Lightweight or Standard mode.
24
+ - **Complex tasks**: Use Standard or Deep mode. The HARD-GATE above applies in full.
25
+
26
+ Don't skip design when it matters — "simple" tasks with unexamined assumptions cause the most wasted work. But don't force ceremony when it genuinely doesn't add value.
27
+
28
+ ## Checklist
29
+
30
+ You MUST create a task for each of these items and complete them in order:
31
+
32
+ 1. **Explore project context** — check files, docs, recent commits
33
+ 2. **Offer visual companion** (if topic will involve visual questions) — this is its own message, not combined with a clarifying question. See the Visual Companion section below.
34
+ 3. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
35
+ 4. **Propose 2-3 approaches** — with trade-offs and your recommendation
36
+ 5. **Present design** — in sections scaled to their complexity, get user approval after each section
37
+ 6. **Write design doc** — save to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` and commit
38
+ 7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below)
39
+ 8. **User reviews written spec** — ask user to review the spec file before proceeding
40
+ 9. **Transition to implementation** — invoke writing-plans skill to create implementation plan
41
+
42
+ ## Process Flow
43
+
44
+ ```dot
45
+ digraph brainstorming {
46
+ "Explore project context" [shape=box];
47
+ "Visual questions ahead?" [shape=diamond];
48
+ "Offer Visual Companion\n(own message, no other content)" [shape=box];
49
+ "Ask clarifying questions" [shape=box];
50
+ "Propose 2-3 approaches" [shape=box];
51
+ "Present design sections" [shape=box];
52
+ "User approves design?" [shape=diamond];
53
+ "Write design doc" [shape=box];
54
+ "Spec self-review\n(fix inline)" [shape=box];
55
+ "User reviews spec?" [shape=diamond];
56
+ "Invoke writing-plans skill" [shape=doublecircle];
57
+
58
+ "Explore project context" -> "Visual questions ahead?";
59
+ "Visual questions ahead?" -> "Offer Visual Companion\n(own message, no other content)" [label="yes"];
60
+ "Visual questions ahead?" -> "Ask clarifying questions" [label="no"];
61
+ "Offer Visual Companion\n(own message, no other content)" -> "Ask clarifying questions";
62
+ "Ask clarifying questions" -> "Propose 2-3 approaches";
63
+ "Propose 2-3 approaches" -> "Present design sections";
64
+ "Present design sections" -> "User approves design?";
65
+ "User approves design?" -> "Present design sections" [label="no, revise"];
66
+ "User approves design?" -> "Write design doc" [label="yes"];
67
+ "Write design doc" -> "Spec self-review\n(fix inline)";
68
+ "Spec self-review\n(fix inline)" -> "User reviews spec?";
69
+ "User reviews spec?" -> "Write design doc" [label="changes requested"];
70
+ "User reviews spec?" -> "Invoke writing-plans skill" [label="approved"];
71
+ }
72
+ ```
73
+
74
+ **The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
75
+
76
+ ## The Process
77
+
78
+ **Understanding the idea:**
79
+
80
+ - Check out the current project state first (files, docs, recent commits)
81
+ - Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., "build a platform with chat, file storage, billing, and analytics"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.
82
+ - If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.
83
+ - For appropriately-scoped projects, ask questions one at a time to refine the idea
84
+ - Prefer multiple choice questions when possible, but open-ended is fine too
85
+ - Only one question per message - if a topic needs more exploration, break it into multiple questions
86
+ - Focus on understanding: purpose, constraints, success criteria
87
+
88
+ **Exploring approaches:**
89
+
90
+ - Propose 2-3 different approaches with trade-offs
91
+ - Present options conversationally with your recommendation and reasoning
92
+ - Lead with your recommended option and explain why
93
+
94
+ **Presenting the design:**
95
+
96
+ - Once you believe you understand what you're building, present the design
97
+ - Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
98
+ - Ask after each section whether it looks right so far
99
+ - Cover: architecture, components, data flow, error handling, testing
100
+ - Be ready to go back and clarify if something doesn't make sense
101
+
102
+ **Design for isolation and clarity:**
103
+
104
+ - Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently
105
+ - For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?
106
+ - Can someone understand what a unit does without reading its internals? Can you change the internals without breaking consumers? If not, the boundaries need work.
107
+ - Smaller, well-bounded units are also easier for you to work with - you reason better about code you can hold in context at once, and your edits are more reliable when files are focused. When a file grows large, that's often a signal that it's doing too much.
108
+
109
+ **Working in existing codebases:**
110
+
111
+ - Explore the current structure before proposing changes. Follow existing patterns.
112
+ - Where existing code has problems that affect the work (e.g., a file that's grown too large, unclear boundaries, tangled responsibilities), include targeted improvements as part of the design - the way a good developer improves code they're working in.
113
+ - Don't propose unrelated refactoring. Stay focused on what serves the current goal.
114
+
115
+ ## After the Design
116
+
117
+ **Documentation:**
118
+
119
+ - Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`
120
+ - (User preferences for spec location override this default)
121
+ - Use elements-of-style:writing-clearly-and-concisely skill if available
122
+ - Commit the design document to git
123
+
124
+ **Spec Self-Review:**
125
+ After writing the spec document, look at it with fresh eyes:
126
+
127
+ 1. **Placeholder scan:** Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
128
+ 2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?
129
+ 3. **Scope check:** Is this focused enough for a single implementation plan, or does it need decomposition?
130
+ 4. **Ambiguity check:** Could any requirement be interpreted two different ways? If so, pick one and make it explicit.
131
+
132
+ Fix any issues inline. No need to re-review — just fix and move on.
133
+
134
+ **User Review Gate:**
135
+ After the spec review loop passes, ask the user to review the written spec before proceeding:
136
+
137
+ > "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
138
+
139
+ Wait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.
140
+
141
+ **Implementation:**
142
+
143
+ - Invoke the writing-plans skill to create a detailed implementation plan
144
+ - Do NOT invoke any other skill. writing-plans is the next step.
145
+
146
+ ## Key Principles
147
+
148
+ - **One question at a time** - Don't overwhelm with multiple questions
149
+ - **Multiple choice preferred** - Easier to answer than open-ended when possible
150
+ - **YAGNI ruthlessly** - Remove unnecessary features from all designs
151
+ - **Explore alternatives** - Always propose 2-3 approaches before settling
152
+ - **Incremental validation** - Present design, get approval before moving on
153
+ - **Be flexible** - Go back and clarify when something doesn't make sense
154
+
155
+ ## Complexity Assessment
156
+
157
+ **Lightweight usage:**
158
+ - Skip context exploration, skip one-by-one questions
159
+ - Give 2-3 options directly for user to pick
160
+ - No spec document — oral confirmation is enough
161
+ - Applies when session-bootstrap classifies the task as Simple and design is still warranted
162
+
163
+ **Standard usage:**
164
+ - Full flow: explore context → one-by-one questions → compare approaches → present design → write spec
165
+
166
+ **Deep usage:**
167
+ - Standard + visual companion + detailed spec self-review + multiple revisions
168
+
169
+ ## Visual Companion
170
+
171
+ A browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.
172
+
173
+ **Offering the companion:** When you anticipate that upcoming questions will involve visual content (mockups, layouts, diagrams), offer it once for consent:
174
+ > "Some of what we're working on might be easier to explain if I can show it to you in a web browser. I can put together mockups, diagrams, comparisons, and other visuals as we go. This feature is still new and can be token-intensive. Want to try it? (Requires opening a local URL)"
175
+
176
+ **This offer MUST be its own message.** Do not combine it with clarifying questions, context summaries, or any other content. The message should contain ONLY the offer above and nothing else. Wait for the user's response before continuing. If they decline, proceed with text-only brainstorming.
177
+
178
+ **Per-question decision:** Even after the user accepts, decide FOR EACH QUESTION whether to use the browser or the terminal. The test: **would the user understand this better by seeing it than reading it?**
179
+
180
+ - **Use the browser** for content that IS visual — mockups, wireframes, layout comparisons, architecture diagrams, side-by-side visual designs
181
+ - **Use the terminal** for content that is text — requirements questions, conceptual choices, tradeoff lists, A/B/C/D text options, scope decisions
182
+
183
+ A question about a UI topic is not automatically a visual question. "What does personality mean in this context?" is a conceptual question — use the terminal. "Which wizard layout works better?" is a visual question — use the browser.
184
+
185
+ If they agree to the companion, read the detailed guide before proceeding:
186
+ `skills/brainstorming/visual-companion.md`