ds-validate

A command for checking whether a design-system library’s repository files, local cache, and state records agree. A design system is a shared set of interface styles and components.

In plain words
What is it for?
Use it to validate one named design-system library or all registered libraries.
Why use it?
It finds incomplete or inconsistent library data before it causes problems in development work.

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-validate
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,807 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.01807
Opus 5 $0.00000 $0.00903
Sonnet 5 $0.00000 $0.00361
Haiku 4.5 $0.00000 $0.00181

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

Security

Grade A, and why

ds-validate 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-validate.md · 157 lines

How it starts

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

Tasarım Sistemi Kütüphane Doğrulaması

Kullanıcı "kütüphane doğrula", "DS'i validate et", "cache'i kontrol et", "DS uyumunu denetle" dediğinde bu komutu uygula. Eklenmiş DS'lerin repo template + user-local cache + state dosyalarının birbiriyle tutarlı olduğunu denetler.

Argüman

$ARGUMENTS

Argüman olabilir:

  • <library-id> → sadece o kütüphaneyi doğrula
  • Boş → tüm kayıtlı kütüphaneleri sırayla doğrula

Adım 1: Hedef Belirleme

  1. $ARGUMENTS boşsa:

    • .claude/design-systems/ altındaki tüm alt-dizinleri listele (README.md, active-ds.md, last-intent.md, intent-history.md haricinde)
    • Tüm DS'leri sırayla doğrula
  2. Kütüphane ID verilmişse → sadece .claude/design-systems/<id>/ için çalış


Adım 2: Her DS İçin Kontrol Listesi (9 kontrol)

Her DS için aşağıdaki 9 kontrolü sırayla yap ve rapor topla:

C1: Repo template dizini bütünlüğü

  • .claude/design-systems/<id>/ var mı?
  • İçinde beklenen dosyalar var mı?
    • tokens.md (ZORUNLU — en azından başlık)
    • components.md (ZORUNLU — en azından başlık)
    • Opsiyonel: icons.md, mobile.md, assets.md, <ID>_CHEATSHEET.md
  • Dosyalar boş değil mi? (her biri ≥5 satır)

C2: Repo template'de hassas key sızıntısı yok mu?

  • tokens.md + components.md içinde:
    • ❌ Hex değer (regex: /#[0-9a-f]{6,8}\b/i)
    • ❌ Gerçek componentKey / variableKey (regex: /key:\s*["']?[a-f0-9]{40}/i — 40 char alphanumeric)
    • ❌ Full file-key prefix (regex: /[A-Z][a-z]*[0-9]{2,}[A-Za-z0-9]{15,}/ — Figma file-key pattern)
  • Bulgular varsa WARNING olarak rapor et — bunlar user-local cache'e taşınmalıydı.

C3: User-local cache varlığı

  • ~/.claude/data/fcm-ds/active.md dosyası var mı?
  • İçinde bu DS'in primary + secondary file-key'leri kayıtlı mı?
  • Her file-key için ~/.claude/data/fcm-ds/<file-key>/ dizini var mı?

C4: User-local cache bütünlüğü

Her user-local cache dizini için:

  • tokens.md var mı ve ≥1 variable entry içeriyor mu?
  • components.md var mı ve ≥1 component entry içeriyor mu?
  • _meta.md var mı ve parse edilebiliyor mu? (Sync Durumu, İstatistikler, Son sync tarihi)

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

Subscribe to this mod's changes

ds-validate 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,807 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.