Agent skill

Token Generator

by revfactory in revfactory/harness-100

Methodology and tools for systematically generating design tokens.

Apache-2.0Auto-check passedFrontend & Design

Install Token Generator

skills CLI
$ npx skills add revfactory/harness-100 --skill token-generator -a claude-code

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

GitHub CLI
$ gh skill install revfactory/harness-100 token-generator --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/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/en/36-design-system/.claude/skills/token-generator .claude/skills/token-generator && 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
token-generator
GitHub stars
1.3k
Token cost
~1.1k tokens
SKILL.md length
330 words
Files
1
Skills in repo
464
Repo updated
First seen
Licence
Apache-2.0

At a glance

Methodology and tools for systematically generating design tokens.

  • Requests like create design tokens
  • SKILL.md covers Target Agents, Token Hierarchy (3-Tier), Color Scale Generation Algorithm and Semantic Color Mapping Standard, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Token system design

What it does

Token Generator is an agent skill from revfactory/harness-100. Methodology and tools for systematically generating design tokens. Use for requests like 'create design tokens', 'token system design', 'color scale generation', 'typography scale', 'spacing system', 'dark mode tokens', etc. Note: Figma token plugin execution and Style Dictionary runtime builds are outside the scope of this skill.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Design tokens, Typography and Theming and dark mode. It works with Figma. The licence is Apache-2.0.

When your agent uses it

  • Requests like create design tokens
  • Token system design
  • Color scale generation
  • Typography scale

Example prompts

  • “create design tokens”
  • “token system design”
  • “color scale generation”
  • “/token-generator”

What it can do on your machine

Read from SKILL.md and the folder at commit 8e8d35c. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are css, typescript and json).

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

  • Network

    No URLs in SKILL.md.

    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

Token Generator loads about 1.1k tokens when it runs. Until then it costs about 87 tokens; SKILL.md has 330 words of instructions outside code blocks.

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

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 revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 330 words, ~1,139 tokens.

Download SKILL.mdSave it as .claude/skills/token-generator/SKILL.md (or your agent's skills folder).
name
token-generator
description
Methodology and tools for systematically generating design tokens. Use for requests like 'create design tokens', 'token system design', 'color scale generation', 'typography scale', 'spacing system', 'dark mode tokens', etc. Note: Figma token plugin execution and Style Dictionary runtime builds are outside the scope of this skill.

Token Generator — Design Token Generation Methodology

A domain knowledge skill that enhances the token-designer agent's token design capabilities.

Target Agents

  • token-designer — Uses this methodology when designing color, typography, spacing, and other token systems
  • component-developer — References naming conventions when consuming tokens in components

Token Hierarchy (3-Tier)

Global (Primitive) > Alias (Semantic) > Component
----------------------------------------------------
blue-500: #3B82F6   primary: blue-500    button-bg: primary
gray-100: #F3F4F6   surface: gray-100    card-bg: surface
Tier 1: Primitive — {category}-{scale} (e.g., blue-500)
Tier 2: Semantic — {purpose} (e.g., primary, surface)
Tier 3: Component — {component}-{property}-{variant}-{state}

Color Scale Generation Algorithm

Input: One brand color > Convert to HSL, then generate a 10-step scale:

StepL AdjustmentS AdjustmentPurpose
5095-97%S x 0.3Background tint
10090-93%S x 0.5Hover background
20082-87%S x 0.7Secondary background
30070-76%S x 0.85Border
40058-64%S x 0.95Secondary text
50045-55%S x 1.0Default (input value)
60038-44%S x 1.0Hover
70030-36%S x 0.95Active
80022-28%S x 0.9Emphasized text
90014-20%S x 0.85Maximum emphasis
9508-12%S x 0.8Near-black

Semantic Color Mapping Standard

Semantic TokenLight ModeDark ModePurpose
primaryblue-500blue-400Primary action
on-primarywhitewhiteText on primary action
surfacewhitegray-900Default background
surface-raisedwhitegray-800Card/modal
on-surfacegray-900gray-50Default text
on-surface-mutedgray-500gray-400Secondary text
bordergray-200gray-700Default border
successgreen-500green-400Success
warningamber-500amber-400Warning
errorred-500red-400Error

Typography Scale (Major Third 1.250)

base = 16px (1rem), ratio = 1.250

| Token | px | rem | Purpose |
|-------|----|-----|---------|
| text-xs | 10.24 | 0.64 | Caption |
| text-sm | 12.80 | 0.80 | Secondary text |
| text-base | 16.00 | 1.00 | Body |
| text-lg | 20.00 | 1.25 | Emphasized body |
| text-xl | 25.00 | 1.563 | Subtitle |
| text-2xl | 31.25 | 1.953 | Title |
| text-3xl | 39.06 | 2.441 | Large title |
| text-4xl | 48.83 | 3.052 | Hero |

Line height: heading 1.2-1.3, body 1.5-1.7, compact 1.25-1.4
Weight: light(300), regular(400), medium(500), semibold(600), bold(700)

Spacing System (4px Base)

TokenValueremPurpose
space-14px0.25Minimum spacing
space-28px0.5Inline spacing
space-312px0.75Compact padding
space-416px1.0Default padding
space-624px1.5Section spacing
space-832px2.0Large spacing
space-1248px3.0Layout spacing
space-1664px4.0Large layout

Shadow System

TokenValuePurpose
shadow-sm0 1px 3px rgba(0,0,0,0.1)Card
shadow-md0 4px 6px rgba(0,0,0,0.1)Dropdown
shadow-lg0 10px 15px rgba(0,0,0,0.1)Modal
shadow-xl0 20px 25px rgba(0,0,0,0.1)Popover

Motion Tokens

TokenValuePurpose
duration-fast150msHover, toggle
duration-normal250msTransition
duration-slow400msComplex animation
easing-defaultcubic-bezier(0.4, 0, 0.2, 1)Default

Output Formats

CSS Custom Properties
css
:root { --color-primary: #3B82F6; --space-4: 1rem; }
[data-theme="dark"] { --color-primary: #60A5FA; }
TypeScript
typescript
export const tokens = {
  color: { primary: '#3B82F6' },
  space: { 4: '1rem' },
} as const;
JSON (Style Dictionary)
json
{ "color": { "primary": { "value": "#3B82F6", "type": "color" } } }

© revfactory, 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

Just SKILL.md in en/36-design-system/.claude/skills/token-generator of revfactory/harness-100.

Open the folder on GitHubat commit 8e8d35c

Compare with similar skills

Token Generator 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.

Token Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Token Generator this skillrevfactory/harness-1001.3k—~1.1kAutomated safety check: PassApache-2.0
Qt Figma Token ExtractionTheQtCompanyRnD/agent-skills459—~7.3kAutomated safety check: PassBSD-3-Clause
Suede DesignJasonColapietro/suede-creator-skills127—~5.4kAutomated safety check: PassMIT
Design System Generatemohitagw15856/pm-claude-skills1.4k—~1.7kAutomated safety check: PassMIT
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Scalar Design Systemscalar/scalar16k—~2.7kAutomated safety check: PassMIT

Similar skills

  • Qt Figma Token Extraction

    TheQtCompanyRnD/agent-skills

    Extract design tokens, text styles, and variables from a Figma design system and produce a design-tokens.json plus ready-to-use QML singletons.

    459 GitHub stars~7.3k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Suede Design

    JasonColapietro/suede-creator-skills

    Suede AI design skill for making an interface feel intentional instead of templated: design tokens, color strategy, OKLCH ramps, type scale, fluid type, visual hierarchy, dark mode, spacing…

    127 GitHub stars~5.4k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Design System Generate

    mohitagw15856/pm-claude-skills

    Generate a complete, accessibility-checked design system from scratch — colour ramps, type scale, spacing, elevation, and exports for CSS, Tailwind, design tokens, Figma, VS Code and PowerPoint.

    1.4k GitHub stars~1.7k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • 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
  • Scalar's design system — design tokens, theming (@scalar/themes), CSS variables, and the @scalar/components library.

    16k GitHub stars~2.7k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Material Design 3 UI/UX Guide

    skydashnet/material-design-3-ui-skill

    Guides designing, reviewing or implementing interfaces that follow Google's Material Design 3 system: semantic tokens, component states, adaptive layout and accessibility.

    130 GitHub stars~3k tokensUpdated 7 days ago
    Frontend & DesignAuto-check passed

More from revfactory/harness-100

All 464 skills in this repo
  • Anti Bot Analyzer

    revfactory/harness-100

    A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.

    1.3k GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed
  • API Error Design Patterns

    revfactory/harness-100

    Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed
  • API Security Checklist

    revfactory/harness-100

    Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.

    1.3k GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Arg Parser Generator

    revfactory/harness-100

    Methodology for systematically designing and generating CLI tool argument parser structures.

    1.3k GitHub stars~1.2k tokensUpdated 6 mo ago
    Auto-check passed
  • Audience Segmentation

    revfactory/harness-100

    Audience segmentation skill used by the analyst and curator agents.

    1.3k GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • Audio Storytelling

    revfactory/harness-100

    Audio storytelling skill used by the podcast scriptwriter and show note editor.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed

Works with

Questions about Token Generator

What does Token Generator do?

Methodology and tools for systematically generating design tokens. Token Generator is an agent skill from revfactory/harness-100. Methodology and tools for systematically generating design tokens.

When should I use Token Generator?

Token Generator fits situations like: requests like create design tokens; token system design; color scale generation; typography scale.

How do I install Token Generator in Claude Code?

Run `npx skills add revfactory/harness-100 --skill token-generator -a claude-code`. Or copy the skill folder (en/36-design-system/.claude/skills/token-generator in revfactory/harness-100) into .claude/skills/token-generator in your project. Claude Code loads it when a task matches its description.

How do I install Token Generator in Codex?

Run `npx skills add revfactory/harness-100 --skill token-generator -a codex`. Or copy the skill folder (en/36-design-system/.claude/skills/token-generator in revfactory/harness-100) into .agents/skills/token-generator in your project. Codex loads it when a task matches its description.

Can I use Token Generator 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 revfactory/harness-100 --skill token-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/token-generator, .gemini/skills/token-generator, .github/skills/token-generator and .opencode/skills/token-generator in your project.

What does Token Generator need to run?

SKILL.md names no scripts, command-line tools or credentials: Token Generator is instructions for the agent only.

Does Token Generator 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 Token Generator 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 Token Generator use?

Token Generator 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 Token Generator use?

About 1.1k tokens (SKILL.md is roughly 4.6k 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 Token Generator?

Skills that share tags, products or a category with Token Generator: Qt Figma Token Extraction (TheQtCompanyRnD/agent-skills, 459 stars), Suede Design (JasonColapietro/suede-creator-skills, 127 stars), Design System Generate (mohitagw15856/pm-claude-skills, 1.4k stars) and Figma Design System Builder (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Token Generator?

revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,290 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.

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