design-lab

design-lab is a skill for Claude Code, Codex from zhenheco/design-lab. It costs 91 tokens per session (3,746 once invoked), scanned C, original, MIT.

Ein persönliches Design-System mit einer Dateiablage pro Kunde, einer lokalen Weboberfläche und einer lokalen Verbindung, die passende gespeicherte Designinformationen für neue Arbeiten bereitstellt.

In plain words
What is it for?
Zum Verwalten mehrerer Kundenbibliotheken, Bearbeiten von Stilrichtlinien, Durchsuchen von Fallbeispielen und Bereitstellen relevanter Designinformationen für Open Design.
Why use it?
Es hält Designfälle, Stilregeln und Gegenbeispiele geordnet und macht sie bei neuen Entwürfen auffindbar.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/zhenheco/design-lab/skill
Any agent
npx skills add zhenheco/design-lab --skill skill
Clone the repo
git clone --depth 1 https://github.com/zhenheco/design-lab

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-lab

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhenheco/design-lab/skill.svg)](https://agentmods.dev/skills/zhenheco/design-lab/skill)
Your own site
<a href="https://agentmods.dev/skills/zhenheco/design-lab/skill"><img src="https://agentmods.dev/badge/skills/zhenheco/design-lab/skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,746 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. Scan, not verified.
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 $0.00091 $0.03746
Opus 5 $0.00046 $0.01873
Sonnet 5 $0.00018 $0.00749
Haiku 4.5 $0.00009 $0.00375

Measured 3d ago against content hash 3cf8f7bf1f61, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

design-lab scanned grade C with 3 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 3d ago.

The scan reads SKILL.md. This mod also ships 37 executable files (dashboard/astro.config.mjs, dashboard/src/lib/api.ts, dashboard/tests/components/api-auth.test.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- token 寫到 `$HOME/.claude/state/design-lab/api-token`,`umask 077` + `chmod 600`。

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

TOKEN="$(cat "$HOME/.claude/state/design-lab/api-token")"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "http://127.0.0.1:5174/api/context?client=$CLIENT&scenario=$SCENARIO" \
skill/SKILL.md · 271 lines

How it starts

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

design-lab v0.3 — sidecar auto-auth 架構

個人化品牌設計系統。三大組件:

  1. Multi-client vault:v0.2 schema_version=2,每個 client 獨立 cases/ + anti-library/,retrieval scope 自動 union(type:self clients 跨 client 共享)。
  2. Sidecar daemon(Express + SQLite + chokidar,localhost:5174):watch vault → SQLite cache → 5 個 API + dashboard SSR mount;v0.3 起有 host allowlist + write-route token auth。
  3. Local dashboard(Astro 5 SSR + Tailwind 4,從 sidecar 同 port serve):4 page UI(overview / clients CRUD / case grid / style-guide editor),SSR 注入 API token 給 CSR fetch。

Memory 庫位置~/Documents/CC Cli/design-library/(Obsidian vault 內)。


啟動 hook

每個 slash command 第一個動作都跑 schema check;v0.3 起 /design 在 schema check 後會自動 ensure sidecar,讓 Open Design bridge skill 在 generation pre-flight 可抓 context:

bash $SKILL_DIR/scripts/check-schema.sh "$HOME/Documents/CC Cli/design-library"

退出碼 2 = 提示用戶跑 migration;退出碼 1 = 致命錯誤;退出碼 0 = 繼續。

如 vault 不存在:先跑 bash $SKILL_DIR/scripts/init-library.sh "$HOME/Documents/CC Cli/design-library" 初始化(v0.2 結構:clients/_personal/、scenario-overrides/、personal-style-guide.md)。

如 vault 是 v1 結構(root cases/ + anti-library/,無 clients/):check-schema 會提示跑 bash $SKILL_DIR/scripts/migrate-v1-to-v2.sh "$HOME/Documents/CC Cli/design-library",自動把 root cases 搬到 clients/_personal/cases/,sibling 備份原 vault。

/design 專用 auto-spawn:

bash $SKILL_DIR/scripts/ensure-sidecar.sh

spawn 失敗時 design.sh fail soft,只提示 bridge 將 fallback 到 no-memory generation,不阻塞本次 design。


Slash commands(v0.3 只保留 2 個)

/design <task description> — 主入口

做什麼:根據任務描述,組 brand.yaml token > personal-style-guide > taste-overrides > taste-skill baseline 的 design context,從個案庫抽相似 case,產出 design。

執行:

bash $SKILL_DIR/scripts/design.sh "<task description>"

design.sh 行為:

  1. 跑 schema check(exit 2 提示 migration / exit 1 致命)
  2. v0.3: 開頭自動 ensure-sidecar.sh(fail soft),給 bridge skill 抓 context;cold spawn 會產生 token 並啟 sidecar
  3. 印 task description
  4. composed-design-context:brand.yaml tokens、personal-style-guide、taste-overrides、section-filtered taste-skill baseline
  5. 透過 node --import tsx 載入 lib/case-loader.ts,輸出 cases/ frontmatter summary(含 client / slug / scenario / quotes / tags / palette)
  6. 印 case_count(用 find clients/*/cases/*.md)+ fallback flag
  7. 印 INSTRUCTIONS:Claude 從 summary 挑 top 5 → 載 scenario-override → 產出 design → 跑 lint

Read the full file on GitHub · 271 lines

Files

What ships with it

60 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. 3d ago First seen · 271 lines · 91 tokens per session scan C 3cf8f7bf1f61

Subscribe to this mod's changes

design-lab is a skill published in the GitHub repository zhenheco/design-lab (8 stars, last pushed 22d ago), licensed MIT. It adds 91 tokens to every session and 3,746 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 3 findings (asks for root, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

daisyui-config

Configuration options for daisyUI 5.

saadeghi/daisyui · 13 tokens

create-component

End-to-end SEED component implementation guide for React Web, Lynx, and cross-platform work. Use when adding or changing components across rootage, qvism, react/lynx packages, registry snippets, docs, examples, or when writing/refactoring docs/stories Storybook files. Story-only work follows a CSF Next fast path…

daangn/seed-design · 88 tokens

designlang-tokens

Use when styling UI for cal.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

Manavarya09/design-extract · 30 tokens

design-negotiation

Advocate for design quality, scope, and timeline with partners and leadership using evidence and shared goals. Use in the conversation itself. For the commercial vocabulary behind it, use business-design (ux-strategy).

Owl-Listener/designer-skills · 48 tokens

version-control-strategy

Define version control for design files, components, and libraries — branching, naming, and release. Use when file history is chaotic. For design system contribution rules, use design-system-governance (design-systems).

Owl-Listener/designer-skills · 50 tokens