@torka/claude-workflows 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -105
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/completion-summary-implement-epic-with-subagents.md +103 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/steps/step-01-init.md +228 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/steps/step-01b-continue.md +298 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/steps/step-01c-new.md +434 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/steps/step-02-orchestrate.md +437 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/steps/step-03-complete.md +473 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/templates/epic-completion-report.md +62 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/validation/checklist.md +121 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/workflow-plan-implement-epic-with-subagents.md +758 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/workflow.md +101 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/workflow.yaml +87 -0
- package/examples/settings.local.example.json +0 -39
- package/install.js +15 -12
- package/package.json +3 -12
- package/skills/designer-founder/steps/step-01-context.md +171 -0
- package/skills/designer-founder/steps/step-01b-continue.md +75 -0
- package/skills/designer-founder/steps/step-02-scope.md +198 -0
- package/skills/designer-founder/steps/step-03-design.md +168 -0
- package/skills/designer-founder/steps/step-04-artifacts.md +292 -0
- package/skills/designer-founder/templates/component-strategy.md +35 -0
- package/skills/designer-founder/templates/design-brief.md +26 -0
- package/skills/designer-founder/templates/layouts.md +41 -0
- package/skills/designer-founder/templates/user-journeys.md +32 -0
- package/skills/designer-founder/tools/conversion.md +275 -0
- package/skills/designer-founder/tools/direct-mapping.md +222 -0
- package/skills/designer-founder/tools/magicpatterns.md +193 -0
- package/skills/designer-founder/tools/superdesign-assets/generate-theme.ts +193 -0
- package/skills/designer-founder/tools/superdesign-assets/superdesign-agent-instructions.md +375 -0
- package/skills/designer-founder/tools/superdesign.md +167 -0
- package/skills/designer-founder/tools/wireframe.md +181 -0
- package/skills/designer-founder/workflow.md +85 -0
- package/uninstall.js +97 -8
- package/hooks/auto_approve_safe.py +0 -261
- package/hooks/auto_approve_safe.rules.json +0 -134
- package/scripts/context-monitor.py +0 -175
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# Step 2: Scope & Inspiration
|
|
2
|
+
|
|
3
|
+
## MANDATORY EXECUTION RULES (READ FIRST)
|
|
4
|
+
|
|
5
|
+
- 🛑 NEVER proceed without clear scope confirmation
|
|
6
|
+
- 📖 CRITICAL: Pull relevant context from existing artifacts
|
|
7
|
+
- ✅ ALWAYS confirm scope before design phase
|
|
8
|
+
- 🎯 Goal: Define exactly what to design and gather visual references
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## CONTEXT FROM PREVIOUS STEP
|
|
13
|
+
|
|
14
|
+
You should have:
|
|
15
|
+
- `mode`: production (otherwise this step is skipped)
|
|
16
|
+
- `user_intent`: What user wants to design
|
|
17
|
+
- `project_state`: greenfield or existing
|
|
18
|
+
- `related_artifacts`: List of relevant files
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## YOUR TASK
|
|
23
|
+
|
|
24
|
+
Define the specific scope of design work and optionally gather visual inspiration.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## TASK SEQUENCE
|
|
29
|
+
|
|
30
|
+
### 1. Pull Existing Context (if available)
|
|
31
|
+
|
|
32
|
+
**If existing project with artifacts:**
|
|
33
|
+
|
|
34
|
+
Read relevant files to understand:
|
|
35
|
+
- Existing design decisions (from UX specs)
|
|
36
|
+
- Related user stories (from epics)
|
|
37
|
+
- Current component patterns (from component inventory)
|
|
38
|
+
- Design tokens already defined
|
|
39
|
+
|
|
40
|
+
Present summary:
|
|
41
|
+
```
|
|
42
|
+
EXISTING CONTEXT
|
|
43
|
+
|
|
44
|
+
From UX Specification:
|
|
45
|
+
- [Key design decisions relevant to this work]
|
|
46
|
+
|
|
47
|
+
From Epic/Stories:
|
|
48
|
+
- [Related stories and their requirements]
|
|
49
|
+
|
|
50
|
+
Current Design System:
|
|
51
|
+
- Theme: [dark/light/both]
|
|
52
|
+
- Primary components: [list]
|
|
53
|
+
- Patterns established: [list]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**If greenfield:**
|
|
57
|
+
```
|
|
58
|
+
GREENFIELD PROJECT
|
|
59
|
+
|
|
60
|
+
No existing design specs found. This design work will help establish:
|
|
61
|
+
- Visual direction
|
|
62
|
+
- Component patterns
|
|
63
|
+
- Design tokens foundation
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
### 2. Define Scope
|
|
69
|
+
|
|
70
|
+
Based on user intent and context, propose specific scope:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
PROPOSED SCOPE
|
|
74
|
+
|
|
75
|
+
Based on "{user_intent}", here's what I recommend designing:
|
|
76
|
+
|
|
77
|
+
1. [Specific page/flow/component]
|
|
78
|
+
- [What it needs to accomplish]
|
|
79
|
+
- [Key elements to include]
|
|
80
|
+
|
|
81
|
+
2. [Another item if multi-part]
|
|
82
|
+
- [Details]
|
|
83
|
+
|
|
84
|
+
Estimated outputs:
|
|
85
|
+
- [ ] Design prototype ([tool])
|
|
86
|
+
- [ ] Component strategy
|
|
87
|
+
- [ ] Page layouts
|
|
88
|
+
- [ ] User journey (if multi-step)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Ask for confirmation:
|
|
92
|
+
```
|
|
93
|
+
Does this scope look right? Want to add or remove anything?
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### 3. Gather Inspiration (Optional)
|
|
99
|
+
|
|
100
|
+
After scope is confirmed, offer inspiration gathering:
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
INSPIRATION (Optional)
|
|
104
|
+
|
|
105
|
+
Would you like to gather visual references before designing?
|
|
106
|
+
|
|
107
|
+
[Y] Yes - I'll search for relevant examples
|
|
108
|
+
[N] No - Let's proceed with design
|
|
109
|
+
[U] I have URLs - I'll share specific references
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**If Y (search for inspiration):**
|
|
113
|
+
- Use web search to find 2-3 relevant design examples
|
|
114
|
+
- Focus on the specific UI pattern being designed
|
|
115
|
+
- Present findings with brief analysis:
|
|
116
|
+
```
|
|
117
|
+
INSPIRATION FOUND
|
|
118
|
+
|
|
119
|
+
1. [Source/Company] - [URL if available]
|
|
120
|
+
What works: [specific element]
|
|
121
|
+
Relevant for: [how it applies to our design]
|
|
122
|
+
|
|
123
|
+
2. [Another example]
|
|
124
|
+
...
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**If U (user has URLs):**
|
|
128
|
+
- Accept user's reference URLs
|
|
129
|
+
- If Playwright available, offer to screenshot them
|
|
130
|
+
- Note key elements to incorporate
|
|
131
|
+
|
|
132
|
+
**If N:**
|
|
133
|
+
- Proceed directly to design
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
### 4. Confirm Design Direction
|
|
138
|
+
|
|
139
|
+
Summarize before proceeding:
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
DESIGN BRIEF
|
|
143
|
+
|
|
144
|
+
Scope: [confirmed scope items]
|
|
145
|
+
|
|
146
|
+
Inspiration:
|
|
147
|
+
- [References gathered, or "None - proceeding with library defaults"]
|
|
148
|
+
|
|
149
|
+
Design approach:
|
|
150
|
+
- Primary tool: [based on availability and scope]
|
|
151
|
+
- Target: [what we're creating]
|
|
152
|
+
|
|
153
|
+
Ready to proceed to design phase.
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## COLLABORATION MENU
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
[A] Advanced - Deeper exploration of requirements
|
|
162
|
+
[P] Party Mode - Get perspectives from PM, Dev, UX agents
|
|
163
|
+
[C] Continue - Proceed to design phase
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**Menu Handlers:**
|
|
167
|
+
- **A**: Explore requirements more deeply, ask clarifying questions
|
|
168
|
+
- **P**: Load party mode for multi-agent input on design direction
|
|
169
|
+
- **C**: Proceed to Step 3
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## STATE TO CARRY FORWARD
|
|
174
|
+
|
|
175
|
+
Add to working memory:
|
|
176
|
+
|
|
177
|
+
```yaml
|
|
178
|
+
scope:
|
|
179
|
+
items:
|
|
180
|
+
- name: "[item 1]"
|
|
181
|
+
description: "[what it accomplishes]"
|
|
182
|
+
type: [page | flow | component]
|
|
183
|
+
- name: "[item 2]"
|
|
184
|
+
...
|
|
185
|
+
inspiration:
|
|
186
|
+
- source: "[name]"
|
|
187
|
+
url: "[url if available]"
|
|
188
|
+
takeaway: "[what to incorporate]"
|
|
189
|
+
design_direction: "[summary of approach]"
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## NEXT STEP
|
|
195
|
+
|
|
196
|
+
When user selects [C], load `./step-03-design.md`
|
|
197
|
+
|
|
198
|
+
Remember: Do NOT proceed until user explicitly selects [C]
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# Step 3: Design Execution
|
|
2
|
+
|
|
3
|
+
## MANDATORY EXECUTION RULES (READ FIRST)
|
|
4
|
+
|
|
5
|
+
- 🛑 NEVER proceed without user confirmation at each design iteration
|
|
6
|
+
- 📖 CRITICAL: Load the appropriate tool file for detailed execution
|
|
7
|
+
- ✅ ALWAYS show design results for review before moving on
|
|
8
|
+
- 🎯 Goal: Create visual prototype using user's preferred tool
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## CONTEXT FROM PREVIOUS STEPS
|
|
13
|
+
|
|
14
|
+
You should have:
|
|
15
|
+
- `mode`: quick_prototype or production
|
|
16
|
+
- `user_intent`: What to design
|
|
17
|
+
- `scope`: Specific items to design (if production mode)
|
|
18
|
+
- `inspiration`: Visual references (if gathered)
|
|
19
|
+
- `tools_available`: Which tools are configured
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## YOUR TASK
|
|
24
|
+
|
|
25
|
+
Execute design using the user's preferred tool, iterate until satisfied.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## TASK SEQUENCE
|
|
30
|
+
|
|
31
|
+
### 1. Present Tool Selection
|
|
32
|
+
|
|
33
|
+
Based on available tools, present options:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
DESIGN TOOL SELECTION
|
|
37
|
+
|
|
38
|
+
Choose your design approach:
|
|
39
|
+
|
|
40
|
+
[S] SuperDesign
|
|
41
|
+
→ Quick HTML/CSS prototypes via VS Code
|
|
42
|
+
→ Best for: Rapid visual exploration, custom styling
|
|
43
|
+
|
|
44
|
+
[M] MagicPatterns {show availability status}
|
|
45
|
+
→ AI-generated React components
|
|
46
|
+
→ Best for: Direct React code, component variations
|
|
47
|
+
|
|
48
|
+
[W] Wireframe Only
|
|
49
|
+
→ ASCII or Excalidraw sketch
|
|
50
|
+
→ Best for: Structure-first, discussing layout
|
|
51
|
+
|
|
52
|
+
[D] Direct to Components
|
|
53
|
+
→ Skip visuals, map directly to shadcn
|
|
54
|
+
→ Best for: Standard patterns, known layouts
|
|
55
|
+
|
|
56
|
+
Which approach? [S/M/W/D]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
### 2. Load Tool Execution File
|
|
62
|
+
|
|
63
|
+
Based on user selection, load the corresponding tool file:
|
|
64
|
+
|
|
65
|
+
| Selection | Tool File |
|
|
66
|
+
|-----------|-----------|
|
|
67
|
+
| S | `{installed_path}/tools/superdesign.md` |
|
|
68
|
+
| M | `{installed_path}/tools/magicpatterns.md` |
|
|
69
|
+
| W | `{installed_path}/tools/wireframe.md` |
|
|
70
|
+
| D | `{installed_path}/tools/direct-mapping.md` |
|
|
71
|
+
|
|
72
|
+
**CRITICAL:** Read the ENTIRE tool file and follow its instructions exactly.
|
|
73
|
+
|
|
74
|
+
Pass context to tool execution:
|
|
75
|
+
- `user_intent`
|
|
76
|
+
- `scope` (if available)
|
|
77
|
+
- `inspiration` (if gathered)
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
### 3. Tool Execution
|
|
82
|
+
|
|
83
|
+
Execute the loaded tool file completely:
|
|
84
|
+
- Follow all steps in the tool file
|
|
85
|
+
- Handle user interactions as specified
|
|
86
|
+
- Collect output state as defined in tool file
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
### 4. Offer Playwright Verification (Optional)
|
|
91
|
+
|
|
92
|
+
If Playwright MCP is available AND user created a visual prototype (SuperDesign or MagicPatterns):
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
VISUAL VERIFICATION (Optional)
|
|
96
|
+
|
|
97
|
+
Would you like me to capture screenshots of your design?
|
|
98
|
+
|
|
99
|
+
[Y] Yes - Take screenshots (desktop + mobile)
|
|
100
|
+
[N] No - Skip verification
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
If Y:
|
|
104
|
+
- Use Playwright to navigate to design
|
|
105
|
+
- Capture desktop screenshot
|
|
106
|
+
- Resize viewport (375px width) and capture mobile screenshot
|
|
107
|
+
- Present screenshots for review
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
### 5. Confirm Design Completion
|
|
112
|
+
|
|
113
|
+
After tool execution completes:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
DESIGN COMPLETE
|
|
117
|
+
|
|
118
|
+
Tool used: {design.tool_used}
|
|
119
|
+
Output: {design.output_location}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**If Quick Prototype mode:**
|
|
123
|
+
```
|
|
124
|
+
Prototype complete! Would you like to:
|
|
125
|
+
|
|
126
|
+
[P] Production - Convert to dev-ready artifacts
|
|
127
|
+
[D] Done - End workflow here
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**If Production mode:**
|
|
131
|
+
```
|
|
132
|
+
Ready to create dev handover artifacts.
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## COLLABORATION MENU
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
[A] Advanced - Explore design alternatives
|
|
141
|
+
[P] Party Mode - Get feedback from multiple perspectives
|
|
142
|
+
[C] Continue - Proceed to next step
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## STATE AFTER COMPLETION
|
|
148
|
+
|
|
149
|
+
Should have from tool execution:
|
|
150
|
+
|
|
151
|
+
```yaml
|
|
152
|
+
design:
|
|
153
|
+
tool_used: [superdesign | magicpatterns | wireframe | direct]
|
|
154
|
+
output_location: "{path or URL}"
|
|
155
|
+
output_format: [html | react | ascii | mapping]
|
|
156
|
+
needs_conversion: [true | false]
|
|
157
|
+
# Plus tool-specific state (components, code, etc.)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## NEXT STEP
|
|
163
|
+
|
|
164
|
+
- If `mode` = `quick_prototype` AND user selects [D]: End workflow
|
|
165
|
+
- If `mode` = `quick_prototype` AND user selects [P]: Load `./step-04-artifacts.md`
|
|
166
|
+
- If `mode` = `production` AND user selects [C]: Load `./step-04-artifacts.md`
|
|
167
|
+
|
|
168
|
+
Remember: Do NOT proceed until user explicitly confirms.
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
# Step 4: Convert & Create Artifacts
|
|
2
|
+
|
|
3
|
+
## MANDATORY EXECUTION RULES (READ FIRST)
|
|
4
|
+
|
|
5
|
+
- 🛑 NEVER generate artifacts without user approval of content
|
|
6
|
+
- 📖 CRITICAL: Use templates from `{installed_path}/templates/`
|
|
7
|
+
- ✅ ALWAYS create artifacts in the designated output folder
|
|
8
|
+
- 🎯 Goal: Transform design into dev-ready documentation
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## CONTEXT FROM PREVIOUS STEPS
|
|
13
|
+
|
|
14
|
+
You should have:
|
|
15
|
+
- `mode`: production (or quick_prototype converting to production)
|
|
16
|
+
- `scope`: What was designed
|
|
17
|
+
- `design.tool_used`: Which tool created the design
|
|
18
|
+
- `design.output_location`: Where the design lives
|
|
19
|
+
- `design.needs_conversion`: Whether HTML→React conversion is needed
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## YOUR TASK
|
|
24
|
+
|
|
25
|
+
Convert design output to dev-ready artifacts and save to `{planning_artifacts}/ux-design/`.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## TASK SEQUENCE
|
|
30
|
+
|
|
31
|
+
### 1. Conversion (if needed)
|
|
32
|
+
|
|
33
|
+
**If `design.needs_conversion` = true (SuperDesign or Wireframe):**
|
|
34
|
+
|
|
35
|
+
Load and execute: `{installed_path}/tools/conversion.md`
|
|
36
|
+
|
|
37
|
+
This handles HTML→React conversion with strategies:
|
|
38
|
+
- Component Mapping (shadcn)
|
|
39
|
+
- MagicPatterns Conversion
|
|
40
|
+
- Hybrid
|
|
41
|
+
|
|
42
|
+
**If `design.needs_conversion` = false (MagicPatterns or Direct):**
|
|
43
|
+
|
|
44
|
+
Skip conversion, proceed to artifact generation.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
### 2. Prepare Artifact Data
|
|
49
|
+
|
|
50
|
+
Collect all data needed for templates:
|
|
51
|
+
|
|
52
|
+
```yaml
|
|
53
|
+
artifact_data:
|
|
54
|
+
feature_name: "{from scope or user_intent}"
|
|
55
|
+
date: "{current date}"
|
|
56
|
+
|
|
57
|
+
# From design phase
|
|
58
|
+
tool_used: "{design.tool_used}"
|
|
59
|
+
output_location: "{design.output_location}"
|
|
60
|
+
|
|
61
|
+
# From conversion (if applicable)
|
|
62
|
+
shadcn_components: [list]
|
|
63
|
+
custom_components: [list]
|
|
64
|
+
install_command: "{npx shadcn command}"
|
|
65
|
+
|
|
66
|
+
# Design details
|
|
67
|
+
visual_direction: "{from inspiration/scope}"
|
|
68
|
+
inspiration_sources: [list]
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### 3. Determine Artifacts to Create
|
|
74
|
+
|
|
75
|
+
Based on scope and design:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
ARTIFACTS TO GENERATE
|
|
79
|
+
|
|
80
|
+
Required:
|
|
81
|
+
✓ Design Brief - Overview and decisions
|
|
82
|
+
✓ Component Strategy - What to install and build
|
|
83
|
+
|
|
84
|
+
Conditional:
|
|
85
|
+
{✓/✗} Layouts - {if page/screen design, not just component}
|
|
86
|
+
{✓/✗} User Journeys - {if multi-step flow}
|
|
87
|
+
|
|
88
|
+
Output folder: {planning_artifacts}/ux-design/
|
|
89
|
+
File prefix: {feature_name_kebab_case}-
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Confirm with user:
|
|
93
|
+
```
|
|
94
|
+
Generate these artifacts? [Y/N]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### 4. Generate Artifacts
|
|
100
|
+
|
|
101
|
+
For each artifact, load template and populate:
|
|
102
|
+
|
|
103
|
+
#### Design Brief
|
|
104
|
+
|
|
105
|
+
**Template:** `{installed_path}/templates/design-brief.md`
|
|
106
|
+
|
|
107
|
+
Populate placeholders:
|
|
108
|
+
- `{feature_name}` → Scope item name
|
|
109
|
+
- `{overview_description}` → What was designed and why
|
|
110
|
+
- `{design_decisions}` → Key choices made
|
|
111
|
+
- `{tool_used}` → Design tool
|
|
112
|
+
- `{output_location}` → Prototype location
|
|
113
|
+
- `{visual_direction}` → Style notes
|
|
114
|
+
- `{inspiration_sources}` → References used
|
|
115
|
+
- `{date}` → Current date
|
|
116
|
+
|
|
117
|
+
**Save to:** `{planning_artifacts}/ux-design/{prefix}design-brief.md`
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
#### Component Strategy
|
|
122
|
+
|
|
123
|
+
**Template:** `{installed_path}/templates/component-strategy.md`
|
|
124
|
+
|
|
125
|
+
Populate placeholders:
|
|
126
|
+
- `{feature_name}` → Scope item name
|
|
127
|
+
- `{shadcn_components}` → Installation command components
|
|
128
|
+
- `{component_mapping_rows}` → Table rows of element→component mapping
|
|
129
|
+
- `{shadcn_component_details}` → Details for each shadcn component
|
|
130
|
+
- `{custom_component_details}` → Build approach for custom components
|
|
131
|
+
- `{magicpatterns_section}` → URLs and extraction instructions (if used)
|
|
132
|
+
- `{implementation_notes}` → Any special considerations
|
|
133
|
+
- `{date}` → Current date
|
|
134
|
+
|
|
135
|
+
**Save to:** `{planning_artifacts}/ux-design/{prefix}component-strategy.md`
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
#### Layouts (if applicable)
|
|
140
|
+
|
|
141
|
+
**Template:** `{installed_path}/templates/layouts.md`
|
|
142
|
+
|
|
143
|
+
Only generate if designing pages/screens (not standalone components).
|
|
144
|
+
|
|
145
|
+
Populate placeholders:
|
|
146
|
+
- `{feature_name}` → Scope item name
|
|
147
|
+
- `{desktop_layout_ascii}` → Desktop wireframe
|
|
148
|
+
- `{desktop_notes}` → Layout notes
|
|
149
|
+
- `{tablet_layout_ascii}` → Tablet wireframe
|
|
150
|
+
- `{tablet_changes}` → What changes
|
|
151
|
+
- `{mobile_layout_ascii}` → Mobile wireframe
|
|
152
|
+
- `{mobile_changes}` → What changes
|
|
153
|
+
- `{responsive_summary_rows}` → Table of element behavior
|
|
154
|
+
- `{date}` → Current date
|
|
155
|
+
|
|
156
|
+
**Save to:** `{planning_artifacts}/ux-design/{prefix}layouts.md`
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
#### User Journeys (if applicable)
|
|
161
|
+
|
|
162
|
+
**Template:** `{installed_path}/templates/user-journeys.md`
|
|
163
|
+
|
|
164
|
+
Only generate if multi-step flow (wizard, checkout, onboarding, etc.).
|
|
165
|
+
|
|
166
|
+
Populate placeholders:
|
|
167
|
+
- `{feature_name}` → Scope item name
|
|
168
|
+
- `{journey_name}` → Name of the flow
|
|
169
|
+
- `{journey_trigger}` → What starts the journey
|
|
170
|
+
- `{journey_goal}` → What user accomplishes
|
|
171
|
+
- `{mermaid_flowchart}` → Flow diagram in Mermaid syntax
|
|
172
|
+
- `{journey_steps}` → Detailed step descriptions
|
|
173
|
+
- `{alternative_flows}` → Other paths
|
|
174
|
+
- `{edge_cases}` → Edge case handling
|
|
175
|
+
- `{error_states}` → Error handling
|
|
176
|
+
- `{date}` → Current date
|
|
177
|
+
|
|
178
|
+
**Save to:** `{planning_artifacts}/ux-design/{prefix}user-journeys.md`
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
### 5. Present Artifacts for Review
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
ARTIFACTS CREATED
|
|
186
|
+
|
|
187
|
+
Location: {planning_artifacts}/ux-design/
|
|
188
|
+
|
|
189
|
+
Files:
|
|
190
|
+
✓ {prefix}design-brief.md
|
|
191
|
+
✓ {prefix}component-strategy.md
|
|
192
|
+
{✓ {prefix}layouts.md}
|
|
193
|
+
{✓ {prefix}user-journeys.md}
|
|
194
|
+
|
|
195
|
+
Options:
|
|
196
|
+
[R] Review - Show artifact contents
|
|
197
|
+
[E] Edit - Make changes to an artifact
|
|
198
|
+
[C] Complete - Finalize workflow
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
**If R (Review):**
|
|
202
|
+
- Ask which artifact to show
|
|
203
|
+
- Display contents
|
|
204
|
+
- Return to options
|
|
205
|
+
|
|
206
|
+
**If E (Edit):**
|
|
207
|
+
- Ask which artifact and what changes
|
|
208
|
+
- Update the file
|
|
209
|
+
- Return to options
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
### 6. Workflow Complete
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
DESIGN WORKFLOW COMPLETE ✓
|
|
217
|
+
|
|
218
|
+
Summary:
|
|
219
|
+
─────────────────────────────────────
|
|
220
|
+
Mode: {mode}
|
|
221
|
+
Tool: {design.tool_used}
|
|
222
|
+
Prototype: {design.output_location}
|
|
223
|
+
|
|
224
|
+
Artifacts:
|
|
225
|
+
{list of created files with paths}
|
|
226
|
+
|
|
227
|
+
Next Steps for Development:
|
|
228
|
+
─────────────────────────────────────
|
|
229
|
+
1. Install components:
|
|
230
|
+
{install_command}
|
|
231
|
+
|
|
232
|
+
2. Review component strategy for custom builds
|
|
233
|
+
|
|
234
|
+
3. Reference layouts during implementation
|
|
235
|
+
|
|
236
|
+
{If related story exists:}
|
|
237
|
+
This design supports: {story_reference}
|
|
238
|
+
Ready for implementation via /dev-story workflow.
|
|
239
|
+
─────────────────────────────────────
|
|
240
|
+
|
|
241
|
+
[N] New Design - Start another design session
|
|
242
|
+
[D] Done - Exit workflow
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## OUTPUT FOLDER MANAGEMENT
|
|
248
|
+
|
|
249
|
+
**If folder doesn't exist:**
|
|
250
|
+
- Create `{planning_artifacts}/ux-design/`
|
|
251
|
+
|
|
252
|
+
**If files already exist:**
|
|
253
|
+
```
|
|
254
|
+
Files already exist:
|
|
255
|
+
- {existing_file_1}
|
|
256
|
+
- {existing_file_2}
|
|
257
|
+
|
|
258
|
+
Options:
|
|
259
|
+
[O] Overwrite - Replace existing files
|
|
260
|
+
[V] Version - Create {prefix}v2-*.md files
|
|
261
|
+
[M] Merge - Add to existing files with changelog
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
**If Merge selected:**
|
|
265
|
+
- Append new content with section header:
|
|
266
|
+
```markdown
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## Update: {date}
|
|
270
|
+
|
|
271
|
+
{new_content}
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## COLLABORATION MENU
|
|
277
|
+
|
|
278
|
+
```
|
|
279
|
+
[A] Advanced - Refine artifacts further
|
|
280
|
+
[P] Party Mode - Get dev/PM review of artifacts
|
|
281
|
+
[C] Complete - Finish workflow
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## SUCCESS CRITERIA
|
|
287
|
+
|
|
288
|
+
✅ Design converted to component mapping (if needed)
|
|
289
|
+
✅ All applicable artifacts created
|
|
290
|
+
✅ Files saved to correct location
|
|
291
|
+
✅ shadcn installation command provided
|
|
292
|
+
✅ Custom components identified with build approach
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# {feature_name} Component Strategy
|
|
2
|
+
|
|
3
|
+
## Quick Reference
|
|
4
|
+
|
|
5
|
+
### Installation Command
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx shadcn@latest add {shadcn_components}
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Component Mapping
|
|
12
|
+
|
|
13
|
+
| UI Element | Source | Component | Variant/Props | Notes |
|
|
14
|
+
|------------|--------|-----------|---------------|-------|
|
|
15
|
+
{component_mapping_rows}
|
|
16
|
+
|
|
17
|
+
## shadcn Components
|
|
18
|
+
|
|
19
|
+
{shadcn_component_details}
|
|
20
|
+
|
|
21
|
+
## Custom Components
|
|
22
|
+
|
|
23
|
+
{custom_component_details}
|
|
24
|
+
|
|
25
|
+
## MagicPatterns Designs
|
|
26
|
+
|
|
27
|
+
{magicpatterns_section}
|
|
28
|
+
|
|
29
|
+
## Implementation Notes
|
|
30
|
+
|
|
31
|
+
{implementation_notes}
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
*Generated by designer-founder workflow on {date}*
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# {feature_name} Design Brief
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
{overview_description}
|
|
6
|
+
|
|
7
|
+
## Design Decisions
|
|
8
|
+
|
|
9
|
+
{design_decisions}
|
|
10
|
+
|
|
11
|
+
## Prototype Location
|
|
12
|
+
|
|
13
|
+
- **Tool:** {tool_used}
|
|
14
|
+
- **File:** {output_location}
|
|
15
|
+
|
|
16
|
+
## Visual Direction
|
|
17
|
+
|
|
18
|
+
{visual_direction}
|
|
19
|
+
|
|
20
|
+
## Inspiration Sources
|
|
21
|
+
|
|
22
|
+
{inspiration_sources}
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
*Generated by designer-founder workflow on {date}*
|