# Internal Style Picker **Shared instructions: [shared-instructions.md](../../../../shared/shared-instructions.md)** — read first. A self-contained moodboard-before-build reference for `/design-system`. Three named directions, each anchored in real-world reference apps the user already knows. Output is a single HTML page with three phone-frame mockups of the same screen rendered three different ways — user picks one (or describes a hybrid), `/design-system` locks the choice into the design system, downstream agents cascade from it. ## When to use - **Auto** — used by `/create-mobile-app` through `/design-system` - **Sub-step** — used by `/design-system` as a folded direction picker. In this mode, the style picker renders the 3-up, asks the user, and returns the picked direction — but does NOT write the full design system spec (that's `/design-system`'s job). - **After complaint** — user says "this doesn't feel right" → re-run `/design-system --reskin` (which calls this sub-step internally) ## When NOT to use - The user has already specified a brand reference app or design system (no need for a 3-up picker — go straight to that) - The plan declares an industry that maps unambiguously to one direction AND the user said "use the industry default" (one preview is enough) - Sub-skill of another skill that's already in plan mode (would create a duplicate gate) ## Inputs - `working_dir` — absolute path to the project root (must contain `native-app-plan.md`) - Optional: `target_screen` — screen name to render (defaults to the most representative; see Step 2) - Optional: `default_direction` — `inspection | saas | product` to highlight as the recommended pick (defaults to keyword-inferred from app name + purpose) - Optional: `sub_step_mode` — `true` when invoked by `/design-system`. Changes behavior: - Still renders `_design_vibe.html` and asks the user - Returns picked direction + merged dimensions to caller - Does NOT write `## Design Direction` to plan (caller does that) - Accepts `brand_notes` and `logo_palette` for tinting the 3-up - Optional: `brand_notes` — free-text brand notes to display as recommendation banner - Optional: `logo_palette` — extracted hex values from `--logo` to tint vibe options ## Workflow 1. Verify plan + pick the target screen 2. Pick the recommended default direction 3. Render 3-up `_design_vibe.html` 4. Open in browser (standalone runs only; with cross-platform fallback) 5. Ask the user 6. Write `## Design Direction` block + return --- ## Step 0 — Read the references Before doing anything else, load the direction bundles. These are the source of truth for what each direction means: - [`design-directions.md`](./design-directions.md) — overview + reference-app gestalts - [`direction-inspection.md`](./direction-inspection.md) — full Inspection bundle (dark slate + safety orange — outdoor-only opt-in) - [`direction-polished-inspection.md`](./direction-polished-inspection.md) — full Polished-Inspection bundle (white + Power-Platform green — MVP default for zero-click flow, NOT shown in 3-up picker) - [`direction-saas.md`](./direction-saas.md) — full SaaS bundle - [`direction-product.md`](./direction-product.md) — full Product bundle - [`design-bundle-schema.md`](./design-bundle-schema.md) — what gets written into the plan - [`brand-examples.md`](./brand-examples.md) — real-world brand examples (Uber, Linear, Intercom, Sentry) + security rules for user inputs Also read once: [`shared/references/tamagui-html-mapping.md`](../../../../shared/references/tamagui-html-mapping.md) Section 4 (phone frame template) — the HTML scaffolding for each preview. ### Brand example files (local copies) These are pre-loaded design systems from real-world apps — use as `--brand-doc` input or inspiration: - [`uber-design.md`](./uber-design.md) — mobile-first, field drivers, pill buttons - [`linear-design.md`](./linear-design.md) — enterprise SaaS, dark mode, keyboard-first - [`intercom-design.md`](./intercom-design.md) — enterprise chat/support, cream canvas - [`sentry-design.md`](./sentry-design.md) — developer tools, dark purple, ops monitoring --- ## Security — User Input Validation **MUST apply before processing any user-provided content** (`--brand-doc`, hybrid descriptions, pasted brand specs). ### File inputs (`--brand-doc`) ``` 1. Size check — max 50 KB, reject larger 2. Extension — allow: .md, .markdown, .txt, .yaml, .yml, .json 3. Path safety — reject: "..", "~", absolute paths outside working_dir 4. Content scan — strip: