devui-component-implementer

Translate design requirements into DevUI2 component implementations in .pen files.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/iilleagl/Design2Code --skill devui-component-implementer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devui-component-implementer
Source: https://github.com/iilleagl/Design2Code/tree/main/.cursor/skills/devui-component-implementer
Command: npx skills add https://github.com/iilleagl/Design2Code --skill devui-component-implementer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

通过将设计需求映射到 DevUI2 组件实现,本 Skill 自动化从组件库中选型、复制、ref 实例化与内容定制的工作流程,降低跨设计与实现的摩擦。

Core Features & Use Cases

  • 组件选型与拷贝:根据设计需求从 designsystem/devUI/components/devUI2.pen 选取组件并复制到目标 .pen 文件。
  • 实例化与定制:使用 ref 实例化组件后,通过 descendants 将文本和标签等内容替换为设计稿内容。
  • 工作流遵循:遵循 devui2-component-guide 的场景选型、跨文件复制规则与文本覆盖要求,确保一致性。
  • 使用场景:用于 UI 区块、页面区域、表单、表格、导航、卡片等组件的实现触发。

Quick Start

提供设计需求并触发 DevUI2 组件实现,选择库中的组件并将其应用到目标 .pen 文件。

Frequently Asked Questions about devui-component-implementer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I translate UI design requirements into DevUI2 component code?

To translate design requirements into DevUI2 component code, this workflow guides component selection from the index, copies the chosen component into a target .pen file, and instantiates it using ref to replace text and labels with design content.

What is the best way to select and instantiate DevUI2 components for a form or table?

The best way to select and instantiate DevUI2 components for forms or tables is by following the DevUI2 component guide for scenario-based selection, copying the component, and using ref instantiation to customize descendants for production-ready results.

Can I use this design-to-code workflow to implement navigation and card UI blocks?

Yes, you can use this design-to-code workflow to implement navigation and card UI blocks, as it applies component selection and ref instantiation rules to ensure consistent content customization across various UI regions.

Does the DevUI2 component implementation process enforce project design system consistency?

Yes, the DevUI2 component implementation process enforces design system consistency by adhering to the devui2-component-guide, which dictates scenario selection, cross-file copying rules, and text override requirements for production-ready output.

How do I customize text and labels after copying a DevUI2 component?

To customize text and labels after copying a DevUI2 component, you instantiate it using a ref and then override the descendant elements to match the specific text and tag content from your design requirements.