design-token-component
Skill1 starsChanged 7 months agoMITView on GitHub
Generate tier-3 component tokens for a named UI component (e.g., button, modal, card). Walks through variants, states, and property assignments interactively. Use when the user wants to create component-level tokens that reference their semantic tokens.
In this repository6 other files it gives its agents.
- design-token-auditSkill
- design-token-category-addSkill
- design-token-contrastSkill
- design-token-initSkill
- design-token-migrateSkill
- design-token-updateSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Verify a token system exists with semantic tokens:
- Very specific: line 18
If not found, tell the user to run /design-token-init first.
- Very specific: line 33
Ask the user what component to tokenize.
- Very specific: line 51
Use --dry-run to preview without writing:
- Distinctive: line 60
States per property: default, hover, active, focus, disabled
- Distinctive: line 65
After generation, check the created files:
- Very specific: line 88
Run /design-token-audit to verify no broken references were introduced
- Distinctive: line 90
If the user needs to modify an existing component's tokens, they can re-run the command — it will update the existing config
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Design Token Component Builder
You are helping the user generate tier-3 component tokens that reference their existing semantic token system.
Prerequisites
Verify a token system exists with semantic tokens:
ls quieto.config.json tokens/semantic/If not found, tell the user to run /design-token-init first.
Background
Component tokens are the third tier in the token hierarchy:
- Primitive — raw values (
color.blue.500 = #4F46E5) - Semantic — role-based references (
color.background.primary = {color.blue.500}) - Component — component-scoped references (
button.color.background.default = {color.background.primary})
Component tokens enable per-component theming and state management without modifying the semantic layer.
Workflow
1. Determine the component name
Ask the user what component to tokenize. Common examples: button, card, modal, input, badge, alert, tooltip.
The name must be lowercase, alphanumeric, and may contain hyphens. No spaces or special characters.
2. Run the component command
The CLI is interactive and walks through variant/state/property assignment. Since it requires terminal input, tell the user to run it themselves:
! npx quieto-tokens component <name>For example:
! npx quieto-tokens component buttonUse --dry-run to preview without writing:
! npx quieto-tokens component button --dry-runThe interactive flow will ask:
- Variants: e.g.,
primary,secondary,ghostfor a button - Properties per variant: color-background, color-content, color-border, spacing-padding, border-radius, typography
- States per property: default, hover, active, focus, disabled
- Token reference for each cell: which semantic token to point to
3. Verify output
After generation, check the created files:
ls tokens/component/
cat tokens/component/<name>.jsonAlso check that the config was updated:
cat quieto.config.json | grep -A 20 '"components"'4. Rebuild outputs
The component command automatically rebuilds, but verify the CSS was emitted:
grep "<name>" build/tokens.css | head -205. Suggest follow-ups
- Run
/design-token-auditto verify no broken references were introduced - Generate more components as needed
- If the user needs to modify an existing component's tokens, they can re-run the command — it will update the existing config
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

