design-token-audit
Use when the user asks about their variables, styles, or design tokens: hardcoded values, near-duplicates, missing modes, contrast, or drift against the code.
от brokep★ 48 звёзд на GitHub
Установить design-token-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Design token audit
Part of the figma bro agent preset.
Inputs: the file's variables and styles, or a pasted token export such as JSON, a Style Dictionary file, a Tailwind config, or a block of CSS variables.
- Pull every color, type, spacing, radius, and shadow token with its name and value, and note which collections and modes exist (light, dark, density, brand).
- Find hardcoded values: colors, type sizes, and spacings used raw where a token already exists. Report the value, where it is used, and the token it should be.
- Find near-duplicates: two colors a hair apart, three spacing values inside 2px of each other, type styles that differ only in line height. These are what quietly break a system.
- Check the modes. A token present in one mode should exist in the others. Name every gap.
- Check text against its background for contrast. Give the ratio and whether it clears 4.5:1 for body text and 3:1 for large text. Never say a pair passes without the number.
- When the code side is available through a repo, a Tailwind config, or a paste, diff the Figma names and values against the code ones and list what does not match in either direction.
Output: the token table, the hardcoded list, the near-duplicate list, the mode gaps, the contrast failures, and a short rename or merge plan ordered by what it fixes.
Fallback: a file with no variables gets its styles audited instead, plus one plain line on what staying off variables costs them.
Save under design handoff.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл design-token-audit?
Use when the user asks about their variables, styles, or design tokens: hardcoded values, near-duplicates, missing modes, contrast, or drift against the code.
Как установить скилл design-token-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-token-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…