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.5 | $0.00055 | $0.00562 |
| Sonnet 5.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 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.
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.
- 1mo ago First seen · 102 lines · 137 tokens per session scan A 19677edd28ca
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.
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…
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…
slides
Create, revise, review, and export native, editable PowerPoint decks from PPTD source in the main conversation.
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…
theme-factory
Use when generating and applying professional color themes, typography systems, and design tokens for applications. Create consistent visual identities across platforms.
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.