{"data":{"slug":"discovered-8906370018e9aa2c1bfb76982228a41fe6d1da5cde573eb1","title":"Koi Handoff \u2014 Claude\/Cloud Design to Koi\/styleguide Production Code","summary":"Converts a Claude or Cloud Design handoff into production code by remapping the generated output onto Koi\/styleguide components and shadcn\/ui primitives, ensuring alignment with the design system.","url":"https:\/\/skillshunter.net\/skills\/discovered-8906370018e9aa2c1bfb76982228a41fe6d1da5cde573eb1","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-8906370018e9aa2c1bfb76982228a41fe6d1da5cde573eb1","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-8906370018e9aa2c1bfb76982228a41fe6d1da5cde573eb1.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-8906370018e9aa2c1bfb76982228a41fe6d1da5cde573eb1\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"The design system must already be initialized with the `\/koi\/styleguide` route in place. If not, run the `koi-foundation` skill first. The input must be a Claude\/Cloud Design export (e.g., `\/fetch` URL, zip file, or generated code), and the output must be represented in `Koi\/styleguide` components, not directly from generated code.","instructions":"---\nname: koi-handoff\ndescription: >\n  Converts a Claude Design (or Cloud Design) handoff into production code by\n  remapping the generated output onto Koi\/styleguide components first\n  and shadcn\/ui primitives second, instead of copying the generated component\n  architecture directly. Accepts \/fetch URLs from claude.com\/design, zip\n  exports, exported folders, generated code, screenshots, or flow\n  descriptions, and produces a real page or flow built from the design\n  system. Use whenever the user mentions \"Claude Design handoff\", \"Cloud\n  Design handoff\", \"\/fetch URL\", \"zip from claude.com\/design\", \"exported\n  design\", \"translate generated code into the design system\", \"remap\n  handoff\", \"implement Claude Design output\", or hands over a Claude\/Cloud\n  Design export to turn into real code in a Koi project.\n---\n\n# Koi \u2014 Claude Design Handoff\n\nConvert a Claude Design (or Cloud Design) handoff into production code, using\n**Koi\/styleguide first** and **shadcn\/ui second**. The generated handoff\nis a reference for layout, copy, and visual intent \u2014 not for component architecture.\n\n> **Prerequisite:** the design system must already be initialized\n> (`\/koi\/styleguide` route in place). If it isn't, run the\n> `koi-foundation` skill first.\n>\n> **Different from `koi-page`:** the page-builder skill works from a\n> static design (screenshot, Figma, wireframe). This skill works specifically\n> from a Claude\/Cloud Design **export with generated code**, where the\n> central problem is *not trusting* the generated component boundaries.\n\n## Input\n\n```txt\nDesign source: [CLAUDE DESIGN \/fetch URL, ZIP FILE, EXPORTED FOLDER, GENERATED CODE, SCREENSHOT, OR FLOW]\nTarget project: [PROJECT PATH OR CURRENT REPOSITORY]\nPage or flow name: [NAME]\nRoute: [DESIRED ROUTE OR \"INFER FROM PROJECT\"]\nMode: [analyze only | implement | implement and create missing playground components]\n```\n\n## Core rule\n\n**Claude Design output is a visual and content reference, not the component architecture.**\n\nGenerated code typically has:\n\n- arbitrary div nesting that doesn't match real components\n- hardcoded colors and one-off styling\n- duplicated wrapper components that should collapse\n- huge monolithic components that should split\n- ad-hoc state models for things shadcn handles natively\n\nDo **not** copy generated components directly. Rebuild the page or flow using,\nin priority order:\n\n1. `\/koi\/styleguide\/components` (official)\n2. existing app components\n3. `\/koi\/styleguide\/playground\/components`\n4. shadcn\/ui primitives and accessibility patterns\n5. new playground components \u2014 only when something is genuinely missing\n\n## Non-negotiables\n\n- shadcn\/ui stays the primitive layer.\n- The canonical namespace is `Koi\/styleguide`.\n- Repository docs go under `\/koi\/styleguide`.\n- Next.js route showcases go under `\/app\/koi\/styleguide`.\n- Do **not** use `\/app\/styleguide`.\n- Every component imported, wrapped, installed, or created must end up\n  represented in Koi\/styleguide.\n\n## Workflow\n\n### 1. Ingest the source\n\nAdapt to the input type:\n\n- **Zip file** \u2192 unpack into a temporary review folder under `\/tmp\/` or the\n  project's `tmp\/`. Don't unpack into `src\/` or `app\/`.\n- **`\/fetch` URL from claude.com\/design** \u2192 fetch and read the export.\n- **Generated code** (raw `.tsx`, `.jsx`) \u2192 inspect for layout, copy, assets,\n  interactions, and state hints. Don't import it as-is.\n- **Screenshot or flow description** \u2192 analyze the visual structure as you\n  would for a regular page reference.\n\nTreat the export as **read-only inspiration**. Don't trust the generated\ncomponent names or their boundaries.\n\n### 2. Inspect Koi and shadcn\n\nInspect:\n\n- `\/koi\/styleguide\/foundation`\n- `\/koi\/styleguide\/components`\n- `\/koi\/styleguide\/playground\/components`\n- `\/app\/koi\/styleguide`\n- app routes and layouts\n- `components\/ui`\n- `components.json`\n- Tailwind config\n- `globals.css`\n\nIf shadcn isn't initialized:\n\n```bash\nnpx shadcn@latest init\n```\n\n### 3. Extract intent from the handoff\n\nBefore writing any code, document what the design is actually trying to do:\n\n```txt\nExperience:\n- User goal:        [what the user is doing on this page\/flow]\n- Route or step:    [where in the app this lives]\n- Sections:         [the logical sections of the UI]\n- Repeated patterns:[anything that appears more than once]\n- Interactions:     [clicks, form submissions, navigation]\n- Form behavior:    [validation, async, dependent fields]\n- States:           [loading, empty, error, success]\n- Responsive:       [breakpoints and behavior]\n- Assets:           [images, icons, illustrations]\n```\n\nThis intent doc is the contract for the rebuild. The generated code is just\na hint about how to satisfy it.\n\n### 4. Build the handoff mapping\n\nCreate a mapping table **before** writing implementation code:\n\n| Design part | Generated component | UI role | Koi match | shadcn primitive | Decision |\n|-------------|---------------------|---------|------------------|------------------|----------|\n\n`Decision` must be one of:\n\n- **reuse** \u2014 an existing Koi component fits as-is\n- **wrap** \u2014 wrap a shadcn primitive with Koi naming\/intent\n- **compose** \u2014 combine multiple primitives or existing components\n- **create playground component** \u2014 genuinely new, goes into playground first\n- **discard generated wrapper** \u2014 generated component adds nothing, drop it\n\nIf `Mode` is `analyze only`, return after this step. The mapping table + intent\ndoc is the deliverable.\n\n### 5. Rebuild with real components\n\nWhen implementing, follow these rules:\n\n- **Prefer Koi official components** even when the generated code\n  structures things differently. The styleguide wins.\n- **Use shadcn primitives for behavior-heavy UI**: dialogs, popovers, menus,\n  tabs, tooltips, forms, command menus, drawers. The accessibility behavior\n  shadcn provides is almost always better than what's in generated code.\n- **Keep what's worth keeping** from the export: copy, content hierarchy,\n  layout intent, assets.\n- **Replace** arbitrary div nesting, hardcoded colors, and one-off generated\n  state models with tokens and proper components.\n- **Split** huge generated components into reusable product components.\n- **Collapse** tiny wrapper-only generated components into proper components.\n\nFor complex new components surfaced during the rebuild, hand off to the\n`koi-component` skill rather than inlining everything here.\n\n### 6. Coverage \u2014 every component must end up in the styleguide\n\nBuild a coverage list from the page's final imports.\n\nFor every component imported by the page from:\n\n- `@\/components\/ui\/*`\n- `@\/components\/*`\n- local app component folders\n- newly created files\n\nmake sure it has an entry in one of:\n\n```txt\n\/koi\/styleguide\/components\/[component-name]\n\/koi\/styleguide\/playground\/components\/[component-name]\n```\n\nIf `Mode` is `implement and create missing playground components`, create stubs\nfor any missing ones in `\/koi\/styleguide\/playground\/components\/[name]`\nwith status **needs review**.\n\nIf route showcases exist, also update:\n\n```txt\n\/app\/koi\/styleguide\/components\/[component-name]\/page.tsx\n```\n\nUpdate whichever registry files the project already uses:\n\n```txt\n\/app\/koi\/styleguide\/navigation.ts\n\/koi\/styleguide\/registry\/components.json\n\/koi\/styleguide\/components\/index.ts\n```\n\nThe `koi-audit` skill exists to catch gaps after the fact.\n\n### 7. Validate\n\nRun available checks:\n\n```bash\nnpm run lint\nnpm run typecheck\nnpm run test\nnpm run build\n```\n\nUse browser verification when visual fidelity matters.\n\n## Output to return\n\n```md\nKoi Claude Design handoff complete.\n\nSource:\n- Type: [zip | \/fetch URL | generated code | screenshot | flow]\n- Location: [path or URL]\n\nImplemented:\n- Page\/flow: [name]\n- Route: [route]\n\nMapping:\n- [design part] \u2192 [Koi\/shadcn component] \u2192 [decision]\n\nComponents:\n- Reused:    [list]\n- Wrapped:   [list]\n- Created:   [list]\n- Playground:[list]\n- Discarded: [list of generated wrappers dropped]\n\nCoverage:\n- [component] \u2014 official \/ playground \/ covered \/ missing\n\nChanged:\n- [file path] \u2014 what changed\n\nValidation:\n- [command] \u2014 passed \/ failed \/ not available\n```\n\n## Notes\n\n- The export is a reference; the design system is the source of truth. If\n  they conflict, the design system wins.\n- Don't import generated code into `app\/` or `src\/` directly. Inspect it,\n  then rewrite.\n- If the export is ambiguous about behavior or interaction, ask before guessing.\n- Save the intent doc somewhere \u2014 it's useful for future iterations on the same flow.\n- If the user wants to *bootstrap a whole design system* from a Claude Design\n  export (not implement a single page), this is the wrong skill \u2014 use\n  `koi-foundation` instead.\n","use_cases":["Implementing a Claude\/Cloud Design handoff into a Koi project","Mapping generated design code to Koi\/styleguide components","Creating a real page or flow from a design export","Analyzing a design export before implementation","Implementing and creating missing playground components"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/MirandaSls\/koi-design\/blob\/d86c88cb439045af1785329fcabfbd645fa3b646\/skills\/build\/koi-handoff\/SKILL.md","source_commit":"d86c88cb439045af1785329fcabfbd645fa3b646","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:43:45.000000Z","updated_at":"2026-11-29T10:53:15.000000Z","seo_title":"Convert Claude\/Cloud Design to Koi\/styleguide Code","seo_description":"Transform Claude or Cloud Design exports into production-ready code using Koi\/styleguide components and shadcn\/ui primitives, ensuring consistency with your design system","seo_keywords":["Claude Design handoff","Cloud Design handoff","Koi\/styleguide","shadcn\/ui","design system integration","component mapping","design to code conversion"]}}