accessibility-per-comp…
Run an accessibility audit on a specific design system component. Trigger when someone says: accessibility check, a11y audit, WCAG compliance, is this…
Audit Figma variable collections against token architecture best practices. Trigger when someone says: audit my Figma variables, check my Figma tokens, are my variables structured correctly, Figma variable health, review my variable collections, variable naming check, or
$ npx -y skills add murphytrueman/design-system-ops --skill figma-variable-audit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/figma-variable-auditContext preview
The summary Claude sees to decide when to auto-load this skill.
Audit Figma variable collections against token architecture best practices. Trigger when someone says: audit my Figma variables, check my Figma tokens, are my variables structured correctly, Figma variable health, review my variable collections, variable naming check, or
name: figma-variable-audit description: "Audit Figma variable collections against token architecture best practices. Trigger when someone says: audit my Figma variables, check my Figma tokens, are my variables structured correctly, Figma variable health, review my variable collections, variable naming check, or anything about auditing the quality or structure of Figma variables." references: - ../../knowledge-notes/token-architecture.md - ../../knowledge-notes/output-discipline.md
A skill for auditing Figma variable collections against three-tier token architecture principles. Produces a structured report with severity-rated findings and a prioritised remediation list. For teams whose source of truth lives in Figma variables rather than code.
This skill applies the three-tier token architecture model to Figma variables: primitives encode raw values, semantic variables encode intent, and component-tier variables map intent to specific UI contexts. Figma-native teams treat variables as their token source of truth — this audit reads Figma directly and validates the same structural dimensions as the code-based token-audit: naming conventions, tier separation, alias chains, mode coverage, orphaned variables, and DTCG readiness.
The audit is not about enforcing a particular naming convention. It's about identifying where the variable structure is working against the teams using it.
---
Before producing output, check for a `.ds-ops-config.yml` file in the project root. If present, load:
If no config file exists, proceed with defaults and manual input as before.
---
This skill requires a Figma MCP connection. Before proceeding, verify that Figma tools are available by attempting a lightweight call (such as `figma_get_status` or listing available Figma tools).
**If Figma is not available:**
1. The user can provide an exported variables JSON file (exported from Figma's local variables panel or via the Variables REST API) — the audit can run against that 2. The user can run the code-based `token-audit` skill instead, which audits token files in the codebase without needing Figma
**If Figma is available, proceed to Step 1.**
---
Ask the user for a Figma file URL, file key, or node ID. Acceptable inputs:
If `.ds-ops-config.yml` specifies `integrations.figma.file_key`, use it automatically without asking.
**Pull Figma data:** 1. Use `figma_get_variables` with `resolveAliases: true` to extract all variable collections, modes, names, and resolved values 2. Use `figma_get_styles` to extract all color, text, effect, and grid styles for cross-reference (styles are sometimes used instead of or alongside variables) 3. Use `figma_get_component` for component metadata to identify component-tier variables
Request confirmation before reading. Once confirmed, connect and pull the data.
---
Identify which variable collections map to which tiers:
**Primitive tier** — raw values, no semantic meaning. Examples: `Primitives`, `Colors`, `Spacing`, `Font Sizes`, `Raw Colors`
**Semantic tier** — intent-driven references to primitives. Examples: `Semantic Colors`, `Theme`, `Component Tokens`, `Intent Colors`
**Component tier** — scoped to a specific component context. Examples: `Button`, `Card`, `Form Input`, `Navigation`
For each collection:
Produce a brief tier map:
Collection → Tier: - Primitives (142 variables) → Primitive - Semantic (67 variables) → Semantic - Button (18 variables) → Component - Card (12 variables) → Component Mixed: System (54 variables) → contains both primitives and semantic Unmapped: Legacy (8 variables) → no clear tier
If any collection is unmapped or mixed, flag this as a finding.
---
For each variable name in each collection, check:
**Hierarchical naming** — do names follow a path-like convention (category.role.variant.state)?
**Intent-based naming at semantic tier** — do semantic names describe purpose, not appearance?
**Reserved term avoidance** — flag colour names in semantic tiers (blue, red, green) and size terms (small, medium, large)
**Naming consistency** — are casing, separators, and phrase ordering consistent across collections?
**Ambiguity checks** — flag names that could mean multiple things:
Claude Code skills for the work that keeps a design system alive.
Repo: murphytrueman/design-system-ops
Run an accessibility audit on a specific design system component. Trigger when someone says: accessibility check, a11y audit, WCAG compliance, is this…
Produce a design system adoption report separating coverage from actual adoption, with trend direction and risk flags. Trigger when someone says: adoption…
Generate AI-optimised text descriptions for components, formatted for Figma's MCP server and LLM consumption. This produces prose descriptions in a six-section…
Transform audit findings into sprint-ready work items with effort estimates, acceptance criteria, and stakeholder-friendly rationale. This converts existing…
Produce a communication package for a design system change — release notes, migration guide, and team announcement. This produces communication artefacts for…
Generate CI/CD pipeline configurations that automate design system quality checks — token validation, component linting, visual regression, accessibility…