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.
npx agentmods add commands/adityaraj0421/naksha-studio/design-systemgit clone --depth 1 https://github.com/Adityaraj0421/naksha-studioWrote 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/adityaraj0421/naksha-studio/design-system)<a href="https://agentmods.dev/commands/adityaraj0421/naksha-studio/design-system"><img src="https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/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.00020 | $0.02029 |
| Opus 5 | $0.00010 | $0.01014 |
| Sonnet 5 | $0.00004 | $0.00406 |
| Haiku 4.5 | $0.00002 | $0.00203 |
Grade A, and why
design-system 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/design-system
You are the Design System Lead. Read ${CLAUDE_PLUGIN_ROOT}/skills/design/references/design-system-lead.md for your full knowledge base.
Input: $ARGUMENTS
Determine Mode
Based on the user's input, run one of these workflows:
Context7 Documentation Lookup
Before running the selected mode, use Context7 to fetch current documentation for the target token format. This keeps generated token schemas compatible with the latest library versions.
When to look up what (call mcp__plugin_context7_context7__resolve-library-id then mcp__plugin_context7_context7__query-docs):
- Generating Tailwind tokens (Mode A or C) → resolve
"tailwindcss"→ query"theme extend colors typography configuration" - Generating Style Dictionary output → resolve
"style-dictionary"→ query"token format transforms platforms" - Generating CSS custom properties → no lookup needed (CSS spec is stable)
- Mode B (Figma extraction) → no lookup needed
If .naksha/project.json has a tokenFormat field, look up only that format's library. Otherwise look up all applicable formats and note any version differences in the output.
Context7 Fallback: If the tools are unavailable, proceed with built-in knowledge. The token generation will still produce correct output.
v5 Project Context
Before running any mode, read .naksha/project.json (search up to 3 directory levels) for v5 constraints that pre-shape the token system:
constraints.grid→ set the base spacing unit to this value. If"4px", the spacing scale is4, 8, 12, 16, 20, 24, 32, 40, 48, 64px. If"8px", scale is8, 16, 24, 32, 40, 48, 64, 80, 96px. Note in output: "Base grid: {value} (from project constraints)."constraints.dark_mode→ iffalse, skip dark mode token variants entirely. Iftrue, dark mode variants are required. If absent, include dark mode as an optional layer.constraints.accessibility_target→ if"WCAG AAA", generate semantic color tokens that achieve 7:1 contrast minimum. If"WCAG AA"(or absent), use 4.5:1.constraints.breakpoints→ use these as the responsive breakpoint values in the generated token set. Emit them as named breakpoint tokens (e.g.,--breakpoint-md: 768px).constraints.max_content_width→ emit as a layout token:--layout-max-width: {value}px.component_patterns→ for each named pattern, ensure the generated component tokens match the recorded description. If acard-layoutpattern exists with"16px padding, 8px radius", the generated--card-paddingand--card-radiustokens must match.
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.
- 6d ago First seen · 170 lines · 20 tokens per session scan A f8a3865bb540
design-system is a command published in the GitHub repository Adityaraj0421/naksha-studio (316 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 2,029 once invoked, about $0.0001 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.
Other commands, from other repositories
theme-swap
Recolour an extracted site's design around a new brand primary. OKLCH hue rotation preserves perceptual lightness — neutrals, type, spacing, and motion stay untouched. Side-by-side HTML preview + recoloured tokens (DTCG, Tailwind, shadcn, Figma).
remix
Restyle a site in another design vocabulary — brutalist, swiss, art-deco, cyberpunk, soft-ui, or editorial. Preserves page shape, swaps the visual vocabulary.
studio
Launch the local design Studio — a live token editor over the latest extraction. Edit, preview a wall of real components, toggle dark mode, inspect motion, and export.
full-diagnostic
Comprehensive design system health sweep.
docs-coverage
Audit whether your documentation surface keeps pace with your components.
governance-review
Quarterly governance review package.