You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
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
Copy file name to clipboardExpand all lines: skills/stitch-ideate/SKILL.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -256,25 +256,44 @@ Options:
256
256
257
257
## Phase 4: Screen Architecture
258
258
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)
260
268
261
269
Ask with `AskUserQuestion`:
262
270
263
-
**Question 1 — "What screens do you need? Pick the essential ones."**
271
+
**Question 1 — "What screens does your app need?"**
264
272
Options (adapt to product type — these are examples for a SaaS tool):
265
273
- Dashboard / Home (overview, KPIs, status)
266
274
- List / Grid view (browse items, search, filter)
267
275
- Detail / Editor (deep dive into a single item)
268
276
- Settings / Configuration (account, preferences)
269
277
- Auth (login, signup, onboarding)
270
278
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:
272
282
273
283
**Question 2 — "What's the most important user flow?"**
274
284
Free text. Example: "User sees an alert on the dashboard, clicks through to the detail view, makes a change, and sees the result."
275
285
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."
Copy file name to clipboardExpand all lines: skills/stitch-ideate/resources/prd-template.md
+45-2Lines changed: 45 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,10 @@ Fill every section. Use the `[PLACEHOLDER]` markers as guides. Remove all placeh
27
27
28
28
## Screens
29
29
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:]
31
31
-**[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.
32
34
33
35
---
34
36
@@ -119,6 +121,43 @@ Fill every section. Use the `[PLACEHOLDER]` markers as guides. Remove all placeh
**States:** N/A — this screen shows all states of all components.
158
+
159
+
**Interactions:** None — this is a static reference page.
160
+
122
161
</details>
123
162
124
163
---
@@ -129,10 +168,11 @@ Fill every section. Use the `[PLACEHOLDER]` markers as guides. Remove all placeh
129
168
**Stack:** HTML + Tailwind CSS v3
130
169
131
170
**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.]
133
172
1.**[Screen Name]:**[Why build this first — what does it establish?]
134
173
2.**[Screen Name]:**[What it reuses from #1, what new patterns it introduces.]
135
174
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.]
136
176
137
177
[Optional: Tailwind config notes, custom utility needs, font loading strategy.]
138
178
@@ -163,8 +203,11 @@ Fill every section. Use the `[PLACEHOLDER]` markers as guides. Remove all placeh
163
203
- Use real-sounding data: "$24.99" not "$XX.XX", "Sarah Chen" not "User Name"
164
204
- Describe what happens on hover, not just what it looks like at rest
165
205
- Include keyboard shortcuts if targeting technical users
0 commit comments