add-library

A command for adding a Figma design-system library after collecting its name and file links. A library can include components, variables, styles, icons, assets, mobile designs, or documentation.

In plain words
What is it for?
Setting up a named library from one or more Figma files, including separate files for mobile designs, icons, logos, illustrations, themes, or documentation.
Why use it?
It avoids guessing what each Figma file contains and checks the files before importing their design-system information.

Command

Install

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.

agentmods
npx agentmods add commands/atezer/fmcp/add-library
Clone the repo
git clone --depth 1 https://github.com/atezer/FMCP
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,389 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01389
Opus 5 $0.00000 $0.00694
Sonnet 5 $0.00000 $0.00278
Haiku 4.5 $0.00000 $0.00139

Measured 2d ago against content hash f235c28067e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

add-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 2d 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.

commands/add-library.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tasarım Sistemi Kütüphanesi Ekle

Kullanıcı "kütüphane ekle", "library ekle", "tasarım sistemi ekle", "design system ekle" dediğinde bu komutu uygula.

Akış

Adım 1 — Bilgi topla

Kullanıcıdan şu bilgileri iste. Eksik olan her şeyi sor, tahmin etme:

Zorunlu:

  1. Kütüphane adı — Kısa isim (örn: Ana-DS, Primer, Carbon)
  2. Ana Figma dosyası URL'si — Bileşenler + variables + styles içeren dosya. En az 1 tane olmalı.

İsteğe bağlı (varsa sor):

  1. Mobil dosyası URL'si — Mobil platforma özel bileşenler varsa
  2. İkon dosyası URL'si — Ayrı bir ikon kütüphanesi varsa
  3. Asset dosyası URL'si — Logo, illüstrasyon gibi varlıklar varsa
  4. Diğer dosyalar — Başka Figma dosyası varsa (tema, dokümantasyon, vb.)

Her dosya için kullanıcıya sor: "Bu dosyada ne var? Kısa açıklama verin."

Adım 2 — Figma dosyalarını tara

Her dosya için sırayla:

  1. figma_get_status() — Plugin bağlı mı kontrol et. Bağlı değilse kullanıcıdan Figma'da plugini açmasını iste.
  2. figma_get_design_system_summary(fileKey) — Component set/component sayıları, variable collection adları
  3. figma_get_variables(fileKey, verbosity: "inventory") — Variable grupları (inventory büyükse Python ile parse et, sadece grup adı + sayı çıkar)
  4. figma_get_styles(fileKey, verbosity: "summary") — Paint, text, effect style listesi
  5. figma_search_components(fileKey, currentPageOnly: false, limit: 200) — Tüm bileşen adları ve key'leri
  6. figma_get_file_data(fileKey, depth: 1, verbosity: "summary") — Sayfa yapısı
  7. Font ailesi çıkarma (ZORUNLU): Ana/WEB dosyasındaki text style'lardan font ailesini belirle. figma_get_styles sonucundaki text style ID'lerinden birini seç, figma_execute ile font bilgisini oku:
    const style = await figma.getStyleByIdAsync("TEXT_STYLE_ID");
    const font = style.fontName; // { family: "...", style: "..." }
    return { fontFamily: font.family, fontStyle: font.style };
    
    Sonucu kütüphane dosyasının "Genel Bilgi" bölümüne Font Ailesi olarak yaz. Bu bilgi tüm skill'ler tarafından font seçiminde kullanılır.

Read the full file on GitHub · 123 lines

Changes

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.

  1. 2d ago First seen · 123 lines · 0 tokens per session scan A f235c28067e8

Subscribe to this mod's changes

add-library is a command published in the GitHub repository atezer/FMCP (9 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,389 tokens. 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.