@fro.bot/systematic 1.22.8 → 1.23.1
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/agents/research/best-practices-researcher.md +9 -3
- package/agents/research/framework-docs-researcher.md +2 -0
- package/agents/research/git-history-analyzer.md +9 -6
- package/agents/research/issue-intelligence-analyst.md +232 -0
- package/agents/research/repo-research-analyst.md +6 -10
- package/commands/.gitkeep +0 -0
- package/package.json +1 -1
- package/skills/agent-browser/SKILL.md +511 -169
- package/skills/agent-browser/references/authentication.md +303 -0
- package/skills/agent-browser/references/commands.md +266 -0
- package/skills/agent-browser/references/profiling.md +120 -0
- package/skills/agent-browser/references/proxy-support.md +194 -0
- package/skills/agent-browser/references/session-management.md +193 -0
- package/skills/agent-browser/references/snapshot-refs.md +194 -0
- package/skills/agent-browser/references/video-recording.md +173 -0
- package/skills/agent-browser/templates/authenticated-session.sh +105 -0
- package/skills/agent-browser/templates/capture-workflow.sh +69 -0
- package/skills/agent-browser/templates/form-automation.sh +62 -0
- package/skills/ce-brainstorm/SKILL.md +336 -0
- package/{commands/ce/compound.md → skills/ce-compound/SKILL.md} +106 -9
- package/skills/ce-compound-refresh/SKILL.md +528 -0
- package/skills/ce-ideate/SKILL.md +371 -0
- package/{commands/ce/plan.md → skills/ce-plan/SKILL.md} +73 -66
- package/skills/ce-plan-beta/SKILL.md +572 -0
- package/{commands/ce/review.md → skills/ce-review/SKILL.md} +53 -18
- package/{commands/ce/work.md → skills/ce-work/SKILL.md} +88 -63
- package/{commands/create-agent-skill.md → skills/create-agent-skill/SKILL.md} +1 -0
- package/skills/create-agent-skills/SKILL.md +9 -19
- package/{commands/deepen-plan.md → skills/deepen-plan/SKILL.md} +35 -36
- package/skills/deepen-plan-beta/SKILL.md +323 -0
- package/{commands/deploy-docs.md → skills/deploy-docs/SKILL.md} +26 -33
- package/skills/document-review/SKILL.md +14 -8
- package/{commands/generate_command.md → skills/generate_command/SKILL.md} +5 -5
- package/{commands/heal-skill.md → skills/heal-skill/SKILL.md} +1 -0
- package/skills/lfg/SKILL.md +37 -0
- package/{commands/report-bug.md → skills/report-bug/SKILL.md} +16 -15
- package/{commands/reproduce-bug.md → skills/reproduce-bug/SKILL.md} +10 -9
- package/{commands/resolve_todo_parallel.md → skills/resolve_todo_parallel/SKILL.md} +2 -1
- package/{commands/slfg.md → skills/slfg/SKILL.md} +8 -4
- package/{commands/test-browser.md → skills/test-browser/SKILL.md} +67 -13
- package/{commands/test-xcode.md → skills/test-xcode/SKILL.md} +4 -3
- package/{commands/triage.md → skills/triage/SKILL.md} +2 -1
- package/skills/workflows-brainstorm/SKILL.md +11 -0
- package/{commands/workflows/compound.md → skills/workflows-compound/SKILL.md} +2 -2
- package/{commands/workflows/plan.md → skills/workflows-plan/SKILL.md} +2 -2
- package/{commands/workflows/review.md → skills/workflows-review/SKILL.md} +2 -2
- package/{commands/workflows/work.md → skills/workflows-work/SKILL.md} +2 -2
- package/agents/workflow/every-style-editor.md +0 -66
- package/commands/ce/brainstorm.md +0 -145
- package/commands/lfg.md +0 -20
- package/commands/workflows/brainstorm.md +0 -145
- package/skills/brainstorming/SKILL.md +0 -190
- package/skills/skill-creator/SKILL.md +0 -210
- package/skills/skill-creator/scripts/init_skill.py +0 -303
- package/skills/skill-creator/scripts/package_skill.py +0 -110
- package/skills/skill-creator/scripts/quick_validate.py +0 -65
- /package/{commands/agent-native-audit.md → skills/agent-native-audit/SKILL.md} +0 -0
- /package/{commands/changelog.md → skills/changelog/SKILL.md} +0 -0
- /package/{commands/feature-video.md → skills/feature-video/SKILL.md} +0 -0
- /package/{commands/resolve_parallel.md → skills/resolve_parallel/SKILL.md} +0 -0
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ce:brainstorm
|
|
3
|
-
description: Explore requirements and approaches through collaborative dialogue before planning implementation
|
|
4
|
-
argument-hint: "[feature idea or problem to explore]"
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Brainstorm a Feature or Improvement
|
|
8
|
-
|
|
9
|
-
**Note: The current year is 2026.** Use this when dating brainstorm documents.
|
|
10
|
-
|
|
11
|
-
Brainstorming helps answer **WHAT** to build through collaborative dialogue. It precedes `/ce:plan`, which answers **HOW** to build it.
|
|
12
|
-
|
|
13
|
-
**Process knowledge:** Load the `brainstorming` skill for detailed question techniques, approach exploration patterns, and YAGNI principles.
|
|
14
|
-
|
|
15
|
-
## Feature Description
|
|
16
|
-
|
|
17
|
-
<feature_description> #$ARGUMENTS </feature_description>
|
|
18
|
-
|
|
19
|
-
**If the feature description above is empty, ask the user:** "What would you like to explore? Please describe the feature, problem, or improvement you're thinking about."
|
|
20
|
-
|
|
21
|
-
Do not proceed until you have a feature description from the user.
|
|
22
|
-
|
|
23
|
-
## Execution Flow
|
|
24
|
-
|
|
25
|
-
### Phase 0: Assess Requirements Clarity
|
|
26
|
-
|
|
27
|
-
Evaluate whether brainstorming is needed based on the feature description.
|
|
28
|
-
|
|
29
|
-
**Clear requirements indicators:**
|
|
30
|
-
- Specific acceptance criteria provided
|
|
31
|
-
- Referenced existing patterns to follow
|
|
32
|
-
- Described exact expected behavior
|
|
33
|
-
- Constrained, well-defined scope
|
|
34
|
-
|
|
35
|
-
**If requirements are already clear:**
|
|
36
|
-
Use **AskUserQuestion 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?"
|
|
37
|
-
|
|
38
|
-
### Phase 1: Understand the Idea
|
|
39
|
-
|
|
40
|
-
#### 1.1 Repository Research (Lightweight)
|
|
41
|
-
|
|
42
|
-
Run a quick repo scan to understand existing patterns:
|
|
43
|
-
|
|
44
|
-
- task repo-research-analyst("Understand existing patterns related to: <feature_description>")
|
|
45
|
-
|
|
46
|
-
Focus on: similar features, established patterns, AGENTS.md guidance.
|
|
47
|
-
|
|
48
|
-
#### 1.2 Collaborative Dialogue
|
|
49
|
-
|
|
50
|
-
Use the **AskUserQuestion tool** to ask questions **one at a time**.
|
|
51
|
-
|
|
52
|
-
**Guidelines (see `brainstorming` skill for detailed techniques):**
|
|
53
|
-
- 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
|
|
57
|
-
|
|
58
|
-
**Exit condition:** Continue until the idea is clear OR user says "proceed"
|
|
59
|
-
|
|
60
|
-
### Phase 2: Explore Approaches
|
|
61
|
-
|
|
62
|
-
Propose **2-3 concrete approaches** based on research and conversation.
|
|
63
|
-
|
|
64
|
-
For each approach, provide:
|
|
65
|
-
- Brief description (2-3 sentences)
|
|
66
|
-
- Pros and cons
|
|
67
|
-
- When it's best suited
|
|
68
|
-
|
|
69
|
-
Lead with your recommendation and explain why. Apply YAGNI—prefer simpler solutions.
|
|
70
|
-
|
|
71
|
-
Use **AskUserQuestion tool** to ask which approach the user prefers.
|
|
72
|
-
|
|
73
|
-
### Phase 3: Capture the Design
|
|
74
|
-
|
|
75
|
-
Write a brainstorm document to `docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md`.
|
|
76
|
-
|
|
77
|
-
**Document structure:** See the `brainstorming` skill for the template format. Key sections: What We're Building, Why This Approach, Key Decisions, Open Questions.
|
|
78
|
-
|
|
79
|
-
Ensure `docs/brainstorms/` directory exists before writing.
|
|
80
|
-
|
|
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 AskUserQuestion before offering to proceed to planning. Move resolved questions to a "Resolved Questions" section.
|
|
82
|
-
|
|
83
|
-
### Phase 4: Handoff
|
|
84
|
-
|
|
85
|
-
Use **AskUserQuestion tool** to present next steps:
|
|
86
|
-
|
|
87
|
-
**Question:** "Brainstorm captured. What would you like to do next?"
|
|
88
|
-
|
|
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
|
|
95
|
-
|
|
96
|
-
**If user selects "Share to Proof":**
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
CONTENT=$(cat docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md)
|
|
100
|
-
TITLE="Brainstorm: <topic title>"
|
|
101
|
-
RESPONSE=$(curl -s -X POST https://www.proofeditor.ai/share/markdown \
|
|
102
|
-
-H "Content-Type: application/json" \
|
|
103
|
-
-d "$(jq -n --arg title "$TITLE" --arg markdown "$CONTENT" --arg by "ai:systematic" '{title: $title, markdown: $markdown, by: $by}')")
|
|
104
|
-
PROOF_URL=$(echo "$RESPONSE" | jq -r '.tokenUrl')
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
Display the URL prominently: `View & collaborate in Proof: <PROOF_URL>`
|
|
108
|
-
|
|
109
|
-
If the curl fails, skip silently. Then return to the Phase 4 options.
|
|
110
|
-
|
|
111
|
-
**If user selects "Ask more questions":** YOU (the AI) 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.
|
|
112
|
-
|
|
113
|
-
**If user selects "Review and refine":**
|
|
114
|
-
|
|
115
|
-
Load the `document-review` skill and apply it to the brainstorm document.
|
|
116
|
-
|
|
117
|
-
When document-review returns "Review complete", present next steps:
|
|
118
|
-
|
|
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]`
|
|
121
|
-
|
|
122
|
-
## Output Summary
|
|
123
|
-
|
|
124
|
-
When complete, display:
|
|
125
|
-
|
|
126
|
-
```
|
|
127
|
-
Brainstorm complete!
|
|
128
|
-
|
|
129
|
-
Document: docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md
|
|
130
|
-
|
|
131
|
-
Key decisions:
|
|
132
|
-
- [Decision 1]
|
|
133
|
-
- [Decision 2]
|
|
134
|
-
|
|
135
|
-
Next: Run `/ce:plan` when ready to implement.
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
## Important Guidelines
|
|
139
|
-
|
|
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
|
|
144
|
-
|
|
145
|
-
NEVER CODE! Just explore and document decisions.
|
package/commands/lfg.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: lfg
|
|
3
|
-
description: Full autonomous engineering workflow
|
|
4
|
-
argument-hint: '[feature description]'
|
|
5
|
-
disable-model-invocation: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
Run these slash commands in order. Do not do anything else. Do not stop between steps — complete every step through to the end.
|
|
9
|
-
|
|
10
|
-
1. **Optional:** If the `ralph-wiggum` skill is available, run `/ralph-wiggum:ralph-loop "finish all slash commands" --completion-promise "DONE"`. If not available or it fails, skip and continue to step 2 immediately.
|
|
11
|
-
2. `/workflows:plan $ARGUMENTS`
|
|
12
|
-
3. `/systematic:deepen-plan`
|
|
13
|
-
4. `/workflows:work`
|
|
14
|
-
5. `/workflows:review`
|
|
15
|
-
6. `/systematic:resolve_todo_parallel`
|
|
16
|
-
7. `/systematic:test-browser`
|
|
17
|
-
8. `/systematic:feature-video`
|
|
18
|
-
9. Output `<promise>DONE</promise>` when video is in PR
|
|
19
|
-
|
|
20
|
-
Start with step 2 now (or step 1 if ralph-wiggum is available).
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: workflows:brainstorm
|
|
3
|
-
description: Explore requirements and approaches through collaborative dialogue before planning implementation
|
|
4
|
-
argument-hint: '[feature idea or problem to explore]'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Brainstorm a Feature or Improvement
|
|
8
|
-
|
|
9
|
-
**Note: The current year is 2026.** Use this when dating brainstorm documents.
|
|
10
|
-
|
|
11
|
-
Brainstorming helps answer **WHAT** to build through collaborative dialogue. It precedes `/workflows:plan`, which answers **HOW** to build it.
|
|
12
|
-
|
|
13
|
-
**Process knowledge:** Load the `brainstorming` skill for detailed question techniques, approach exploration patterns, and YAGNI principles.
|
|
14
|
-
|
|
15
|
-
## Feature Description
|
|
16
|
-
|
|
17
|
-
<feature_description> #$ARGUMENTS </feature_description>
|
|
18
|
-
|
|
19
|
-
**If the feature description above is empty, ask the user:** "What would you like to explore? Please describe the feature, problem, or improvement you're thinking about."
|
|
20
|
-
|
|
21
|
-
Do not proceed until you have a feature description from the user.
|
|
22
|
-
|
|
23
|
-
## Execution Flow
|
|
24
|
-
|
|
25
|
-
### Phase 0: Assess Requirements Clarity
|
|
26
|
-
|
|
27
|
-
Evaluate whether brainstorming is needed based on the feature description.
|
|
28
|
-
|
|
29
|
-
**Clear requirements indicators:**
|
|
30
|
-
- Specific acceptance criteria provided
|
|
31
|
-
- Referenced existing patterns to follow
|
|
32
|
-
- Described exact expected behavior
|
|
33
|
-
- Constrained, well-defined scope
|
|
34
|
-
|
|
35
|
-
**If requirements are already clear:**
|
|
36
|
-
Use **question tool** to suggest: "Your requirements seem detailed enough to proceed directly to planning. Should I run `/workflows:plan` instead, or would you like to explore the idea further?"
|
|
37
|
-
|
|
38
|
-
### Phase 1: Understand the Idea
|
|
39
|
-
|
|
40
|
-
#### 1.1 Repository Research (Lightweight)
|
|
41
|
-
|
|
42
|
-
Run a quick repo scan to understand existing patterns:
|
|
43
|
-
|
|
44
|
-
- task repo-research-analyst("Understand existing patterns related to: <feature_description>")
|
|
45
|
-
|
|
46
|
-
Focus on: similar features, established patterns, AGENTS.md guidance.
|
|
47
|
-
|
|
48
|
-
#### 1.2 Collaborative Dialogue
|
|
49
|
-
|
|
50
|
-
Use the **question tool** to ask questions **one at a time**.
|
|
51
|
-
|
|
52
|
-
**Guidelines (see `brainstorming` skill for detailed techniques):**
|
|
53
|
-
- 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
|
|
57
|
-
|
|
58
|
-
**Exit condition:** Continue until the idea is clear OR user says "proceed"
|
|
59
|
-
|
|
60
|
-
### Phase 2: Explore Approaches
|
|
61
|
-
|
|
62
|
-
Propose **2-3 concrete approaches** based on research and conversation.
|
|
63
|
-
|
|
64
|
-
For each approach, provide:
|
|
65
|
-
- Brief description (2-3 sentences)
|
|
66
|
-
- Pros and cons
|
|
67
|
-
- When it's best suited
|
|
68
|
-
|
|
69
|
-
Lead with your recommendation and explain why. Apply YAGNI—prefer simpler solutions.
|
|
70
|
-
|
|
71
|
-
Use **question tool** to ask which approach the user prefers.
|
|
72
|
-
|
|
73
|
-
### Phase 3: Capture the Design
|
|
74
|
-
|
|
75
|
-
Write a brainstorm document to `docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md`.
|
|
76
|
-
|
|
77
|
-
**Document structure:** See the `brainstorming` skill for the template format. Key sections: What We're Building, Why This Approach, Key Decisions, Open Questions.
|
|
78
|
-
|
|
79
|
-
Ensure `docs/brainstorms/` directory exists before writing.
|
|
80
|
-
|
|
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.
|
|
82
|
-
|
|
83
|
-
### Phase 4: Handoff
|
|
84
|
-
|
|
85
|
-
Use **question tool** to present next steps:
|
|
86
|
-
|
|
87
|
-
**Question:** "Brainstorm captured. What would you like to do next?"
|
|
88
|
-
|
|
89
|
-
**Options:**
|
|
90
|
-
1. **Review and refine** - Improve the document through structured self-review
|
|
91
|
-
2. **Proceed to planning** - Run `/workflows: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
|
|
95
|
-
|
|
96
|
-
**If user selects "Share to Proof":**
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
CONTENT=$(cat docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md)
|
|
100
|
-
TITLE="Brainstorm: <topic title>"
|
|
101
|
-
RESPONSE=$(curl -s -X POST https://www.proofeditor.ai/share/markdown \
|
|
102
|
-
-H "Content-Type: application/json" \
|
|
103
|
-
-d "$(jq -n --arg title "$TITLE" --arg markdown "$CONTENT" --arg by "ai:compound" '{title: $title, markdown: $markdown, by: $by}')")
|
|
104
|
-
PROOF_URL=$(echo "$RESPONSE" | jq -r '.tokenUrl')
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
Display the URL prominently: `View & collaborate in Proof: <PROOF_URL>`
|
|
108
|
-
|
|
109
|
-
If the curl fails, skip silently. Then return to the Phase 4 options.
|
|
110
|
-
|
|
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.
|
|
112
|
-
|
|
113
|
-
**If user selects "Review and refine":**
|
|
114
|
-
|
|
115
|
-
Load the `document-review` skill and apply it to the brainstorm document.
|
|
116
|
-
|
|
117
|
-
When document-review returns "Review complete", present next steps:
|
|
118
|
-
|
|
119
|
-
1. **Move to planning** - Continue to `/workflows:plan` with this document
|
|
120
|
-
2. **Done for now** - Brainstorming complete. To start planning later: `/workflows:plan [document-path]`
|
|
121
|
-
|
|
122
|
-
## Output Summary
|
|
123
|
-
|
|
124
|
-
When complete, display:
|
|
125
|
-
|
|
126
|
-
```
|
|
127
|
-
Brainstorm complete!
|
|
128
|
-
|
|
129
|
-
Document: docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md
|
|
130
|
-
|
|
131
|
-
Key decisions:
|
|
132
|
-
- [Decision 1]
|
|
133
|
-
- [Decision 2]
|
|
134
|
-
|
|
135
|
-
Next: Run `/workflows:plan` when ready to implement.
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
## Important Guidelines
|
|
139
|
-
|
|
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
|
|
144
|
-
|
|
145
|
-
NEVER CODE! Just explore and document decisions.
|
|
@@ -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
|
-
→ `/workflows: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 `/workflows: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, `/workflows:plan` should detect it and use it as input, skipping its own idea refinement phase.
|