Skip to content
项目

关于

Generate design system documentation for your UI components, directly from your AI agent. Renders into Figma or a portable .md file. Works with Cursor, Claude Code, and Codex.

开发工具

这些数字如何统计

可以做什么

  • Component contract + Markdown - Canonical .json plus a concise .md covering API, structure, color, and screen-reader behavior
  • API Spec - Properties, values, defaults, and configuration examples
  • Color Annotation - Design token mapping for every element and state
  • Structure Spec - Dimensions, spacing, and padding across density and size variants

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

uSpec

Generate design system documentation for your UI components, directly from your AI agent.

Describe a component to your agent. uSpec captures it with the uSpec Extract Figma plugin, compiles a canonical component contract (.json) plus a portable implementation guide (.md), then renders sections of that specification back into Figma as annotation frames. Works with Figma Console MCP or the native Figma MCP, inside Cursor, Claude Code, or Codex.

The component contract is the machine source of truth. create-component-md produces sibling .json and .md files covering API, structure, color, and screen-reader behavior. Automation consumes the schema-valid JSON; humans and LLM workflows use the concise Markdown. Both come from a _base.json capture produced by the uSpec Extract Figma plugin (free on the Figma Community; source is open in figma-plugin/). The public plugin asks for the selected component's Figma link on first use and remembers it for that document. Every create-* render skill then takes the .md as its required input and renders a section into Figma via your MCP.

What you can generate

Spec type What you get
Component contract + Markdown Canonical .json plus a concise .md covering API, structure, color, and screen-reader behavior
API Spec Properties, values, defaults, and configuration examples
Color Annotation Design token mapping for every element and state
Structure Spec Dimensions, spacing, and padding across density and size variants
Screen Reader Spec VoiceOver, TalkBack, and ARIA behavior for every element and state
Motion Spec Animation timeline bars and easing details from After Effects data
Component Anatomy Numbered markers and attribute tables for every element
Component Properties Variant axes, boolean toggles, and variable mode exhibits

Get started

In your project, run:

npx uspec-skills init

The CLI detects whether you are using Cursor, Claude Code, or Codex, installs all skills and references into the right directory, and writes uspecs.config.json. Then ask your agent to run the firstrun skill to extract your Figma template keys.

Full documentation and examples at uSpec.design.

License

MIT — see LICENSE for details.

Designed by Ian Guisard.

探索相关项目

加载中…