design-app
Generate a complete design system (DESIGN.md + reference screenshots) for an app before building code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate a complete design system (DESIGN.md + reference screenshots) for an app before building code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Analyze every interactive UI element — classify effects, detect broken promises, map cross-screen dependencies
Full QA procedure — interaction map, unit tests, Maestro flows, visual review
Add/remove features, fix bugs, redesign — keeping code clean and artifacts in sync
Generate a new mobile app — full pipeline or code-only if PRD already exists
Run full QA — interaction map, unit tests, Maestro UI tests, visual review
Read screenshots and verify UI against DESIGN.md, reference mockups, and quality checklist
| name | design-app |
| description | Generate a complete design system (DESIGN.md + reference screenshots) for an app before building code |
| disable-model-invocation | true |
Generate a design system with visual references. Run after PRD, before building.
Output:
apps/<slug>/spec/DESIGN.md — design tokens and rules (text)apps/<slug>/spec/design-screens/ — reference screenshots of each screen (PNG)App: $ARGUMENTS
Read apps/<slug>/spec/prd.md:
If Stitch MCP is available:
create_project — create Stitch project with app name and description from PRDapps/<slug>/spec/design-screens/get_screen_image → save the returned image as apps/<slug>/spec/design-screens/<screen-name>.png
b. get_screen_code → parse HTML/CSS to extract exact design tokens
Both calls are MANDATORY for every screen. Saving screenshots is NOT optional.If Stitch is NOT available:
Write to apps/<slug>/spec/DESIGN.md.
If Stitch was used: populate with EXACT values parsed from Stitch CSS — not approximations. If no Stitch: generate values based on PRD §6 + design rules below.
Required structure:
# <App Name> — Design System: "<Design Name>"
**Philosophy**: <1-2 sentences>
**Source**: <Google Stitch / Generated from PRD>
---
## Color Palette
| Token | Hex | Usage |
|-------|-----|-------|
| background | #... | Base canvas |
| surface | #... | Card/modal fills |
| surface-container-low | #... | Recessed sections |
| surface-container-high | #... | Elevated surfaces |
| primary | #... | Main actions, headers |
| primary-container | #... | Progress fills, selected states |
| on-surface | #... | Primary text |
| on-surface-variant | #... | Secondary/label text |
| secondary | #... | Secondary actions |
| secondary-container | #... | Accent highlights |
| outline-variant | #... | Ghost borders |
| error | #... | Error states |
### Dark Mode
| Token | Hex |
|-------|-----|
| inverse-surface | #... |
| inverse-on-surface | #... |
| inverse-primary | #... |
### Color Rules
- <specific rules from this design>
---
## Typography
**Font**: <font family>
| Scale | Size | Weight | Usage |
|-------|------|--------|-------|
| display-lg | ...px | ... | Hero numbers, key metrics |
| headline-md | ...px | ... | Section titles |
| body-md | ...px | ... | Body text |
| label-md | ...px | ... | Labels, captions |
---
## Spacing
| Token | Value | Usage |
|-------|-------|-------|
| spacing-xs | ...px | Tight clusters |
| spacing-sm | ...px | List item gaps |
| spacing-md | ...px | Container padding |
| spacing-lg | ...px | Section separation |
| spacing-xl | ...px | Major breaks |
---
## Shapes & Corners
- Buttons: <radius>px
- Cards: <radius>px
- Containers: <radius>px
---
## Elevation & Depth
- <approach and specific values>
---
## Components
### Primary Button
- Background: <hex>
- Text: <hex>
- Corner radius: <value>px
- Height: <value>px
### Cards
- Background: <hex>
- Corner radius: <value>px
- Padding: <value>px
### Bottom Navigation
- Tab count: <N>
- Active: <hex>
- Inactive: <hex>
- Icons: <library and style>
### <App-specific components>
- <detailed specs>
---
## Screens
### <Screen Name>
- Reference: `design-screens/<screen-name>.png`
- Layout: <description>
- Primary CTA: <what, where>
- Key elements: <list>
(One section per screen)
---
## Design Rules
- <rules specific to this design>
Colors: start from domain mood, generate full surface hierarchy (5-6 variants), tint all neutrals with primary hue, avoid pure black/gray.
Typography: one font family, 4 scale levels, consistent weight pairing.
Spacing: 5 tokens from 4-8px to 48-64px, generous whitespace between sections.
Components: every component has specific hex colors from palette, press/interaction states defined.
Screens: layout described as spatial arrangement, primary CTA named, key elements listed.
Show screenshots (if Stitch) or summary (if generated). Ask via AskUserQuestion:
question: "Design system ready. Review?"
header: "Design"
options:
- label: "Looks good"
description: "Save and proceed"
- label: "Adjust colors"
description: "Want different color direction"
- label: "Adjust style"
description: "Want different visual mood"
- label: "Show full DESIGN.md"
description: "Read the complete document"
When Stitch generates screens, save each as:
apps/<slug>/spec/design-screens/
├── home.png
├── detail.png
├── settings.png
├── history.png
└── onboarding.png
These are used by:
/build-app — Claude reads them to understand intended layout while coding/test-app — compare Maestro screenshots against reference screenshots/improve-app — verify UX changes still match the design intent/test-app verifies against reference screenshots