Token导航 LogoToken导航

Agent Skill · 前端设计

figma-integration(Figma 集成)

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

figma-integration 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 9,031。

总安装 242周安装 10GitHub Stars 9下载 79核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

该技能可以: ✅ 从 Figma 文件中提取设计 ✅ 成分检测与分析 ✅ 生成实施规范 ✅ 细化设计迭代 ✅ 缓存管理以提高性能 ✅ 整个工作流程的最佳实践指导 典型工作流程时间: 简单组件:2-5 分钟 复杂页面:10-15分钟 设计迭代:每个周期 5-10 分钟 关键命令: /ccpm:plan PSN-123 # 开始设计 /ccpm:计划 PSN-123 # 迭代 /ccpm:plan PSN-123 1 # 生成规格 /ccpm:figma-refresh PSN-123 # 刷新缓存 集成:与 /ccpm:plan 一起使用 和 /ccpm:figma-refresh 命令 MCP 服务器:Figma MCP(figma-repeat、figma-trainer-guru 等) 线性集成:将设计和规格存储在线性文档中 共享模块:使用_shared-figma-detection.md 用于链接检测 每周安装量 10 存储库 duongdev/ccpm GitHub 之星 9 第一次看到 2026 年 1 月 22 日 安全审计 Gen Agent Trust Hub 通行证 套接字通行证 斯尼克警告

来源仓库内路径:skills/figma-integration

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/duongdev/ccpm --skill figma-integration;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

figma-integration 怎么安装?

在终端执行 npx skills add https://github.com/duongdev/ccpm --skill figma-integration。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

figma-integration 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

figma-integration 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/duongdev/ccpm --skill figma-integration;npx skills add duongdev/ccpm --skill "figma-integration" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

figma-integration 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

figma-integration 用的人多吗?

公开数据是累计安装 242 次,近一周安装 10 次,下载 79 次,GitHub 9 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

figma-integration 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
figma-integration

Figma 集成 · 本页

2429执行命令MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Figma Integration Skill

Transform Figma designs into implementation-ready specifications with CCPM's design-to-code workflow.

When This Skill Activates

This skill auto-activates when:

  • User mentions "Figma" or "design" in implementation context
  • User asks about "component", "design system", or "design tokens"
  • Running /ccpm:plan (starts design process)
  • Running /ccpm:plan (refine designs)
  • Running /ccpm:plan (generate specs)
  • Running /ccpm:figma-refresh (refresh cached designs)
  • User mentions "design-to-code", "design file", or "Figma component"

The Figma Workflow

Phase 1: Design Phase

Command: /ccpm:plan ISSUE-ID

Start the design process by attaching Figma links to your Linear issue:

1. Create/update Linear issue with task description
2. Attach Figma design link in issue description
3. Run /ccpm:plan TASK-123
4. CCPM extracts design metadata and creates options

What happens:

  • Detects Figma links from issue and related documents
  • Analyzes design file metadata (frames, components, assets)
  • Extracts design tokens (colors, typography, spacing)
  • Creates visual options or wireframes
  • Caches design data for instant access

Example:

/ccpm:plan PSN-123

✅ Detected Figma link: https://figma.com/file/ABC123/UserDashboard
📦 Design Analysis:
   - 12 frames found
   - 15 components detected
   - Color palette: 8 colors
   - Typography: 4 font families
   - Spacing pattern: 4px, 8px, 16px grid

Ready for design review. Run: /ccpm:plan PSN-123

Phase 2: Refinement Phase

Command: /ccpm:plan ISSUE-ID [OPTION] [FEEDBACK]

Iterate on designs based on feedback:

1. Review design options from Phase 1
2. Provide feedback or request changes
3. Run /ccpm:plan TASK-123 "feedback"
4. CCPM creates refined design options

What happens:

  • Analyzes your feedback
  • Generates refined design variations
  • Adjusts colors, layout, or components
  • Updates design cache with new versions
  • Shows side-by-side comparisons

Example:

/ccpm:plan PSN-123 1 "Make the buttons larger, use primary color"

🎨 Refining Design Option 1...

Changes applied:
- Button height: 36px → 44px
- Button color: #6366F1 → primary color
- Button spacing: 12px → 16px

Preview: [design-option-1-v2]

Ready for approval? Run: /ccpm:plan PSN-123 1

Phase 3: Approval & Spec Generation

Command: /ccpm:plan ISSUE-ID OPTION-NUMBER

Approve final design and generate implementation specifications:

1. Review refined design options
2. Choose best option
3. Run /ccpm:plan TASK-123 1
4. CCPM generates comprehensive specs

What happens:

  • Locks design as final reference
  • Extracts component specifications
  • Generates implementation specs with:

- Component breakdown - Props and state recommendations - Styling specifications - Accessibility guidelines - Responsive design rules

  • Creates Linear Document with specs
  • Updates issue description with spec link

Example:

/ccpm:plan PSN-123 1

✅ Design Approved!

Generated Implementation Specs:
📄 Component Specifications
📄 Styling Guidelines
📄 Responsive Rules
📄 Accessibility Checklist

Specs saved to: https://linear.app/doc/ABC123
Ready for implementation!

Phase 4: Cache Management

Command: /ccpm:figma-refresh ISSUE-ID

Refresh cached design data when designs change:

1. Update Figma designs
2. Run /ccpm:figma-refresh TASK-123
3. CCPM re-extracts design data
4. Cache is updated with latest designs

When to refresh:

  • Design significantly changed
  • New components added to Figma
  • Colors or typography updated
  • Design tokens modified
  • Last refresh was >1 hour ago (cache TTL)

Design Analysis Deep Dive

What CCPM Extracts From Figma

Component Structure:

Dashboard
├── Header
│   ├── Logo
│   ├── Navigation
│   └── UserMenu
├── Sidebar
│   ├── NavItems
│   └── UserProfile
└── MainContent
    ├── Cards
    └── Charts

Design Tokens:

  • Color palette with hex/RGB values
  • Typography: font families, sizes, weights
  • Spacing: margin, padding, gap values
  • Shadows and effects
  • Border radius patterns

Component Metadata:

  • Frame dimensions (width, height)
  • Layout type (flex, grid, auto)
  • Constraints and responsive behavior
  • Text content and styles
  • Image assets and sizing

Component Detection

CCPM automatically identifies:

  1. UI Components: Buttons, inputs, cards, modals, etc.
  2. Layout Components: Headers, sidebars, grids, etc.
  3. Screens/Pages: Full page layouts with multiple components
  4. Variants: Different states (hover, active, disabled)
  5. Assets: Icons, images, and design patterns

Example detection:

Frame: "Button / Primary / Large"
├── Detection: UI Component (Button)
├── Style: Primary (blue)
├── Size: Large (44px height)
├── State: Default
└── Variations: [Hover, Active, Disabled]

Implementation Specification Generation

What Gets Generated

When you approve a design, CCPM creates specs including:

1. Component Definition

Component: PrimaryButton
Props:
  - label: string (required)
  - size: "sm" | "md" | "lg" (default: "md")
  - disabled: boolean (default: false)
  - onClick: () => void
  - icon?: React.ReactNode

State:
  - loading: boolean
  - hover: boolean
  - focus: boolean

2. Visual Specifications

Sizing:
  - Small: 32px height
  - Medium: 40px height
  - Large: 44px height

Spacing:
  - Horizontal padding: 16px
  - Vertical padding: 8px

Typography:
  - Font: Inter
  - Weight: 600 (semibold)
  - Size: 14px

Colors:
  - Background: #6366F1
  - Text: #FFFFFF
  - Hover: #4F46E5

3. Responsive Rules

Breakpoints:
  - Mobile (< 768px): Single column
  - Tablet (768px - 1024px): Two columns
  - Desktop (> 1024px): Three columns

Mobile adjustments:
  - Button height: 40px → 36px
  - Padding: 16px → 12px
  - Font size: 14px → 12px

4. Accessibility Checklist

WCAG 2.1 AA Compliance:
- [ ] Color contrast ratio ≥ 4.5:1 for text
- [ ] Button hit target ≥ 44x44px
- [ ] Focus indicators visible
- [ ] ARIA labels for icons
- [ ] Keyboard navigation support

Practical Examples

Example 1: Simple Button Component

Start the workflow:

1. Create Linear issue: PSN-100 "Design primary button"
2. Add Figma link to issue description:
   https://figma.com/file/ABC123/Components?node-id=15:2
3. Run: /ccpm:plan PSN-100

Design phase output:

✅ Design Analysis Complete

Component: Button / Primary
├── Size: 44px height
├── Color: #6366F1
├── Typography: Inter, 600, 14px
└── States: Default, Hover, Active, Disabled

Generated specs location: [Linear Document]
Ready for implementation.

Developer implements:

export function PrimaryButton({ label, onClick }) {
  return (
    <button
      onClick={onClick}
      className="h-11 px-4 bg-indigo-600 text-white font-semibold
                 rounded hover:bg-indigo-700 focus:outline-none
                 focus:ring-2 focus:ring-indigo-500"
    >
      {label}
    </button>
  );
}

Example 2: Dashboard Page

Complex multi-component design:

1. Create issue: PSN-200 "Design dashboard page"
2. Add Figma file: https://figma.com/file/XYZ789/Dashboard
3. Run: /ccpm:plan PSN-200

Analysis reveals:

✅ Design Analysis Complete

Components detected: 12
├── Header (1)
├── Sidebar (1)
├── Cards (5)
├── Charts (3)
└── Tables (2)

Color palette:
├── Primary: #6366F1
├── Secondary: #EC4899
├── Neutral: #F3F4F6 - #1F2937
└── Success: #10B981

Typography:
├── Display: Space Mono
├── Body: Inter
└── Code: Monaco

Generated breakdown: [Linear Document]

Recommended approach:
1. Build layout shell (Header + Sidebar)
2. Implement card components
3. Add data visualization
4. Connect to API

Design refinement:

/ccpm:plan PSN-200 1 "Increase sidebar width to 280px,
make cards taller"

✅ Refined Design Option 1

Adjustments:
- Sidebar width: 240px → 280px
- Card height: 220px → 280px
- Card padding: 16px → 20px
- Grid gap: 16px → 20px

Side-by-side comparison: [View]
Ready for approval!

Final approval:

/ccpm:plan PSN-200 1

✅ Dashboard Design Approved!

Implementation specs generated:
📄 Layout Specification (Header, Sidebar, Grid)
📄 Card Component Specs (5 variations)
📄 Chart Integration Guide
📄 Responsive Breakpoints
📄 Accessibility Requirements

Linear Document: [docs/specs/dashboard-implementation]

Next: Run /ccpm:work PSN-200

Example 3: Design Iteration Workflow

Scenario: Design changed mid-implementation

Situation:
- Approved design shows 3-column layout
- Designer changes it to 2-column layout
- Specs are now outdated

Solution:
1. Update Figma file with new layout
2. Run: /ccpm:figma-refresh PSN-300
3. Specs automatically update

Cache refresh process:

/ccpm:figma-refresh PSN-300

🔄 Refreshing Figma cache...

Changes detected:
- ✅ Layout changed: 3-column → 2-column
- ✅ Card sizes updated
- ✅ Color palette modified (1 color added)
- ✅ Typography updated

Updated specs: [Linear Document]
Notified: Design changes affect layout components

Action items:
- Review responsive breakpoints
- Update card widths
- Check new color usage

Best Practices

Do's ✅

  1. Organize your Figma file

- Use clear, descriptive frame names - Group related components - Label variants (e.g., "Button / Primary / Large") - Document component purpose in descriptions

  1. Keep designs up-to-date

- Update Figma as designs change - Use design tokens consistently - Document color meanings (primary, success, error) - Update component descriptions with specs

  1. Use descriptive Figma links

- Link to specific components, not entire file - Use node IDs for precise targeting - Example: /file/ABC123?node-id=15:2

  1. Attach Figma links to Linear issues

- Always include design link in issue description - Add to existing issues during planning - Update links if design file changes

  1. Review extracted specs

- Verify component detection is correct - Check color values match your palette - Ensure spacing recommendations work - Validate responsive breakpoints

Don'ts ❌

  1. Don't implement without approved specs

- Always run design-approve first - Prevents scope creep - Ensures design alignment

  1. Don't ignore cache invalidation

- Refresh designs when file changes significantly - Don't work with stale cache - Keeps specs synchronized

  1. Don't use vague frame names

- "Frame 15" is not helpful - Use: "UserCard / Default / Light" - Helps CCPM detect components correctly

  1. Don't skip accessibility specs

- Review WCAG checklist before implementation - Test color contrast - Verify button sizes and spacing

  1. Don't bypass refinement phase

- Always iterate with design-refine - Get feedback before approval - Prevents rework during implementation

Caching & Performance

How Caching Works

CCPM caches Figma data to provide instant access:

Cache storage:

  • Stored in Linear issue comments
  • Timestamped for validation
  • TTL: 1 hour (configurable)
  • Survives across sessions

Cache includes:

  • Component metadata
  • Design tokens (colors, typography, spacing)
  • Frame hierarchy
  • Text content
  • Asset references

Example cache entry:

## 🎨 Figma Design Cache (PSN-123)

Design File: Dashboard.fig
Cached: 2025-11-21 14:30:00 UTC
Expires: 2025-11-21 15:30:00 UTC
Server: figma-repeat

Components: 12
Colors: 8
Typography: 4 styles
Spacing grid: [4, 8, 16, 32]px

Status: ✅ Valid cache
Action: Use `figma-refresh` to update

When Cache Expires

Cache automatically invalidates if:

  • 1 hour has passed
  • Design file was significantly modified
  • User explicitly runs figma-refresh
  • New Figma link was added

What happens when cache expires:

  1. CCPM re-fetches design data from Figma
  2. Analyzes updated design
  3. Updates cache with new data
  4. Notifies of any changes

Rate Limiting

CCPM respects Figma API rate limits:

Official Figma API (6 calls/month):

  • Used for critical operations
  • Careful rate limit management
  • Falls back to cache on limit

Community servers (60 calls/hour):

  • Higher rate limits
  • Recommended for active development
  • Better for iterative design workflows

Check rate limit status:

/ccpm:figma-refresh PSN-123 --status

📊 Figma Rate Limit Status

Official API: 4/6 used (66%)
Community (figma-repeat): 42/60 used (70%)

Recommendation: Use community server to preserve official API calls

Integration with CCPM Commands

Works With Planning Commands

/ccpm:plan

  • Starts design extraction
  • Creates design options
  • Caches metadata

/ccpm:plan

  • Iterates on designs
  • Applies feedback
  • Updates cache

/ccpm:plan

  • Finalizes design
  • Generates full specs
  • Creates Linear Document

Works With Implementation Commands

/ccpm:work

  • Loads approved specs
  • Uses component breakdown
  • References styling guidelines

/ccpm:sync

  • References design specs
  • Verifies implementation matches design
  • Flags design deviations

Works With Utility Commands

/ccpm:figma-refresh

  • Force refresh design cache
  • Check rate limit status
  • View cache information

/ccpm:work

  • Loads design specs for task context
  • Includes component breakdown
  • Shows styling guidelines

Troubleshooting

Design Not Detected

Problem: Figma link not found in issue

Solutions:

  1. Verify link is in issue description Add to issue: https://figma.com/file/ABC123/Project
  2. Check link format ✅ Correct: https://figma.com/file/ABC123/Project ❌ Wrong: figma.com/file (missing protocol)
  3. Try explicit link parameter /ccpm:plan PSN-123 --figma-url "https://..."

Colors Not Extracted

Problem: Design colors not in generated specs

Solutions:

  1. Ensure colors are defined in Figma file

- Use color styles, not custom colors - Name colors consistently (e.g., "Primary Blue")

  1. Refresh cache /ccpm:figma-refresh PSN-123
  2. Check server configuration /ccpm:figma-refresh PSN-123 --status

Rate Limit Exceeded

Problem: Too many Figma API calls

Solutions:

  1. Switch to community server (higher limits)

- Community servers: 60/hour - Official API: 6/month

  1. Wait for rate limit reset

- Community servers reset hourly - Official API resets monthly

  1. Use cached data

- Cache remains valid even with rate limit - Use figma-refresh only when needed

Spec Generation Failed

Problem: Linear Document creation failed

Solutions:

  1. Check Linear permissions

- Verify write access to Linear workspace

  1. Try again with larger issue ID /ccpm:plan PSN-123 1 --retry
  2. Check cache validity /ccpm:figma-refresh PSN-123

Summary

This skill enables:

  • ✅ Design extraction from Figma files
  • ✅ Component detection and analysis
  • ✅ Specification generation for implementation
  • ✅ Design iteration with refinement
  • ✅ Cache management for performance
  • ✅ Best practices guidance throughout workflow

Typical workflow time:

  • Simple component: 2-5 minutes
  • Complex page: 10-15 minutes
  • Design iteration: 5-10 minutes per cycle

Key commands:

/ccpm:plan PSN-123          # Start design
/ccpm:plan PSN-123      # Iterate
/ccpm:plan PSN-123 1   # Generate specs
/ccpm:figma-refresh PSN-123         # Refresh cache

Integration: Works with /ccpm:plan and /ccpm:figma-refresh commands MCP Servers: Figma MCP (figma-repeat, figma-trainer-guru, etc.) Linear Integration: Stores designs and specs in Linear Documents Shared Module: Uses _shared-figma-detection.md for link detection

平台分布

Claude Code

28.28%
按下载量换算22

OpenCode

21.84%
按下载量换算17

Gemini CLI

18.87%
按下载量换算15

Cursor

11.44%
按下载量换算9

Antigravity

8.13%
按下载量换算6

kilo

3.69%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/duongdev/ccpm --skill figma-integration;npx skills add duongdev/ccpm --skill "figma-integration" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills