design-token

design-token is a skill for Claude Code, Codex from rojim666/SztuCode. It costs 137 tokens per session (1,405 once invoked), scanned A, original, MIT.

A document-design guide that selects a visual theme for a document type and outputs reusable rules for fonts, colours, spacing, page layout, and CSS variables. Design tokens are named style settings that keep formatting consistent.

In plain words
What is it for?
Use it when preparing the visual style for government documents, academic papers, business reports, creative marketing documents, or general documents.
Why use it?
It prevents document-formatting workflows from choosing style values ad hoc or repeating them in different places.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: agent in frontmatter.

Good fit Use it when preparing the visual style for government documents, academic papers, business reports, creative marketing documents, or general documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rojim666/sztucode/design-token
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rojim666/SztuCode --skill design-token
Clone the repo
git clone --depth 1 https://github.com/rojim666/SztuCode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-token

README.md
[![agentmods](https://agentmods.dev/badge/skills/rojim666/sztucode/design-token/github.svg)](https://agentmods.dev/skills/rojim666/sztucode/design-token)
Your own site
<a href="https://agentmods.dev/skills/rojim666/sztucode/design-token"><img src="https://agentmods.dev/badge/skills/rojim666/sztucode/design-token/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-token

Your own site · 80×15
<a href="https://agentmods.dev/skills/rojim666/sztucode/design-token"><img src="https://agentmods.dev/badge/skills/rojim666/sztucode/design-token.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,405 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.01405
Opus 5.5 $0.00055 $0.00562
Sonnet 5.5 $0.00027 $0.00281
Haiku 4.5 $0.00014 $0.00140

Measured 1mo ago against content hash 19677edd28ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-token scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/runtime-ts/prompts/Sztubuddy/skills/_builtin-plugins/tencent-docx/skills/design-token/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

design-token Skill

1. 职责

根据文档类型(genre)选择合适的设计令牌主题和版式规则,输出标准化的 DesignTokenOutput,供 doc-typeset skill 消费。版式规则文件作为补充上下文,描述该 genre 对应的国标排版规范(如 GB/T 9704)。

2. 输入/输出

输入

interface DesignTokenInput {
  genre: string;             // 文档类型,合法值见第 3 节映射表
  scene_type?: string;       // 场景细分(如 "formal"、"creative"),可选,用于未来扩展
  style_reference?: string;  // 风格参考描述(用于细化主题选择),可选
}

输出

interface DesignTokenOutput {
  theme_name: string;                    // 主题名称
  tokens: DesignTokenBundle;            // W3C DTCG 格式 token 集合
  typography_rules: string | null;       // 版式规则 Markdown 路径(可选)
  css_variables: Record<string, string>; // 预转换的 CSS 变量映射
}

3. Genre → 主题映射

genre 说明 theme_file 预编译产物(直接查表) rules_file
government-doc 党政机关公文 tokens/themes/formal-government.json tokens/compiled/government-doc.json tokens/rules/gb-t-9704-government.md
academic-paper 学术论文 / 学位论文 tokens/themes/academic-paper.json tokens/compiled/academic-paper.json tokens/rules/gb-t-7713-academic.md(含 7714 引用规则)
business-report 商务报告 / 分析报告 tokens/themes/business-modern.json tokens/compiled/business-report.json —
marketing-doc 创意营销 / 活动方案 tokens/themes/creative-marketing.json tokens/compiled/marketing-doc.json —
general(默认) 其他/未明确场景 tokens/themes/modern-minimal.json tokens/compiled/general.json —

当 genre 不在上表时,使用 general 兜底策略。

4. 执行方式(预编译查表,0 次 LLM 往返)

所有主题的 DesignTokenOutput(含 theme_name / tokens / css_variables / typography_rules)已由 scripts/build_tokens.py 预编译为静态产物,存放在 tokens/compiled/。运行时本 skill 只做静态查表:

  1. 按 genre 从 tokens/compiled/index.json 定位对应产物文件(未命中 → general);
  2. 直接读取该 compiled JSON 作为 DesignTokenOutput 返回,无需任何转换或 LLM 推理。

主题 JSON 的字面值已内含精确规范(如 GB/T 9704 页边距、行距磅数),typography_rules 仅作可选溯源上下文,运行时无需读取。

Read the full file on GitHub · 102 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 102 lines · 137 tokens per session scan A 19677edd28ca

Subscribe to this mod's changes

design-token is a skill published in the GitHub repository rojim666/SztuCode (109 stars, last pushed 4d ago), licensed MIT. It adds 137 tokens to every session and 1,405 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

Other skills, from other repositories

brand-identity

Use when a project needs its visual foundation built or consolidated into one system: logo brief, color system in HEX/RGB/CMYK/OKLCH with proven AA contrast, type system, usage rules, and an exported W3C design-tokens.json that later skills consume. NOT the applied UI pixels (that is design), NOT the words or tone…

ericrisco/rsc-harness · 83 tokens

rebuild-package-diagrams

Render a reverse-spec rebuild package as traced, script-checked visuals — a Mermaid ER diagram of model.md entities, capability use cases as BPMN processes, and one browsable HTML catalog. Use on "ER diagram from the entities", "draw the data model", "use cases as BPMN", "browsable HTML of the rebuild package", "ER…

BlackBeltTechnology/pi-agent-dashboard · 94 tokens

slides

Create, revise, review, and export native, editable PowerPoint decks from PPTD source in the main conversation.

KunAgent/Kun · 25 tokens

design-skill

Use BEFORE building or restyling anything a user will see — web/mobile UIs, landing pages, dashboards, components, emails, AND creative work like Three.js/WebGL/canvas/SVG scenes, data-viz, games, and animations — to make it look intentional and polished, not generic; covers tokens, type, color, layout, motion…

Overbrilliant/ob-1 · 82 tokens

theme-factory

Use when generating and applying professional color themes, typography systems, and design tokens for applications. Create consistent visual identities across platforms.

oyi77/1ai-skills · 29 tokens

role-ui-ux-designer

Use when orchestrating UI/UX design systems, anti-AI-slop frontend styling, tactile micro-interactions, responsive design tokens, accessibility standards, and high-fidelity interface engineering.

oyi77/1ai-skills · 44 tokens