Token导航 LogoToken导航TokenDH.com
前端设计external-servicegithub未标认证来源可访问clear审计提醒

figma-integrationFigma 集成

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

6,355

周安装

273

GitHub Stars

87

下载量

2,228
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:figma-integration(Figma 集成)
来源仓库:https://github.com/mindrally/skills
仓库路径:skills/figma-integration
安装命令:
npx skills add https://github.com/mindrally/skills --skill figma-integration
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/mindrally/skills --skill figma-integration

简介

用于辅助前端页面、组件、样式和交互逻辑的开发与维护,适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码。

  • 适用于前端设计场景,需要结合项目现有设计系统、路由和构建方式使用。
  • 涉及页面改动时应配合本地预览和构建检查确认视觉效果。
  • 通过 npx skills add 命令从 GitHub 仓库安装,支持主流宿主环境集成。
  • figma-integration 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Figma Integration Guidelines

You are an expert in integrating Figma designs with development workflows. Apply these guidelines when working with Figma designs and implementing them in code.

Design-to-Code Workflow

Extracting Design Information

  • Identify component structure and hierarchy from Figma layers
  • Extract color values, typography settings, and spacing values
  • Note responsive behavior and breakpoint variations
  • Document interactive states (hover, active, focus, disabled)
  • Capture animation and transition specifications

Component Mapping

  • Map Figma components to code components
  • Identify reusable patterns and shared styles
  • Document variant properties and their code equivalents
  • Note auto-layout settings for flexbox/grid implementation

Implementation Guidelines

Colors and Theming

  • Extract color values in appropriate formats (hex, rgb, hsl)
  • Map Figma color styles to CSS custom properties or theme tokens
  • Ensure color contrast meets accessibility standards
  • Implement dark mode variants when specified

Typography

  • Extract font families, weights, and sizes
  • Map Figma text styles to CSS typography classes
  • Implement responsive typography scaling
  • Preserve line-height and letter-spacing values

Spacing and Layout

  • Convert Figma auto-layout to CSS Flexbox or Grid
  • Extract padding and margin values
  • Implement consistent spacing scale
  • Handle responsive layout changes at breakpoints

Components and Variants

  • Create component variants matching Figma structure
  • Implement interactive states consistently
  • Document prop interfaces based on Figma properties
  • Ensure component composition matches design intent

Asset Handling

Images and Icons

  • Export images at appropriate resolutions (1x, 2x, 3x)
  • Use SVG format for icons and simple graphics
  • Implement lazy loading for large images
  • Optimize file sizes for web performance

Exporting Best Practices

  • Use consistent naming conventions for exports
  • Organize assets in logical folder structures
  • Document asset usage and context
  • Version control design assets appropriately

Collaboration Workflow

Design Handoff

  • Review designs with designers before implementation
  • Clarify ambiguous specifications
  • Document implementation decisions and trade-offs
  • Communicate technical constraints early

Feedback Loop

  • Provide implementation previews for design review
  • Document deviations from original designs
  • Iterate based on design feedback
  • Maintain design-code consistency

MCP Server Integration

Setup and Configuration

When using Figma MCP servers with Cursor:

  1. Navigate to Cursor Settings > Features > MCP
  2. Click "+ Add New MCP Server"
  3. Configure with appropriate name, type, and command/URL
  4. Refresh tool list to populate available tools

Available MCP Tools

  • Figma MCP Server: Access design data directly from Figma
  • Figma Context MCP: AI-driven design operations and asset management
  • html.to.design MCP: Send HTML designs back to Figma
  • F2C MCP Server: Convert Figma nodes to HTML/CSS markup

Usage Guidelines

  • MCP tools activate automatically when relevant in Composer Agent
  • Explicitly request tools by name or describe their function
  • Tool execution requires user approval before processing
  • Ensure appropriate Figma access tokens are configured

Quality Assurance

Visual Comparison

  • Compare implementation against Figma designs
  • Check responsive behavior across breakpoints
  • Verify interactive states and animations
  • Test accessibility compliance

Design Token Validation

  • Verify color usage matches design specifications
  • Check typography implementation accuracy
  • Validate spacing and layout consistency
  • Ensure component variants match Figma

Figma API Usage

Reading Design Data

// Fetch file data
const file = await figma.getFile(fileKey);

// Get specific node
const node = await figma.getNode(fileKey, nodeId);

// Export images
const images = await figma.getImages(fileKey, {
  ids: [nodeId],
  format: 'svg',
  scale: 2
});

Common Operations

  • Fetch component libraries
  • Export assets programmatically
  • Read style definitions
  • Access component variants

Best Practices

  • Always reference the source Figma file when implementing
  • Maintain a component library that mirrors Figma structure
  • Use design tokens for consistent theming
  • Document any implementation limitations or trade-offs
  • Keep Figma and code in sync during iterations
  • Communicate proactively with design team about constraints
  • Automate design token extraction when possible

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.88%
按下载量换算599

OpenCode

22.17%
按下载量换算494

Antigravity

17.39%
按下载量换算387

Codex

11.41%
按下载量换算254

Gemini CLI

7.88%
按下载量换算176

Cursor

3.51%
按下载量换算78

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills