Agent skill Frontend
Figma Shaders
Connect design references and design tools to frontend implementation.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add figma/mcp-server-guide --skill figma-shaders --agent claude-code --yesCheck this file in your project.claude/skills/figma-shaders/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add figma/mcp-server-guide --skill figma-shadersSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A supported remote Figma MCP client that exposes the shader tools, an authorized ownership plan, two approved colors, and WebGPU support for a later canvas preview.
View operation manualWhat this skill helps with
- Connect design references and design tools to frontend implementation.
Good for
- Design handoff
- Task
- Author one static two-tone shader fill in the approved Figma plan
- Requirements
- A supported remote Figma MCP client that exposes the shader tools, an authorized ownership plan, two approved colors, and WebGPU support for a later canvas preview.
- Deliverable
- One account-library fill shader with a documented source update, returned resource ID and a link to try it when the client allows.
- Skill name
figma-shaders- Repository
figma/mcp-server-guide
Make motion and tool results verifiable
An underspecified brief
Create a shader starter and report a finished background.
The starter is an intermediate resource. The generated fill only exists after the current scaffold has been read and its full main.ts has been accepted.
A result you can check
- Choose a static fill for a procedural background with no input image.
- Build the complete source from the returned scaffold using the current schema.
- Treat update acceptance and a WebGPU preview as separate checks.
Figma Shaders operation manual
One account-library fill shader with a documented source update, returned resource ID and a link to try it when the client allows.
A supported remote Figma MCP client that exposes the shader tools, an authorized ownership plan, two approved colors, and WebGPU support for a later canvas preview.
Confirm tool access, ownership and shader kind
Choose a static fill for a procedural background with no input image.
Prompt · Step 1Use Figma’s installed figma-shaders Skill and read its SKILL.md first. Use the approved [two-tone stationery background brief] and [owning Figma plan]. Load figma-shaders before any shader mutation. Verify the remote tool schemas and authorization for an account-library draft. Resolve planKey from the supplied plan or whoami, and confirm the destination if several eligible plans exist. Choose fill and keep the version static.Read the starter and update its shader source
Build the complete source from the returned scaffold using the current schema.
Prompt · Step 2Use Figma’s installed figma-shaders Skill and read its SKILL.md first. Create one fill starter with create_shader. Read the exact shader returned by ID, using get_shader source URIs or includeSource when supported. Follow the bundled authoring contract for a static two-tone gradient with bounded controls, without reading an input raster or frame time. Submit the complete main.ts with update_shader, same ID and kind, commitMessage, and nonblank version details if the schema exposes them.Record the server result first and canvas preview separately
Treat update acceptance and a WebGPU preview as separate checks.
- The service accepted a source update for the authorized shader ID and returned its available build evidence.
- Two-tone rendering is verified in a WebGPU-capable preview or explicitly listed as pending.
Prompt · Step 3Use Figma’s installed figma-shaders Skill and read its SKILL.md first. Report the returned shader name, ID, fill kind and version if supplied. Provide the Skill’s new-Design-file try link using that exact resource ID and gen_fill. If I authorize an editable scratch file and the client can render WebGPU, verify the two colors and the fill on two shapes there. Record any compiler failure or unavailable preview and leave publication out of scope.
Look up this workflow decision
Read the relevant section in the installed Skill.
get_shader returns resource URIs that my client cannot openSKILL.md
- Command or reference
Create workflow- Examples
- Check whether the current schema exposes includeSource. Use that alternative if supported and stop before editing if the actual source is unavailable.
Troubleshooting
Do I need an existing Design file or source image?
Creating the shader needs a plan key and author access. A procedural fill has no input raster. Trying it on an existing canvas needs edit access and a supported WebGPU environment.