figma-generate-library
Skill7 starsChanged 4 months agoMITView on GitHub
Generate Figma component library from React/shadcn codebase with Code Connect parity
13 other projects use a version of this.
Adopted by
Most recently taken up by
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
- PracticalSwan/agent-skillstheir own version, first seen Oct 19, 2026
- jhy0285/monofieldtheir own version, first seen Oct 13, 2026
- openai/pluginstheir own version, first seen Oct 13, 2026
- studio-lgtm/Claude-Skillstheir own version, first seen Oct 13, 2026
- figma/mcp-server-guidetheir own version, first seen Oct 8, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- openai/skills★ 27ksame name
- openai/plugins★ 7.8ksame name
- figma/mcp-server-guide★ 2.2ksame name
- PracticalSwan/agent-skills★ 22same name
- ferocknew/claude_code_public_skills★ 9same name
- HK-hub/AgentSkills★ 6same name
- jhy0285/monofield★ 6same name
- FuSheng-MG/Pi-Agent-skills★ 1same name
- jpoindexter/theft-kit★ 1same name
- SkotAlexsander/skills★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository95 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-auditSkill
- agent-memory-profilesSkill
- agent-messaging-gatewaySkill
- agent-session-checkpointsSkill
- agent-skill-migrationSkill
- ai-interaction-designSkill
- animation-craftSkill
- animation-vocabularySkill
- apple-designSkill
- apple-desktop-automationSkill
- approval-sandbox-policiesSkill
- atomic-designSkill
- better-colorsSkill
- better-typographySkill
- better-uiSkill
- browser-research-agentSkill
- codex-opsSkill
- competitive-intelSkill
- component-catalogSkill
- content-designSkill
- creative-rendering-auditSkill
- cron-agent-workflowsSkill
- dashboard-from-researchSkill
- data-synthesisSkill
- design-extractSkill
- design-measurement-and-experimentationSkill
- design-sandbox-proofSkill
- design-system-referenceSkill
- design-systemsSkill
- design-to-code-handoffSkill
- dialkitSkill
- docker-environmentsSkill
- emil-design-engSkill
- figma-auditSkill
- figma-code-connectSkill
- figma-create-fileSkill
- figma-design-systemsSkill
- figma-ds-rulesSkill
- figma-generate-designSkill
- figma-implement-designSkill
- figma-library-builderSkill
- figma-plugin-apiSkill
- figma-prototypeSkill
- figma-syncSkill
- figma-useSkill
- figma-web-captureSkill
- find-animation-opportunitiesSkill
- flutter-genSkill
- gateway-ops-observabilitySkill
- hermes-agent-bridgeSkill
- hyperframes-videoSkill
- improve-animationsSkill
- information-architectureSkill
- interaction-designSkill
- interface-craft-gateSkill
- interview-researchSkill
- ios-app-intentsSkill
- ios-performance-debuggingSkill
- linear-syncSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Skip components that already have Code Connect mappings: Only create what's missing.
- Distinctive: line 39
Before components, ensure design tokens exist:
- Very specific: line 112
Run the self-healing loop from /figma-use for each component.
- Distinctive: line 155
Not documenting component properties
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/figma-generate-library — Create Component Library from Codebase
Generate Figma components from your React/shadcn codebase, establishing Code Connect for perfect design-code parity. Requires /figma-use.
Freedom Level: High
Full creative freedom for visual representation, but component structure must mirror the codebase exactly.
Prerequisites
/figma-usefoundational skill loaded- Codebase has shadcn/ui or similar component library
memi connectactivefigma_search_componentscalled this session
Workflow
Step 1: Check Existing Mappings
get_code_connect_map → what's already mapped?Skip components that already have Code Connect mappings. Only create what's missing.
Step 2: Scan Codebase Components
Read generated/ and src/components/ directories
Identify all React components with:
- Props interface (variants, sizes, states)
- shadcn/ui base components used
- Tailwind classes → map to Figma properties
- Atomic level (atom/molecule/organism)Step 3: Create Variables First (Batch)
Before components, ensure design tokens exist:
figma_batch_create_variables (up to 100 per call):
colors/ → all color tokens (primary, secondary, destructive, etc.)
spacing/ → 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48, 64
radius/ → none, sm, default, md, lg, xl, 2xl, full
typography/ → font sizes, weights, line heightsAlways use batch tools — 10-50x faster than individual calls.
Step 4: Build Components Bottom-Up
1. Create or find "Design System" page
2. Create Section per atomic level:
├── Section "Atoms"
├── Section "Molecules"
├── Section "Organisms"
└── Section "Templates"
3. For each component:
a. Use use_figma (preferred) or typed Mémoire Figma actions for creation
b. Add variant properties matching React props
c. Bind all visual properties to variables
d. Apply correct sizing (hug/fill)
e. Document with description
4. Arrange with figma_arrange_component_setAtoms (shadcn/ui primitives)
Each atom becomes a Component Set with variant properties:
ComponentSet "Button"
├── variant=default, size=default
├── variant=destructive, size=default
├── variant=outline, size=sm
└── variant=ghost, size=lg
Properties:
variant: default | destructive | outline | secondary | ghost | link
size: default | sm | lg | icon
state: default | hover | active | disabled | focused
hasIcon: boolean
label: text propertyMolecules (composed atoms)
Component "FormField"
├── Label (instance of Atom/Label)
├── Input (instance of Atom/Input)
└── HelpText (instance of Atom/HelpText, optional)
Properties:
state: default | error | success | disabled
hasHelpText: boolean
label: text
placeholder: textOrganisms (composed molecules + atoms)
Component "LoginForm"
├── FormField (email)
├── FormField (password)
├── Checkbox (remember me)
├── Button (submit, fill width)
└── Links row
Properties:
hasSocialLogin: boolean
hasRememberMe: booleanStep 5: Self-Healing Loop (per component)
Run the self-healing loop from /figma-use for each component. Additionally verify: matches codebase visually, all variants render, properties documented, PascalCase naming.
Step 6: Establish Code Connect (PRIMARY OUTPUT)
This is the most important step. Map every Figma component to code:
add_code_connect_map:
Button → src/components/ui/button.tsx
Input → src/components/ui/input.tsx
Card → src/components/ui/card.tsx
FormField → src/components/molecules/FormField.tsx
LoginForm → generated/components/LoginForm/LoginForm.tsxStep 7: Generate Mémoire Specs
For each component created:
memi spec component Button
memi spec component FormField
memi spec component LoginFormshadcn/ui → Figma Mapping
| shadcn Component | Figma Type | Atomic Level | Key Properties |
| Button | Component Set | Atom | variant, size, state, hasIcon |
| Input | Component Set | Atom | state, type, hasIcon |
| Label | Component | Atom | required (boolean) |
| Badge | Component Set | Atom | variant |
| Card | Component | Atom | — |
| Separator | Component | Atom | orientation |
| Select | Component Set | Molecule | state, hasPlaceholder |
| Dialog | Component Set | Organism | hasOverlay, size |
| Sheet | Component Set | Organism | side, size |
| Table | Component Set | Organism | hasHeader, hasPagination |
| Sidebar | Component | Organism | collapsed (boolean) |
| Tabs | Component Set | Molecule | variant, orientation |
| Tooltip | Component | Atom | position |
| Avatar | Component Set | Atom | size, hasImage |
Anti-Patterns
- Creating components without variables (hardcoded colors/spacing)
- Skipping Auto Layout (absolute positioning breaks responsiveness)
- Not documenting component properties
- Missing hover/active/disabled states
- Forgetting to create the component set (just loose frames)
- Not establishing Code Connect after creation — this is the whole point
- Using individual variable creation instead of batch operations
- Using raw Figma execution for design-system-aware creation when
use_figmaworks
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

