# Adopt token paths

> Adopt token paths is an open-source agent skill for design and media. Renames a codebase's CSS variables to Open Components token paths and adds a lint rule. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/uxfront-com/open-components/tree/main/plugins/open-components/skills/adopt-token-paths
- **Repository:** https://github.com/uxfront-com/open-components
- **GitHub stars:** 22
- **License:** CC-BY-4.0
- **Skill name:** adopt-token-paths
- **Collection:** https://github.com/uxfront-com/open-components
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/uxfront-com/open-components/tree/HEAD/plugins/open-components/skills/adopt-token-paths)
- [License: CC-BY-4.0](https://github.com/uxfront-com/open-components/tree/HEAD/plugins/open-components/skills/adopt-token-paths)

## Features

- **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

## Install

### Claude Code

This skill ships in the `open-components` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add uxfront-com/open-components
/plugin install open-components@open-components
```

Or copy only this skill to `~/.claude/skills/adopt-token-paths`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/adopt-token-paths` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/adopt-token-paths` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/uxfront-com/open-components.git --path plugins/open-components/skills/adopt-token-paths
```

Or copy the folder to `~/.gemini/skills/adopt-token-paths` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/adopt-token-paths`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/uxfront-com/open-components.git
```

Then 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.

## 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.

## Alternatives

- [Design system](https://ai-powered.com/skills/design-system-smartworldarafath): Design system is an open-source agent skill for design and media.
- [Design system](https://ai-powered.com/skills/design-system-daveebbelaar): Design system is an open-source agent skill for design and media.
- [Figma design system](https://ai-powered.com/skills/figma-design-system): Figma design system is an open-source agent skill for design and media.
- [Color theory](https://ai-powered.com/skills/color-theory): Color theory is an open-source agent skill for design and media.
- [Figma implement design](https://ai-powered.com/skills/figma-implement-design): Figma implement design is a free agent skill for design and media.
- [Design kit](https://ai-powered.com/skills/design-kit): Design kit is an open-source agent skill for design and media.
- [Discover design system](https://ai-powered.com/skills/discover-design-system): Discover design system is an open-source agent skill for design and media.
- [Expo design system](https://ai-powered.com/skills/expo-design-system): Expo design system is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/adopt-token-paths
