Audit design system

From aicodedecode/awesome-muse-skills · View interactive version

Audit design system is an AI agent skill from the GitHub repository aicodedecode/awesome-muse-skills. Analyze, audit, inventory, and document an existing Figma design system through the Figma MCP server — components, variables, tokens, patterns, design debt, usage rules, causal relationships — and create design-system documentation pages in Figma on request. Use when the user asks to audit, inventor

How to use this skill

Skill file

Adapted for Muse from schudarin/chudarin-design-skills (MIT) — plain-markdown portable unit. Claude Code-isms neutralized; any Figma MCP / write steps are kept as read-only reference knowledge.

Figma Audit Design System

Use this skill to analyze real Figma files and help build a tokenized design system grounded in actual layouts, components, variables, and product flows.

Operating mode

Work read-only by default.

You may inspect Figma files, pages, frames, components, instances, variables, screenshots, libraries, styles, layout structure, and usage patterns.

Do not create, edit, delete, rename, move, or reorganize Figma content unless the user explicitly asks to do so.

If the user asks to analyze, audit, find, compare, document, propose, or recommend, stay read-only.

If the user asks to create, add, insert, update, modify, rename, organize, or publish in Figma, you may use write-capable Figma MCP tools, but do not modify source product screens unless the user specifically asks.

Do not analyze codebase or Code Connect mappings in this version.

Primary objective

Build design-system knowledge from evidence, not assumptions.

For every important finding, connect:

  1. Product scenario
  2. User intent
  3. Interface decision
  4. Component or pattern
  5. Token dependency
  6. Design-system rule
  7. Evidence from Figma
  8. Confidence level

MCP workflow

When the user provides a Figma URL or selection:

Load references/analysis-framework.md at the start of any file audit — it carries the scope map, the file-map table, the inventory method and the P0–P3 prioritisation.

  1. Determine the scope: file, page, frame, selection, component set, or flow.
  2. Use Figma MCP tools to inspect metadata, design context, screenshots, variables, libraries, and existing components.
  3. Build a file map.
  4. Build a component inventory.
  5. Build a token inventory.
  6. Build a pattern inventory.
  7. Detect repeated UI decisions and infer causal relationships.
  8. Separate components, variants, states, patterns, templates, local exceptions, and design debt.
  9. Recommend tokenization only when a value has repeatable semantic meaning.
  10. Produce the requested output or prepare Figma documentation pages.

Use tools in this order when applicable:

  1. get_metadata
  2. get_design_context
  3. get_screenshot
  4. get_variable_defs
  5. get_libraries
  6. search_design_system
  7. use_figma only after explicit write instruction — and only with your tool's own Figma API instructions (figma-use, or the MCP resource skill://figma/figma-use/SKILL.md) plus figma-plugin-api-rules loaded first

If a listed tool is unavailable in the current MCP server, use the closest available Figma MCP tool and state which expected data could not be inspected.

Evidence rules

Do not make unsupported claims.

For each important conclusion, include:

Use confidence levels:

Label recommendations clearly. Do not present recommendations as existing facts.

Classification rules

Classify every repeated UI element as one of:

A component candidate should be recommended only when it meets at least one condition:

Component analysis

For each component or component candidate, document:

Load references/component-checklist.md when documenting or auditing components — the spec structure, the required checks per interactive component, and the order to audit component families in.

Check states for all interactive components:

Pattern analysis

Separate components from patterns and templates.

Use this distinction:

Example:

Load references/pattern-checklist.md when the user asks for pattern analysis, product-flow analysis, or template recommendations.

Tokenization methodology

Use three token layers:

  1. Primitive tokens
  2. Semantic tokens
  3. Component tokens

Primitive tokens represent raw values.

Examples:

Semantic tokens represent interface roles.

Examples:

Component tokens represent component-specific decisions.

Examples:

Do not create a semantic token only because a raw value repeats.

Create a semantic token when the value:

Create component tokens only when the component needs independent control over variants, states, modes, or theming.

Avoid token names based on appearance:

Prefer role-based names:

Load references/token-taxonomy.md for detailed naming, variable structure, mode mapping, and token-decision rules.

Figma Variables structure

When proposing Figma Variables, use this collection structure unless the user provides another standard:

Use modes when needed:

Use slash-style Figma variable names when appropriate:

Causal relationship format

For repeated elements, produce this structure:

## Element
Name of component, pattern, or token.

## Observed in
Pages, frames, flows, or nodes.

## Product scenario
What user or product context causes this element to appear.

## User intent
What the user is trying to accomplish.

## Interface decision
Why this UI solution is used.

## System implication
Whether this should become a component, variant, state, token, pattern, template, rule, or migration task.

## Tokens
Current and proposed tokens.

## Rule
The design-system rule to document.

## Evidence
Figma references and observed values.

## Confidence
High, medium, or low.

Load references/causal-map-template.md when the user asks why elements are used, how components relate to scenarios, or which rule should be documented.

Figma documentation pages

When the user asks to create design-system documentation in Figma, create or propose this page structure:

Do not modify product screens unless the user explicitly asks.

For documentation frames, use clear headings, tables, examples, and source references.

When the file already has documentation boards, they set the look of every new or rebuilt one. A

board shows itself by its make-up: a header with a title, text blocks next to component samples,

labelled rows of states or widths, a name or a page that marks it as documentation. Take their

header, text styles, colours, spacing and board width in full. A reference library the user points

to lends only the way of showing: which sections a board has, how states and widths sit side by

side, where the grid is drawn. Its styling is never copied over boards the file already has; one

board that looks different from its neighbours is a defect.

Load references/figma-documentation-structure.md before creating documentation pages in Figma.

Default output

If the user does not specify a format, return:

  1. Short summary
  2. File map
  3. Component inventory
  4. Token inventory
  5. Pattern inventory
  6. Causal map
  7. Design debt
  8. Recommended Figma documentation structure
  9. Prioritized next actions

If the user explicitly asks to create documentation in Figma, create Figma pages and frames instead of only responding in chat.

Quality gates

Before finalizing recommendations, check:

Load references/accessibility-checklist.md when the user asks for component specs, interactive states, or accessibility review.

Load references/governance-rules.md when the user asks how to maintain, version, approve, or evolve the design system.

Do not

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.