NW

natdexterra/work-with-design-systems

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

53 stars 质量 64 趋势 8MIT

检查、构建或扩展 Claude 代码中的 Figma 设计系统。只读审计,包含 WCAG 检查和组件评分,构建模式可变绑定和插槽,可选的 Phase 6 与标记同步。

概览

这是一项用于操作Figma设计系统的Claude技能——两种模式同时存在:(只读审计,包含WCAG检查、组件评分、交接文档)和(创建组件、修复基础、添加槽位、编写描述)。构建模式可选地扩展到——生成tokens.css、审计脚本和代码库的AI规则文件。 可使用Claude Code、Cursor和Codex。 这是一个重大发布。该技能之前叫生成设计系统,只处理建造。现在它涵盖了整个生命周期:检查现有文件,决定构建或修复什么,并可选择导出为代码。在检查和构建之间,技能总是暂停等待你的决策。第六阶段默认关闭,只有在明确请求时才触发。 迁移说明请参见变更日志。仓库URL已更改,但旧链接会自动重定向。 亮点:- — 检查(只读)和构建(写入),中间必须暂停 - — 生成令牌。

概述(AI 翻译)

Claude 技能用于使用 Figma 设计系统——两模式同时存在:检查(只读审计,包含 WCAG 检查、组件评分、交接文档)和构建(创建组件、修复基础、添加槽位、编写描述)。构建模式可选扩展至 Phase 6(与代码同步)——生成 tokens.css、审计脚本和代码库的 AI 规则文件。

可使用Claude Code、Cursor和Codex。

v2.0 有什么新内容

这是一个重大版本。该技能之前叫generate-design-system,只负责构建。现在它涵盖了完整的生命周期:检查现有文件,决定构建或修复什么,并可选择导出代码。在检查和构建之间,技能总是暂停等待你的决策。第六阶段默认关闭,只有在明确请求时才触发。

从 v1.x 迁移: 迁移说明请参见 CHANGELOG。仓库 URL 已更改,但旧链接会自动重定向。

亮点:

  • 两种模式——检查(只读)和构建(写入),中间必须暂停
  • 阶段6 — 与代码同步(可选,默认关闭) — 生成“令牌”。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

work-with-design-systems

A Claude skill for working with Figma design systems — two modes in one place: inspect (read-only audits with WCAG checks, component scoring, handoff docs) and build (creating components, fixing foundations, adding slots, writing descriptions). Build mode optionally extends to Phase 6 (sync to code) — generates tokens.css, an audit script, and AI rules file for your codebase.

Works with Claude Code, Cursor, and Codex.

What’s new in v2.0

This is a major release. The skill was previously called generate-design-system and only handled building. Now it covers the full lifecycle: inspect existing files, decide what to build or fix, optionally export to code. Between inspect and build, the skill always pauses for your decision. Phase 6 is OFF by default and only triggers on explicit request.

Migration from v1.x: see CHANGELOG for the migration note. Repo URL has changed but old links redirect automatically.

Highlights:

  • Two modes — inspect (read-only) and build (write), with mandatory pause between
  • Phase 6 — sync to code (optional, off by default) — generates tokens.css with three-layer indirection, AI rules file (Claude Code / Cursor / Codex), and CI-ready audit script. Closes the design-to-code loop.
  • Slots support for compound components (Card, Modal, Dialog) — replaces detach patterns
  • Mandatory structured component descriptions — Figma MCP passes them to agents as context
  • Six audit modules — token compliance (with severity tiers), interactive states, WCAG accessibility, detached instances, naming quality, component descriptions
  • Weighted readiness scoring — score each component 0–100 (errors weighted 1.0, warnings 0.3)
  • Three export formats — markdown, JSON, AI prompt for code generation
  • Patterns guide — how to document composition patterns in Figma (and optionally export them as spec files to repo)
  • Story-to-variant parity check when codebase has Storybook
  • Auto-rename suggestion when generic layer names exceed 20%

What it does

The skill auto-detects mode from your request (or asks if unclear).

Inspect mode — read-only. Runs audit modules:

  • Module 1 — Token compliance. Variable binding coverage. Errors: unbound fills, strokes, padding, gaps, corner radii. Warnings: raw opacity (naming the alias-with-opacity token that replaces it when the file holds one), blur radius, animation durations. Text nodes without text styles flagged separately.
  • Module 2 — Interactive states. Compares variants against expected state matrices per component type. Missing states (Pressed on Button, Error on Input) listed with full expected set.
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add natdexterra/work-with-design-systems
新手?先看 mcpskill.org 教程 →