token-compliance

token-compliance is a skill for Claude Code from murphytrueman/design-system-ops. It costs 120 tokens per session (4,475 once invoked), scanned A, original, MIT.

A guide for checking whether a codebase uses the design system's named tokens, shared values for colors, spacing, and other visual properties, consistently.

In plain words
What is it for?
Use it to scan consuming code, classify token violations, and produce file-specific fixes; it does not check how the tokens themselves are defined.
Why use it?
It finds hardcoded values, references to the wrong token level, and inconsistent usage before they make redesigns or theme changes costly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: $skill-name invocation.

Part of the design-system-ops plugin — 40 skills, 14 commands shipped together

Good fit Use it to scan consuming code, classify token violations, and produce file-specific fixes; it does not check how the tokens themselves are defined.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/murphytrueman/design-system-ops/token-compliance
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 murphytrueman/design-system-ops --skill token-compliance
Clone the repo
git clone --depth 1 https://github.com/murphytrueman/design-system-ops

Made for: Claude Code.

Or install design-system-ops, the plugin that ships this one along with the rest of its 40 skills, 14 commands.

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 token-compliance

README.md
[![agentmods](https://agentmods.dev/badge/skills/murphytrueman/design-system-ops/token-compliance.svg)](https://agentmods.dev/skills/murphytrueman/design-system-ops/token-compliance)
Your own site
<a href="https://agentmods.dev/skills/murphytrueman/design-system-ops/token-compliance"><img src="https://agentmods.dev/badge/skills/murphytrueman/design-system-ops/token-compliance.svg" alt="Measured on agentmods" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,475 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00120 $0.04475
Opus 5 $0.00060 $0.02237
Sonnet 5 $0.00024 $0.00895
Haiku 4.5 $0.00012 $0.00447

Measured 8d ago against content hash 73b4a4fce7b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

token-compliance 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 8d 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.

skills/token-compliance/SKILL.md · 311 lines

How it starts

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

Token compliance

A skill for identifying token compliance violations in a codebase or implementation: hardcoded raw values where tokens should be used, wrong-tier token references, and inconsistent token application. Produces a violation report with file references and remediation guidance.

Context

Token compliance problems compound quietly. A single hardcoded hex value does not break anything. Two hundred of them, distributed across a codebase by dozens of contributors over two years, mean that a brand refresh or a dark mode implementation becomes a manual find-and-replace operation through thousands of files rather than a token update.

The compliance check exists to catch violations before they accumulate, and to understand the pattern of violations when they already have. The pattern matters: if hardcoded values are concentrated in one product area or one team's contribution, the response is different than if they are evenly distributed.


Configuration

Before producing output, check for a .ds-ops-config.yml file in the project root. If present, load:

  • severity.* — overrides for violation severity. Especially: hardcoded_color, wrong_tier_reference, tier_leakage
  • system.theming — if true, elevate hardcoded colour violations to the configured severity (typically critical)
  • system.styling — pre-selects the detection approach
  • integrations.github — if enabled, auto-search for violations across the repo (see below)
  • integrations.style_dictionary — if enabled, use the parsed token tree as the reference for what tokens exist and their correct tiers
  • gates.* — if running as part of component-to-release, these determine which violations block release

Auto-pull integrations

GitHub (integrations.github.enabled: true):

  • Before running the manual compliance checks, do a broad search of integrations.github.repo for hardcoded values:
    • gh api search/code -q "repo:[repo] language:css #[0-9a-fA-F]{6}" — hex colours in CSS
    • gh api search/code -q "repo:[repo] language:scss #[0-9a-fA-F]{6}" — hex colours in SCSS
    • Search for px values in styling files as a spacing compliance signal
  • Use the results to quantify scope before the detailed audit — "approximately 340 hardcoded hex values across 47 files" is a useful framing for the report summary

Read the full file on GitHub · 311 lines

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. 8d ago First seen · 311 lines · 120 tokens per session scan A 73b4a4fce7b3

Subscribe to this mod's changes

token-compliance is a skill published in the GitHub repository murphytrueman/design-system-ops (176 stars, last pushed 16d ago), licensed MIT. It adds 120 tokens to every session and 4,475 once invoked, about $0.0006 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-08-30.

Related

Other skills, from other repositories

extract-design

Extract the full design language from any website URL. Produces 8 output files including AI-optimized markdown, visual HTML preview, Tailwind config, React theme, shadcn/ui theme, Figma variables, W3C design tokens, and CSS variables. Also runs WCAG accessibility scoring. Use when user says 'extract design', 'get…

Manavarya09/design-extract · 98 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

roast-my-design-system

Roast the current repo's design system with real data. Runs a deterministic scanner (no tokens, 1s) that counts everything that betrays a design system, from colours and their near-identical twins to greys, spacing values, typefaces, duplicated and never-imported components, inline styles, !important and arbitrary…

gregkozakiewicz/roast-my-design-system · 161 tokens

design-engineering

Premium design engineering skill for agentic workflows — produces high-end, distinctive UI designs using DESIGN.md as the portable contract across Pencil MCP (in-IDE canvas), Figma MCP (team handoff + design tokens), and Google Stitch (vibe exploration + AI generation). Enforces anti-generic principles, WCAG 2.2 AA…

broomva/skills · 231 tokens

sheleg-design

A design skill for planning how websites, dashboards, mobile screens, and agent interfaces look and move, including cinematic pages with layered motion.

ssheleg/sheleg-design-skill · 292 tokens

generate-figma-screen

Kod veya açıklamadan Figma'da tam ekran/sayfa oluşturur. Yayınlanmış design system bileşenlerini arayıp instance olarak yerleştirir; hardcode değer yerine DS token'larını kullanır. "Figma'da ekran oluştur", "kodu Figma'ya çevir", "landing page çiz", "ekran tasarla", "generate screen", "UI'ı Figma'ya aktar"…

atezer/FMCP · 118 tokens