figma-design-system-inventory
/figma-design-system-inventory
Zestawia cały system projektowy w Figma: zmienne i tokeny według kolekcji i trybów, komponenty z wariantami oraz style z wartościami.
- Autor
- southleft ↗
- Repozytorium
- figma-console-mcp-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 16.08.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 16.08.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/inventory.js
Co robi i kiedy
Zestawia cały system projektowy w Figma: zmienne i tokeny według kolekcji i trybów, komponenty z wariantami oraz style z wartościami.
Wyzwalacze z opisu
Oryginalny opis (EN)
One call to inventory an entire Figma design system — variables/tokens (grouped by collection + mode), components and component sets (with property definitions and per-variant visual specs), and styles (color/text/effect with resolved values). Use when you need the whole design-system picture before generating code or auditing coverage — triggers: 'inventory my design system', 'extract all tokens and components', 'what's in this design system', 'dump the design system kit', 'give me every variable, component, and style', 'build a design-system manifest', 'audit my Figma library'. Has a verbosi
Jak działa
- Skill boundaries
- Workflow
- Notes
Podgląd SKILL.md
---
name: figma-design-system-inventory
description: "One call to inventory an entire Figma design system — variables/tokens (grouped by collection + mode), components and component sets (with property definitions and per-variant visual specs), and styles (color/text/effect with resolved values). Use when you need the whole design-system picture before generating code or auditing coverage — triggers: 'inventory my design system', 'extract all tokens and components', 'what's in this design system', 'dump the design system kit', 'give me every variable, component, and style', 'build a design-system manifest', 'audit my Figma library'. Has a verbosity/scope guard so big files don't blow the response budget. Goes well beyond the native MCP's get_design_context (single-selection) / get_metadata."
disable-model-invocation: false
---
# figma-design-system-inventory — unified tokens + components + styles extraction
A single `use_figma` call that walks the whole file and returns a structured kit:
**tokens** (every local variable, grouped by collection and mode), **components** (standalone
components + component sets, with property definitions and a compact `visualSpec` per variant), and
**styles** (paint/text/effect styles with their resolved values). It is the "read everything once"
front door for code generation and library audits.
## Skill boundaries
- **`use_figma` rules** — load the official **`figma-use`** skill first; it is the full Figma Plugin API reference. Essentials these scripts rely on: plain JS with top-level `await` + `return` (no IIFE, no `figma.closePlugin()`; `console.log` is not returned), inputs inlined as `const` at the top of each script, colors in 0–1 range, load fonts before any text op, `await figma.getNodeByIdAsync(...)`, and **atomic errors** (a failed script applies nothing — read the error, fix, retry).
- **The exact shape of each `visualSpec`** → [references/visual-spec.md](references/visual-spec.md).
- **One component in unlimited depth** (full tree, reactions, instance refs) →
use `figma-deep-component`. **One variant set as a CSS state machine** →
use `figma-analyze-component-set`. **Token files on disk** → use `figma-export-tokens`.
- This is a **whole-system design capability** the native MCP does not have: `get_design_context`
works on a single selection and `get_metadata` returns flat structure, neither gives a unified
tokens+components+styles kit on ANY plan.
## Workflow
1. **Pick scope & verbosity** to control response size on big files. Edit the constants in
[`scripts/inventory.js`](scripts/inventory.js):
- `INCLUDE` — any of `"tokens"`, `"components"`, `"styles"` (default: all three).
- `VERBOSITY` — `"full"` (per-variant visual specs), `"summary"` (component metadata + props, no
per-variant specs), or `"inventory"` (names/ids/counts only — for huge files).
- `COMPONENT_NAME_FILTER` — substring to limit components (e.g. `"Button"`).
2. **Run** via `use_figma` (`skillNames: "figma-design-system-inventory"`). Reads variables through
the **Plugin API**, so it works on every Figma plan (no Enterprise REST requirement).
3. **Consume.** Use `tokens` for color/spacing/typography values, `components[].properties` for
the component API, `components[].variants[].visualSpec` for per-state appearance, and `styles` for
any style-based (non-variable) values.
4. **If the result is still large**, drop to a lower `VERBOSITY` or narrow `INCLUDE` /
`COMPONENT_NAME_FILTER` and re-run — don't try to page a giant `full` dump.
## Notes
- **Colors are emitted as hex** (Figma stores 0–1 RGBA internally); spacing/size values are px.
- **Variables resolve aliases to token names** (`{Color.Brand.Primary}`-style) where possible.
- **Per-variant visual specs** come from each variant component node — see
[references/visual-spec.md](references/visual-spec.md) for the fields (fills, strokes, effects,
cornerRadius, opacity, layout/padding/spacing, typography).
- This script is the open-coded, root+first-level equivalent of the bundled `figma_get_design_system_kit`
tool, written in the native `use_figma` idiom so it runs without the Desktop Bridge. It captures each
component/variant's root visual spec plus its direct children (`childSpecs`); it does not recurse deeper.
Pliki w paczce (3)
- SKILL.md 4 KB
- references/visual-spec.md 3 KB
- scripts/inventory.js 14 KB
Wersje
W bazie nie ma innych skilli o nazwie figma-design-system-inventory.
Migawka bazy z 13.11.2026 · wersja paczki ddf5d305fa47 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Podobne skille
- 90design-system-inventory-figma
Inwentaryzuje cały design system w Figma jednym wywołaniem: zmienne i tokeny z kolekcjami i trybami, komponenty ze specyfikacjami wariantów oraz style kolorów, tekstu i efektów. - 100figma-design-system
Buduje i utrzymuje system projektowy w Figma, a następnie wyodrębnia go dla kodu: ramki, komponenty, zmienne, style i eksport tokenów do tokens.json. - 90figma
Przenosi system projektowy repozytorium do biblioteki Figma: tokeny jako zmienne, style tekstu i cieni, komponenty, a potem raportuje różnice między Figmą a kodem. - 100figma-generate-library
Buduje lub aktualizuje system projektowy w Figma na podstawie kodu: zmienne, tokeny, biblioteki komponentów z wariantami, motywy jasny i ciemny oraz dokumentację fundamentów. - 100figma-extractor
Wyodrębnia tokeny, style, metadane komponentów i strukturę ekranów z plików Figma przez MCP, w tym typografię, cienie i zmienne. - 100figma-generate-library
Buduje lub aktualizuje w Figmie profesjonalny system projektowy z bazy kodu: zmienne i tokeny, biblioteki komponentów z wariantami, motywy jasny i ciemny oraz uzgodnienie różnic z kodem.