@torka/claude-workflows 0.6.2 → 0.6.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.
- package/package.json +1 -1
- package/skills/designer-founder/steps/step-03-design.md +60 -0
- package/skills/designer-founder/steps/step-04-artifacts.md +78 -0
- package/skills/designer-founder/templates/component-strategy.md +9 -1
- package/skills/designer-founder/templates/design-brief.md +7 -1
- package/skills/designer-founder/templates/layouts.md +2 -0
- package/skills/designer-founder/templates/user-journeys.md +4 -0
- package/skills/designer-founder/tools/magicpatterns.md +110 -0
package/package.json
CHANGED
|
@@ -134,6 +134,66 @@ Ready to create dev handover artifacts.
|
|
|
134
134
|
|
|
135
135
|
---
|
|
136
136
|
|
|
137
|
+
### 5.5 Validate All Designs (Before Step 4)
|
|
138
|
+
|
|
139
|
+
**When scope has multiple items**, validate coverage before proceeding to artifacts:
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
DESIGN VALIDATION
|
|
143
|
+
|
|
144
|
+
Checking scope coverage:
|
|
145
|
+
{foreach scope_item}
|
|
146
|
+
[✓/✗] {item_name}: {url_or_missing}
|
|
147
|
+
{/foreach}
|
|
148
|
+
|
|
149
|
+
─────────────────────────────────────
|
|
150
|
+
Coverage: {completed_count} of {total_count} scope items
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**If any items missing:**
|
|
154
|
+
```
|
|
155
|
+
Some designs are incomplete.
|
|
156
|
+
|
|
157
|
+
Missing:
|
|
158
|
+
{foreach missing_item}
|
|
159
|
+
- {item_name}
|
|
160
|
+
{/foreach}
|
|
161
|
+
|
|
162
|
+
Options:
|
|
163
|
+
[C] Create missing - Generate remaining designs now
|
|
164
|
+
[S] Skip - Proceed with partial coverage (will note gaps in artifacts)
|
|
165
|
+
[R] Revise scope - Remove items that don't need designs
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**If C (Create missing):**
|
|
169
|
+
- Return to step 2 for each missing item
|
|
170
|
+
- Update design registry after each creation
|
|
171
|
+
- Return to validation after all created
|
|
172
|
+
|
|
173
|
+
**If S (Skip):**
|
|
174
|
+
- Mark skipped items in design state
|
|
175
|
+
- Add "NOT DESIGNED" note to artifact generation
|
|
176
|
+
- Proceed to step 4 with partial coverage
|
|
177
|
+
|
|
178
|
+
**If R (Revise scope):**
|
|
179
|
+
- Show current scope items
|
|
180
|
+
- Allow removal of items
|
|
181
|
+
- Recalculate coverage
|
|
182
|
+
- Return to validation
|
|
183
|
+
|
|
184
|
+
**If all items covered:**
|
|
185
|
+
```
|
|
186
|
+
VALIDATION PASSED ✓
|
|
187
|
+
|
|
188
|
+
All {total_count} scope items have approved designs.
|
|
189
|
+
Ready for artifact generation.
|
|
190
|
+
|
|
191
|
+
[C] Continue to artifacts
|
|
192
|
+
[R] Review designs before continuing
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
137
197
|
## COLLABORATION MENU
|
|
138
198
|
|
|
139
199
|
```
|
|
@@ -114,6 +114,22 @@ Populate placeholders:
|
|
|
114
114
|
- `{inspiration_sources}` → References used
|
|
115
115
|
- `{date}` → Current date
|
|
116
116
|
|
|
117
|
+
**Tool-specific placeholders:**
|
|
118
|
+
|
|
119
|
+
- `{tool_specific_notes}` → Generate based on tool used:
|
|
120
|
+
- **MagicPatterns:** "React/TypeScript code ready for extraction. Use `read_files` MCP tool to access."
|
|
121
|
+
- **SuperDesign:** "HTML/CSS prototype. Requires conversion to React components."
|
|
122
|
+
- **Wireframe:** "Structure reference only. Build components from scratch."
|
|
123
|
+
- **Direct:** "Component mapping provided. No visual prototype created."
|
|
124
|
+
|
|
125
|
+
- `{implementation_source_section}` → When MagicPatterns used:
|
|
126
|
+
```markdown
|
|
127
|
+
| Component | Source URL | Files to Extract |
|
|
128
|
+
|-----------|------------|------------------|
|
|
129
|
+
| {component_name} | [{design_name}]({url}) | {file_list} |
|
|
130
|
+
```
|
|
131
|
+
For other tools: "See Component Strategy for implementation details."
|
|
132
|
+
|
|
117
133
|
**Save to:** `{planning_artifacts}/ux-design/{prefix}design-brief.md`
|
|
118
134
|
|
|
119
135
|
---
|
|
@@ -132,6 +148,42 @@ Populate placeholders:
|
|
|
132
148
|
- `{implementation_notes}` → Any special considerations
|
|
133
149
|
- `{date}` → Current date
|
|
134
150
|
|
|
151
|
+
**MagicPatterns-specific placeholders (when `design.tool_used` = magicpatterns):**
|
|
152
|
+
|
|
153
|
+
- `{magicpatterns_extraction_warning}` → Include this warning block:
|
|
154
|
+
```markdown
|
|
155
|
+
> **CRITICAL: EXTRACT CODE, DO NOT REBUILD**
|
|
156
|
+
>
|
|
157
|
+
> MagicPatterns designs contain **production-ready React/TypeScript**.
|
|
158
|
+
> Use `mcp__magic-patterns__read_files` to extract code directly.
|
|
159
|
+
> Only adapt for project patterns (Supabase auth, react-hook-form, etc.)
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
- `{extraction_table}` → Generate extraction guide from design registry:
|
|
163
|
+
```markdown
|
|
164
|
+
| Design | MagicPatterns URL | Primary File | Key Elements |
|
|
165
|
+
|--------|-------------------|--------------|--------------|
|
|
166
|
+
| Sign In | [View](url) | SignInForm.tsx | Form, validation, social buttons |
|
|
167
|
+
| Sign Up | [View](url) | SignUpForm.tsx | Multi-step form, password strength |
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
- `{what_not_to_do_section}` → Include this section:
|
|
171
|
+
```markdown
|
|
172
|
+
## What NOT to Do
|
|
173
|
+
|
|
174
|
+
| Don't | Instead |
|
|
175
|
+
|-------|---------|
|
|
176
|
+
| Build layouts from scratch | Extract from MagicPatterns designs |
|
|
177
|
+
| Create custom form components | Extract existing form patterns |
|
|
178
|
+
| Write CSS for auth cards | Extract Tailwind classes from designs |
|
|
179
|
+
| Guess component structure | Read files with `read_files` tool first |
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**For non-MagicPatterns tools:**
|
|
183
|
+
- `{magicpatterns_extraction_warning}` → Empty string
|
|
184
|
+
- `{extraction_table}` → Empty string or "N/A - Design created with {tool_used}"
|
|
185
|
+
- `{what_not_to_do_section}` → Empty string
|
|
186
|
+
|
|
135
187
|
**Save to:** `{planning_artifacts}/ux-design/{prefix}component-strategy.md`
|
|
136
188
|
|
|
137
189
|
---
|
|
@@ -153,6 +205,20 @@ Populate placeholders:
|
|
|
153
205
|
- `{responsive_summary_rows}` → Table of element behavior
|
|
154
206
|
- `{date}` → Current date
|
|
155
207
|
|
|
208
|
+
**Implementation note placeholder:**
|
|
209
|
+
|
|
210
|
+
- `{layout_implementation_note}` → When MagicPatterns used:
|
|
211
|
+
```markdown
|
|
212
|
+
> **NOTE: Layouts Already Implemented**
|
|
213
|
+
>
|
|
214
|
+
> These layouts are reference documentation. The actual responsive layouts
|
|
215
|
+
> are already built into the MagicPatterns designs. Extract the Tailwind
|
|
216
|
+
> responsive classes directly from the design files rather than rebuilding.
|
|
217
|
+
>
|
|
218
|
+
> **Source:** Extract from [{design_name}]({url}) using `read_files` tool.
|
|
219
|
+
```
|
|
220
|
+
For other tools: Empty string or omit placeholder
|
|
221
|
+
|
|
156
222
|
**Save to:** `{planning_artifacts}/ux-design/{prefix}layouts.md`
|
|
157
223
|
|
|
158
224
|
---
|
|
@@ -175,6 +241,18 @@ Populate placeholders:
|
|
|
175
241
|
- `{error_states}` → Error handling
|
|
176
242
|
- `{date}` → Current date
|
|
177
243
|
|
|
244
|
+
**Implementation source placeholder:**
|
|
245
|
+
|
|
246
|
+
- `{journey_implementation_sources}` → Link each journey step to its design source:
|
|
247
|
+
```markdown
|
|
248
|
+
| Step | Design Source | Primary File | Key Feature |
|
|
249
|
+
|------|---------------|--------------|-------------|
|
|
250
|
+
| 1. Enter email | [Sign In]({url}) | SignInForm.tsx | Email input with validation |
|
|
251
|
+
| 2. Enter password | [Sign In]({url}) | SignInForm.tsx | Password field with show/hide |
|
|
252
|
+
| 3. Submit | [Sign In]({url}) | SignInForm.tsx | Loading state, error handling |
|
|
253
|
+
```
|
|
254
|
+
For non-MagicPatterns: "Reference {tool_used} prototype at {output_location}"
|
|
255
|
+
|
|
178
256
|
**Save to:** `{planning_artifacts}/ux-design/{prefix}user-journeys.md`
|
|
179
257
|
|
|
180
258
|
---
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
# {feature_name} Component Strategy
|
|
2
2
|
|
|
3
|
+
{magicpatterns_extraction_warning}
|
|
4
|
+
|
|
3
5
|
## Quick Reference
|
|
4
6
|
|
|
5
|
-
###
|
|
7
|
+
### 1. Install shadcn Components
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
npx shadcn@latest add {shadcn_components}
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
### 2. Extract Code from MagicPatterns
|
|
14
|
+
|
|
15
|
+
{extraction_table}
|
|
16
|
+
|
|
11
17
|
## Component Mapping
|
|
12
18
|
|
|
13
19
|
| UI Element | Source | Component | Variant/Props | Notes |
|
|
@@ -26,6 +32,8 @@ npx shadcn@latest add {shadcn_components}
|
|
|
26
32
|
|
|
27
33
|
{magicpatterns_section}
|
|
28
34
|
|
|
35
|
+
{what_not_to_do_section}
|
|
36
|
+
|
|
29
37
|
## Implementation Notes
|
|
30
38
|
|
|
31
39
|
{implementation_notes}
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
## Prototype Location
|
|
12
12
|
|
|
13
13
|
- **Tool:** {tool_used}
|
|
14
|
-
- **
|
|
14
|
+
- **Location:** {output_location}
|
|
15
|
+
|
|
16
|
+
{tool_specific_notes}
|
|
15
17
|
|
|
16
18
|
## Visual Direction
|
|
17
19
|
|
|
@@ -21,6 +23,10 @@
|
|
|
21
23
|
|
|
22
24
|
{inspiration_sources}
|
|
23
25
|
|
|
26
|
+
## Implementation Source
|
|
27
|
+
|
|
28
|
+
{implementation_source_section}
|
|
29
|
+
|
|
24
30
|
---
|
|
25
31
|
|
|
26
32
|
*Generated by designer-founder workflow on {date}*
|
|
@@ -63,6 +63,36 @@ Parameters:
|
|
|
63
63
|
imageUrls: [{inspiration_image_urls}] // optional
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
+
### 2.5 Handle Empty Response
|
|
67
|
+
|
|
68
|
+
If `create_design` returns no URL or empty response:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
DESIGN CREATION ISSUE
|
|
72
|
+
|
|
73
|
+
The design may have been created but the URL wasn't returned.
|
|
74
|
+
|
|
75
|
+
Options:
|
|
76
|
+
[P] Paste URL - I'll provide the URL from MagicPatterns browser
|
|
77
|
+
[R] Retry - Try creating the design again
|
|
78
|
+
[S] Switch - Use a different design tool
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**If P (Paste URL):**
|
|
82
|
+
- Accept URL from user
|
|
83
|
+
- Validate format (must contain `magicpatterns.com/c/` or `magicpatterns.app`)
|
|
84
|
+
- Call `get_design` to verify design exists
|
|
85
|
+
- If valid, continue to step 3
|
|
86
|
+
- If invalid, show error and return to options
|
|
87
|
+
|
|
88
|
+
**If R (Retry):**
|
|
89
|
+
- Re-execute step 2 with same parameters
|
|
90
|
+
- If fails again, suggest P or S options
|
|
91
|
+
|
|
92
|
+
**If S (Switch):**
|
|
93
|
+
- Return to tool selection in step-03-design.md
|
|
94
|
+
- Mark current design attempt as abandoned
|
|
95
|
+
|
|
66
96
|
### 3. Present Result
|
|
67
97
|
|
|
68
98
|
```
|
|
@@ -191,3 +221,83 @@ Parameters:
|
|
|
191
221
|
```
|
|
192
222
|
|
|
193
223
|
This is useful in the conversion step when the user chooses MagicPatterns for HTML→React conversion.
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## Design Registry Pattern
|
|
228
|
+
|
|
229
|
+
When creating multiple designs (e.g., auth flows with 6 screens), maintain a registry to track progress:
|
|
230
|
+
|
|
231
|
+
### Registry Structure
|
|
232
|
+
|
|
233
|
+
```yaml
|
|
234
|
+
designs:
|
|
235
|
+
- name: "{scope_item_name}"
|
|
236
|
+
url: "{url_or_pending}"
|
|
237
|
+
status: [pending | created | approved]
|
|
238
|
+
files: [list from get_design]
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Progress Display
|
|
242
|
+
|
|
243
|
+
After each design is created or approved, show progress:
|
|
244
|
+
|
|
245
|
+
```
|
|
246
|
+
DESIGN PROGRESS: {completed} of {total} complete
|
|
247
|
+
|
|
248
|
+
{foreach design in designs}
|
|
249
|
+
{if status = approved}✓{/if}{if status = created}◐{/if}{if status = pending}○{/if} {name} - {status}{if url} ({url}){/if}
|
|
250
|
+
{/foreach}
|
|
251
|
+
|
|
252
|
+
Options:
|
|
253
|
+
[N] Next - Create next pending design
|
|
254
|
+
[R] Review - Review a specific design
|
|
255
|
+
[C] Continue - Proceed to artifacts (if all approved)
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### Batch Creation Flow
|
|
259
|
+
|
|
260
|
+
When scope has multiple items:
|
|
261
|
+
|
|
262
|
+
1. **Show scope overview:**
|
|
263
|
+
```
|
|
264
|
+
DESIGNS TO CREATE ({count} items)
|
|
265
|
+
|
|
266
|
+
{foreach scope_item}
|
|
267
|
+
○ {item_name}
|
|
268
|
+
{/foreach}
|
|
269
|
+
|
|
270
|
+
Options:
|
|
271
|
+
[O] One-by-one - Create and approve each design individually
|
|
272
|
+
[B] Batch - Create all designs, then review together
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
2. **If One-by-one:** Execute steps 1-4 for each item, updating registry after each
|
|
276
|
+
|
|
277
|
+
3. **If Batch:**
|
|
278
|
+
- Create all designs (steps 1-3) without waiting for approval
|
|
279
|
+
- Present all designs for bulk review
|
|
280
|
+
- Allow individual updates before final approval
|
|
281
|
+
|
|
282
|
+
### Registry State
|
|
283
|
+
|
|
284
|
+
Store in workflow context:
|
|
285
|
+
|
|
286
|
+
```yaml
|
|
287
|
+
design_registry:
|
|
288
|
+
total_items: {count}
|
|
289
|
+
completed: {approved_count}
|
|
290
|
+
designs:
|
|
291
|
+
- name: "Sign In"
|
|
292
|
+
url: "https://magicpatterns.com/c/abc123"
|
|
293
|
+
status: approved
|
|
294
|
+
files: ["SignInForm.tsx", "styles.css"]
|
|
295
|
+
- name: "Sign Up"
|
|
296
|
+
url: "https://magicpatterns.com/c/def456"
|
|
297
|
+
status: created
|
|
298
|
+
files: ["SignUpForm.tsx"]
|
|
299
|
+
- name: "Forgot Password"
|
|
300
|
+
url: null
|
|
301
|
+
status: pending
|
|
302
|
+
files: []
|
|
303
|
+
```
|