token-documentation

Generate human-readable design token documentation with semantic intent and usage context.

155|7|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/murphytrueman/design-system-ops --skill token-documentation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: token-documentation
Source: https://github.com/murphytrueman/design-system-ops/tree/main/skills/token-documentation
Command: npx skills add https://github.com/murphytrueman/design-system-ops --skill token-documentation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the common issue of design token documentation being incomplete or only detailing resolved values, leading to misuse and system drift. It ensures tokens have clear semantic intent, usage context, and application rules.

Core Features & Use Cases

  • Semantic Intent Documentation: Clearly defines what each token communicates to users.
  • Usage Guidance: Provides context on where and how tokens should be applied, including do/don't examples.
  • Tiered Documentation: Structures documentation for primitive, semantic, and component tokens.
  • Theming Contract: Documents how tokens behave across different themes.
  • Use Case: Automatically generate comprehensive documentation for a new set of color tokens, explaining their semantic meaning (e.g., color.action.primary signifies a primary interactive element), their resolved values in light and dark themes, and which components use them.

Quick Start

Document the 'color' token set from the provided JSON file.

Frequently Asked Questions about token-documentation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I document design tokens with semantic intent and usage context?

To document design tokens with semantic intent, you need to define what each token communicates, its usage context, and application rules. This prevents system drift by ensuring tokens are applied correctly across primitive, semantic, and component tiers.

Does this approach work with Style Dictionary and Figma variables for token analysis?

Yes, it supports automated integration with Style Dictionary and Figma variables for comprehensive token analysis. This allows you to cross-reference tokens and automatically generate documentation detailing their resolved values across different themes.

What's the best way to generate documentation for primitive, semantic, and component tokens?

The best way to generate tiered documentation for primitive, semantic, and component tokens is to structure the documentation by clearly defining the semantic intent and usage guidance for each tier, including do and don't application examples.

Why does incomplete design token documentation lead to system drift?

Incomplete design token documentation leads to system drift because it often only details resolved values without semantic intent or usage context. This lack of clarity causes misuse when teams apply tokens incorrectly across different themes and components.

Can I document how a theming contract behaves across multiple themes automatically?

Yes, you can document how tokens behave across different themes by establishing a theming contract. This involves detailing the resolved values and semantic meaning of tokens in light and dark themes to ensure consistent application.

How do I add do and don't usage examples to my design system documentation?

To add usage guidance to design system documentation, you provide context on where and how tokens should be applied. This includes generating do and don't examples that demonstrate correct token usage for specific components and themes.