Agent skill · Code Review & Quality

figma-use

**MANDATORY prerequisite** — you MUST invoke this skill BEFORE every `use_figma` tool call. NEVER call `use_figma` directly without loading this skill first. Skipping it causes common, hard-to-debug failures. Trigger whenever the user wants to perform a write action or a unique read action that requires JavaScript execution in the Figma file context — e.g. create/edit/delete nodes, set up variables or tokens, build components and variants, modify auto-layout or fills, bind variables to properties, or inspect file structure programmatically.

Haohao-endgithub.com/Haohao-endGitHub ↗
claude-codeMIT
Install
npx skills add Haohao-end/openagent --skill figma-use --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 7
SKILL.md size: 17 KB
Bundled scripts: none
Path: api/internal/core/skills/catalog/figma-use/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 778
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# use_figma — Figma Plugin API Skill Use `use_figma` MCP to execute JavaScript in Figma files via the Plugin API. All detailed reference docs live in `references/`. **Always pass `skillNames: "figma-use"` when calling `use_figma`.** This is a logging parameter used to track skill usage — it does not affect execution. **If the task involves building or updating a full page, screen, or multi-section layout in Figma from code**, also load [figma-generate-design](../figma-generate-design/SKILL.md). It provides the workflow for discovering design system components via `search_design_system`, importing them, and assembling screens incrementally. Both skills work together: this one for the API rules, that one for the screen-building workflow. Before anything, load [plugin-api-standalone.index.md](references/plugin-api-standalone.index.md) to understand what is possible. When you are asked to write plugin API code, use this context to grep [plugin-api-standalone.d.ts](references/plugin-api-standalone.d.ts) for relevant types, methods, and properties. This is the definitive source of truth for the API surface. It is a large typings file, so do not load it all at once, grep for relevant sect

What's inside
Steps it walks through
  1. 1. Critical Rules
  2. 2. Page Rules (Critical)
  3. Switching pages
  4. Across script runs
  5. 3. return Is Your Output Channel
  6. 4. Editor Mode
  7. 5. Incremental Workflow (How to Avoid Bugs)
  8. The pattern
  9. Suggested step order for complex tasks
  10. What to validate at each step
  11. 6. Error Recovery & Self-Correction
  12. When usefigma returns an error
  13. Common self-correction patterns
  14. When the script succeeds but the result looks wrong
Ships with 5 files
  • agents/openai.yaml
  • assets/figma-small.svg
  • assets/figma.png
  • assets/icon.svg
  • manifest.yaml
More from openagent
All skills →
About this skill
What does the figma-use skill do?

**MANDATORY prerequisite** — you MUST invoke this skill BEFORE every `use_figma` tool call. NEVER call `use_figma` directly without loading this skill first. Skipping it causes common, hard-to-debug failures. Trigger whenever the user wants to perform a write action or a unique read action that requires JavaScript execution in the Figma file context — e.g. create/edit/delete nodes, set up variables or tokens, build components and variants, modify auto-layout or fills, bind variables to properties, or inspect file structure programmatically.

How do I install it?

Run `npx skills add Haohao-end/openagent --skill figma-use --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From Haohao-end/openagent, a repository with 778 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going