Agent skill

Ds Create Token

by baloise in baloise/design-system

Create design tokens for a component from its CSS variables. An agent skill from baloise/design-system.

Apache-2.0Auto-check passedFrontend & Design

Install Ds Create Token

skills CLI
$ npx skills add baloise/design-system --skill ds-create-token -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install baloise/design-system ds-create-token --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/baloise/design-system.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/ds-create-token .claude/skills/ds-create-token && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ds-create-token
GitHub stars
114
Token cost
~636 tokens
SKILL.md length
271 words
Files
3
Skills in repo
10
Repo updated
First seen
Licence
Apache-2.0

At a glance

Create design tokens for a component from its CSS variables. An agent skill from baloise/design-system.

  • Works in 3 steps: Extract & Display → Suggest Paths & Confirm → Write & Compile
  • Tasks that involve Design tokens
  • SKILL.md covers Usage, Workflow, Token Path Structure and Requirements, plus 1 more section
  • Runs JavaScript scripts from its folder; calls pnpm

What it does

Ds Create Token is an agent skill from baloise/design-system. Create design tokens for a component from its CSS variables

Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `README.md` and `index.js`).

It sits in Frontend & Design, covering Design tokens. The repository describes itself as: The Baloise Design System consists of reusable components and a clearly defined visual style, that can be assembled together to build any number of applications. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Design tokens

Example prompts

  • “/ds-create-token”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Extract & Display
  2. Suggest Paths & Confirm
  3. Write & Compile

What it can do on your machine

Read from SKILL.md and the folder at commit 19063c5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ds Create Token loads about 636 tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 271 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~636

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from baloise/design-system at commit 19063c5, republished under its Apache-2.0 licence (© baloise). 271 words, ~636 tokens.

Download SKILL.mdSave it as .claude/skills/ds-create-token/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
ds-create-token
description
Create design tokens for a component from its CSS variables

ds-create-token

Create component design tokens from CSS variables defined in a component's SCSS file. The skill analyzes vars.local() calls and variant --mod- variables, suggests component token paths, and creates them in Base.tokens.json.

Usage

/ds-create-token <component-name>

Examples:

/ds-create-token badge
/ds-create-token button
/ds-create-token footer

Workflow

Step 1: Extract & Display
  • Parses component SCSS files for @include vars.local() and --mod- variables
  • Shows a table with:
    • Component variable name
    • Current value (alias/global/hardcoded)
    • Value type
    • Status indicator
  • Displays preview of component tokens that will be created
  • User confirms to proceed to Step 2
Step 2: Suggest Paths & Confirm

For each variable:

  • Hardcoded values → Uses ds-find-token skill to find matching alias tokens
    • If no match found → Suggests creating new Alias token (user confirms)
  • Global tokens → Suggests replacing with Alias equivalent
  • Proposes component token path following: --ds-[component]-[variant]-[element]-[category]-[property]-[state]
    • Missing segments are skipped (no placeholders)
    • State segment only included if multiple states exist
  • User can review, edit, or confirm each mapping
Step 3: Write & Compile
  • Backs up Base.tokens.json
  • Writes new tokens to Base.tokens.json
  • Creates any new Alias tokens needed
  • Runs pnpm tokens to compile outputs
  • Shows success summary with created tokens

Token Path Structure

Component tokens always follow this structure:

--ds-[component]-[variant]-[element]-[category]-[property]-[state]

Example: --ds-badge-primary-color-base-text

  • component: badge
  • variant: primary
  • element: (skipped if not present)
  • category: color
  • property: text
  • state: base

Requirements

  • Component must exist in packages/core/src/components/
  • Component must have a .host.scss file with vars.local() definitions
  • Design tokens must already be compiled (run pnpm tokens first if needed)

Important Notes

JSDoc Comments: When generating or updating JSDoc comments in the SCSS file, do NOT include default values in parentheses. Only include the property name and description. Example:

  • ✓ @prop --button-color: Text color of the button
  • ✗ @prop --button-color: Text color of the button (default: --ds-alias-text-color-white)

© baloise, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in .claude/skills/ds-create-token of baloise/design-system.

  • SKILL.md
  • README.md
  • index.js

Open the folder on GitHubat commit 19063c5

Compare with similar skills

Ds Create Token next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ds Create Token compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ds Create Token this skillbaloise/design-system114—~636Automated safety check: PassApache-2.0
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
MCP Developmentcoollabsio/coolify63k1 repos~949Automated safety check: PassMIT
Design SystemOhh-889/skyroc79511 repos~1.7kAutomated safety check: PassMIT
Design Dnazanwei/design-dna1.9k1 repos~2.1kAutomated safety check: PassMIT

Similar skills

  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed
  • Design System

    Ohh-889/skyroc

    Token architecture, component specifications, and slide generation.

    795 GitHub starsUsed in 11 repos~1.7k tokens
    Frontend & DesignAuto-check passed
  • Design Dna

    zanwei/design-dna

    Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects…

    1.9k GitHub starsUsed in 1 repo~2.1k tokens
    Frontend & DesignAuto-check passed
  • Figma Design to Code

    warpdotdev/warp

    Turns a Figma frame or component into production code that matches the design, using the Figma MCP server and the project's own design system.

    65k GitHub starsUsed in 4 repos~2.9k tokens
    Frontend & DesignAuto-check passed

More from baloise/design-system

All 10 skills in this repo
  • Ds Migrate From Baloise

    baloise/design-system

    Migrate a consuming app from the Baloise Design System (bal-) to the Helvetia Design System (ds-).

    114 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Ds Changeset

    baloise/design-system

    Create a changeset entry for pending changes using the repo's create-changeset.mjs CLI.

    114 GitHub stars~719 tokensUpdated yesterday
    Auto-check passed
  • Ds Create Component

    baloise/design-system

    Create new web components in the Helvetia Design System. An agent skill from baloise/design-system.

    114 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Ds Lint Component

    baloise/design-system

    Lint and fix Helvetia Design System components for style guide compliance.

    114 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Ds Test Component

    baloise/design-system

    Auto-generate all test files for DS components including visual, a11y, component, page object, and unit tests.

    114 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Ds Token Lint

    baloise/design-system

    Check a component's design tokens in Base.tokens.json against the canonical naming convention (packages/tokens/CONTEXT.md "Token Naming Anatomy"), report violations as a markdown table, and apply…

    114 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed

Questions about Ds Create Token

What does Ds Create Token do?

Create design tokens for a component from its CSS variables. An agent skill from baloise/design-system. Ds Create Token is an agent skill from baloise/design-system.

When should I use Ds Create Token?

Ds Create Token fits situations like: tasks that involve Design tokens.

How do I install Ds Create Token in Claude Code?

Run `npx skills add baloise/design-system --skill ds-create-token -a claude-code`. Or copy the skill folder (.claude/skills/ds-create-token in baloise/design-system) into .claude/skills/ds-create-token in your project. Claude Code loads it when a task matches its description.

How do I install Ds Create Token in Codex?

Run `npx skills add baloise/design-system --skill ds-create-token -a codex`. Or copy the skill folder (.claude/skills/ds-create-token in baloise/design-system) into .agents/skills/ds-create-token in your project. Codex loads it when a task matches its description.

Can I use Ds Create Token in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add baloise/design-system --skill ds-create-token -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ds-create-token, .gemini/skills/ds-create-token, .github/skills/ds-create-token and .opencode/skills/ds-create-token in your project.

What does Ds Create Token need to run?

Going by SKILL.md and its folder, Ds Create Token needs JavaScript for the scripts in its folder and the command-line tools its instructions call (pnpm). Our summary lists: Node.js.

Does Ds Create Token access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ds Create Token safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ds Create Token use?

Ds Create Token is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ds Create Token use?

About 636 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ds Create Token?

Skills that share tags, products or a category with Ds Create Token: Figma Design System Builder (warpdotdev/warp, 65k stars), Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars), MCP Development (coollabsio/coolify, 63k stars) and Design System (Ohh-889/skyroc, 795 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ds Create Token?

baloise (a GitHub organization) maintains it in baloise/design-system, which has 114 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.

Source: baloise/design-system on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.