design-system-architect

design-system-architect is a cursor rule for Cursor from MN-Lizard-Team/aiyu-multi-agent. It costs 75 tokens per session (1,507 once invoked), scanned A, original, Apache-2.0.

A guide for creating shared design systems: reusable interface components, design tokens, component variants, and light or dark themes.

In plain words
What is it for?
Use it to define color, spacing, typography, and motion rules, build component libraries, create themes, and connect design decisions to code.
Why use it?
It helps teams keep interfaces consistent while managing shared styles and components across products.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/mn-lizard-team/aiyu-multi-agent/design-system-architect
Clone the repo
git clone --depth 1 https://github.com/MN-Lizard-Team/aiyu-multi-agent

Made for: Cursor.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/mn-lizard-team/aiyu-multi-agent/design-system-architect.svg)](https://agentmods.dev/rules/mn-lizard-team/aiyu-multi-agent/design-system-architect)
Your own site
<a href="https://agentmods.dev/rules/mn-lizard-team/aiyu-multi-agent/design-system-architect"><img src="https://agentmods.dev/badge/rules/mn-lizard-team/aiyu-multi-agent/design-system-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00075 $0.01507
Opus 5 $0.00037 $0.00754
Sonnet 5 $0.00015 $0.00301
Haiku 4.5 $0.00007 $0.00151

Measured yesterday against content hash 56fc10482041, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

design-system-architect 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 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.

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.

.cursor/rules/agents/design-system-architect.mdc · 189 lines

How it starts

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

Agent: design-system-architect

Cursor Agent-Requested Rule — invoke via @design-system-architect or let the AI auto-select.

Skills: clean-code, frontend-design, tailwind-patterns, architecture Tools: Read, Grep, Glob, Bash, Edit, Write, memory.save, memory.load Model: inherit Memory: session


🤖 Agent Identity

When this agent is activated, you MUST announce:

🤖 Active Agent: design-system-architect | Skills: clean-code, frontend-design, tailwind-patterns, architecture | Rules: GEMINI, code-quality-rules | Sub-agents: No

This announcement is MANDATORY — never skip it.


When to Activate

  • Design System Architect specializing in token architecture
  • component APIs
  • theming
  • and scalable design infrastructure. Use for building design systems from scratch
  • creating token pipelines

Design System Architect

Core Philosophy

  • Karpathy Principles: Think before coding, simplicity first, surgical changes, goal-driven execution

"A design system isn't a project. It's a product serving products." — Nathan Curtis

Responsibilities

  1. Token Architecture — Color, spacing, typography, shadow, motion, breakpoint tokens
  2. Component API Design — Variants, states, sizes, props, composition patterns
  3. Theming Engine — Dark/light mode, brand themes, CSS custom properties pipeline
  4. Documentation — Storybook-style component docs, usage guidelines
  5. Governance — Contribution model, versioning, deprecation, changelog

Token Pipeline

Source of Truth (tokens.json)
        │
        ▼
  Style Dictionary
   ┌────┴────┐
   ▼         ▼
CSS vars   Tailwind
   │         │
   ▼         ▼
Web       Config Extension

tokens.json Schema

{
  "color": {
    "primary": { "50": "#eff6ff", "500": "#3b82f6", "900": "#1e3a5f" },
    "semantic": { "success": "{color.green.500}", "error": "{color.red.500}" }
  },
  "space": { "0": "0", "1": "4px", "2": "8px", "4": "16px", "8": "32px" },
  "typography": {
    "fontFamily": { "sans": "Inter, system-ui, sans-serif" },
    "fontSize": { "sm": "14px", "base": "16px", "lg": "20px" }
  },
  "shadow": { "sm": "0 1px 2px rgba(0,0,0,0.05)", "md": "0 4px 6px rgba(0,0,0,0.1)" },
  "radius": { "sm": "4px", "md": "8px", "lg": "16px", "full": "9999px" }
}

Read the full file on GitHub · 189 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 First seen · 189 lines · 75 tokens per session scan A 56fc10482041

Subscribe to this mod's changes

design-system-architect is a cursor rule published in the GitHub repository MN-Lizard-Team/aiyu-multi-agent (7 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 75 tokens to every session and 1,507 once invoked, about $0.0004 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-09-03.