[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72BCQ3GGJPSQBVGJSEZQ51K":3,"skill-same:01M72BCQ3GGJPSQBVGJSEZQ51K":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M72BCQ3GGJPSQBVGJSEZQ51K","design-to-code",null,"Pixel-perfect Figma to React conversion using coderio. Generates production-ready code (TypeScript, Vite, TailwindCSS V4) with high visual fidelity. Features robust error handling, checkpoint recovery, and streamlined execution via helper script.","Sansar35\u002Fclaude-agent","Sansar35","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F145020281?v=4","01M724CQ2SCC86MGNSD87D0D4K","01M724CQ3965G9WJ3QXE3AJ5YY",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fdesign-to-code\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fdesign-to-code\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: design-to-code\ndescription: Pixel-perfect Figma to React conversion using coderio. Generates production-ready code (TypeScript, Vite, TailwindCSS V4) with high visual fidelity. Features robust error handling, checkpoint recovery, and streamlined execution via helper script.\n---\n\n# Design to Code\n\nHigh-fidelity UI restoration from Figma designs to production-ready React + TypeScript components.\nThis SKILL uses a **robust helper script** to minimize manual errors and ensure pixel-perfect results.\n\n## Prerequisites\n\n1.  **Figma API Token**: Get from Figma → Settings → Personal Access Tokens\n2.  **Node.js**: Version 18+\n3.  **coderio**: Installed in `scripts\u002F` folder (handled by Setup phase)\n\n## Workflow Overview\n\n```\nPhase 0: SETUP    → Create helper script and script environment\nPhase 1: PROTOCOL → Generate design protocol (Structure & Props)\nPhase 2: CODE     → Generate components and assets\n```\n\n---\n\n# Phase 0: Setup\n\n## Step 0.1: Initialize Helper Script\n\n**User Action**: Run these commands to create the execution helper and isolate its dependencies.\n\n```bash\nmkdir -p scripts\n\n# 1. Copy script files\n# Note: Ensure you have the 'skills\u002Fdesign-to-code\u002Fscripts' directory available\ncp skills\u002Fdesign-to-code\u002Fscripts\u002Fpackage.json scripts\u002Fpackage.json\ncp skills\u002Fdesign-to-code\u002Fscripts\u002Fcoderio-skill.mjs scripts\u002Fcoderio-skill.mjs\n\n# 2. Install coderio in scripts directory (adjust version if needed)\ncd scripts && pnpm install && cd ..\n```\n\n## Step 0.2: Scaffold Project (Optional)\n\nIf starting a new project:\n\n1.  Run: `node scripts\u002Fcoderio-skill.mjs scaffold-prompt \"MyApp\"`\n2.  **AI Task**: Follow the instructions output by the command to create files.\n\n---\n\n# Phase 1: Protocol Generation\n\n## Step 1.1: Fetch Data\n\n```bash\n# Replace with your URL and Token\nnode scripts\u002Fcoderio-skill.mjs fetch-figma \"https:\u002F\u002Ffigma.com\u002Ffile\u002F...\" \"figd_...\"\n```\n\n**Verify**: `process\u002Fthumbnail.png` should exist.\n\n## Step 1.2: Generate Structure\n\n1.  **Generate Prompt**:\n\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs structure-prompt > scripts\u002Fstructure-prompt.md\n    ```\n\n2.  **AI Task (Structure)**:\n    - **ATTACH**: `process\u002Fthumbnail.png` (MANDATORY)\n    - **READ**: `scripts\u002Fstructure-prompt.md`\n    - **INSTRUCTION**: \"Generate the component structure JSON based on the prompt and the attached thumbnail. Focus on visual grouping. **Use text content to name components accurately (e.g. 'SafeProducts', not 'FAQ').**\"\n    - **SAVE**: Paste the JSON result into `scripts\u002Fstructure-output.json`.\n\n3.  **Process Result**:\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs save-structure\n    ```\n\n## Step 1.3: Extract Props (Iterative)\n\n1.  **List Components**:\n\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs list-components\n    ```\n\n2.  **For EACH component in the list**:\n\n    a. **Generate Prompt**:\n\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs props-prompt \"ComponentName\" > scripts\u002Fcurrent-props-prompt.md\n    ```\n\n    b. **AI Task (Props)**:\n    - **ATTACH**: `process\u002Fthumbnail.png` (MANDATORY)\n    - **READ**: `scripts\u002Fcurrent-props-prompt.md`\n    - **INSTRUCTION**: \"Extract props and state data. Be pixel-perfect with text and image paths.\"\n    - **SAVE**: Paste the JSON result into `scripts\u002FComponentName-props.json`.\n\n    c. **Save & Validate**:\n\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs save-props \"ComponentName\"\n    # If this fails, re-do step 'b' with better attention to the thumbnail\n    ```\n\n---\n\n# Phase 2: Code Generation\n\n## Step 2.1: Plan Tasks\n\n```bash\nnode scripts\u002Fcoderio-skill.mjs list-gen-tasks\n```\n\nThis outputs a list of tasks with indices (0, 1, 2...).\n\n## Step 2.2: Generate Components (Iterative)\n\n**For EACH task index (starting from 0)**:\n\n1.  **Generate Prompt**:\n\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs code-prompt 0 > scripts\u002Fcode-prompt.md\n    # Replace '0' with current task index\n    ```\n\n2.  **AI Task (Code)**:\n    - **ATTACH**: `process\u002Fthumbnail.png` (MANDATORY)\n    - **READ**: `scripts\u002Fcode-prompt.md`\n    - **INSTRUCTION**: \"Generate the React component code. Match the thumbnail EXACTLY. **Use STRICT text content from input data, do not hallucinate.**\"\n    - **SAVE**: Paste the code block into `scripts\u002Fcode-output.txt`.\n\n3.  **Save Code**:\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs save-code 0\n    # Replace '0' with current task index\n    ```\n\n## Step 2.3: Final Integration\n\nInject the root component into `App.tsx`. Use the path found in the last task of Phase 2.1.\n\n---\n\n# Troubleshooting\n\n- **\"Props validation failed\"**: The AI generated empty props. Check if `process\u002Fthumbnail.png` was attached and visible to the AI. Retry the props generation step.\n- **\"Module not found\"**: Ensure `node scripts\u002Fcoderio-skill.mjs save-code` was run for the child component before the parent component. Phase 2 must be done in order (0, 1, 2...).\n- **\"Visuals don't match\"**: Did you attach the thumbnail? The AI relies on it for spacing and layout nuances not present in the raw data.\n","# Design to Code\n\nHigh-fidelity UI restoration from Figma designs to production-ready React + TypeScript components.\nThis SKILL uses a **robust helper script** to minimize manual errors and ensure pixel-perfect results.\n\n## Prerequisites\n\n1.  **Figma API Token**: Get from Figma → Settings → Personal Access Tokens\n2.  **Node.js**: Version 18+\n3.  **coderio**: Installed in `scripts\u002F` folder (handled by Setup phase)\n\n## Workflow Overview\n\n```\nPhase 0: SETUP    → Create helper script and script environment\nPhase 1: PROTOCOL → Generate design protocol (Structure & Props)\nPhase 2: CODE     → Generate components and assets\n```\n\n---\n\n# Phase 0: Setup\n\n## Step 0.1: Initialize Helper Script\n\n**User Action**: Run these commands to create the execution helper and isolate its dependencies.\n\n```bash\nmkdir -p scripts\n\n# 1. Copy script files\n# Note: Ensure you have the 'skills\u002Fdesign-to-code\u002Fscripts' directory available\ncp skills\u002Fdesign-to-code\u002Fscripts\u002Fpackage.json scripts\u002Fpackage.json\ncp skills\u002Fdesign-to-code\u002Fscripts\u002Fcoderio-skill.mjs scripts\u002Fcoderio-skill.mjs\n\n# 2. Install coderio in scripts directory (adjust version if needed)\ncd scripts && pnpm install && cd ..\n```\n\n## Step 0.2: Scaffold Project (Optional)\n\nIf starting a new project:\n\n1.  Run: `node scripts\u002Fcoderio-skill.mjs scaffold-prompt \"MyApp\"`\n2.  **AI Task**: Follow the instructions output by the command to create files.\n\n---\n\n# Phase 1: Protocol Generation\n\n## Step 1.1: Fetch Data\n\n```bash\n# Replace with your URL and Token\nnode scripts\u002Fcoderio-skill.mjs fetch-figma \"https:\u002F\u002Ffigma.com\u002Ffile\u002F...\" \"figd_...\"\n```\n\n**Verify**: `process\u002Fthumbnail.png` should exist.\n\n## Step 1.2: Generate Structure\n\n1.  **Generate Prompt**:\n\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs structure-prompt > scripts\u002Fstructure-prompt.md\n    ```\n\n2.  **AI Task (Structure)**:\n    - **ATTACH**: `process\u002Fthumbnail.png` (MANDATORY)\n    - **READ**: `scripts\u002Fstructure-prompt.md`\n    - **INSTRUCTION**: \"Generate the component structure JSON based on the prompt and the attached thumbnail. Focus on visual grouping. **Use text content to name components accurately (e.g. 'SafeProducts', not 'FAQ').**\"\n    - **SAVE**: Paste the JSON result into `scripts\u002Fstructure-output.json`.\n\n3.  **Process Result**:\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs save-structure\n    ```\n\n## Step 1.3: Extract Props (Iterative)\n\n1.  **List Components**:\n\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs list-components\n    ```\n\n2.  **For EACH component in the list**:\n\n    a. **Generate Prompt**:\n\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs props-prompt \"ComponentName\" > scripts\u002Fcurrent-props-prompt.md\n    ```\n\n    b. **AI Task (Props)**:\n    - **ATTACH**: `process\u002Fthumbnail.png` (MANDATORY)\n    - **READ**: `scripts\u002Fcurrent-props-prompt.md`\n    - **INSTRUCTION**: \"Extract props and state data. Be pixel-perfect with text and image paths.\"\n    - **SAVE**: Paste the JSON result into `scripts\u002FComponentName-props.json`.\n\n    c. **Save & Validate**:\n\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs save-props \"ComponentName\"\n    # If this fails, re-do step 'b' with better attention to the thumbnail\n    ```\n\n---\n\n# Phase 2: Code Generation\n\n## Step 2.1: Plan Tasks\n\n```bash\nnode scripts\u002Fcoderio-skill.mjs list-gen-tasks\n```\n\nThis outputs a list of tasks with indices (0, 1, 2...).\n\n## Step 2.2: Generate Components (Iterative)\n\n**For EACH task index (starting from 0)**:\n\n1.  **Generate Prompt**:\n\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs code-prompt 0 > scripts\u002Fcode-prompt.md\n    # Replace '0' with current task index\n    ```\n\n2.  **AI Task (Code)**:\n    - **ATTACH**: `process\u002Fthumbnail.png` (MANDATORY)\n    - **READ**: `scripts\u002Fcode-prompt.md`\n    - **INSTRUCTION**: \"Generate the React component code. Match the thumbnail EXACTLY. **Use STRICT text content from input data, do not hallucinate.**\"\n    - **SAVE**: Paste the code block into `scripts\u002Fcode-output.txt`.\n\n3.  **Save Code**:\n    ```bash\n    node scripts\u002Fcoderio-skill.mjs save-code 0\n    # Replace '0' with current task index\n    ```\n\n## Step 2.3: Final Integration\n\nInject the root component into `App.tsx`. Use the path found in the last task of Phase 2.1.\n\n---\n\n# Troubleshooting\n\n- **\"Props validation failed\"**: The AI generated empty props. Check if `process\u002Fthumbnail.png` was attached and visible to the AI. Retry the props generation step.\n- **\"Module not found\"**: Ensure `node scripts\u002Fcoderio-skill.mjs save-code` was run for the child component before the parent component. Phase 2 must be done in order (0, 1, 2...).\n- **\"Visuals don't match\"**: Did you attach the thumbnail? The AI relies on it for spacing and layout nuances not present in the raw data.\n",{"name":5,"description":7},"main","d046d088ce5a79a083f0abc0fe1b7ded73bc5b1f","claude-config\u002Fskills\u002Fdesign-to-code","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent","https:\u002F\u002Fgithub.com\u002FSansar35","2026-05-10 16:04:53",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add Sansar35\u002Fclaude-agent --skill design-to-code",{"tool":36,"command":37},"bunx","bunx skills add Sansar35\u002Fclaude-agent --skill design-to-code",{"tool":39,"command":40},"pnpm","pnpm dlx skills add Sansar35\u002Fclaude-agent --skill design-to-code","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fdesign-to-code\u002FSKILL.md",true,[44,50,55,61],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},".skill-source.json","REFERENCE","参考文档",475,"https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fdesign-to-code\u002F.skill-source.json",{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":15},"LICENSE.txt","LICENSE","许可证",10880,{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Fcoderio-skill.mjs","SCRIPT","脚本",13059,"https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fdesign-to-code\u002Fscripts\u002Fcoderio-skill.mjs",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fpackage.json",122,"https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fdesign-to-code\u002Fscripts\u002Fpackage.json",[66,74,81,88,95,103],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M72DVAN1JYEA302MT0C5MGD6","zustand-store-ts","Create Zustand stores following established patterns with proper TypeScript types and middleware.","MIT","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M72DV8J5NBRRM4RPDFRV95N7","zod-validation-expert","Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzod-validation-expert\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M72DV5EMHW0BHP9BZ167MDCB","zinc-database","Access ZINC (230M+ purchasable compounds). Search by ZINC ID\u002FSMILES, similarity searches, 3D-ready structures for docking, analog discovery, for virtual screening and drug discovery.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzinc-database\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M72DV216QY0E693ZPEVQ0DBS","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":70,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M72DTXQREMCRKA8NHCVKHN4W","zapier-workflows","Manage and trigger pre-built Zapier workflows and MCP tool orchestration. Use when user mentions workflows, Zaps, automations, daily digest, research, search, lead tracking, expenses, or asks to \"run\" any process. Also handles Perplexity-based research and Google Sheets data tracking.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzapier-workflows\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzapier-workflows\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M72DTT17TBSJ0Y8J2XZ4C9TZ","zapier-make-patterns","No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity - these platforms have their own patterns, pitfalls, and breaking points.  This skill covers when to use which platform, how to build reliable automations, and when to graduate to code-based solutions. Key insight: Zapier optimizes for simplicity and integrations (7000+ apps), Make optimizes for power","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzapier-make-patterns\u002FSKILL.md",[],[]]