references/interview-framework.md
# Brand Discovery Interview Framework
## Interview Philosophy
- Ask a maximum of 10 questions across all phases. Developers will lose patience faster than most -- they want to ship.
- The user is technically literate. You can say "CTA," "hex value," "HTML," or "deploy." What needs translating is design language: "visual hierarchy," "brand identity," "color temperature," "typographic contrast."
- If the user volunteers information unprompted (e.g., dumps a README or product description), extract answers from it and skip those questions.
- When the user seems uncertain about design preferences, offer 2-3 concrete examples to choose from rather than waiting for them to articulate from scratch.
- Treat the interview as a conversation, not a form. Acknowledge answers before moving on.
- One question at a time. Never stack multiple questions in a single message.
- Respect short answers. Developers tend to be terse. If the answer covers the question, move on.
- **The user will try to skip this.** They'll say "just generate something" or "here's my README, figure it out." Push back gently. The interview is the skill's primary value -- without it, you're producing a generic template they could get from any page builder.
---
## Phase A: Product & Purpose
**Goal:** Understand what the product does, who it's for, and what action the landing page should drive.
### Core Questions (ask in order, skip any already answered)
1. "What's your project called?"
- Extract exact spelling, capitalization, and any tagline they mention.
2. "Give me the elevator pitch -- what does it do and why should someone care?"
- If too technical: "Imagine explaining this to someone who might use it but isn't a developer. What problem does it solve for them?"
- If overly broad: "If you had to pick the one thing that makes this worth checking out, what is it?"
3. "Who are your target users? Developers? Designers? Non-technical teams? Everyone?"
- If they say "developers": "What kind -- frontend, backend, DevOps, data? What stack or ecosystem?"
- If they say "everyone": "Who's shown the most interest so far, or who would you pitch to first?"
- If they have no users yet: "Who did you build this for originally? Whose problem were you solving?"
4. "What's the primary action you want a visitor to take? For example: sign up, start a free trial, join the waitlist, book a demo, star the repo, or try a live demo."
- If they list multiple: "Which one matters most right now -- the one you'd put on the biggest button?"
- Map their answer to button text internally (e.g., "try it out" --> "Try It Free").
### What to Extract From Phase A
| Field | Example |
|-------|---------|
| Project name (exact spelling) | "Railtrack" |
| Elevator pitch (1-2 sentences) | "Open-source deployment pipeline that catches breaking changes before they hit production" |
| Target users | "Backend engineers working with Kubernetes, mostly at mid-size companies" |
| Primary CTA | "Start free trial" --> button text "Start Free Trial" |
| Bonus (if volunteered) | Repo URL, existing docs, tech stack, pricing model |
### Transition Rule
Move to Phase B when you have: project name + elevator pitch + target users + primary CTA. These four are non-negotiable.
If the user tries to skip ahead ("just generate something, it's a CLI tool for managing databases"):
- Extract what you can from their statement.
- Ask only the essential gaps (CTA + brand feel at minimum -- 2 questions).
- Default everything else with reasonable choices and tell them what you defaulted: "I'm going with a clean, modern look with a dark theme since this is a dev tool. We can adjust after you see it."
---
## Phase B: Brand Feel
**Goal:** Understand the emotional impression the brand should make and whether it leans light or dark.
### Core Questions
1. "Pick 3 words that describe how your product should come across to visitors."
- Offer a menu if they hesitate:
> Some options: bold, clean, minimal, technical, friendly, trustworthy, modern, playful, fast, precise, approachable, sophisticated, sharp, innovative, reliable, developer-friendly, premium, fun, lightweight, serious
- Accept any 3 words, even ones not on the list.
- If they say "I don't know" or "I haven't thought about it": "Think about the products you respect most. When you land on Stripe's page, or Linear's, or Tailwind's -- what feeling do you get? What's the equivalent for your product?"
2. "Name a product or site whose landing page you admire. Doesn't have to be in your space."
- If they name one: "What specifically do you like about it -- the colors, the layout, the overall vibe, the copy?"
- If they can't think of one: skip and move on. Don't push.
- Common developer references and what they imply:
- Stripe: clean, premium, lots of whitespace, subtle gradients
- Linear: dark, minimal, fast-feeling, sharp
- Vercel: dark/light contrast, geometric, developer-focused
- Tailwind: bright, colorful, friendly, well-structured
- Supabase: dark, green accent, technical but approachable
- Raycast: dark, polished, product-focused
3. "Light theme or dark theme?"
- This maps directly to colorMode (LIGHT vs DARK).
- Developers building dev tools tend toward dark. Products targeting non-technical users tend toward light. Note this to the user if they're unsure: "Dev tools usually go dark, consumer-facing products usually go light. What fits your audience?"
### Follow-Up Triggers
- **Contradictory adjectives** (e.g., "playful" + "serious"): "Interesting combination. If they conflict, which wins -- the approachable side or the authoritative side?"
- **All-technical** (e.g., "fast, reliable, scalable"): "Those describe the product. Now think about the page itself -- when someone sees it for the first time, what impression should it leave?"
- **"Just make it look professional"**: "Professional covers a lot of ground -- Stripe-professional or IBM-professional? Clean and spacious, or dense and information-rich?"
### Adjective Interpretation
Map the user's 3 adjectives to a Stitch `colorVariant` using the Color Variant Decision Tree in `references/stitch-architecture.md`. That file contains the full mapping table with rationale and example products.
### Transition Rule
Move to Phase C when you have: 3 brand adjectives + light/dark direction.
The reference product is a bonus signal, not a blocker.
---
## Phase C: Visual Preferences
**Goal:** Determine color, font feel, and shape direction for the design system.
### Core Questions
1. Color direction:
- "Do you have existing brand colors -- maybe from your app's UI, your docs site, or your repo?"
- If yes with a hex, Tailwind class, or CSS variable: use it directly.
- If yes with a name ("indigo," "the GitHub green"): translate to hex.
- If no: "What color comes to mind for your product? Or think about what feeling you want -- trust (blues), energy (oranges/reds), growth (greens), creativity (purples)."
2. Font feel:
- "For the landing page text, do you prefer something clean and geometric (like Inter or DM Sans), or something with more character and weight (like a serif)?"
- If they say "monospace" or reference a code font: "Monospace works in code, but on a marketing page it can feel cold. I'd recommend a clean sans-serif that has a similar technical feel -- like Space Grotesk or Geist. You good with that?"
3. Shape direction:
- "Sharp corners or rounded? Think about the buttons in your UI -- same direction?"
- Developers usually have a strong instinct here from their framework's defaults (Tailwind `rounded-lg`, MUI's defaults, etc.).
### Common Color Name to Hex Mapping
| User says | Hex | Notes |
|-----------|-----|-------|
| Indigo / Tailwind indigo | #4F46E5 | Common dev tool accent |
| Navy / dark blue | #1E3A5F | Professional, trust |
| Royal blue | #1E40AF | Confident, established |
| Red | #DC2626 | Energy, urgency |
| Orange | #EA580C | Warmth, friendliness |
| Green | #16A34A | Growth, open source |
| Teal / cyan | #0D9488 | Modern, fresh |
| Purple / violet | #7C3AED | Creative, premium |
| Amber / gold | #D97706 | Warmth, quality |
| Charcoal / near-black | #1F2937 | Use instead of pure #000 |
### Transition to Generation
Confirm before proceeding:
> "Here's the brand direction:
> - Project: {name} -- {elevator pitch}
> - Target users: {users}
> - Primary CTA: {action}
> - Brand feel: {adj1}, {adj2}, {adj3}
> - Style: {light/dark} theme, {color} accent, {clean/serif} typography, {sharp/rounded} shapes
>
> Look right?"
If the user corrects anything, update before proceeding.
Then: "Setting up the design system and generating the first draft. Takes about a minute."
### Edge Cases
- **User wants to skip entirely**: "Just make me a landing page, it's a CLI for managing Postgres backups." Extract what you can. Ask only CTA + brand feel (2 questions max). Default the rest and tell them: "I'm defaulting to dark theme, clean sans-serif, rounded corners, and a blue accent. We can change any of it after you see the first draft."
- **User shares their app URL, repo, or docs**: Don't fetch or parse the linked content. Ask the user to describe the existing look in their own words — primary color, light vs dark theme, typography direction, overall vibe. Confirm their description: "So your app is dark theme, indigo accents, clean sans-serif — should the landing page match that, or go in a different direction?"
- **User pastes a README or description**: Parse it for project name, pitch, target users, and features. Skip to the gaps.
---
## Feedback Facilitation Guide
### After Each Generation, Ask These Three Questions
1. **First impression**: "What's your gut reaction in the first 5 seconds?"
2. **Brand alignment**: "Does this feel like YOUR product?"
3. **Issues**: "Is there anything that feels wrong, missing, or not quite right?"
Do not ask "Do you like it?" -- this produces yes/no answers with no actionable information.
### Guiding the User Toward Useful Feedback
Developers often give feedback in implementation terms. Redirect toward design intent:
| User says | They likely mean | Follow-up to ask |
|-----------|-----------------|-----------------|
| "I don't like it" | Overall mismatch | "Is it the colors, the layout, or the overall mood that feels off?" |
| "It's boring" / "too plain" | Low visual energy | "Would you like more color contrast, a bolder layout, or both?" |
| "It's too busy" | Visual clutter | "Which part feels most cluttered? The hero, the features section, or everything?" |
| "It looks like a template" | Generic, no personality | "What would make it feel more specific to your product? A different layout, stronger colors, more distinctive typography?" |
| "It's too marketing-y" | Over-designed, too much flair | "Should we strip it down -- less decoration, more information density, tighter layout?" |
| "The colors are off" | Palette mismatch | "Too bright, too dull, or just the wrong hue?" |
| "More whitespace" / "too cramped" | Layout density | Edit: "Add more breathing room between sections" |
| "Needs more padding" / "font-size too small" | CSS-level observation | Translate: "Which section feels too tight or hard to read?" |
| "Make it pop" | Weak visual hierarchy | "What should stand out more -- the headline, the CTA button, or the overall contrast?" |
| "I love the layout but not the colors" | Partial approval | Variant signal: keep layout, change COLOR_SCHEME only |
| "Show me something totally different" | Fundamental rethink | REIMAGINE creative range |
| "Can I just edit the HTML?" | Wants direct control | "Stitch handles the regeneration cycle, so let's iterate here first -- then you can hand-edit the final output." |
### Design Dimensions to Highlight for the User
When presenting a design for review, draw the user's attention to specific elements. These help non-designers evaluate design without knowing design vocabulary:
- **Message clarity**: "Can a visitor tell what your product does within 5 seconds of landing here?"
- **CTA visibility**: "How quickly did your eye find the primary button? Could you miss it?"
- **Color impression**: "Do these colors match the feel you described -- {their 3 adjectives}?"
- **Reading flow**: "When you scan top to bottom, does the section order make sense for someone discovering your product?"
- **Credibility**: "If you were evaluating this product for the first time, does this page make it look like a real, maintained project?"
### Steering Toward Approval
- After positive-but-uncommitted feedback: "What's the one thing that would make this feel right?"
- After choosing from options: "Want me to tweak anything on this one, or lock it in?"
- After 3+ rounds of minor tweaks: "This is looking solid. Want to keep iterating or ship it and refine later?"
- After 5+ rounds: "What's the single most important change left? Let's nail that one thing."
Developers often prefer to ship something decent and iterate rather than perfecting before launch. If you sense this, offer the exit: "This is in a good place. Want me to bundle it so you can deploy and see how it looks in the real context?"
### Feedback Priority Framework
Help users separate critical from cosmetic:
1. **Must fix**: The page doesn't communicate what the product does, or the CTA is unclear/missing.
2. **Should improve**: The mood doesn't match the brand direction, or a section is missing/unnecessary.
3. **Nice to have**: Font weight preference, exact shade of a color, spacing tweaks.
Guide users to address category 1 first, then 2, then 3. This prevents endless loops on cosmetic details while structural problems persist.
references/state-and-pitfalls.md
# State Management, Pitfalls & Templates
## metadata.json Schema
```json
{
"projectId": "",
"projectTitle": "",
"designSystemId": "",
"screens": {
"desktop": {
"current": "",
"history": []
},
"mobile": {
"current": "",
"history": []
}
},
"interview": {
"projectName": "",
"description": "",
"targetUsers": "",
"cta": "",
"brandFeel": [],
"colorMode": "",
"primaryColor": "",
"colorVariant": "",
"headlineFont": "",
"bodyFont": "",
"roundness": ""
},
"iterationCount": 0,
"status": "interview"
}
```
## State Management Rules
- Create `.stitch/` directory at project start.
- Write `metadata.json` after every state-changing operation (project creation, design system creation, screen generation, edit, variant selection, approval).
- **Status flow:** `interview` --> `designing` --> `approved` --> `delivered`
- If `metadata.json` exists when the skill starts:
- `interview`: resume the interview from where it left off (check which fields are populated).
- `designing`: open the last saved HTML in the browser and resume the review loop.
- `approved`: proceed to Phase 4 delivery.
- `delivered`: inform the user the bundle has already been created and ask if they want to revise.
---
## Common Pitfalls
| Pitfall | Wrong | Right |
|---------|-------|-------|
| Letting user skip brand interview | "Sure, I'll just generate something" | "5 minutes of brand questions saves you 5 rounds of 'this doesn't feel right'" |
| Asking for image uploads | "Can you share your logo?" | Never ask. If user sends one, extract style and save original. |
| Translating CSS feedback literally | Passing "add padding-top: 40px" to Stitch | Translate to design intent: "Add more breathing room above the headline" |
| Overloading prompts | 500-word generation prompt | 6-8 sentences. One sentence per section. |
| Skipping browser preview | Describing the result in text | Always download the HTML and open it in the browser. |
| Retrying slow generation | Calling generate again after 30 seconds | Wait. Use `get_screen` to check if it completed. |
| Skipping update_design_system | Only calling create_design_system | Must call update immediately after create. |
| Hardcoding tool names | `create_project(...)` | Discover namespace via `list_tools` first. |
| Ignoring output_components | Skipping Stitch suggestions | Present any generation suggestions to the user. |
| Too many interview questions | 20-question survey | 10 questions max across 3 phases. |
---
## DEPLOY.md Template
Use this template when generating the deployment checklist for the bundle:
```markdown
# {Project Name} -- Landing Page Deployment
## What's In This Bundle
- `index.html` -- Landing page (desktop layout), generated by Stitch
- `mobile.html` -- Mobile-optimized version (if applicable)
- `design/DESIGN.md` -- Brand design system and rationale
- `design/color-tokens.json` -- Design tokens for use in your app's theme
- `assets/` -- Source images for integration (logos, screenshots you provided)
## Design Tokens
- Primary Color: {color name} ({hex})
- Headline Font: {font name} (Google Fonts: {family name})
- Body Font: {font name} (Google Fonts: {family name})
- Border Radius: {roundness description} ({px value})
- Color Mode: {Light/Dark}
## Deployment Checklist
1. Replace placeholder images with real product screenshots or photos
2. Update the CTA link to point to: {CTA destination}
3. If you provided images in `assets/`, swap them into the HTML where placeholders appear
4. Add your analytics snippet (Plausible, PostHog, Google Analytics, etc.)
5. Verify Google Fonts load correctly for: {headline font}, {body font}
6. Test on mobile before going live
## Deployment Options
- **Static host:** Drop `index.html` into Vercel (`vercel deploy`), Netlify (`netlify deploy`), or GitHub Pages
- **Integrate with existing site:** Copy the HTML into your framework's landing route and adjust paths
- **Custom domain:** Point your domain's DNS to your hosting provider per their docs
## Design Decisions
{2-3 sentences explaining key choices made during the session}
```
references/stitch-architecture.md
# Stitch Architecture Reference
Stable patterns for working with Stitch. This file covers concepts and taxonomies that remain consistent across SDK versions. For the current API surface (parameter names, return shapes, enum values), the authoritative source is the SDK repository linked in the Stitch Documentation section of SKILL.md.
---
## Stitch Conceptual Model
- **Project**: Top-level container. One project per landing page engagement. Contains screens and a design system.
- **Screen**: A single generated UI design. Has associated HTML and a screenshot, both available as download URLs. Edits produce new screen versions; originals are preserved and can be revisited.
- **Design System**: Project-wide visual tokens (colors, fonts, shapes, spacing). Applies consistently to all screens. Described in semantic language, not CSS.
- **Generation is asynchronous**: Screen generation can take 1-3 minutes. Do NOT retry a generation call if it seems slow. Use `get_screen` or `list_screens` to check completion status.
- **Assets are URLs**: Both `getHtml()` and `getImage()` return download URLs, not inline content. Download the files using whatever tools are available.
- **Namespace varies**: Stitch MCP tool names may be prefixed differently depending on the server configuration. Always discover the prefix via `list_tools` at startup.
---
## Font Personality Guide
Stitch supports 28 font enums. Use this guide to select fonts based on the brand personality established during the interview. Always select both a headline font and a body font.
### Modern / Clean Sans-Serif
For brands described as: modern, clean, minimal, technical, sharp
| Font Enum | Character | Good for |
|-----------|-----------|----------|
| PLUS_JAKARTA_SANS | Geometric, friendly, highly readable | Default modern choice |
| DM_SANS | Slightly rounded, warm modern | Approachable SaaS |
| GEIST | Sharp, contemporary | Dev tools, Vercel-style products |
| SORA | Geometric with personality | Creative tech, design tools |
| SPACE_GROTESK | Technical, spacious | Engineering tools, data products, APIs |
| IBM_PLEX_SANS | Structured, authoritative | Enterprise, infrastructure |
| INTER | Neutral, ubiquitous | Safe default (may feel generic) |
### Warm / Friendly Sans-Serif
For brands described as: warm, friendly, approachable, inviting
| Font Enum | Character | Good for |
|-----------|-----------|----------|
| NUNITO_SANS | Rounded, soft | Consumer apps, community platforms |
| RUBIK | Slightly rounded, substantial | Collaboration tools, social products |
| LEXEND | Designed for reading ease | Education, accessibility-focused tools |
| MANROPE | Geometric but warm | Lifestyle products, team tools |
### Professional / Corporate
For brands described as: professional, trustworthy, established, reliable
| Font Enum | Character | Good for |
|-----------|-----------|----------|
| PUBLIC_SANS | Government-grade clarity | Compliance, security, finance tools |
| SOURCE_SANS_THREE | Clean professional | Consulting, healthcare tech |
| WORK_SANS | Straightforward workhorse | Utility tools, productivity |
| HANKEN_GROTESK | Crisp, Nordic | Design systems, architecture |
| ARIMO | Familiar, Arial-like | Conservative industries, B2B |
### Traditional / Elegant Serif
For brands described as: elegant, premium, refined, classic
| Font Enum | Character | Good for |
|-----------|-----------|----------|
| NEWSREADER | Editorial, magazine | Content platforms, publishing tools |
| LIBRE_CASLON_TEXT | Classic, bookish | Writing tools, knowledge bases |
| EB_GARAMOND | Old-world elegance | Premium services, high-end products |
| LITERATA | Refined, warm | Boutique SaaS |
| SOURCE_SERIF_FOUR | Warm, readable serif | Professional services |
| DOMINE | Sturdy, readable | Finance, real estate platforms |
| NOTO_SERIF | Comprehensive, global | International products |
### Display / Statement (headline only -- pair with a neutral body font)
For brands that want a distinctive headline presence:
| Font Enum | Character | Good for |
|-----------|-----------|----------|
| EPILOGUE | Distinctive, editorial | Creative agencies, design tools |
| BE_VIETNAM_PRO | Unique character | Consumer products, marketplaces |
| SPLINE_SANS | Technical, precise | Engineering tools, SaaS |
| MONTSERRAT | Geometric, bold | Marketing tools, events platforms |
| METROPOLIS | Urban, strong | Fitness apps, bold brands |
### Recommended Pairings
| Product type | Headline | Body | Feel |
|--------------|----------|------|------|
| SaaS / web app | SORA | DM_SANS | Clean and approachable |
| Dev tool / CLI / API | GEIST | SPACE_GROTESK | Technical and sharp |
| Open source project | PLUS_JAKARTA_SANS | INTER | Open, readable, neutral |
| Developer portfolio | EPILOGUE | LITERATA | Distinctive and refined |
| B2B / enterprise | HANKEN_GROTESK | SOURCE_SANS_THREE | Authoritative and clear |
| Consumer product | PLUS_JAKARTA_SANS | NUNITO_SANS | Warm and welcoming |
| Data / analytics | SPACE_GROTESK | IBM_PLEX_SANS | Technical and structured |
| Premium / design tool | EB_GARAMOND | INTER | Elegant with readable body |
---
## Color Variant Decision Tree
Stitch design systems accept a `colorVariant` enum that controls how the palette is generated from the custom color. Use the brand adjectives from the interview to select the right variant.
| Brand personality | colorVariant | Rationale | Example products |
|-------------------|-------------|-----------|-----------------|
| Bold, vibrant, energetic | VIBRANT | High saturation, dynamic | Marketing tools, social apps, community platforms |
| Clean, minimal, technical | NEUTRAL | Muted, restrained | Dev tools, APIs, infrastructure products |
| Sophisticated, subtle | TONAL_SPOT | Nuanced tonal variations | Design tools, analytics platforms, B2B SaaS |
| Dramatic, singular, focused | MONOCHROME | Single-hue depth | Portfolio sites, premium tools, focused products |
| Playful, expressive, creative | EXPRESSIVE | Wide chromatic range | Consumer apps, creative tools, marketplaces |
| True-to-existing-brand | FIDELITY | Stays closest to custom color | Any product with established brand colors |
| Earthy, natural, organic | CONTENT | Warm, content-derived | Wellness apps, sustainability, outdoor |
| Whimsical, festive, diverse | RAINBOW | Full chromatic variety | Creative platforms, community tools |
| Fresh, colorful, cheerful | FRUIT_SALAD | Varied but coherent | Consumer apps, education, social |
### Default Color Suggestions
When the user has no existing brand colors, suggest based on desired emotion:
| Desired emotion | Suggested hex | Color description |
|----------------|--------------|-------------------|
| Trust, reliability | #1E40AF | Deep blue |
| Stability, professionalism | #1E3A5F | Navy |
| Energy, passion, urgency | #DC2626 | Red |
| Warmth, friendliness | #EA580C | Warm orange |
| Growth, health, open source | #16A34A | Green |
| Modern, refreshing | #0D9488 | Teal |
| Creativity, premium | #7C3AED | Purple |
| Technical, developer-focused | #4F46E5 | Indigo |
| Warmth, quality, heritage | #D97706 | Amber |
| Neutrality, sophistication | #374151 | Slate gray |
---
## Prompt Engineering Patterns
### Generation Prompt Template
```
A {DESKTOP|MOBILE} landing page for "{projectName}", {one-sentence description}.
Hero: {headline concept} with a clear "{CTA button text}" button.
Target users: {target user description}.
Mood: {adj1}, {adj2}, {adj3}.
Sections:
1. Hero with headline, subheadline, and primary call-to-action
2. {Second section based on product type}
3. {Third section}
4. {Fourth section}
5. Footer with links and secondary call-to-action
```
Select sections based on product type (see Section Taxonomy below).
### Prompt Guidelines
**Do:**
- Describe layout in terms of sections and content purpose
- Mention the mood/feel even though the design system also encodes it (reinforcement helps)
- Specify CTA button text explicitly (e.g., "Start Free Trial")
- Keep prompts to 6-8 sentences maximum
- Name specific section types (hero, testimonials, features, pricing)
**Do not:**
- Write CSS, HTML, or code in the prompt
- Reference pixels, padding, margins, or breakpoints
- Ask for animations or interactivity (Stitch generates static HTML)
- List more than 5-6 sections (overloading degrades quality)
- Use vague instructions ("make it nice") -- be specific about structure
### Edit Prompt Patterns
| Change type | Prompt pattern |
|------------|---------------|
| Layout reorder | "Move the testimonials section above the features section" |
| Color shift | "Make the hero background darker" or "Use a warmer tone for the section backgrounds" |
| Typography | "Make the headline larger and bolder" |
| Content swap | "Change the headline to '{exact text}'" |
| CTA emphasis | "Make the call-to-action button more prominent with higher contrast" |
| Remove element | "Remove the third feature card" |
| Add section | "Add a pricing section before the footer" |
| Whitespace | "Add more breathing room between sections" |
### Variant Prompt Patterns
| Intent | Prompt | Suggested settings |
|--------|--------|--------------------|
| Subtle refinement | "Polish the typography and spacing" | REFINE, aspects: [TEXT_FONT, LAYOUT] |
| Color exploration | "Try warmer color palettes" | EXPLORE, aspects: [COLOR_SCHEME] |
| Layout alternatives | "Show different ways to arrange the hero section" | EXPLORE, aspects: [LAYOUT] |
| Broad exploration | "Try a different approach to this page" | EXPLORE, aspects: [LAYOUT, COLOR_SCHEME, IMAGES] |
| Total rethink | "Reimagine this page from scratch" | REIMAGINE, all aspects |
---
## Landing Page Section Taxonomy
### Standard Sections (in suggested order)
| # | Section | Purpose | Include when |
|---|---------|---------|-------------|
| 1 | Hero | Headline + subheadline + primary CTA + optional visual | Always (first section) |
| 2 | Social Proof Bar | Logos of users/companies, GitHub stars, "used by X teams" | Product has notable adopters or metrics |
| 3 | Problem / Solution | What pain point you solve and how | Target users have a specific, articulable problem |
| 4 | Features / Benefits | 3-4 value propositions with icons | Product has multiple distinct capabilities |
| 5 | How It Works | 3-step process or workflow | Product has a clear usage flow (install, configure, run) |
| 6 | Code Snippet / Demo | Example usage, CLI output, or API call | Dev tools, CLIs, SDKs, APIs |
| 7 | Integrations | Logos of compatible tools/platforms | Product connects to an ecosystem |
| 8 | Testimonials | 2-3 user quotes or case studies | Product has user feedback or endorsements |
| 9 | Pricing | Tiers, free/paid, or open source badge | When pricing model is a selling point |
| 10 | FAQ | 4-6 common questions | When the product needs explanation |
| 11 | About / Story | Brief founder or team narrative | Personal brands, indie projects |
| 12 | Final CTA | Repeat primary action with urgency | Always (second-to-last) |
| 13 | Footer | Links, social, legal, GitHub link | Always (last) |
### Section Selection by Product Type
| Product type | Recommended sections |
|--------------|---------------------|
| SaaS / web app | Hero, Social Proof, Features, How It Works, Pricing, Testimonials, Final CTA, Footer |
| Dev tool / CLI | Hero, Code Snippet, Features, How It Works, Integrations, Final CTA, Footer |
| API / SDK | Hero, Code Snippet, Features, Integrations, Pricing, FAQ, Final CTA, Footer |
| Open source project | Hero, Code Snippet, Features, Social Proof (stars/contributors), About, Final CTA, Footer |
| Developer portfolio | Hero, Featured Projects, Testimonials, About, Final CTA, Footer |
| Side project / indie product | Hero, Problem/Solution, Features, Pricing, FAQ, Final CTA, Footer |
| Agency / consultancy | Hero, Problem/Solution, How It Works, Testimonials, Social Proof, Final CTA, Footer |
---
## Design System Quick Reference
### Roundness Values
| Enum | Radius | Feel | Tailwind parallel | Typical use |
|------|--------|------|-------------------|-------------|
| ROUND_FOUR | 4px | Sharp, precise | `rounded` | Fintech, enterprise, dev tools |
| ROUND_EIGHT | 8px | Balanced, modern | `rounded-lg` | Default for most products |
| ROUND_TWELVE | 12px | Soft, friendly | `rounded-xl` | Consumer apps, SaaS |
| ROUND_FULL | Pill/full circle | Playful, bold | `rounded-full` | Startups, creative, badges |
### Design System Creation Sequence
1. Call `create_project` with the project name as the title
2. Build the DesignSystem object using the translation mappings from the interview
3. Call `create_design_system` with the project ID
4. Immediately call `update_design_system` -- this is required to render the system; create alone is not sufficient
5. Save the project ID and design system asset ID to `.stitch/metadata.json`
### Applying a Design System to Existing Screens
This is the step that requires careful data handling:
1. Call `get_project` with the project name to retrieve `screenInstances`
2. Each screenInstance contains two required fields:
- `id` -- the instance ID (different from screen ID)
- `sourceScreen` -- resource name in format `projects/{project}/screens/{screen}`
3. Build a `selectedScreenInstances` array containing objects with both `id` and `sourceScreen`
4. Call `apply_design_system` with `projectId`, `assetId` (from the design system), and `selectedScreenInstances`
5. Re-fetch screens after applying to get updated HTML
Common mistake: using the screen ID as the instance ID. They are different values. The instance ID comes from the `screenInstances` array in the `get_project` response.