AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Figma Rules

skill-ikusmart-claude-figma-skills-figma-rules · by ikusmart

Generate project-specific design system rules that guide AI agents to produce consistent code when implementing Figma designs. Encodes your project's conventions, tokens, and component patterns. Use when: user says create design rules, generate rules, design system rules, set up design rules, customize design guidelines, or wants consistent Figma-to-code output.

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add skill-ikusmart-claude-figma-skills-figma-rules

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-ikusmart-claude-figma-skills-figma-rules)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
7mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Figma Rules? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Create Design System Rules

Self-Documentation

When invoked WITHOUT clear input:

  1. Display the Quick Help block below
  2. Ask the user if they want to generate rules for the current project

When invoked WITH clear intent — skip help and proceed to Step 1.

Quick Help

What I do: Generate a project-specific rules document that teaches AI agents how to correctly translate Figma designs into code for YOUR project. Encodes "unwritten knowledge" — component organization, token mapping, styling conventions.

Example prompts:

  • Create design system rules for this project
  • Generate Figma implementation rules
  • Set up design rules so /figma-implement uses our conventions

Prerequisites:

  • Figma MCP server configured. Run /figma-setup if not configured.
  • An existing project with components, styling, and conventions to encode.

What you get:

  • A rules document saved to .claude/rules/figma-design-system.md
  • Rules cover: component organization, implementation flow, token mapping, reuse patterns
  • All future /figma-implement calls will follow these rules automatically

Step 1: Analyze Project

Scan the current project to understand its structure:

  • Framework: React, Vue, Svelte, Angular, etc.
  • Component directories: where UI components live (e.g., src/components/ui/)
  • Styling: Tailwind, CSS Modules, styled-components, SCSS, design tokens
  • Token system: color variables, spacing, typography definitions
  • Naming conventions: PascalCase components, kebab-case files, etc.
  • Existing patterns: how components are structured, exported, tested

Step 2: Call MCP

Call create_design_system_rules with the detected frameworks and languages:

create_design_system_rules(
  clientFrameworks: "react,tailwind",   // detected frameworks
  clientLanguages: "typescript,css"      // detected languages
)

This returns a base set of rules from Figma.

Step 3: Customize Rules

Merge MCP output with project-specific conventions discovered in Step 1:

  • Map Figma color tokens → project CSS variables or Tailwind config
  • Map Figma spacing → project spacing scale
  • Map Figma typography → project font definitions
  • Define component reuse rules (which project components map to Figma components)
  • Define file placement rules (where new components should be created)

Step 4: Save Rules

Write the generated rules to .claude/rules/figma-design-system.md.

Example structure (the agent will generate project-specific content):

# Figma Design System Rules

## Component Organization
- Where UI components live, naming patterns

## Token Mapping
| Figma Token | Project Token |
|-------------|---------------|
| Primary/500 | --color-primary |

## Styling Rules
- Framework-specific conventions

Important: Rules saved to .claude/rules/ are auto-loaded for ALL sessions in this project. The /figma-implement skill will use these rules as primary context, skipping redundant project analysis.

Step 5: Report

Tell the user:

  • Where the rules file was saved
  • What conventions were encoded
  • How it affects future /figma-implement calls (rules are auto-loaded by Claude Code)
  • Suggest running /figma-implement to test the rules on a real design

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.