跳到正文
cccskills
免费在 GitHub 公开

figma-pilot

REQUIRED reading before using figma_execute. Contains API syntax, parameter formats, and examples. READ rules/*.md files for correct usage.

中文简介正在准备中。当前显示原文说明。

集成工具Figma
查看安装方法

包含的文件(22)

  • SKILL.md3.8 KB
  • rules/accessibility.md2.1 KB
  • rules/components.md2.6 KB
  • rules/constraints.md2.0 KB
  • rules/corner-radius.md1.3 KB
  • rules/create.md3.7 KB
  • rules/effects.md2.1 KB
  • rules/export.md907 B
  • rules/fonts.md2.5 KB
  • rules/gradients.md2.0 KB
  • rules/layout.md2.1 KB
  • rules/modify.md2.6 KB
  • rules/patterns.md2.6 KB
  • rules/query.md1.3 KB
  • rules/quick-start.md1.4 KB
  • rules/status.md527 B
  • rules/strokes.md1.5 KB
  • rules/target-specifiers.md1.1 KB
  • rules/text.md2.4 KB
  • rules/tokens.md1021 B
  • rules/transforms.md1.3 KB
  • rules/workflow.md2.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

When to use

ALWAYS read this skill BEFORE calling figma_execute! This skill contains the correct API syntax, parameter formats, and examples that you MUST follow. Failure to read this will result in syntax errors.

Use this skill whenever you are working with figma-pilot MCP tools to create or modify Figma designs.

Code Execution Mode

figma-pilot uses a code execution mode for maximum efficiency. Instead of 15+ individual tools, you use figma_execute to run JavaScript code with access to all Figma APIs.

Available Tools

ToolDescription
figma_statusCheck connection to Figma plugin (call first)
figma_executeExecute JavaScript with all Figma APIs
figma_get_api_docsGet detailed API documentation

Quick Example

// figma_execute
// Create a card and modify selection
await figma.create({
  type: 'card',
  name: 'Welcome Card',
  children: [
    { type: 'text', content: 'Hello!', fontSize: 24 }
  ]
});

const { nodes } = await figma.query({ target: 'selection' });
for (const node of nodes) {
  await figma.modify({ target: node.id, fill: '#0066FF' });
}
console.log(`Modified ${nodes.length} elements`);

Benefits

  • 90%+ fewer tokens - 3 tools instead of 15+
  • Batch operations - Modify many elements in one call
  • Data filtering - Filter results before returning to context
  • Complex workflows - Loops, conditionals, error handling

API Reference

Read individual rule files for detailed API documentation:

Getting Started

Core APIs

Creating Elements

Modifying Elements

Styling

Text

Components

  • rules/components.md - figma.listComponents(), figma.instantiate(), figma.toComponent(), figma.createVariants()

Accessibility

Design Tokens

  • rules/tokens.md - figma.createToken(), figma.bindToken(), figma.syncTokens()

Export

Common Patterns

Reference

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题