design-system

design-system is a command for Claude Code from MadAppGang/magus. It costs 44 tokens per session (2,690 once invoked), scanned C, original, MIT.

A command that checks a project’s interface code against agreed design-system rules, such as shared style tokens and reusable components.

In plain words
What is it for?
Validating or repairing frontend styling and component usage across a project.
Why use it?
It reveals where individual files drift from the project’s visual rules and can correct the problems or add the missing rules.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dev plugin — 19 skills, 15 commands, 12 agents shipped together

Good fit Validating or repairing frontend styling and component usage across a project.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MadAppGang/magus
Claude Code
/plugin install dev

Made for: Claude Code.

Or install dev, the plugin that ships this one along with the rest of its 19 skills, 15 commands, 12 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/madappgang/magus/design-system/github.svg)](https://agentmods.dev/commands/madappgang/magus/design-system)
Your own site
<a href="https://agentmods.dev/commands/madappgang/magus/design-system"><img src="https://agentmods.dev/badge/commands/madappgang/magus/design-system/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.

agentmods 80×15 button for design-system

Your own site · 80×15
<a href="https://agentmods.dev/commands/madappgang/magus/design-system"><img src="https://agentmods.dev/badge/commands/madappgang/magus/design-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,690 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00044 $0.02690
Opus 5.5 $0.00018 $0.01076
Sonnet 5.5 $0.00009 $0.00538
Haiku 4.5 $0.00004 $0.00269

Measured yesterday against content hash e380d03da924, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

design-system scanned grade C with 2 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 yesterday.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

(`curl -fsSL https://bun.sh/install | bash`) and continue with the manual

Makes network callslowCapability

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

(`curl -fsSL https://bun.sh/install | bash`) and continue with the manual
plugins/dev/commands/design-system.md · 230 lines

How it starts

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

Read ${CLAUDE_PLUGIN_ROOT}/skills/frontend/design-system-guardrails/SKILL.md first. It defines the five guardrails this command measures.

<user_request>$ARGUMENTS</user_request>

<step number="1" name="Resolve mode and scope">
  Parse $ARGUMENTS. Do NOT ask the user anything that the arguments already answer.

  MODE (default `validate`):
  - `--fix`   → validate, then fix violations
  - `--setup` → scaffold guardrails into a project that lacks them
  - otherwise → validate and report only (read-only)

  SCOPE (default: whole repo):
  - `--changed` → only files changed vs the base branch. Use the plugin's
    capture script rather than a hand-rolled range — it resolves the base,
    includes staged, unstaged and **untracked** files, and never touches the
    index:
    ```bash
    bun "${CLAUDE_PLUGIN_ROOT}/scripts/capture-review-surfaces.ts" \
      --repo "$(git rev-parse --show-toplevel)" --stat
    ```
    If it warns that no base branch resolved, say so in the report and audit
    the working tree only. **Never fall back to `HEAD~1`** — that silently
    audits one commit of a many-commit branch and presents it as the whole
    change.
    Filter to auditable extensions (.tsx .jsx .ts .js .vue .svelte .astro .css .scss .less .html .mdx).
  - a path argument → scope to that path
  - otherwise → repo root

  STRICTNESS:
  - `--strict` → warnings are treated as blocking
  - `--changed` without `--strict` → warnings blocking on changed files only
    (this is the rollout order from `references/enforcement.md`: new code clean
    first, existing drift paid down after)
  - full-repo without `--strict` → warnings are advisory

  If $ARGUMENTS is empty, default to: validate, whole repo, advisory warnings.
  Announce the resolved mode/scope in one line before proceeding.
</step>

<step number="2" name="Preflight">
  Confirm this is a frontend project before auditing. Check for any of:
  `package.json` with react/vue/svelte/astro/next/nuxt, any `.tsx|.jsx|.vue|.svelte`
  file, or a `tailwind.config.*` / `@theme` block.

  If none are present, STOP and report: "No frontend code detected in {path} —
  the design-system guardrails don't apply here." Do not audit further.

  Locate the audit script:
  ```bash
  SCRIPT="${CLAUDE_PLUGIN_ROOT}/skills/frontend/design-system-guardrails/scripts/audit-ui.ts"
  ```
  Check `bun --version`. If bun is missing, tell the user
  (`curl -fsSL https://bun.sh/install | bash`) and continue with the manual
  checks in step 4 only — do not silently skip the audit.
</step>

<step number="3" name="Static audit">
  Run the bundled auditor and parse its JSON:
  ```bash
  bun "$SCRIPT" <scope-paths> --json
  ```
  Useful flags — apply them when the project's conventions call for it, and say so:
  - `--lib <path>` when the component library is not `components/ui`, `design-system`, or `packages/ui`
  - `--layout-components A,B,C` for project-specific layout primitives beyond the built-in set
  - `--allow <glob>` for extra token/theme files where raw values are correct
  - `--skip <check>` only with an explicit reason stated in the report

Read the full file on GitHub · 230 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. yesterday Changed e380d03da924
  2. 2mo ago Changed · +1 lines fc5558934336
  3. 2mo ago First seen · 229 lines · 44 tokens per session scan C a2a610ed03c2

Subscribe to this mod's changes

design-system is a command published in the GitHub repository MadAppGang/magus (16 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 2,690 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

design-system compared with commands from other repositories

design-system next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-systemMadAppGang/magusCommand16todayMITC44Claude Code
ux-recommendLaith0003/ux-skillCommand11519d agoMITA17Claude Code
color-specialistimsaif/design-with-claudeCommand1114d agoMITA35Claude Code
responsive-design-specialistimsaif/design-with-claudeCommand1114d agoMITA36Claude Code
revisar-uiluanpdd/kit-mcpCommand5yesterdayMITA19Claude Code
bolderqorstack/qorstack-reportCommand441mo agononeA0Claude Code
frontend-designqorstack/qorstack-reportCommand441mo agononeA0Claude Code