siesa-agents 2.1.90 → 2.1.91
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/claude/skills/sa-wds-visual-proposals/SKILL.md +6 -0
- package/package.json +1 -1
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/data/component-mapping.csv +47 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-01-init.md +148 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-01b-continue.md +79 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-02-bridge.md +114 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-02b-kit-warmup.md +96 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-03-scenarios.md +102 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-04-specs.md +97 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-05-prototype.md +102 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-06-handoff.md +96 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/templates/product-brief-bridge.md +68 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/templates/proposal-index.md +46 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/templates/trigger-map-bridge.md +54 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/workflow.md +82 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/workflow_ext.md +195 -0
- package/siesa-agents/wds/config.yaml +20 -0
- package/siesa-agents/wds/data/agent-contracts.md +72 -0
- package/siesa-agents/wds/data/agent-guides/freya/agentic-development.md +223 -0
- package/siesa-agents/wds/data/agent-guides/freya/content-creation.md +270 -0
- package/siesa-agents/wds/data/agent-guides/freya/design-system.md +333 -0
- package/siesa-agents/wds/data/agent-guides/freya/meta-content-guide.md +495 -0
- package/siesa-agents/wds/data/agent-guides/freya/specification-quality.md +262 -0
- package/siesa-agents/wds/data/agent-guides/freya/strategic-design.md +116 -0
- package/siesa-agents/wds/data/agent-guides/saga/content-structure-principles.md +190 -0
- package/siesa-agents/wds/data/agent-guides/saga/conversational-followups.md +372 -0
- package/siesa-agents/wds/data/agent-guides/saga/discovery-conversation.md +265 -0
- package/siesa-agents/wds/data/agent-guides/saga/dream-up-approach.md +1034 -0
- package/siesa-agents/wds/data/agent-guides/saga/inspiration-analysis.md +215 -0
- package/siesa-agents/wds/data/agent-guides/saga/resources/project-brief.template.md +187 -0
- package/siesa-agents/wds/data/agent-guides/saga/seo-strategy-guide.md +391 -0
- package/siesa-agents/wds/data/agent-guides/saga/strategic-documentation.md +454 -0
- package/siesa-agents/wds/data/agent-guides/saga/trigger-mapping.md +653 -0
- package/siesa-agents/wds/data/agent-guides/saga/working-with-existing-materials.md +172 -0
- package/siesa-agents/wds/data/design-system/component-boundaries.md +318 -0
- package/siesa-agents/wds/data/design-system/figma-component-structure.md +697 -0
- package/siesa-agents/wds/data/design-system/naming-conventions.md +200 -0
- package/siesa-agents/wds/data/design-system/state-management.md +93 -0
- package/siesa-agents/wds/data/design-system/token-architecture.md +474 -0
- package/siesa-agents/wds/data/design-system/validation-patterns.md +74 -0
- package/siesa-agents/wds/data/presentations/freya-how-i-help.md +63 -0
- package/siesa-agents/wds/data/presentations/freya-intro.md +269 -0
- package/siesa-agents/wds/data/presentations/freya-presentation.md +77 -0
- package/siesa-agents/wds/data/presentations/freya-workflows-guide.md +51 -0
- package/siesa-agents/wds/data/presentations/mimir-agents-overview.md +66 -0
- package/siesa-agents/wds/data/presentations/mimir-tone-setting.md +48 -0
- package/siesa-agents/wds/data/presentations/saga-how-i-help.md +62 -0
- package/siesa-agents/wds/data/presentations/saga-intro.md +285 -0
- package/siesa-agents/wds/data/presentations/saga-presentation.md +74 -0
- package/siesa-agents/wds/data/presentations/saga-workflows-guide.md +48 -0
- package/siesa-agents/wds/data/shared-activation.md +49 -0
- package/siesa-agents/wds/data/wds-glossary.md +98 -0
- package/siesa-agents/wds/module-help.csv +19 -0
- package/siesa-agents/wds/scripts/README.md +155 -0
- package/siesa-agents/wds/scripts/wds-add-object.js +207 -0
- package/siesa-agents/wds/scripts/wds-add-spacing.js +158 -0
- package/siesa-agents/wds/scripts/wds-init-page.js +234 -0
- package/siesa-agents/wds/scripts/wds-init-scenario.js +125 -0
- package/siesa-agents/wds/scripts/wds-nav.js +206 -0
- package/siesa-agents/wds/scripts/wds-validate.js +306 -0
- package/siesa-agents/wds/skills/freya.activation.md +204 -0
- package/siesa-agents/wds/skills/handoff.md +91 -0
- package/siesa-agents/wds/skills/saga.activation.md +169 -0
- package/siesa-agents/wds/skills/shared/git.md +55 -0
- package/siesa-agents/wds/skills/start.md +99 -0
- package/siesa-agents/wds/skills/wrap.md +198 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
# Freya's Content Creation Guide
|
|
2
|
+
|
|
3
|
+
**When to load:** Before creating strategic content (headlines, features, text sections)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Core Principle
|
|
8
|
+
|
|
9
|
+
**Content is strategic, not decorative.** Every word should trigger user psychology and serve business goals.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Content Creation Workshop
|
|
14
|
+
|
|
15
|
+
**Use the Content Creation Workshop for:**
|
|
16
|
+
- ✅ Headlines and subheadlines
|
|
17
|
+
- ✅ Hero sections and value propositions
|
|
18
|
+
- ✅ Feature descriptions and benefits
|
|
19
|
+
- ✅ Call-to-action messaging
|
|
20
|
+
- ✅ Page sections (entire blocks)
|
|
21
|
+
|
|
22
|
+
**NOT for:**
|
|
23
|
+
- ❌ Field labels ("Email", "Password")
|
|
24
|
+
- ❌ Button text ("Submit", "Cancel")
|
|
25
|
+
- ❌ Error messages ("Invalid email format")
|
|
26
|
+
- ❌ UI microcopy (that's Tone of Voice territory)
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## When to Suggest the Workshop
|
|
31
|
+
|
|
32
|
+
### Signs User Needs It
|
|
33
|
+
- Creating content without strategic context
|
|
34
|
+
- Asking "What should this headline say?"
|
|
35
|
+
- Struggling with messaging
|
|
36
|
+
- Content feels generic or weak
|
|
37
|
+
- Multiple content pieces to create
|
|
38
|
+
|
|
39
|
+
### How to Suggest (Natural, Not Pushy)
|
|
40
|
+
> "This headline is important - it hooks Problem Aware users. Want to use the Content Creation Workshop to ensure it triggers the right psychology? Takes 10-15 minutes but makes content way more effective."
|
|
41
|
+
|
|
42
|
+
**Let them decide.** Some users prefer quick mode, others want depth.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Quick Mode vs Workshop Mode
|
|
47
|
+
|
|
48
|
+
### Quick Mode
|
|
49
|
+
**When:**
|
|
50
|
+
- Simple, straightforward content
|
|
51
|
+
- User is experienced with WDS
|
|
52
|
+
- Context is crystal clear
|
|
53
|
+
- Time is tight
|
|
54
|
+
|
|
55
|
+
**Process:**
|
|
56
|
+
1. Load Trigger Map for context
|
|
57
|
+
2. Consider Customer Awareness
|
|
58
|
+
3. Apply Golden Circle (WHY → HOW → WHAT)
|
|
59
|
+
4. Generate options
|
|
60
|
+
5. Explain rationale
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
### Workshop Mode
|
|
65
|
+
**When:**
|
|
66
|
+
- Critical content (hero, main CTA)
|
|
67
|
+
- User wants strategic depth
|
|
68
|
+
- Multiple frameworks apply
|
|
69
|
+
- Content is complex
|
|
70
|
+
|
|
71
|
+
**Process:**
|
|
72
|
+
Load: `skill:wds-6-asset-generation`
|
|
73
|
+
|
|
74
|
+
**6-Step Framework:**
|
|
75
|
+
1. Define purpose & success criteria
|
|
76
|
+
2. Load Trigger Map context
|
|
77
|
+
3. Apply Customer Awareness strategy
|
|
78
|
+
4. Filter with Action Mapping
|
|
79
|
+
5. Frame with Badass Users
|
|
80
|
+
6. Structure with Golden Circle
|
|
81
|
+
7. Generate content
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## The 6-Model Framework
|
|
86
|
+
|
|
87
|
+
### 1. Content Purpose
|
|
88
|
+
**"What job does this content do?"**
|
|
89
|
+
|
|
90
|
+
- Convince Problem Aware users that speed matters
|
|
91
|
+
- Reassure anxious users about security
|
|
92
|
+
- Trigger desire to feel professional
|
|
93
|
+
|
|
94
|
+
**Must be specific and measurable.**
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### 2. Trigger Map
|
|
99
|
+
**Strategic foundation**
|
|
100
|
+
|
|
101
|
+
- Business Goal: What are we trying to achieve?
|
|
102
|
+
- User: Who are we serving?
|
|
103
|
+
- Driving Forces: What motivates them? (positive + negative)
|
|
104
|
+
- Solution: What triggers these forces?
|
|
105
|
+
|
|
106
|
+
**Informs** which psychology to trigger.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
### 3. Customer Awareness Cycle
|
|
111
|
+
**Content strategy - language & focus**
|
|
112
|
+
|
|
113
|
+
Where user is → Where we want them:
|
|
114
|
+
|
|
115
|
+
- **Unaware → Problem Aware:** Educate on problem
|
|
116
|
+
- **Problem → Solution Aware:** Show solutions exist
|
|
117
|
+
- **Solution → Product Aware:** Differentiate your solution
|
|
118
|
+
- **Product → Most Aware:** Remove friction, show proof
|
|
119
|
+
- **Most Aware:** Maintain, deepen relationship
|
|
120
|
+
|
|
121
|
+
**Determines** what language they can understand.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
### 4. Action Mapping
|
|
126
|
+
**Content filter - relevance**
|
|
127
|
+
|
|
128
|
+
For EVERY content element: **"What action does this enable?"**
|
|
129
|
+
|
|
130
|
+
- ❌ "Nice to know" → Remove it
|
|
131
|
+
- ✅ "Need to do" → Keep and strengthen
|
|
132
|
+
|
|
133
|
+
**Strips** fluff, focuses on user actions.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
### 5. Kathy Sierra Badass Users
|
|
138
|
+
**Content tone & frame**
|
|
139
|
+
|
|
140
|
+
Frame content around user becoming capable:
|
|
141
|
+
|
|
142
|
+
- Show transformation (current → badass state)
|
|
143
|
+
- Reduce cognitive load
|
|
144
|
+
- Create "aha moments"
|
|
145
|
+
- Make them feel smart, not overwhelmed
|
|
146
|
+
|
|
147
|
+
**Makes** users feel empowered, not intimidated.
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
### 6. Golden Circle
|
|
152
|
+
**Structural order**
|
|
153
|
+
|
|
154
|
+
Always structure: **WHY → HOW → WHAT**
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
Headline (WHY): Stop losing clients to slow proposals
|
|
158
|
+
Subhead (HOW): AI-powered templates deliver in minutes
|
|
159
|
+
Features (WHAT): 10K templates, smart pricing, e-signatures
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Gives** content persuasive flow.
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## How the Models Work Together
|
|
167
|
+
|
|
168
|
+
**Think of them as lenses, not sequential steps:**
|
|
169
|
+
|
|
170
|
+
1. **Trigger Map** = Which driving force to trigger?
|
|
171
|
+
2. **Customer Awareness** = What language can they understand?
|
|
172
|
+
3. **Golden Circle** = In what order should I present?
|
|
173
|
+
4. **Action Mapping** = Is this enabling action?
|
|
174
|
+
5. **Badass Users** = Does this make them feel capable?
|
|
175
|
+
6. **Content Purpose** = Does it achieve its job?
|
|
176
|
+
|
|
177
|
+
**AI synthesizes all six** to produce optimal content.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Content Purpose Examples
|
|
182
|
+
|
|
183
|
+
### Good (Specific & Measurable)
|
|
184
|
+
- "Convince Problem Aware users that proposal speed matters more than perfection"
|
|
185
|
+
- "Reassure Product Aware users about data security concerns"
|
|
186
|
+
- "Trigger Solution Aware users' desire to feel like industry experts"
|
|
187
|
+
|
|
188
|
+
### Bad (Vague)
|
|
189
|
+
- "Make users want the product"
|
|
190
|
+
- "Explain features"
|
|
191
|
+
- "Sound professional"
|
|
192
|
+
|
|
193
|
+
**Test:** Can someone else determine if the content succeeded?
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Model Priority Matrix
|
|
198
|
+
|
|
199
|
+
**Different content types prioritize different models:**
|
|
200
|
+
|
|
201
|
+
### Landing Page Hero
|
|
202
|
+
- Customer Awareness: ⭐⭐⭐
|
|
203
|
+
- Golden Circle: ⭐⭐⭐
|
|
204
|
+
- Badass Users: ⭐⭐
|
|
205
|
+
- Action Mapping: ⭐
|
|
206
|
+
- Trigger Map: Always loaded
|
|
207
|
+
- Content Purpose: Always defined
|
|
208
|
+
|
|
209
|
+
### Feature Description
|
|
210
|
+
- Action Mapping: ⭐⭐⭐
|
|
211
|
+
- Badass Users: ⭐⭐⭐
|
|
212
|
+
- Customer Awareness: ⭐⭐
|
|
213
|
+
- Golden Circle: ⭐
|
|
214
|
+
- Trigger Map: Always loaded
|
|
215
|
+
- Content Purpose: Always defined
|
|
216
|
+
|
|
217
|
+
### Error Messages
|
|
218
|
+
**Don't use workshop** - Use Tone of Voice instead
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Tone of Voice vs Strategic Content
|
|
223
|
+
|
|
224
|
+
### Tone of Voice (Product-Wide)
|
|
225
|
+
- Field labels: "Email address"
|
|
226
|
+
- Button text: "Get started"
|
|
227
|
+
- Error messages: "Please enter a valid email"
|
|
228
|
+
- Success messages: "Profile updated!"
|
|
229
|
+
|
|
230
|
+
**Defined once** in Product Brief, applied everywhere.
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
### Strategic Content (Context-Specific)
|
|
235
|
+
- Headlines: "Stop losing clients to slow proposals"
|
|
236
|
+
- Value propositions: "AI-powered templates that close deals faster"
|
|
237
|
+
- Feature benefits: "Create stunning proposals in minutes, not hours"
|
|
238
|
+
|
|
239
|
+
**Created with workshop**, varies by context.
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## Quick Reference
|
|
244
|
+
|
|
245
|
+
**Before creating any strategic content:**
|
|
246
|
+
|
|
247
|
+
1. **Define purpose** - What job does this do?
|
|
248
|
+
2. **Load Trigger Map** - Which driving forces?
|
|
249
|
+
3. **Check awareness** - Where are users?
|
|
250
|
+
4. **Apply Golden Circle** - WHY → HOW → WHAT
|
|
251
|
+
5. **Filter with Action** - Does it enable action?
|
|
252
|
+
6. **Frame as empowering** - Make them feel capable
|
|
253
|
+
7. **Validate** - Does it achieve its purpose?
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## Related Resources
|
|
258
|
+
|
|
259
|
+
- **Asset Generation:** `skill:wds-6-asset-generation`
|
|
260
|
+
- **Content Purpose Guide:** `../../docs/method/content-purpose-guide.md`
|
|
261
|
+
- **Tone of Voice Guide:** `../../docs/method/tone-of-voice-guide.md`
|
|
262
|
+
- **Customer Awareness Cycle:** `../../docs/models/customer-awareness-cycle.md`
|
|
263
|
+
- **Golden Circle:** `../../docs/models/golden-circle.md`
|
|
264
|
+
- **Action Mapping:** `../../docs/models/action-mapping.md`
|
|
265
|
+
- **Kathy Sierra Badass Users:** `../../docs/models/kathy-sierra-badass-users.md`
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
*Every word is a strategic choice. Content triggers psychology.*
|
|
270
|
+
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
# Freya's Design System Guide
|
|
2
|
+
|
|
3
|
+
**When to load:** When Phase 7 (Design System) is enabled and component questions arise
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Core Principle
|
|
8
|
+
|
|
9
|
+
**Design systems grow organically - discover components through actual work, never create speculatively.**
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Three Design System Modes
|
|
14
|
+
|
|
15
|
+
### Mode A: No Design System
|
|
16
|
+
**What it means:**
|
|
17
|
+
- All components stay page-specific
|
|
18
|
+
- No component extraction
|
|
19
|
+
- AI/dev team handles consistency
|
|
20
|
+
- Faster for simple projects
|
|
21
|
+
|
|
22
|
+
**When this workflow doesn't run:**
|
|
23
|
+
- Phase 7 is disabled
|
|
24
|
+
- Components reference page context only
|
|
25
|
+
|
|
26
|
+
**Agent behavior:**
|
|
27
|
+
- Create components as page-specific
|
|
28
|
+
- Use clear, descriptive class names
|
|
29
|
+
- No need to think about reusability
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
### Mode B: Custom Figma Design System
|
|
34
|
+
**What it means:**
|
|
35
|
+
- Designer defines components in Figma
|
|
36
|
+
- Components extracted as discovered during Phase 4
|
|
37
|
+
- Figma MCP endpoints for integration
|
|
38
|
+
- Component IDs link spec ↔ Figma
|
|
39
|
+
|
|
40
|
+
**Workflow:**
|
|
41
|
+
1. Designer creates component in Figma
|
|
42
|
+
2. Component discovered during page design
|
|
43
|
+
3. Agent links to Figma via Component ID
|
|
44
|
+
4. Specification references Figma source
|
|
45
|
+
|
|
46
|
+
**See:** `../../workflows/wds-6-asset-generation/workflow-figma.md`
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### Mode C: Component Library Design System
|
|
51
|
+
**What it means:**
|
|
52
|
+
- Uses shadcn/Radix/similar library
|
|
53
|
+
- Library chosen during setup
|
|
54
|
+
- Components mapped to library defaults
|
|
55
|
+
- Variants customized as needed
|
|
56
|
+
|
|
57
|
+
**Workflow:**
|
|
58
|
+
1. Component needed during page design
|
|
59
|
+
2. Check if library has it (button, input, card, etc.)
|
|
60
|
+
3. Map to library component
|
|
61
|
+
4. Document customizations (if any)
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## The Design System Router
|
|
66
|
+
|
|
67
|
+
**Runs automatically during Phase 4 component specification**
|
|
68
|
+
|
|
69
|
+
**For each component:**
|
|
70
|
+
1. Check: Design system enabled? (Mode B or C)
|
|
71
|
+
2. If NO → Create page-specific, continue
|
|
72
|
+
3. If YES → Call design-system-router.md
|
|
73
|
+
|
|
74
|
+
**Router asks:**
|
|
75
|
+
- Is this component new?
|
|
76
|
+
- Is there a similar component?
|
|
77
|
+
- Should we create new or use/extend existing?
|
|
78
|
+
|
|
79
|
+
**See:** `../../workflows/wds-7-design-system/design-system-router.md`
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Never Create Components Speculatively
|
|
84
|
+
|
|
85
|
+
### ❌ Wrong Approach
|
|
86
|
+
"Let me create a full component library upfront..."
|
|
87
|
+
|
|
88
|
+
**Why bad:**
|
|
89
|
+
- You don't know what you'll actually need
|
|
90
|
+
- Over-engineering
|
|
91
|
+
- Wasted effort on unused components
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
### ✅ Right Approach
|
|
96
|
+
"I'm designing the landing page hero... oh, I need a button."
|
|
97
|
+
|
|
98
|
+
**Process:**
|
|
99
|
+
1. Design the button for this specific page
|
|
100
|
+
2. When another page needs a button → Opportunity!
|
|
101
|
+
3. Assess: Similar enough to extract?
|
|
102
|
+
4. Extract to Design System if makes sense
|
|
103
|
+
|
|
104
|
+
**Result:** Components emerge from real needs.
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Opportunity/Risk Assessment
|
|
109
|
+
|
|
110
|
+
**When similar component exists, run assessment:**
|
|
111
|
+
|
|
112
|
+
**See:** `../../workflows/wds-7-design-system/assessment/`
|
|
113
|
+
|
|
114
|
+
**7 Micro-Steps:**
|
|
115
|
+
1. Scan existing components
|
|
116
|
+
2. Compare attributes (visual, behavior, states)
|
|
117
|
+
3. Calculate similarity score
|
|
118
|
+
4. Identify opportunities (reuse, consistency)
|
|
119
|
+
5. Identify risks (divergence, complexity)
|
|
120
|
+
6. Present decision to designer
|
|
121
|
+
7. Execute decision
|
|
122
|
+
|
|
123
|
+
**Outcomes:**
|
|
124
|
+
- **Use existing** - Component is close enough
|
|
125
|
+
- **Create variant** - Extend existing with new state
|
|
126
|
+
- **Create new** - Too different, warrants separate component
|
|
127
|
+
- **Update existing** - Existing is too narrow, expand it
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Foundation First
|
|
132
|
+
|
|
133
|
+
**Before any components:**
|
|
134
|
+
|
|
135
|
+
### 1. Design Tokens
|
|
136
|
+
```
|
|
137
|
+
Design tokens = the DNA of your design system
|
|
138
|
+
|
|
139
|
+
Colors:
|
|
140
|
+
- Primary, secondary, accent
|
|
141
|
+
- Neutral scale (50-900)
|
|
142
|
+
- Semantic (success, warning, error, info)
|
|
143
|
+
|
|
144
|
+
Typography:
|
|
145
|
+
- Font families
|
|
146
|
+
- Font scales (h1-h6, body, caption)
|
|
147
|
+
- Font weights
|
|
148
|
+
- Line heights
|
|
149
|
+
|
|
150
|
+
Spacing:
|
|
151
|
+
- Spacing scale (xs, sm, md, lg, xl)
|
|
152
|
+
- Layout scales
|
|
153
|
+
|
|
154
|
+
Effects:
|
|
155
|
+
- Border radius scale
|
|
156
|
+
- Shadow scale
|
|
157
|
+
- Transitions
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**Why first:** Tokens ensure consistency across all components.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
### 2. Atomic Design Structure
|
|
165
|
+
|
|
166
|
+
**Organize from simple → complex:**
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
atoms/
|
|
170
|
+
├── button.md
|
|
171
|
+
├── input.md
|
|
172
|
+
├── label.md
|
|
173
|
+
├── icon.md
|
|
174
|
+
└── badge.md
|
|
175
|
+
|
|
176
|
+
molecules/
|
|
177
|
+
├── form-field.md (label + input + error)
|
|
178
|
+
├── card.md (container + content)
|
|
179
|
+
└── search-box.md (input + button + icon)
|
|
180
|
+
|
|
181
|
+
organisms/
|
|
182
|
+
├── header.md (logo + nav + search + user-menu)
|
|
183
|
+
├── feature-section.md (headline + cards + cta)
|
|
184
|
+
└── form.md (multiple form-fields + submit)
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**Why this structure:** Clear dependencies, easy to understand, scales well.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Component Operations
|
|
192
|
+
|
|
193
|
+
**See:** `../../workflows/wds-7-design-system/operations/`
|
|
194
|
+
|
|
195
|
+
### 1. Initialize Design System
|
|
196
|
+
**First component triggers auto-initialization**
|
|
197
|
+
- Creates folder structure
|
|
198
|
+
- Creates design-tokens.md
|
|
199
|
+
- Creates component-library-config.md (if Mode C)
|
|
200
|
+
|
|
201
|
+
### 2. Create New Component
|
|
202
|
+
- Defines component specification
|
|
203
|
+
- Assigns Component ID
|
|
204
|
+
- Documents states and variants
|
|
205
|
+
- Notes where used
|
|
206
|
+
|
|
207
|
+
### 3. Add Variant
|
|
208
|
+
- Extends existing component
|
|
209
|
+
- Documents variant trigger
|
|
210
|
+
- Updates component spec
|
|
211
|
+
|
|
212
|
+
### 4. Update Component
|
|
213
|
+
- Modifies existing definition
|
|
214
|
+
- Increments version
|
|
215
|
+
- Documents change rationale
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## Component Specification Template
|
|
220
|
+
|
|
221
|
+
```markdown
|
|
222
|
+
# [Component Name] [COMP-001]
|
|
223
|
+
|
|
224
|
+
**Type:** [Atom|Molecule|Organism]
|
|
225
|
+
**Library:** [shadcn Button|Custom|N/A]
|
|
226
|
+
**Figma:** [Link if Mode B]
|
|
227
|
+
|
|
228
|
+
## Purpose
|
|
229
|
+
[What job does this component do?]
|
|
230
|
+
|
|
231
|
+
## Variants
|
|
232
|
+
- variant-name: [When to use]
|
|
233
|
+
- variant-name: [When to use]
|
|
234
|
+
|
|
235
|
+
## States
|
|
236
|
+
- default
|
|
237
|
+
- hover
|
|
238
|
+
- active
|
|
239
|
+
- disabled
|
|
240
|
+
- loading (if applicable)
|
|
241
|
+
- error (if applicable)
|
|
242
|
+
|
|
243
|
+
## Props/Attributes
|
|
244
|
+
| Prop | Type | Default | Description |
|
|
245
|
+
|------|------|---------|-------------|
|
|
246
|
+
| size | sm\|md\|lg | md | Button size |
|
|
247
|
+
| variant | primary\|secondary | primary | Visual style |
|
|
248
|
+
|
|
249
|
+
## Styling
|
|
250
|
+
[Design tokens or Figma reference]
|
|
251
|
+
|
|
252
|
+
## Used In
|
|
253
|
+
- [Page name] ([Component purpose in context])
|
|
254
|
+
- [Page name] ([Component purpose in context])
|
|
255
|
+
|
|
256
|
+
## Version History
|
|
257
|
+
- v1.0.0 (2024-01-01): Initial creation
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Integration with Phase 4
|
|
263
|
+
|
|
264
|
+
**Phase 4 (UX Design) → Phase 7 (Design System) flow:**
|
|
265
|
+
|
|
266
|
+
```
|
|
267
|
+
User creates page specification
|
|
268
|
+
├── Component 1: Button
|
|
269
|
+
│ ├── Check: Design system enabled?
|
|
270
|
+
│ ├── YES → Router checks existing components
|
|
271
|
+
│ ├── Similar button found → Opportunity/Risk Assessment
|
|
272
|
+
│ └── Decision: Use existing primary button variant
|
|
273
|
+
├── Component 2: Input
|
|
274
|
+
│ ├── Check: Design system enabled?
|
|
275
|
+
│ ├── YES → Router checks existing components
|
|
276
|
+
│ ├── No similar input → Create new
|
|
277
|
+
│ └── Add to Design System
|
|
278
|
+
└── Component 3: Custom illustration
|
|
279
|
+
├── Check: Design system enabled?
|
|
280
|
+
└── NO extraction (one-off asset)
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
**Result:**
|
|
284
|
+
- Page spec contains references + page-specific content
|
|
285
|
+
- Design System contains component definitions
|
|
286
|
+
- Clean separation maintained
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## Common Mistakes
|
|
291
|
+
|
|
292
|
+
### ❌ Creating Library Before Designing
|
|
293
|
+
"Let me make 50 components upfront..."
|
|
294
|
+
- **Instead:** Design pages, extract components as needed
|
|
295
|
+
|
|
296
|
+
### ❌ Over-Abstracting Too Early
|
|
297
|
+
"This button might need 10 variants someday..."
|
|
298
|
+
- **Instead:** Start simple, add variants when actually needed
|
|
299
|
+
|
|
300
|
+
### ❌ Forcing Reuse
|
|
301
|
+
"I'll make this work even though it's awkward..."
|
|
302
|
+
- **Instead:** Sometimes a new component is better than a forced variant
|
|
303
|
+
|
|
304
|
+
### ❌ No Design Tokens
|
|
305
|
+
"I'll define colors per component..."
|
|
306
|
+
- **Instead:** Tokens first, components second
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
## Quality Checklist
|
|
311
|
+
|
|
312
|
+
Before marking a component "complete":
|
|
313
|
+
|
|
314
|
+
- [ ] **Clear purpose** - What job does it do?
|
|
315
|
+
- [ ] **Design tokens** - Uses tokens, not hard-coded values?
|
|
316
|
+
- [ ] **All states** - Default, hover, active, disabled documented?
|
|
317
|
+
- [ ] **Variants** - Each variant has clear use case?
|
|
318
|
+
- [ ] **Reusability** - Can be used in multiple contexts?
|
|
319
|
+
- [ ] **Documentation** - Specification is complete?
|
|
320
|
+
- [ ] **Examples** - Shows where it's actually used?
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Related Resources
|
|
325
|
+
|
|
326
|
+
- **Phase 7 Workflow:** `../../workflows/wds-7-design-system/`
|
|
327
|
+
- **Figma Integration:** `../../workflows/wds-6-asset-generation/workflow-figma.md`
|
|
328
|
+
- **Shared Knowledge:** `../design-system/` (tokens, naming, states, validation, boundaries)
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
*Components emerge from real needs. Design systems grow organically.*
|
|
333
|
+
|