Skip to content

Commit c8d7806

Browse files
author
Gabi
committed
feat: enforce minimum 5 screens + component style guide per direction
- Phase 4 now requires minimum 5 app screens + 1 Component Style Guide - Style Guide screen renders every UI component in all states (buttons, inputs, cards, badges, typography, colors, spacing) - Added screen count guidelines by product type - PRD template includes style guide spec and build order placement - Style guide is always last screen — references all components from other screens, serves as source of truth for token extraction
1 parent 6706797 commit c8d7806

2 files changed

Lines changed: 71 additions & 8 deletions

File tree

skills/stitch-ideate/SKILL.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,25 +256,44 @@ Options:
256256

257257
## Phase 4: Screen Architecture
258258

259-
**Goal:** Define the screens and how they connect.
259+
**Goal:** Define the screens and how they connect. Minimum 5 screens per direction.
260+
261+
**Why 5 minimum?** Fewer than 5 screens usually means the app is underspecified — you're missing flows. Stitch generates better results when it has enough context to understand the full product. More screens = more visual consistency cues for the AI.
262+
263+
**Mandatory screen: Component Style Guide.** Every PRD includes a "Component Style Guide" screen — a single page that renders every UI component (buttons in all states, input fields, cards, badges, typography scale, color swatches, spacing examples). This screen:
264+
- Acts as a visual contract for the design system
265+
- Gives conversion skills a reference for consistent tokens
266+
- Catches design inconsistencies before they spread across screens
267+
- Is always the **last screen** in the PRD (generated after all app screens)
260268

261269
Ask with `AskUserQuestion`:
262270

263-
**Question 1 — "What screens do you need? Pick the essential ones."**
271+
**Question 1 — "What screens does your app need?"**
264272
Options (adapt to product type — these are examples for a SaaS tool):
265273
- Dashboard / Home (overview, KPIs, status)
266274
- List / Grid view (browse items, search, filter)
267275
- Detail / Editor (deep dive into a single item)
268276
- Settings / Configuration (account, preferences)
269277
- Auth (login, signup, onboarding)
270278

271-
Allow multi-select. Then ask:
279+
Allow multi-select. If the user picks fewer than 4, suggest additional screens based on the product type and flows described. The goal is 5+ app screens + 1 style guide = 6+ total.
280+
281+
Then ask:
272282

273283
**Question 2 — "What's the most important user flow?"**
274284
Free text. Example: "User sees an alert on the dashboard, clicks through to the detail view, makes a change, and sees the result."
275285

276-
After answers: Outline the screen list and primary flow:
277-
> "5 screens: Dashboard, Project List, Keyword Explorer, AI Config, Settings. Primary flow: Alert on dashboard -> drill into keyword data -> inject keywords to AI agent."
286+
After answers: Outline the screen list (including the style guide) and primary flow:
287+
> "6 screens: Dashboard, Project List, Keyword Explorer, AI Config, Settings, + Component Style Guide. Primary flow: Alert on dashboard -> drill into keyword data -> inject keywords to AI agent."
288+
289+
**Screen count guidelines by product type:**
290+
291+
| Product type | Typical screens | Examples |
292+
|-------------|----------------|----------|
293+
| Landing page / marketing site | 3-4 + style guide | Hero, Features, Pricing, Contact |
294+
| Simple app (tool, utility) | 5-6 + style guide | Home, Main feature, Detail, Settings, Auth |
295+
| Full SaaS / dashboard | 7-10 + style guide | Dashboard, List, Detail, Editor, Search, Settings, Auth, Onboarding |
296+
| E-commerce / marketplace | 8-12 + style guide | Home, Category, Product, Cart, Checkout, Account, Search, Reviews |
278297

279298
---
280299

@@ -313,7 +332,8 @@ Build the full PRD document (see `resources/prd-template.md` for structure) and
313332
**Design Direction:** "[Direction Name]" — [one-line description]
314333
**Inspired by:** [Reference apps]
315334
316-
**Screens:** [List with one-line descriptions]
335+
**Screens ([N] app screens + Component Style Guide):**
336+
[List with one-line descriptions]
317337
**Primary Flow:** [Flow description]
318338
319339
**Design System:**

skills/stitch-ideate/resources/prd-template.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ Fill every section. Use the `[PLACEHOLDER]` markers as guides. Remove all placeh
2727

2828
## Screens
2929

30-
[Bullet list of all screens with one-line descriptions. Format:]
30+
[Bullet list of all screens with one-line descriptions. Minimum 5 app screens + 1 style guide. Format:]
3131
- **[Screen Name]:** [Purpose in one sentence. Include the primary interaction pattern.]
32+
- ...
33+
- **Component Style Guide:** Visual reference page showing every UI component in all states — buttons, inputs, cards, badges, typography scale, color swatches, and spacing system.
3234

3335
---
3436

@@ -119,6 +121,43 @@ Fill every section. Use the `[PLACEHOLDER]` markers as guides. Remove all placeh
119121
**Interactions:**
120122
[Hover effects, keyboard shortcuts, click targets, transitions.]
121123

124+
### [Last]. Component Style Guide
125+
126+
**Purpose:** Visual reference showing every UI component used across all screens, in every state.
127+
128+
**Layout:**
129+
Full-width single-column page with sections for each component category. Generous spacing between sections.
130+
131+
**Key Elements:**
132+
- **Color Swatches:**
133+
- All palette colors displayed as labeled rectangles with hex values
134+
- Background, Surface, Border, Text, Accent, Success, Warning, Error
135+
- **Typography Scale:**
136+
- Every heading level (H1-H6), body text, captions, labels, monospace
137+
- Show font name, weight, size, and line-height
138+
- **Buttons:**
139+
- Primary, Secondary, Ghost, Destructive — each in Default, Hover, Active, Disabled states
140+
- Small, Medium, Large sizes
141+
- **Form Controls:**
142+
- Text input, Textarea, Select, Checkbox, Radio, Toggle, Slider
143+
- Each in Default, Focus, Error, Disabled states
144+
- **Cards & Containers:**
145+
- Content card, Modal, Dropdown, Tooltip, Toast notification
146+
- With and without shadows/borders as defined in design system
147+
- **Data Display:**
148+
- Badge, Tag, Avatar, Progress bar, Status indicator
149+
- Table row (if tables are used in the app)
150+
- **Navigation:**
151+
- Sidebar item, Tab, Breadcrumb, Pagination
152+
- Active, Hover, Inactive states
153+
- **Spacing & Grid:**
154+
- Visual spacing scale (4px, 8px, 12px, 16px, 24px, 32px, 48px)
155+
- Grid column examples
156+
157+
**States:** N/A — this screen shows all states of all components.
158+
159+
**Interactions:** None — this is a static reference page.
160+
122161
</details>
123162

124163
---
@@ -129,10 +168,11 @@ Fill every section. Use the `[PLACEHOLDER]` markers as guides. Remove all placeh
129168
**Stack:** HTML + Tailwind CSS v3
130169

131170
**Build Order:**
132-
[Numbered list prioritizing the most complex/foundational screen first.]
171+
[Numbered list prioritizing the most complex/foundational screen first. Style guide is always last.]
133172
1. **[Screen Name]:** [Why build this first — what does it establish?]
134173
2. **[Screen Name]:** [What it reuses from #1, what new patterns it introduces.]
135174
3. **[Remaining screens]:** [How they derive from earlier work.]
175+
4. **Component Style Guide:** [Generated last — references all components from above screens. Use this as the source of truth for design token extraction.]
136176

137177
[Optional: Tailwind config notes, custom utility needs, font loading strategy.]
138178

@@ -163,8 +203,11 @@ Fill every section. Use the `[PLACEHOLDER]` markers as guides. Remove all placeh
163203
- Use real-sounding data: "$24.99" not "$XX.XX", "Sarah Chen" not "User Name"
164204
- Describe what happens on hover, not just what it looks like at rest
165205
- Include keyboard shortcuts if targeting technical users
206+
- Minimum 5 app screens + 1 Component Style Guide = 6 screens total
207+
- The style guide screen is always last and shows every component used across all other screens
166208

167209
### Build Guide
168210
- Always recommend building the most complex screen first — it establishes the pattern library
169211
- Note which screens share components (reduces build time)
212+
- Component Style Guide is always built last — it references all components from other screens
170213
- Include Tailwind config extensions needed for custom colors/fonts

0 commit comments

Comments
 (0)