Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add memi-design/design-skills --skill figma-generate-librarygit clone --depth 1 https://github.com/memi-design/design-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/memi-design/design-skills/figma-generate-library)<a href="https://agentmods.dev/skills/memi-design/design-skills/figma-generate-library"><img src="https://agentmods.dev/badge/skills/memi-design/design-skills/figma-generate-library/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/memi-design/design-skills/figma-generate-library"><img src="https://agentmods.dev/badge/skills/memi-design/design-skills/figma-generate-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00022 | $0.01328 |
| Opus 5 | $0.00011 | $0.00664 |
| Sonnet 5 | $0.00004 | $0.00266 |
| Haiku 4.5 | $0.00002 | $0.00133 |
Grade A, and why
figma-generate-library scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/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 heights
Always 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_set
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 161 lines · 22 tokens per session scan A 939912d0a230
figma-generate-library is a skill published in the GitHub repository memi-design/design-skills (7 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 1,328 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
motion-lexicon
Design, build, compose, implement, review, and contribute polished product interfaces with Motion Lexicon components and motion primitives. Use this skill when a user asks for a complete React page, landing page, dashboard, settings screen, or product surface in the Motion Lexicon visual language; asks what motion…
motion-foundations
Motion tokens, spring presets, performance rules, device adaptation, accessibility enforcement, and SSR safety for React / Next.js using motion/react. Foundation layer — all other motion skills depend on this. Use when setting up motion tokens, spring presets, reduced-motion handling, or SSR-safe animation in React or…
ss-studio
Turn a product brief and optional references into three distinct creative directions, a human-selected StyleSeed interaction plan, generated image/video asset jobs, a working UI prototype, and a verified prototype-first showcase reel. Use for client concepts, app interaction exploration, trendy but coherent UI…
ss-lint
Quick automated lint — detects common design system violations in seconds.
ss-a11y
Audit a component or page for accessibility issues and fix them.
ss-copy
Generate UX microcopy (button labels, error messages, empty states, toasts) following a casual-but-polite voice and tone.