{"data":{"slug":"discovered-2d53ea2085c2ec004225544237d983e702c3c4fd8d0970cb","title":"Koi Foundation Update (Incremental Token Management)","summary":"Add or adjust tokens in an existing Koi design system foundation in app\/globals.css without rebootstrap or rewriting the file. Keeps @theme and :root channels in sync.","url":"https:\/\/skillshunter.net\/skills\/discovered-2d53ea2085c2ec004225544237d983e702c3c4fd8d0970cb","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-2d53ea2085c2ec004225544237d983e702c3c4fd8d0970cb","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-2d53ea2085c2ec004225544237d983e702c3c4fd8d0970cb.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-2d53ea2085c2ec004225544237d983e702c3c4fd8d0970cb\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before making changes, audit the existing token block in app\/globals.css to avoid duplication and ensure semantic consistency. Classify each change as safe, needs review, or breaking based on its impact. Run `npm run typecheck`, `npm run ds:check`, and a visual check (Playwright) whenever a value in use changes.","instructions":"---\nname: koi-foundation-update\ndescription: >\n  INCREMENTALLY updates the foundation tokens of the Koi design system in\n  app\/globals.css (color, typography, spacing, radius, shadow, motion) \u2014 additive,\n  reviewed, WITHOUT rebootstrapping and WITHOUT rewriting the file. Keeps the\n  @theme (utility) and :root (var) + dark channels in sync. Use when the user asks\n  to \"add a token\", extend the type\/spacing scale, \"create a token for X\",\n  tokenize a set of values, fill in the missing steps of a scale, or update the\n  foundation without redoing the design system. This is NOT bootstrapping from a\n  visual reference \u2014 for that, use koi-design-system-foundation.\n---\n\n# Koi \u2014 Foundation Update (incremental)\n\nUse this to ADD or ADJUST tokens in a foundation that **already exists** \u2014 never\nto rebootstrap. Sibling of `koi-design-system-foundation` (which bootstraps\nfrom a reference and may rewrite `globals.css`). These two are the only skills\nauthorized to touch tokens.\n\n`AGENTS.md` is the source of truth. If anything here conflicts with it, follow\n`AGENTS.md`.\n\n## Hard rules\n\n- **Never** rewrite\/rescaffold `globals.css`. Surgical edits to the token block\n  only; don't touch CSS that isn't a token.\n- **Additive by default.** Don't remove or rename a token in use (that's breaking).\n- **Two channels in sync:** `@theme` (generates the Tailwind v4 utility classes)\n  and the mirror in `:root` \/ `--au-*` (consumed via `var()`), including the dark\n  mode override. A new token goes into both when it applies to both.\n- Never create a color outside the 10 `au-*` families; no loose hex values.\n- A new token goes into the vocabulary in `docs\/component-map.md` and, when it\n  makes sense, gets an example on the matching foundation page.\n\n## Workflow\n\n1. Read `AGENTS.md` and the current token block in `app\/globals.css`.\n2. **Audit what already exists** \u2014 don't duplicate a token that already covers the\n   value, and check whether a semantic system is already there (e.g. the\n   `body-*`\/`display-*`\/`caption`\/`koi-eyebrow` utilities) before creating a\n   parallel one.\n3. **Classify each change:**\n   - **safe** (apply directly): adding a new token that changes nothing existing;\n     an alias; docs. Zero visual change.\n   - **needs review** (propose + wait for an ok): changing the value of a token in\n     use, or redefining a scale (type\/color\/radius) \u2014 it has visual impact.\n   - **breaking** (only with an explicit ok): removing\/renaming a token in use.\n4. Apply the **safe** ones; for needs-review\/breaking, show the delta and wait for\n   approval.\n5. Sync `@theme` + `:root` + dark.\n6. Validate: `npm run typecheck`, `npm run ds:check`, and a visual check\n   (Playwright) whenever a value **in use** changes.\n7. Update `docs\/component-map.md` (token vocabulary).\n\n## Output\n\n- tokens added \/ changed \/ untouched (with px or value)\n- the classification of each (safe \/ needs review \/ breaking)\n- risky changes skipped (awaiting an ok)\n- validations run\n","use_cases":["Add a new token to the design system foundation","Extend the type or spacing scale","Tokenize a set of values or fill in missing steps of a scale","Update the foundation without redoing the design system","Sync @theme and :root channels for dark mode"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/MirandaSls\/koi-design\/blob\/d86c88cb439045af1785329fcabfbd645fa3b646\/skills\/design-system\/koi-foundation-update\/SKILL.md","source_commit":"d86c88cb439045af1785329fcabfbd645fa3b646","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:44:17.000000Z","updated_at":"2026-11-29T10:53:15.000000Z","seo_title":"Koi Foundation Update - Incremental Token Management for Design System","seo_description":"Incrementally update tokens in the Koi design system foundation without rebootstrap. Add, adjust, or extend tokens in app\/globals.css while keeping @theme and :root in\u540c\u6b65.","seo_keywords":["design system token update","Koi foundation management","incremental CSS token changes","Tailwind v4 utility classes","design system maintenance"]}}