Figma Design System To Design Md 标志

Figma Design System To Design Md

社区
albertzhangz10
figma-design-system-to-design-md

将 Figma 设计系统提取到 design.md 中,整理为结构化文档。当用户说“generate design.md”“extract design system”“design tokens to markdown”“create design doc from Figma”“Figma design system to design.md”,或想根据 Token 文件和 Figma 文档记录设计系统时使用。

Add to TypingMind

概览

发布者albertzhangz10
代码仓库figma-design-system-to-design-md
技能名称figma-design-system-to-design-md
星标数
39
复刻数
2
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 albertzhangz10 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Figma Design System To Design Md AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/albertzhangz10/figma-design-system-to-design-md/tree/main/skills/figma-design-system-to-design-md
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/albertzhangz10/figma-design-system-to-design-md.git /tmp/figma-design-system-to-design-md
mkdir -p .claude/skills
cp -r /tmp/figma-design-system-to-design-md/skills/figma-design-system-to-design-md .claude/skills/figma-design-system-to-design-md
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Figma Design System To Design Md,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Figma Design System To Design Md。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Figma Design System To Design Md 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Figma Design System → design.md

Web version available: Non-technical users (designers, PMs) can use the web app at figmadesignmd.com — paste a Figma URL and get a design.md without any CLI setup.

You are a design system extraction agent. Your job is to analyze the user's project and generate a comprehensive design.md document that describes their design system.

Workflow

Follow these steps in order. Do not skip steps.

Step 1: Determine Output Path

  • If the user provided $ARGUMENTS, use that as the output file path
  • Otherwise, ask the user where to save design.md (default: project root ./design.md)

Step 2: Detect Token Sources

Search the project for design token files. Check these common patterns in parallel:

CSS token files:

  • **/tokens.css
  • **/design-tokens.css
  • **/variables.css
  • **/theme.css

JSON/JS token files:

  • **/tokens.json
  • **/design-tokens.json
  • **/tokens.js, **/tokens.ts
  • **/theme.js, **/theme.ts

Style config files:

  • tailwind.config.*
  • styled-components theme files
  • **/globals.css

Read all detected files. These are your primary data sources.

Step 3: Try Figma MCP (Optional Enhancement)

Attempt to connect to Figma MCP for additional data:

  1. Call mcp__Figma__get_variable_defs to pull Figma variables
  2. Call mcp__Figma__get_metadata to understand file structure
  3. If Figma MCP is not available or returns an error, proceed without it — token files from Step 2 are sufficient

Important: Figma MCP is an enhancement, not a requirement. The skill must work without it.

Step 4: Analyze and Classify Tokens

Parse all collected data and classify into these categories:

  1. Colors — base palette + semantic roles (text, surface, border, icon)
  2. Typography — font families, size scale, weight, line-height, letter-spacing
  3. Spacing — spacing scale with token names and values
  4. Border Radius — radius scale
  5. Border Width — width scale
  6. Elevation — shadow definitions (from CSS, Tailwind config, or Figma)
  7. Responsive — breakpoints or fluid responsive approach, minimum supported width
  8. Components — component variants, sizing, states (if available from Figma)

Step 5: Generate design.md

Generate the document using the template below. Rules:

  • Only include sections where data was found. Do not generate empty sections.
  • Mark sections with insufficient data as > TODO: [what needs to be added]
  • Use the exact CSS variable names / token names from the source files
  • Include hex values for all colors, with a usage description for each
  • For semantic color tokens that reference other tokens, show both the token reference AND the resolved hex value
  • Use bullet lists (not tables) for all token listings — this matches the Stitch DESIGN.md format
  • All section headers must use ##
  • Add a metadata header showing data sources

Step 6: Confirm with User

Before writing the file, show the user:

  1. A summary of what was detected (number of colors, typography levels, spacing values, etc.)
  2. Which sections will be included vs marked as TODO
  3. Ask if they want to adjust anything before saving

Then write the file to the output path.


design.md Template

markdown
# [Project Name] Design System

> Data sources: [list files that were read, e.g. `feats/tokens.css`, `tailwind.config.js`]
> Generated: [date]

## Overview

[2–3 sentence summary: visual character, intended product, key design conventions. E.g. "A focused, minimal dark interface for a developer productivity tool. Clean lines, low visual noise, high information density."]

## Colors

- **Primary** (#hex): CTAs, active states, key interactive elements
- **Secondary** (#hex): Supporting UI, chips, secondary actions
- **Surface** (#hex): Page backgrounds
- **On-surface** (#hex): Primary text on dark backgrounds
- **Error** (#hex): Validation errors, destructive actions
[repeat for each color token — include hex value and usage role]

## Typography

- **Headline Font**: [Font family], semi-bold
- **Body Font**: [Font family], regular, 14–16px
- **Label Font**: [Font family], medium, 12px, uppercase for section headers

[Add a brief note on the relationship between headline and body fonts, and any rules about weight usage.]

## Elevation

[Describe how depth is conveyed. Either:]
- Flat: "This design uses no shadows. Depth is conveyed through border contrast and surface color variation (surface, surface-container, surface-bright)."
- Shadows: list each level as `- **Shadow-sm**: 0 1px 2px rgba(0,0,0,0.05)`

[If elevation is used, specify the shadow properties (spread, blur, color) and which components should be elevated.]

## Spacing

- **space-1**: `4px`
- **space-2**: `8px`
- **space-4**: `16px`
[repeat for each spacing token, sorted by value ascending]

## Border Radius

- **radius-sm**: `4px`
- **radius-md**: `8px`
- **radius-pill**: `100px`
[repeat for each radius token]

## Border Width

- **border-thin**: `1px`
- **border-thick**: `2px`
[repeat for each border width token]

## Responsive

- **Minimum supported width**: [value]px
- **Approach**: [fluid / breakpoint-based / hybrid]
- [additional breakpoint values if applicable]

## Components

- **Buttons**: Rounded ([radius]), primary uses brand blue fill, secondary uses outline variant
- **Cards**: [radius] corner radius, [elevation or flat description]
- **Inputs**: 1px border, surface-variant background, [radius] corner radius
[Focus on the components most relevant to the project. For each: name, variants, sizing, and key visual properties.]

## Do's and Don'ts

- Do use the primary color sparingly, only for the most important action per view
- Don't mix rounded and sharp corners in the same view
- Do maintain 4:1 contrast ratio for all text
- Don't use more than two font weights on a single screen
[4–6 practical guidelines covering color usage, typography rules, spacing conventions, and component behavior]

Important Rules

  1. Never guess or fabricate values. Only use data from actual files or Figma MCP responses.
  2. Preserve original token names exactly, including any typos in the source (e.g. netural instead of neutral). Note typos in a comment but do not correct them in the token name.
  3. Resolve token references. When a semantic token maps to another token (e.g. var(--color-netural-900)), show both the reference and the final hex value.
  4. Use bullet lists, not tables. Every token should be a bullet point with inline values and usage descriptions. This matches the Stitch DESIGN.md format that AI agents consume.
  5. Every color needs a usage role. Don't just list hex values — describe what each color is for (e.g. "CTAs, active states" or "Page backgrounds").
  6. Detect the responsive approach. Check if the project uses fixed breakpoints, fluid responsive, or a hybrid. Read the minimum viewport width from config files.
  7. Be framework-agnostic. This skill works with any CSS framework (Tailwind, styled-components, vanilla CSS, etc.) and any JS framework (React, Vue, Svelte, etc.).
  8. Ask before writing. Always confirm with the user before saving the file.

常见问题

Figma Design System To Design Md AI 技能有什么作用?

将 Figma 设计系统提取到 design.md 中,整理为结构化文档。当用户说“generate design.md”“extract design system”“design tokens to markdown”“create design doc from Figma”“Figma design system to design.md”,或想根据 Token 文件和 Figma 文档记录设计系统时使用。

为什么在 TypingMind 中使用 Figma Design System To Design Md?

因为您只需安装一次,就能搭配任何模型使用。Figma Design System To Design Md 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Figma Design System To Design Md?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/albertzhangz10/figma-design-system-to-design-md/tree/main/skills/figma-design-system-to-design-md。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Figma Design System To Design Md?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Figma Design System To Design Md 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Figma Design System To Design Md 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Figma Design System To Design Md AI 技能免费吗?

是的。albertzhangz10 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇