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.
npx skills add rojim666/SztuCode --skill design-tokengit clone --depth 1 https://github.com/rojim666/SztuCodeWrote 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.
[](https://agentmods.dev/skills/rojim666/sztucode/design-token)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00137 | $0.01405 |
| Opus 5 | $0.00068 | $0.00702 |
| Sonnet 5 | $0.00027 | $0.00281 |
| Haiku 4.5 | $0.00014 | $0.00140 |
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 today.
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.
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 只做静态查表:
- 按 genre 从
tokens/compiled/index.json定位对应产物文件(未命中 →general); - 直接读取该 compiled JSON 作为
DesignTokenOutput返回,无需任何转换或 LLM 推理。
主题 JSON 的字面值已内含精确规范(如 GB/T 9704 页边距、行距磅数),
typography_rules仅作可选溯源上下文,运行时无需读取。
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.
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.
- today First seen · 102 lines · 137 tokens per session scan A 19677edd28ca
design-token is a skill published in the GitHub repository rojim666/SztuCode (64 stars, last pushed today), licensed MIT. It adds 137 tokens to every session and 1,405 once invoked, about $0.0007 per session on Opus 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.
Other skills, from other repositories
design-context-extract
Extract design DNA from app screenshots, live URLs, or screen recordings using Google Stitch — color palettes, typography, spacing tokens, component patterns, and motion specs as design-tokens.json or Tailwind config. Use when the user points to a screenshot, URL, or video and asks to extract or audit the design…
design-system-tokens
Design token management with the W3C Design Token spec, three-tier hierarchy (global/alias/component), OKLCH color, Style Dictionary transforms, and dark mode theming. Use when creating token files, implementing theme systems, or building design-to-code pipelines.
design-inventory
Use to run the Claude Design to ClosedLoop pipeline against the current web-ui. Stage A inventories a design export zip into schema-validated findings (typed design units - screens, regions like nav bars, standalone components like a chat dialog; UX and behavioral changes; Storybook component reuse mapping; token…
extract-plan-md
Sync plan.md with plan.json content. MUST be used after ANY edit to plan.json to keep plan.md in sync. Triggers: After editing plan.json with Edit tool (REQUIRED - always sync after edits) User asks to "sync plan.md", "update plan.md", "extract the md from a plan" Converting plan.json to markdown or viewing plan as…
copperhead
Change or verify a KiCad project through copperhead's gated pipeline. Use whenever a task touches .kicadsch or .kicadpcb files, a schematic, a PCB layout, a netlist, ERC/DRC, a BOM, or hardware design docs — instead of editing those files directly.
create-theme
Use this skill when the user wants a reusable house style for open-sheet workbooks — "make a theme with our brand colours", "all our spreadsheets should look like this", "create a corporate template". Writes themes/ .md and an optional demo workbook the gallery previews.