sloth-d2c-skills将Figma设计稿转换为前端组件代码(Design to Code)。通过 `sloth d2c` CLI 获取设计稿数据,分片处理并生成最终代码。当用户提到Figma转代码、设计稿转代码、D2C、design to code、生成页面时使用。
Install via ClawdBot CLI:
clawdbot install cherokeeli/sloth-d2c-skillsGrade Fair — based on market validation, documentation quality, package completeness, maintenance status, and authenticity signals.
Potentially destructive shell commands in tool definitions
exec(Audited Apr 17, 2026 · audit v1.0
Generated Oct 7, 2026
前端工程师把产品经理提供的 Figma 设计稿 URL 中的 fileKey 和 nodeId 交给 AI Agent,Agent 调用 sloth d2c CLI 抽取节点数据并分片处理,最终在项目中生成可复用的 React 组件代码。大幅减少手写 UI 的重复劳动,让设计到代码的链路从数小时压缩到数分钟。
移动端团队需要把同一套 Figma 设计稿分别落地为 Taro、uniapp 或 hippy 页面,通过指定 --framework 参数让 Agent 按目标框架生成对应代码。适合需要同时在微信、支付宝、字节等多个小程序平台快速铺量的场景。
iOS 开发者使用 Agent 将设计稿转换为 Objective-C 或 Swift 视图代码,或基于 Kuikly 跨端方案生成页面。帮助原生团队在需求评审后立即拿到可运行的界面骨架,把精力集中在交互逻辑与业务实现上。
设计团队与前端团队协作,将 Figma 中维护的设计规范组件(按钮、卡片、表单等)系统性转成代码组件,并写入公司组件库仓库。配合 --update 参数可持续迭代已有组件,保证设计规范与代码实现始终同步。
低代码或可视化搭建平台需要大量标准页面模板作为素材,通过批量调用 sloth d2c 将 Figma 模板转成平台可识别的代码片段。在保证视觉还原度的前提下,快速扩充平台的模板库和行业解决方案。
将 sloth d2c CLI 与云端设计解析、代码生成能力打包成按席位或按生成量订阅的开发者工具,团队按月付费即可无限制使用设计稿转代码功能。
为对代码安全和数据合规有高要求的中大型企业提供私有化部署版本,CLI 和转换服务部署在内网,设计稿数据不出企业边界,附带定制化框架支持和专属维护。
把 D2C 能力作为现有研发效能平台或 CI/CD 流水线的一个增值插件销售,团队在已有平台上按模块开通,与代码评审、组件库管理等能力打包使用。
💬 Integration Tip
调用前务必先用 sloth --version 确认 CLI 可用并配置好 Figma Token;local 和 update 均为显式触发参数,首次生成新代码时不要主动添加 --local,否则会因缺少缓存直接失败。
Scored Oct 7, 2026
Use when building UI with shadcn/ui components, Tailwind CSS layouts, form patterns with react-hook-form and zod, theming, dark mode, sidebar layouts, mobile navigation, or any shadcn component question.
Tailwind reference tool. Use when working with tailwind in frontend contexts.
A product creation skill based on the "Bee Website Builder" Open API. It is used to create a new product under a specified site language and product group, w...
A product update skill based on the "Bee Website Builder" Open API. It is used to update an existing product under a specified site language and supports upd...
Build WCAG 2.1 AA compliant websites with semantic HTML, proper ARIA, focus management, and screen reader support. Includes color contrast (4.5:1 text), keyboard navigation, form labels, and live regions. Use when implementing accessible interfaces, fixing screen reader issues, keyboard navigation, or troubleshooting "focus outline missing", "aria-label required", "insufficient contrast".
Use when building Vue 3 applications with Composition API, Nuxt 3, or Quasar. Invoke for Pinia, TypeScript, PWA, Capacitor mobile apps, Vite configuration.