ds-add

A command for adding a design system from one or more Figma links. A design system is a shared set of UI components, styles, and reusable values.

In plain words
What is it for?
Starting a design-system import from Figma, checking connected files, and reading file names and variables. It asks for a link when none is supplied and explains how to connect an unavailable file.
Why use it?
It checks whether the links are valid and whether the Figma files are connected before deciding whether the system is new or needs updating.

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/ds-add
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 2,499 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.02499
Opus 5 $0.00000 $0.01249
Sonnet 5 $0.00000 $0.00500
Haiku 4.5 $0.00000 $0.00250

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

Security

Grade A, and why

ds-add 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/ds-add.md · 258 lines

How it starts

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

Design System Ekle (Akıllı Tespit)

Kullanıcı bir Figma linki ile yeni tasarım sistemi eklemek istediğinde bu komutu kullan. Bu komut yeni ekleme ve güncelleme arasındaki farkı otomatik tespit eder.

Argüman

$ARGUMENTS

Argüman olabilir:

  • Tek Figma linki
  • Birden fazla Figma linki (boşlukla ayrılmış)
  • Boş (kullanıcıdan iste)

Adım 1: Argüman Kontrolü

  • $ARGUMENTS boşsa → kullanıcıya şöyle de: "Hangi Figma linkini eklemek istersin? Lütfen yapıştır."
  • Link(ler) varsa → regex ile file key(ler)'i çıkar: figma\.com/design/([a-zA-Z0-9]+)
  • Geçersiz link varsa → "Bu Figma linki gibi durmuyor. Format: https://figma.com/design/..."

Adım 2: Her File Key İçin Figma Analizi

Her file key için paralel çağrı yap:

  1. mcp__figma-mcp-bridge__figma_list_connected_files → bağlı mı kontrol et

    • Bağlı DEĞİLSE → DUR ve kullanıcıya talimat:
      ❌ Bu Figma dosyası plugin'e bağlı değil.
      Lütfen:
      1. Figma'da dosyayı aç
      2. F-MCP Bridge plugin'i çalıştır (Plugins → F-MCP ATezer Bridge)
      3. Sonra tekrar dene
      
  2. mcp__figma-mcp-bridge__figma_get_file_data (verbosity: "summary") → dosya adını al

  3. mcp__figma-mcp-bridge__figma_get_variables (verbosity: "summary") → token sayısı

  4. mcp__figma-mcp-bridge__figma_get_styles (verbosity: "summary") → stil sayısı

  5. mcp__figma-mcp-bridge__figma_search_components (query: "", currentPageOnly: false, limit: 500) → bileşen sayısı

Hata yönetimi: Her çağrı için try-catch. Başarısız olanı "0" say ama diğerlerine devam.


Adım 3: Mevcut Kütüphane Tespiti

.claude/design-systems/ altındaki tüm _meta.md dosyalarını oku ve bu yeni file key(ler) ile karşılaştır.

Kontrol 1: File Key Eşleşmesi (Kesin)

Bu file key zaten bir kütüphanede kayıtlı mı?

Varsa:

📋 Bu Figma dosyası zaten "<library-name>" kütüphanesinde kayıtlı.
Son güncelleme: <tarih>

Güncellemek ister misin? (evet / iptal)
  • evet → /ds-sync <library-name> mantığı uygulanır, DUR.
  • iptal → İşlem sonlandırılır.

Read the full file on GitHub · 258 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 · 258 lines · 0 tokens per session scan A 8e5a1c411cdb

Subscribe to this mod's changes

ds-add 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 2,499 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.