
Adopt token paths
Renames a codebase's CSS variables to Open Components token paths and adds a lint rule
Adopt token paths is an open-source agent skill for design and media. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 22
- Last commit
- License
- CC-BY-4.0
- Listing updated
Similar skills
About Adopt token paths
This skill takes a codebase's existing CSS custom properties and renames them to the token-path format defined by the Open Components Design Tokens foundation, where a double dash separates groups and single dashes sit inside a group or name. It keeps the values unchanged and updates every var() reference that reads them, while leaving other libraries' variables alone.
The workflow starts by reading the convention from the open-components MCP server or, without it, from the published contract and page on opencomponents.dev. The agent finds every variable declared in the theme, component styles, inline styles and scripts, then proposes a mapping of token groups before renaming anything. After the renames, it adds the Stylelint rule from the standard and fixes what the rule reports, then checks that no old name is still read.
The skill needs network access to reach the standard, and it works best with the open-components MCP server connected through the bundled Claude Code plugin. It has no bundled scripts.
When your agent uses it
Renames a codebase's CSS variables to Open Components token paths, like --color--primary or --button--icon--size, keeping their values, then adds the Stylelint rule that keeps them that way. Use when asked to rename, organize or standardize CSS custom properties or design tokens, to set up a naming convention for them, or to adopt token paths.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (3 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the open-components plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add uxfront-com/open-components
/plugin install open-components@open-componentsOr copy only this skill to ~/.claude/skills/adopt-token-paths:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/uxfront-com/open-components.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/adopt-token-paths &&
cp -R "$tmp/plugins/open-components/skills/adopt-token-paths" ~/.claude/skills/adopt-token-paths &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/adopt-token-paths inside it instead.
Copy the skill folder to ~/.agents/skills/adopt-token-paths to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/uxfront-com/open-components.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/adopt-token-paths &&
cp -R "$tmp/plugins/open-components/skills/adopt-token-paths" ~/.agents/skills/adopt-token-paths &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/adopt-token-paths inside it instead.
Copy the skill folder to ~/.cursor/skills/adopt-token-paths to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/uxfront-com/open-components.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/adopt-token-paths &&
cp -R "$tmp/plugins/open-components/skills/adopt-token-paths" ~/.cursor/skills/adopt-token-paths &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/adopt-token-paths inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/uxfront-com/open-components.git --path plugins/open-components/skills/adopt-token-pathsOr copy the folder to ~/.gemini/skills/adopt-token-paths yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/adopt-token-paths:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/uxfront-com/open-components.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/adopt-token-paths &&
cp -R "$tmp/plugins/open-components/skills/adopt-token-paths" ~/.copilot/skills/adopt-token-paths &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/adopt-token-paths inside it instead.
Get the folder:
git clone --depth 1 https://github.com/uxfront-com/open-components.gitThen copy open-components/plugins/open-components/skills/adopt-token-paths into your agent's skills folder as adopt-token-paths. Agents that support SKILL.md read one folder per skill.
What it does
- Token path renaming
- Converts CSS variables into grouped names such as color and button icon size while keeping their values.
- Group mapping preview
- Lists the proposed token groups and old-to-new names for review before any file changes.
- Stylelint rule setup
- Adds the standard's Stylelint rule so the naming convention stays enforced.
- Reference updates
- Rewrites every var() call that reads a renamed variable across the codebase.
- Standard lookup
- Reads the convention and rule IDs from the Open Components MCP server or the published site.
- Post-rename verification
- Checks that no old names remain and that styles render as before.
Good for
- Rename the CSS variables in a design system to follow a consistent token path convention
- Set up a naming convention for the design tokens in a frontend project
- Add a Stylelint rule that stops new CSS custom properties breaking the token path format
- Organize theme colors and spacing variables into groups like color and spacing
Adopt token paths FAQ
What does the skill need to run?
It needs network access to read the Open Components standard, either through the open-components MCP server or from opencomponents.dev.
Does Adopt token paths change the values of my CSS variables?
No. It renames the variables and updates the var() references to them, keeping the values as they are.
Will Adopt token paths rename variables from other libraries like Tailwind?
No. The instructions say to leave other libraries' variables under their own names.
When does the skill trigger?
When asked to rename, organize or standardize CSS custom properties or design tokens, set up a naming convention for them, or adopt token paths.
How do I install Adopt token paths in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/adopt-token-paths to use it in all your projects, or to .claude/skills/adopt-token-paths in one project. Or install the open-components plugin, which includes it: /plugin marketplace add uxfront-com/open-components, then /plugin install open-components@open-components.
Does Adopt token paths run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Adopt token paths?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Adopt token paths?
The closest alternatives to Adopt token paths are Design system, Design system, Figma design system, Color theory and Figma implement design.
Where this comes from
- Description: from the skill's own SKILL.md.
More from uxfront-com/open-components

Guides an agent to build a UI component that meets the Open Components standard
- Open source
- 22 GitHub stars
- Developer tools

Audits a UI component or theme against Open Components rules, then fixes failures
- Open source
- 22 GitHub stars
- Developer tools

Checks how a screen or flow uses UI components against Open Components rules
- Open source
- 22 GitHub stars
- Developer tools







