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.
/plugin marketplace add MadAppGang/magus/plugin install devWrote 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/commands/madappgang/magus/design-system)<a href="https://agentmods.dev/commands/madappgang/magus/design-system"><img src="https://agentmods.dev/badge/commands/madappgang/magus/design-system.svg" alt="Measured on agentmods" 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.00044 | $0.02669 |
| Opus 5 | $0.00022 | $0.01334 |
| Sonnet 5 | $0.00009 | $0.00534 |
| Haiku 4.5 | $0.00004 | $0.00267 |
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 How it starts
The opening of the file, as written. The whole thing — 229 lines — stays where its author put it; the contents beside it link to each section on GitHub.
<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
The script is a heuristic — it flags for review, it does not prove correctness.
Before reporting any finding, open the cited line and confirm it is real.
Discard false positives rather than padding the report.
</step>
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.
- yesterday First seen · 229 lines · 44 tokens per session scan C a2a610ed03c2
design-system is a command published in the GitHub repository MadAppGang/magus (9 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 2,669 once invoked, about $0.0002 per session on Opus 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.
Other commands, from other repositories
ux-recommend
The v2 flagship. Runs the 5-parallel-search Python engine across 11 data manifests (75+ styles, 170+ palettes, 65+ type pairs, 120+ components, 170+ industries, 110+ UX laws, 50+ motion presets, 120+ anti-patterns, 92 brand specs) and returns a complete recommended design system for your project — with always-on…
review-css-complexity
Scan codebase for overly complex CSS/styling patterns that should be simplified.
color-specialist
Use when colour is failing. Contrast below AA, a palette with no system behind it, dark mode that is only inverted light mode, or semantic colours that carry no meaning.
responsive-design-specialist
Use when a layout breaks between sizes. Arbitrary breakpoints, type that does not scale, images that blow out the grid, or a desktop design retrofitted onto mobile.
wcag-audit
Accessibility audit based on WCAG 2.1/2.2 and the axe-core reference.
revisar-ui
Auditoria visual retroativa de 6 pilares do código frontend implementado.