/cc-arsenal:product-design-tokens <idea | repo path | existing tokens/config> [--with-design-md]from cc-arsenal
Authors a W3C DTCG 2025.10 design-token JSON contract, reusing the project's existing design system and enforcing WCAG 2.2 AA contrast. Use for defining tokens, creating a DTCG file, or setting up a colour palette with contrast checks.
Ships in cc-arsenal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Produce the token contract a themed UI is built from: a valid, WCAG-checked DTCG 2025.10 JSON
file that stays the single source of truth. This skill writes no application code and never
draws assets; it authors and validates the tokens. Output lands under docs/specs/design/tokens/. <skill-dir> below is this skill's directory.
$ARGUMENTS
Read the source first: an existing repo (scan for a design system before anything else), a design
spec / screen inventory from product-design-spec, a brand brief, or a plain idea. --with-design-md
also emits the optional alpha DESIGN.md prose layer.
Sibling skills are invoked via the Skill tool where available; with no Skill tool, apply the
named sibling's documented rules inline (each delegation below states the fallback in-sentence).
Design-system detection uses the Task tool with an Explore/haiku subagent; no Task tool?
Run the detection inline, sequentially, with Grep/Glob/Read. The optional @google/design.md CLI is
probed at runtime, never assumed: the DTCG JSON is emitted whether or not it runs.
Default to a single docs/specs/design/tokens/tokens.dtcg.json. Split a layer (semantic,
component) into its own file only when it outgrows the single file. contrast-report.md sits
alongside it; DESIGN.md only when asked.
If the request implies a large tree (multi-brand × multi-theme × per-component tokens for dozens of components), stop and ask before emitting it: scope it down or confirm the tree first. Never auto-generate a 30-file token set.
Inventing a brand from scratch is the last resort, greenfield-only. Before writing any token:
tailwind.config.*, shadcn (components.json,
@/components/ui), MUI theme, CSS custom properties, or a native platform system.State which path you took in one line.
Four phases carry the work: Detect, Draft, Validate, Hand off.
Scan the repo for an existing design system (spawn an Explore/haiku agent, or do it inline):
Task (Explore, haiku): "Find this repo's design system: tailwind.config.*, components.json / shadcn
ui dir, MUI theme, CSS custom properties (:root { --... }), or a native platform system. Return the
tool, the token values found (colour/spacing/radius/type), and the file paths, invent nothing."
Decide reuse vs. greenfield from what you find. If a spec from product-design-spec is present,
read its screen inventory so the semantic tokens cover what the screens actually render.
Create the single canonical file from the skeleton and fill it:
cp <skill-dir>/assets/templates/tokens.dtcg.json docs/specs/design/tokens/tokens.dtcg.json
references/standards.md: a token is any object with a
$value; groups carry an inheritable $type; aliases are {group.token.path}. Pin to
https://www.designtokens.org/tr/2025.10/, never /tr/drafts/.base palette, then a semantic layer that aliases it (UI
consumes semantic). OKLCH is fine for exploration, but export an sRGB/hex-compatible value.codex-imagegen: produce the prompt, don't draw the
asset here (via the Skill tool where available, else write the prompt for the user to run).--with-design-md: probe the CLI at runtime,
pin the alpha version in its frontmatter, add the ALPHA banner, and always keep
tokens.dtcg.json alongside as canonical (template: assets/templates/DESIGN.md).references/standards.md.python <skill-dir>/scripts/dtcg_validate.py --tokens docs/specs/design/tokens/tokens.dtcg.json
python <skill-dir>/scripts/contrast.py --tokens docs/specs/design/tokens/tokens.dtcg.json
dtcg_validate.py must print VALID (every token has a resolvable $type, every alias resolves, no
cycles); fix any error before proceeding. contrast.py writes the contrast table, and 0 failing
pairs is the gate: a pair below its AA threshold is a blocker, so darken/lighten the token and
re-run rather than approving a failing or colour-alone palette. Save its output to
docs/specs/design/tokens/contrast-report.md. In-context accessibility sign-off, the palette
rendered in real screens, goes to review-design for the WCAG 2.2 AA audit (via the Skill tool
where available, otherwise apply its WCAG 2.2 AA checklist, the 9 criteria new since 2.1 in
references/standards.md, inline).
State the single readiness verdict: DTCG VALID, contrast 0 failures, the reuse-vs-greenfield path,
and whether a DESIGN.md/alpha layer was produced. Report the written path(s), and recommend the
live pipeline (Figma Code Connect → Dev Mode MCP → AI editor → human polish) reconciled against the
versioned tokens.dtcg.json, rather than a one-shot handoff export. Name the downstream consumer:
implement-feature builds the themed UI from these.
/tr/2025.10/, never /tr/drafts/; the DTCG JSON is always the canonical
source, and DESIGN.md is never the sole record.contrast.py before declaring done.@google/design.md CLI and its subcommands are probed at runtime, never assumed; pin the
version you generated against.references/standards.md: DTCG 2025.10 (stable URL), WCAG 2.2 AA + the 9 new-since-2.1 criteria
(3.0/APCA excluded), Material 3 Expressive, Apple Liquid Glass, DSDS (emerging/unendorsed), the
live handoff pipeline.assets/templates/: tokens.dtcg.json (canonical skeleton), DESIGN.md (optional alpha),
contrast-report.md.scripts/dtcg_validate.py · scripts/contrast.pyproduct-design-spec.product-prd.review-design.codex-imagegen.implement-feature.assets/templates/DESIGN.md (opens in a new tab)assets/templates/contrast-report.md (opens in a new tab)assets/templates/tokens.dtcg.json (opens in a new tab)evals/evals.json (opens in a new tab)evals/trigger-eval.json (opens in a new tab)references/standards.md (opens in a new tab)scripts/contrast.py (opens in a new tab)scripts/dtcg_validate.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
general-purpose), in the backgroundThree short reads, in order
Other plugins' skills for the same job
52 skills in this plugin
/agent-browserHeadless browser automation CLI optimized for AI agents: drives a real browser via accessibility-tree snapshots and @e1-style refs for ~93% less context than raw DOM tools. Use whenever a task needs to interact with a live web page: click, fill forms, log in, extract text or data, take screenshots, test a running web app, or scrape a site. Triggers on 'automate the browser', 'fill this form', 'click the button', 'take a screenshot of the page', 'log into', 'scrape this site', 'test my web app', 'headless browser'. Not for Playwright test-suite authoring or CDP/service-worker work needing the full JS API: use Playwright directly. Not for driving the user's own already-open, logged-in Chrome tab: use claude-in-chrome for that./anything-to-skillTurns a docs site, local folder, PDF or book, YouTube video, playlist or channel, or a topic into a source-grounded, token-efficient agent skill (hub SKILL.md, sectioned references, INDEX, evals), and can compact it into a lean expert skill. Use for "make a skill from these docs", "turn this channel into a skill". Not for a skill from your own description (use create-skill), improving one (use improve-skill) or finding third-party skills (use find-skills)./ci-generateGenerate a production-ready CI/CD pipeline config (GitHub Actions, GitLab CI, CircleCI, or Jenkins) by discovering the project's actual stack, test/build commands, and dependencies. Use when setting up CI for a new project, adding a missing workflow file, or asked to create/generate a pipeline, workflow, or `.gitlab-ci.yml`/`Jenkinsfile`. Not for writing a Dockerfile itself (see docker-init), this only wires CI stages around one. Not for running existing CI checks locally (use ci-local), this skill only authors the pipeline file itself./ci-localRun the checks a GitHub Actions workflow would run, locally, when Actions is unavailable or out of quota. Parses .github/workflows/*.yml, extracts the jobs/steps that gate merges (lint, typecheck, test, build), translates them to local commands respecting the workflow's pinned node/python versions and env, executes them sequentially, and reports a parity table of what passed locally vs. what can't be replicated (service containers, secrets, matrix dimensions) and why. Activates on "CI quota", "Actions is down/unavailable", "run CI locally", "verify like CI would", "run the pipeline on my machine", or a pre-push request to check a branch the way CI checks it. Not for generating a new workflow file (use ci-generate), not for debugging why a specific CI run failed on GitHub (use fix-bug or review-code), and not for the release/hotfix gating process itself (use gitflow), this skill only produces the local stand-in when the real thing isn't reachable./clotho-researchFind what a change will actually touch before planning it — the existing code that must change, the prior art worth copying, and the risks that will bite. Trigger on "what would this change touch", "research this before we plan it", or an automated pre-planning step. Reports files, sources, and risks; it never proposes an implementation and never edits anything. Not for auditing dependencies (use review-deps), not for writing the plan itself (use project-planner), and not for reviewing code that already exists (use review-code)./codex-imagegenGenerates images and polished raster art (logos, mascots, hero images, icons, characters, sprite sheets, illustrations, product mockups) by driving Codex CLI's $imagegen skill. This is the default image generator, use it for any request to generate or create an image or visual asset, including "generate an image", "create a hero image", "make a mascot", "design a logo", "draw an icon", "generate a sprite sheet", or "make an illustration". Requires the `codex` CLI installed and authenticated (ChatGPT auth). Not for architecture, flow, or sequence diagrams (use docs-diagram).npx claudepluginhub mgiovani/ai-arsenal --plugin cc-arsenal