[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DKXZWT2SE9SMR5Y2S387GS":3,"skill-same:01M7DKXZWT2SE9SMR5Y2S387GS":44},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7DKXZWT2SE9SMR5Y2S387GS","design-directions",null,"foxinthehenhouse\u002Fapp-in-a-box","foxinthehenhouse","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F144333692?v=4","01M7DKXRK1CCGY9F45FYGWVD29","Kyle Fox","01M7DKXRKNG8A1ADJFXVH15RXT",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Fskills\u002Fdesign-directions\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: design-directions\nuser-invocable: false\ndescription: App in a Box's design-direction reference: the six archetypes, colour by construction (both palettes derived from one accent and one neutral hue with scripts\u002Fpalette.py), and the tokens v2 format with motion, type roles and elevation, contrast-checked in both modes. The prototype phase's visual designer follows it; also use it for a quick re-skin of an existing app.\n---\n\n# Design directions (reference)\n\n`$KIT` is the plugin root: `appbox.yaml` → `kit_root` if present, else\n`${CLAUDE_PLUGIN_ROOT}` (Claude Code) or the folder two levels above this file (Codex \u002F\npasted prompt).\n\nSince v0.6, phase 2 is `skills\u002Fprototype`: the founder picks a direction by switching\nbetween them in a clickable prototype of their whole app. This skill stays as the\n**direction reference** (the archetype table, how to derive the other mode, the tokens\nv2 shape) that `visual-designer` follows, and for a quick **re-skin** of an existing app\n(Steps 2 and 3 below). It is not a setup phase: it never writes `SCREENS.md` and never\ntouches `progress.design`, which the prototype phase owns.\n\nPeople can't choose a design system from adjectives. Show them their own app in\nthree coats of paint, and let them point.\n\n## Step 1: pick 3 directions from the archetype library\n\nChoose the three archetypes below that best fit `appbox.yaml` (target user,\nretention mechanic, sensitive data). Make them **genuinely different**. Every\ndirection ships **both** a light and a dark palette (the app follows the phone's\nsetting); pick which one each mockup shows first by the archetype's home mode.\n\n| Archetype | Feel | Good for | Type pairing | Radius | Motion (tokens) |\n|---|---|---|---|---|---|\n| **Calm** | Airy, soft neutrals, one muted accent (home: light) | Wellbeing, journaling, finance | Humanist sans (Figtree \u002F Hanken Grotesk \u002F Onest) | 16–24 | Slow fades: `standard` 260ms, gentle springs, press scale 0.98 |\n| **Athletic dark** | Near-black field, warm off-white ink, one hot accent (home: dark) | Fitness, performance, pro tools | Condensed grotesk + mono numerals (Archivo \u002F Barlow Semi Condensed \u002F Big Shoulders + JetBrains Mono \u002F Azeret Mono) | 12 | Snappy: `fast` 120ms, stiff springs (damping 22, stiffness 320) |\n| **Playful** | Saturated brand colour, chunky shapes, confetti moments (home: light) | Gamified habits, savings, kids-adjacent | Rounded sans (Fredoka \u002F Nunito) | 20–28 | Springy where you touch: presses and chips on springs damping ~9–12, press scale 0.95, `Celebration` on the payoff. Content still arrives on a curve that doesn't overshoot |\n| **Editorial** | Serif headlines, generous whitespace, paper tones (home: light) | Content, reading, learning | Serif + sans (Newsreader \u002F Source Serif 4 \u002F Literata \u002F Petrona + Public Sans \u002F the system sans) | 4–8 | Minimal: fades only, no springs |\n| **Clinical** | White\u002Fblue, dense information, high trust (home: light) | Health data, B2B, admin | System sans (SF Pro \u002F Roboto) | 8 | Almost none: `fast` fades |\n| **Neo-brutal** | Hard borders, flat blocks, loud type (home: either) | Creator tools, youth, novelty | Display grotesk (Bricolage Grotesque \u002F Familjen Grotesk \u002F Syne) | 0 | Hard cuts: `instant` durations, no easing flourish |\n\nThe type pairings are starting points, not the answer: pick the face from the\nproduct's world. The kit's **type library**, `$KIT\u002Fscripts\u002Fproto\u002Ffonts.json`, is where to\nlook first: about 45 families, each checked as SIL Open Font License 1.1 with no\nReserved Font Name (so the app can bundle them), tagged with a personality (humanist,\ngrotesk, geometric, condensed, rounded, serif display, serif text, mono), the roles it\nsuits and its weights, plus ready pairings (Young Serif + Albert Sans, Petrona +\nSchibsted Grotesk, Besley + Public Sans, Funnel Display + Funnel Sans, Sora + Fragment\nMono, Bodoni Moda + Jost, Big Shoulders + Azeret Mono, the Red Hat superfamily, Golos\nText + Martian Mono...). A direction whose display face is in the library also gets\nthe prototype's **Type** knob: the founder can swap it for another pairing with the\nsame personality, live. Every family this table names is in the library (or built in);\n`prototype.py fonts` checks that, so add a family to `fonts.json` before suggesting it\nhere. `prototype.py check` and the app's gates fail the families every\ngenerated app reaches for (Inter, Roboto as a loaded font, Open Sans, Lato, Montserrat,\nFraunces, Geist, Space Grotesk, Instrument, Plus Jakarta, Mona Sans, Recoleta, Arial,\nHelvetica). The phone's own system font is always fine. They also fail pure-grey\nneutrals, an accent that is the stock AI violet, and an easing curve that overshoots\n(`scripts\u002Fcheck_design.py`).\n\n**Colour by construction: derive the palette, don't hand-tune it.** Choose two things\nper direction, an **accent** (the hue that means something in the product's world) and\na **neutral hue** (usually the accent's, or a warm or cool step off it), and let the\nkit build both modes:\n\n```\npython3 \"$KIT\u002Fscripts\u002Fpalette.py\" derive --accent \"#BE400C\" --neutral-hue 60\n```\n\nIt prints `{\"light\": {...}, \"dark\": {...}}` with every key below. Each colour is a tone\nof an HCT tonal palette (Google's colour space for Material You, `scripts\u002Fhct.py`), and\ntone is the lightness contrast is measured from, so the pairs the validator checks are\nset roughly 50 tones apart: they pass `check_contrast.py` on the first try, for any hue.\nIn a prototype spec, skip the hexes entirely: give the direction `\"palette\": {\"accent\":\n\"#BE400C\", \"neutralHue\": 60}` (optionally `\"neutralChroma\"`, 4–24, default 6, for\ngreyer or more tinted neutrals) and `prototype.py` derives the colours itself; any\nkey you still set in `tokens.color` overrides just that colour. `palette.py ramp`\nprints the tonal palettes when you want to see the steps.\n\nWhat it does for you is what this section used to ask you to do by hand: it keeps the\naccent's hue and shifts its lightness per mode (*darker* on a pale ground, *lighter*\non a dark one); dark surfaces step **up** in lightness as they elevate (bg \u003C surface \u003C\nsurfaceRaised) because shadows vanish on dark grounds; neutrals are tinted toward the\nneutral hue, never pure grey. An accent on the stock AI violet is turned a few degrees\naway and `derive` says so: if that happens, pick a hue with a reason instead. Hand\ncolours (a brand's exact hex) are still allowed, and the same validator holds them to\nthe same rules.\n\n## Step 2: show the three coats of paint (re-skin only)\n\nIf `design\u002Fprototype.json` exists, replace its `directions` with the three new ones and\nrun `python3 \"$KIT\u002Fscripts\u002Fprototype.py\" check` then `render`: the founder switches\nlooks on their real screens, which beats any mockup. Otherwise write one\nself-contained HTML file, `design\u002Fdirections.html`:\n- Three phone frames (390×844) side by side, stacked on narrow screens.\n- Each frame shows **the user's core-loop screen** from `docs\u002Fproduct\u002FBRIEF.md`,\n  with realistic sample content in their domain, not lorem ipsum. Below it, show a\n  strip with the primary button, a card, a list row, an input, a chip row, a\n  skeleton line, an empty state and a toast: the kit's real components.\n- **A light\u002Fdark toggle per frame** (and one global): each direction's palettes are\n  CSS custom properties on the frame (`.a[data-mode=\"dark\"] { --bg: ... }`), so the\n  toggle proves both palettes, not just the flattering one.\n- **Motion preview in CSS** from the direction's motion tokens: the button scales to\n  `pressScale` on `:active` with the `fast` duration, the list rows enter with a\n  staggered fade + 8px rise (`enter` curve, `deliberate` duration), the skeleton\n  shimmers on the `loop` curve, the toast slides in, and a \"Celebrate\" button fires a\n  CSS confetti burst for playful directions. Wrap it all in\n  `@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }`,\n  the same promise the app makes.\n- Label each one with its archetype name and one line on why it fits.\n- Only inline CSS\u002FJS and Google Fonts. No build step.\n\nShow it to the user. If your environment can publish or preview HTML, use that.\nOtherwise give them the file path to open. Then ask (structured):\n\"Which direction?\" with the options A \u002F B \u002F C \u002F \"Mix: I'll describe\".\n\n## Step 3: write `design\u002Ftokens.json` (tokens v2)\n\nThis is the single source of truth. The renderer generates `mobile\u002Flib\u002Ftokens.ts`\n(both palettes + types), themes `app.json` (splash background per mode) and draws a\nplaceholder icon from it. Start from the kit's `template\u002Fdesign\u002Ftokens.json` and\nchange values; keep every key. For the colours, `palette.py derive --accent \u003Chex>\n--neutral-hue \u003Cdeg> --into design\u002Ftokens.json` replaces `color` and leaves the rest.\n\n```json\n{\n  \"name\": \"athletic-dark\",\n  \"version\": 2,\n  \"mode\": \"dark\",\n  \"color\": {\n    \"light\": {\n      \"bg\": \"#F7F6F3\", \"surface\": \"#FFFFFF\", \"surfaceRaised\": \"#FFFFFF\", \"control\": \"#EFEDE8\",\n      \"border\": \"#DAD7D0\", \"ink\": \"#16171A\", \"inkDim\": \"#4A4D55\", \"inkFaint\": \"#62656D\",\n      \"accent\": \"#BE400C\", \"onAccent\": \"#FFFFFF\", \"success\": \"#1B7F55\", \"warning\": \"#A15C00\",\n      \"danger\": \"#C0283F\", \"shadow\": \"#1A1A1A\"\n    },\n    \"dark\": {\n      \"bg\": \"#0C0D0F\", \"surface\": \"#16181C\", \"surfaceRaised\": \"#1D2025\", \"control\": \"#16181C\",\n      \"border\": \"#2E3238\", \"ink\": \"#EDE9E0\", \"inkDim\": \"#B8B4AA\", \"inkFaint\": \"#9A968D\",\n      \"accent\": \"#FF6B2C\", \"onAccent\": \"#0C0D0F\", \"success\": \"#3DDC97\", \"warning\": \"#FFB020\",\n      \"danger\": \"#FF6B6B\", \"shadow\": \"#000000\"\n    }\n  },\n  \"font\": { \"display\": \"Archivo\", \"body\": \"System\", \"mono\": \"Menlo\" },\n  \"type\": {\n    \"display\":   { \"font\": \"display\", \"size\": 40, \"lineHeight\": 46, \"weight\": \"700\", \"letterSpacing\": -0.8, \"maxScale\": 1.3 },\n    \"title\":     { \"font\": \"display\", \"size\": 28, \"lineHeight\": 34, \"weight\": \"700\", \"letterSpacing\": -0.4, \"maxScale\": 1.4 },\n    \"heading\":   { \"font\": \"display\", \"size\": 20, \"lineHeight\": 26, \"weight\": \"600\", \"letterSpacing\": -0.2, \"maxScale\": 1.6 },\n    \"body\":      { \"font\": \"body\", \"size\": 16, \"lineHeight\": 23, \"weight\": \"400\", \"letterSpacing\": 0, \"maxScale\": 2.0 },\n    \"secondary\": { \"font\": \"body\", \"size\": 14, \"lineHeight\": 20, \"weight\": \"400\", \"letterSpacing\": 0, \"maxScale\": 2.0 },\n    \"meta\":      { \"font\": \"body\", \"size\": 12, \"lineHeight\": 16, \"weight\": \"600\", \"letterSpacing\": 0.6, \"maxScale\": 1.6, \"uppercase\": true },\n    \"mono\":      { \"font\": \"mono\", \"size\": 14, \"lineHeight\": 20, \"weight\": \"500\", \"letterSpacing\": 0, \"maxScale\": 1.6 }\n  },\n  \"motion\": {\n    \"duration\": { \"instant\": 90, \"fast\": 140, \"standard\": 220, \"screen\": 320, \"deliberate\": 480, \"ambient\": 1400 },\n    \"easing\": { \"standard\": [0.2, 0, 0, 1], \"enter\": [0.05, 0.7, 0.1, 1], \"exit\": [0.3, 0, 0.8, 0.15], \"loop\": [0.45, 0, 0.55, 1] },\n    \"spring\": { \"snappy\": { \"damping\": 22, \"stiffness\": 320, \"mass\": 1 }, \"gentle\": { \"damping\": 20, \"stiffness\": 180, \"mass\": 1 }, \"bouncy\": { \"damping\": 12, \"stiffness\": 220, \"mass\": 1 } },\n    \"pressScale\": 0.97\n  },\n  \"elevation\": { \"none\": {...}, \"card\": {...}, \"raised\": {...}, \"overlay\": {...} },\n  \"opacity\": { \"disabled\": 0.45, \"pressed\": 0.12, \"scrim\": 0.45, \"muted\": 0.7 },\n  \"size\": { \"xs\": 12, \"sm\": 14, \"md\": 16, \"lg\": 20, \"xl\": 28, \"xxl\": 40 },\n  \"space\": { \"xs\": 4, \"sm\": 8, \"md\": 16, \"lg\": 24, \"xl\": 32, \"xxl\": 48 },\n  \"radius\": { \"sm\": 8, \"md\": 12, \"lg\": 20, \"pill\": 999 },\n  \"icon\": { \"glyph\": \"A\" },\n  \"minTapTarget\": 48\n}\n```\n\n- `mode` is the fallback when the phone reports no preference (and the icon's palette).\n- `maxScale` caps Dynamic Type per role (never below 1): body text must be allowed to\n  grow a lot; a 40pt display line less so.\n- `easing` values are cubic-bezier control points; `loop` must be symmetric (it runs\n  the skeleton shimmer back and forth).\n- A named `font` family (not built in) gets each weight its type roles use registered in\n  the app's `lib\u002Ffonts.ts` in the scaffold phase, or it silently falls back.\n- `motion.spring` drives the feel end to end: the prototype turns each spring into a\n  CSS `linear()` curve (screen changes, sheets, presses) and the app hands the same\n  numbers to Reanimated, so tune damping here, not per animation.\n- Optional `atmosphere` sets the direction's default light: `{\"mode\": \"none\" | \"glow\" |\n  \"field\", \"intensity\": \"low\" | \"medium\" | \"high\", \"grain\": true, \"surface\": \"solid\" |\n  \"glass\"}`. Leave it out for a soft glow with grain on solid surfaces. The founder can\n  change it in the prototype, and freeze writes the result (with the light colours and\n  their contrast-safe alpha) back into `atmosphere`.\n- The v1 shape (one flat `color` map) still works but locks the app to one mode.\n\nRules, all enforced by the validator, **in each mode**:\n- `ink`, `inkDim` and `inkFaint` each clear **4.5:1** on `bg`, `surface`,\n  `surfaceRaised` and `control`. `onAccent` clears 4.5:1 on `accent`.\n- `accent` clears **3:1** on `bg` and `surface` (tab tint, focus ring, icons).\n- `success` \u002F `warning` \u002F `danger` clear 3:1 on `bg` and `surface`; `danger` clears\n  4.5:1 (error text uses it). They always ship with an icon or text too.\n- Both palettes have exactly the same keys.\n\nValidate:\n\n```\npython3 \"$KIT\u002Fscripts\u002Fcheck_contrast.py\" design\u002Ftokens.json\n```\n\nA derived palette passes as it comes. If a hand-set colour fails, adjust its lightness\n(in the mode it names) until it passes, or derive it. **Don't drop the requirement.** Show the user the before\u002Fafter only if the\nchange is visible.\n\nSet `appbox.yaml` → `design.direction: \u003Cname>`. Leave `progress.design` as it is.\nThen re-render so the app picks the tokens up: run the same `render.py` command the\nscaffold used (values from `appbox.yaml`, **without** `--force`). Existing files are\nskipped; `mobile\u002Flib\u002Ftokens.ts`, the `app.json` theme and the brand icons are\nregenerated from the new tokens. Run `cd mobile && npm run gates` and open the app\nbefore calling the re-skin done.\n","# Design directions (reference)\n\n`$KIT` is the plugin root: `appbox.yaml` → `kit_root` if present, else\n`${CLAUDE_PLUGIN_ROOT}` (Claude Code) or the folder two levels above this file (Codex \u002F\npasted prompt).\n\nSince v0.6, phase 2 is `skills\u002Fprototype`: the founder picks a direction by switching\nbetween them in a clickable prototype of their whole app. This skill stays as the\n**direction reference** (the archetype table, how to derive the other mode, the tokens\nv2 shape) that `visual-designer` follows, and for a quick **re-skin** of an existing app\n(Steps 2 and 3 below). It is not a setup phase: it never writes `SCREENS.md` and never\ntouches `progress.design`, which the prototype phase owns.\n\nPeople can't choose a design system from adjectives. Show them their own app in\nthree coats of paint, and let them point.\n\n## Step 1: pick 3 directions from the archetype library\n\nChoose the three archetypes below that best fit `appbox.yaml` (target user,\nretention mechanic, sensitive data). Make them **genuinely different**. Every\ndirection ships **both** a light and a dark palette (the app follows the phone's\nsetting); pick which one each mockup shows first by the archetype's home mode.\n\n| Archetype | Feel | Good for | Type pairing | Radius | Motion (tokens) |\n|---|---|---|---|---|---|\n| **Calm** | Airy, soft neutrals, one muted accent (home: light) | Wellbeing, journaling, finance | Humanist sans (Figtree \u002F Hanken Grotesk \u002F Onest) | 16–24 | Slow fades: `standard` 260ms, gentle springs, press scale 0.98 |\n| **Athletic dark** | Near-black field, warm off-white ink, one hot accent (home: dark) | Fitness, performance, pro tools | Condensed grotesk + mono numerals (Archivo \u002F Barlow Semi Condensed \u002F Big Shoulders + JetBrains Mono \u002F Azeret Mono) | 12 | Snappy: `fast` 120ms, stiff springs (damping 22, stiffness 320) |\n| **Playful** | Saturated brand colour, chunky shapes, confetti moments (home: light) | Gamified habits, savings, kids-adjacent | Rounded sans (Fredoka \u002F Nunito) | 20–28 | Springy where you touch: presses and chips on springs damping ~9–12, press scale 0.95, `Celebration` on the payoff. Content still arrives on a curve that doesn't overshoot |\n| **Editorial** | Serif headlines, generous whitespace, paper tones (home: light) | Content, reading, learning | Serif + sans (Newsreader \u002F Source Serif 4 \u002F Literata \u002F Petrona + Public Sans \u002F the system sans) | 4–8 | Minimal: fades only, no springs |\n| **Clinical** | White\u002Fblue, dense information, high trust (home: light) | Health data, B2B, admin | System sans (SF Pro \u002F Roboto) | 8 | Almost none: `fast` fades |\n| **Neo-brutal** | Hard borders, flat blocks, loud type (home: either) | Creator tools, youth, novelty | Display grotesk (Bricolage Grotesque \u002F Familjen Grotesk \u002F Syne) | 0 | Hard cuts: `instant` durations, no easing flourish |\n\nThe type pairings are starting points, not the answer: pick the face from the\nproduct's world. The kit's **type library**, `$KIT\u002Fscripts\u002Fproto\u002Ffonts.json`, is where to\nlook first: about 45 families, each checked as SIL Open Font License 1.1 with no\nReserved Font Name (so the app can bundle them), tagged with a personality (humanist,\ngrotesk, geometric, condensed, rounded, serif display, serif text, mono), the roles it\nsuits and its weights, plus ready pairings (Young Serif + Albert Sans, Petrona +\nSchibsted Grotesk, Besley + Public Sans, Funnel Display + Funnel Sans, Sora + Fragment\nMono, Bodoni Moda + Jost, Big Shoulders + Azeret Mono, the Red Hat superfamily, Golos\nText + Martian Mono...). A direction whose display face is in the library also gets\nthe prototype's **Type** knob: the founder can swap it for another pairing with the\nsame personality, live. Every family this table names is in the library (or built in);\n`prototype.py fonts` checks that, so add a family to `fonts.json` before suggesting it\nhere. `prototype.py check` and the app's gates fail the families every\ngenerated app reaches for (Inter, Roboto as a loaded font, Open Sans, Lato, Montserrat,\nFraunces, Geist, Space Grotesk, Instrument, Plus Jakarta, Mona Sans, Recoleta, Arial,\nHelvetica). The phone's own system font is always fine. They also fail pure-grey\nneutrals, an accent that is the stock AI violet, and an easing curve that overshoots\n(`scripts\u002Fcheck_design.py`).\n\n**Colour by construction: derive the palette, don't hand-tune it.** Choose two things\nper direction, an **accent** (the hue that means something in the product's world) and\na **neutral hue** (usually the accent's, or a warm or cool step off it), and let the\nkit build both modes:\n\n```\npython3 \"$KIT\u002Fscripts\u002Fpalette.py\" derive --accent \"#BE400C\" --neutral-hue 60\n```\n\nIt prints `{\"light\": {...}, \"dark\": {...}}` with every key below. Each colour is a tone\nof an HCT tonal palette (Google's colour space for Material You, `scripts\u002Fhct.py`), and\ntone is the lightness contrast is measured from, so the pairs the validator checks are\nset roughly 50 tones apart: they pass `check_contrast.py` on the first try, for any hue.\nIn a prototype spec, skip the hexes entirely: give the direction `\"palette\": {\"accent\":\n\"#BE400C\", \"neutralHue\": 60}` (optionally `\"neutralChroma\"`, 4–24, default 6, for\ngreyer or more tinted neutrals) and `prototype.py` derives the colours itself; any\nkey you still set in `tokens.color` overrides just that colour. `palette.py ramp`\nprints the tonal palettes when you want to see the steps.\n\nWhat it does for you is what this section used to ask you to do by hand: it keeps the\naccent's hue and shifts its lightness per mode (*darker* on a pale ground, *lighter*\non a dark one); dark surfaces step **up** in lightness as they elevate (bg \u003C surface \u003C\nsurfaceRaised) because shadows vanish on dark grounds; neutrals are tinted toward the\nneutral hue, never pure grey. An accent on the stock AI violet is turned a few degrees\naway and `derive` says so: if that happens, pick a hue with a reason instead. Hand\ncolours (a brand's exact hex) are still allowed, and the same validator holds them to\nthe same rules.\n\n## Step 2: show the three coats of paint (re-skin only)\n\nIf `design\u002Fprototype.json` exists, replace its `directions` with the three new ones and\nrun `python3 \"$KIT\u002Fscripts\u002Fprototype.py\" check` then `render`: the founder switches\nlooks on their real screens, which beats any mockup. Otherwise write one\nself-contained HTML file, `design\u002Fdirections.html`:\n- Three phone frames (390×844) side by side, stacked on narrow screens.\n- Each frame shows **the user's core-loop screen** from `docs\u002Fproduct\u002FBRIEF.md`,\n  with realistic sample content in their domain, not lorem ipsum. Below it, show a\n  strip with the primary button, a card, a list row, an input, a chip row, a\n  skeleton line, an empty state and a toast: the kit's real components.\n- **A light\u002Fdark toggle per frame** (and one global): each direction's palettes are\n  CSS custom properties on the frame (`.a[data-mode=\"dark\"] { --bg: ... }`), so the\n  toggle proves both palettes, not just the flattering one.\n- **Motion preview in CSS** from the direction's motion tokens: the button scales to\n  `pressScale` on `:active` with the `fast` duration, the list rows enter with a\n  staggered fade + 8px rise (`enter` curve, `deliberate` duration), the skeleton\n  shimmers on the `loop` curve, the toast slides in, and a \"Celebrate\" button fires a\n  CSS confetti burst for playful directions. Wrap it all in\n  `@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }`,\n  the same promise the app makes.\n- Label each one with its archetype name and one line on why it fits.\n- Only inline CSS\u002FJS and Google Fonts. No build step.\n\nShow it to the user. If your environment can publish or preview HTML, use that.\nOtherwise give them the file path to open. Then ask (structured):\n\"Which direction?\" with the options A \u002F B \u002F C \u002F \"Mix: I'll describe\".\n\n## Step 3: write `design\u002Ftokens.json` (tokens v2)\n\nThis is the single source of truth. The renderer generates `mobile\u002Flib\u002Ftokens.ts`\n(both palettes + types), themes `app.json` (splash background per mode) and draws a\nplaceholder icon from it. Start from the kit's `template\u002Fdesign\u002Ftokens.json` and\nchange values; keep every key. For the colours, `palette.py derive --accent \u003Chex>\n--neutral-hue \u003Cdeg> --into design\u002Ftokens.json` replaces `color` and leaves the rest.\n\n```json\n{\n  \"name\": \"athletic-dark\",\n  \"version\": 2,\n  \"mode\": \"dark\",\n  \"color\": {\n    \"light\": {\n      \"bg\": \"#F7F6F3\", \"surface\": \"#FFFFFF\", \"surfaceRaised\": \"#FFFFFF\", \"control\": \"#EFEDE8\",\n      \"border\": \"#DAD7D0\", \"ink\": \"#16171A\", \"inkDim\": \"#4A4D55\", \"inkFaint\": \"#62656D\",\n      \"accent\": \"#BE400C\", \"onAccent\": \"#FFFFFF\", \"success\": \"#1B7F55\", \"warning\": \"#A15C00\",\n      \"danger\": \"#C0283F\", \"shadow\": \"#1A1A1A\"\n    },\n    \"dark\": {\n      \"bg\": \"#0C0D0F\", \"surface\": \"#16181C\", \"surfaceRaised\": \"#1D2025\", \"control\": \"#16181C\",\n      \"border\": \"#2E3238\", \"ink\": \"#EDE9E0\", \"inkDim\": \"#B8B4AA\", \"inkFaint\": \"#9A968D\",\n      \"accent\": \"#FF6B2C\", \"onAccent\": \"#0C0D0F\", \"success\": \"#3DDC97\", \"warning\": \"#FFB020\",\n      \"danger\": \"#FF6B6B\", \"shadow\": \"#000000\"\n    }\n  },\n  \"font\": { \"display\": \"Archivo\", \"body\": \"System\", \"mono\": \"Menlo\" },\n  \"type\": {\n    \"display\":   { \"font\": \"display\", \"size\": 40, \"lineHeight\": 46, \"weight\": \"700\", \"letterSpacing\": -0.8, \"maxScale\": 1.3 },\n    \"title\":     { \"font\": \"display\", \"size\": 28, \"lineHeight\": 34, \"weight\": \"700\", \"letterSpacing\": -0.4, \"maxScale\": 1.4 },\n    \"heading\":   { \"font\": \"display\", \"size\": 20, \"lineHeight\": 26, \"weight\": \"600\", \"letterSpacing\": -0.2, \"maxScale\": 1.6 },\n    \"body\":      { \"font\": \"body\", \"size\": 16, \"lineHeight\": 23, \"weight\": \"400\", \"letterSpacing\": 0, \"maxScale\": 2.0 },\n    \"secondary\": { \"font\": \"body\", \"size\": 14, \"lineHeight\": 20, \"weight\": \"400\", \"letterSpacing\": 0, \"maxScale\": 2.0 },\n    \"meta\":      { \"font\": \"body\", \"size\": 12, \"lineHeight\": 16, \"weight\": \"600\", \"letterSpacing\": 0.6, \"maxScale\": 1.6, \"uppercase\": true },\n    \"mono\":      { \"font\": \"mono\", \"size\": 14, \"lineHeight\": 20, \"weight\": \"500\", \"letterSpacing\": 0, \"maxScale\": 1.6 }\n  },\n  \"motion\": {\n    \"duration\": { \"instant\": 90, \"fast\": 140, \"standard\": 220, \"screen\": 320, \"deliberate\": 480, \"ambient\": 1400 },\n    \"easing\": { \"standard\": [0.2, 0, 0, 1], \"enter\": [0.05, 0.7, 0.1, 1], \"exit\": [0.3, 0, 0.8, 0.15], \"loop\": [0.45, 0, 0.55, 1] },\n    \"spring\": { \"snappy\": { \"damping\": 22, \"stiffness\": 320, \"mass\": 1 }, \"gentle\": { \"damping\": 20, \"stiffness\": 180, \"mass\": 1 }, \"bouncy\": { \"damping\": 12, \"stiffness\": 220, \"mass\": 1 } },\n    \"pressScale\": 0.97\n  },\n  \"elevation\": { \"none\": {...}, \"card\": {...}, \"raised\": {...}, \"overlay\": {...} },\n  \"opacity\": { \"disabled\": 0.45, \"pressed\": 0.12, \"scrim\": 0.45, \"muted\": 0.7 },\n  \"size\": { \"xs\": 12, \"sm\": 14, \"md\": 16, \"lg\": 20, \"xl\": 28, \"xxl\": 40 },\n  \"space\": { \"xs\": 4, \"sm\": 8, \"md\": 16, \"lg\": 24, \"xl\": 32, \"xxl\": 48 },\n  \"radius\": { \"sm\": 8, \"md\": 12, \"lg\": 20, \"pill\": 999 },\n  \"icon\": { \"glyph\": \"A\" },\n  \"minTapTarget\": 48\n}\n```\n\n- `mode` is the fallback when the phone reports no preference (and the icon's palette).\n- `maxScale` caps Dynamic Type per role (never below 1): body text must be allowed to\n  grow a lot; a 40pt display line less so.\n- `easing` values are cubic-bezier control points; `loop` must be symmetric (it runs\n  the skeleton shimmer back and forth).\n- A named `font` family (not built in) gets each weight its type roles use registered in\n  the app's `lib\u002Ffonts.ts` in the scaffold phase, or it silently falls back.\n- `motion.spring` drives the feel end to end: the prototype turns each spring into a\n  CSS `linear()` curve (screen changes, sheets, presses) and the app hands the same\n  numbers to Reanimated, so tune damping here, not per animation.\n- Optional `atmosphere` sets the direction's default light: `{\"mode\": \"none\" | \"glow\" |\n  \"field\", \"intensity\": \"low\" | \"medium\" | \"high\", \"grain\": true, \"surface\": \"solid\" |\n  \"glass\"}`. Leave it out for a soft glow with grain on solid surfaces. The founder can\n  change it in the prototype, and freeze writes the result (with the light colours and\n  their contrast-safe alpha) back into `atmosphere`.\n- The v1 shape (one flat `color` map) still works but locks the app to one mode.\n\nRules, all enforced by the validator, **in each mode**:\n- `ink`, `inkDim` and `inkFaint` each clear **4.5:1** on `bg`, `surface`,\n  `surfaceRaised` and `control`. `onAccent` clears 4.5:1 on `accent`.\n- `accent` clears **3:1** on `bg` and `surface` (tab tint, focus ring, icons).\n- `success` \u002F `warning` \u002F `danger` clear 3:1 on `bg` and `surface`; `danger` clears\n  4.5:1 (error text uses it). They always ship with an icon or text too.\n- Both palettes have exactly the same keys.\n\nValidate:\n\n```\npython3 \"$KIT\u002Fscripts\u002Fcheck_contrast.py\" design\u002Ftokens.json\n```\n\nA derived palette passes as it comes. If a hand-set colour fails, adjust its lightness\n(in the mode it names) until it passes, or derive it. **Don't drop the requirement.** Show the user the before\u002Fafter only if the\nchange is visible.\n\nSet `appbox.yaml` → `design.direction: \u003Cname>`. Leave `progress.design` as it is.\nThen re-render so the app picks the tokens up: run the same `render.py` command the\nscaffold used (values from `appbox.yaml`, **without** `--force`). Existing files are\nskipped; `mobile\u002Flib\u002Ftokens.ts`, the `app.json` theme and the brand icons are\nregenerated from the new tokens. Run `cd mobile && npm run gates` and open the app\nbefore calling the re-skin done.\n",{},"main","82b5819f074e18b5d31db7a122e1f0ae5f5abbf7","plugins\u002Fapp-in-a-box\u002Fskills\u002Fdesign-directions","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse","Not a developer","2026-10-06 17:24:46",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add foxinthehenhouse\u002Fapp-in-a-box --skill design-directions",{"tool":36,"command":37},"bunx","bunx skills add foxinthehenhouse\u002Fapp-in-a-box --skill design-directions",{"tool":39,"command":40},"pnpm","pnpm dlx skills add foxinthehenhouse\u002Fapp-in-a-box --skill design-directions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Fskills\u002Fdesign-directions\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7DM2EPAFBTFNV5EW5GHKD5Q","ship","Release checklist for getting a build to testers or the stores. Runs the risk gate first (refuses while a risk item is open) and walks the owner through the compliance checklist. Covers the version bump, EAS build and submit, OTA updates and when they're safe, changelog, store listing, privacy nutrition label \u002F data safety form, the Accessibility Nutrition Labels, and the account-deletion requirement. Guidance-level; it never handles signing secrets. Use when asked to ship, release, submit to TestFlight \u002F App Store \u002F Play, or push an OTA update.","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fship\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7DM2AGRJ822B3C8NQCDK3JG","routines","Put the project's recurring rituals on a schedule, with the owner's consent. Weekly north-star report, monthly market watch, dependency triage, Supabase advisor sweep, reflect and harness-optimize. Uses Claude Code Routines (cloud cron) where they fit, and documents the Codex \u002F local cron equivalent. Use when asked to automate, schedule or \"keep the project moving on its own\", or after setup finishes.","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Froutines\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7DM27C3K1Y7FM0NZSBRSVEN","reflect","Consolidate what recent sessions learned into the project's long-term memory (.agents\u002Fmemory). Use at the end of a substantial session, after a correction from the user, after a painful debugging session, when the session-start healthcheck says reflect is overdue or a pending-reflection seed is waiting, or when MEMORY.md exceeds its budget.","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Freflect\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7DM2146TCNYXVVS2QXF08GS","pr-review","Review a pull request on the owner's behalf and fix what's safe to fix. Runs the deterministic gates first, then correctness\u002Fsecurity, design-system, accessibility and analytics review passes, verifies each blocking finding, applies safe fixes, re-checks, and ends with a plain-English verdict. Use when a PR is opened, when asked to review a PR, a branch or a pasted diff, or before merging anything.","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fpr-review\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7DM1X6QP3QAT47ET852S0P8","north-star-report","Weekly product-analytics and reliability readout. Pulls the funnel of the brief's 5 north-star events from PostHog, finds the biggest drop-offs and errors, checks each SLO in docs\u002Fslo.yaml against its error budget, compares with last week, and proposes (then, with a yes, files) tickets that target them. Use weekly, when the session-start line says it's overdue, when the backlog is empty, or when asked \"how is the app doing?\".","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fnorth-star-report\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7DM1QX8F3D95JSTEHC0P9QA","next","Decide the single next best thing to work on, with two alternates. Reads setup progress, work in progress, open PRs and failing CI, the backlog (GitHub Issues or Linear), overdue harness rituals, product decisions parked until now, and north-star analytics if PostHog is connected. Use when someone asks \"what next?\", \"what should I work on?\", at the start of a session, or after a PR merges.","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fnext\u002FSKILL.md",[],[]]