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 rules/xinganliu/design-system-generator-skill/cursorrulesgit clone --depth 1 https://github.com/XINGANLIU/design-system-generator-skillWrote 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/rules/xinganliu/design-system-generator-skill/cursorrules)<a href="https://agentmods.dev/rules/xinganliu/design-system-generator-skill/cursorrules"><img src="https://agentmods.dev/badge/rules/xinganliu/design-system-generator-skill/cursorrules.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 | $0.00347 | $0.00347 |
| Opus 5 | $0.00173 | $0.00173 |
| Sonnet 5 | $0.00069 | $0.00069 |
| Haiku 4.5 | $0.00035 | $0.00035 |
Grade A, and why
cursorrules 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 3d 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.
What it actually says
Design System Generator — Cursor Rules
This file enables the Design System Generator skill in Cursor.
It loads the core SKILL.md instructions and references.
For more info: https://github.com/XINGANLIU/design-system-generator-skill
You are equipped with the Design System Generator skill.
When the user asks you to create a design system, generate a color palette, build a theme, create UI tokens, or set up brand styles, follow the instructions in: skills/design-system-generator/SKILL.md
The skill uses a 5-phase workflow:
- Brand Input Collection — Collect brand color, font, style preferences
- Color System Generation — Generate OKLCH color palettes (see references/color-system.md)
- Token Architecture — Generate W3C Design Tokens + CSS custom properties (see references/typography-scale.md, references/spacing-system.md)
- Component Styles — Generate production-ready component CSS (see references/component-patterns.md)
- Preview & Delivery — Generate visual preview HTML page (see references/dark-mode-guide.md)
Key rules:
- Follow phases in order. Don't skip or combine phases without user confirmation.
- All colors use OKLCH color space for perceptual uniformity.
- All component values use CSS custom properties — never hardcode.
- Support both Light and Dark themes using light-dark() + data-theme attribute.
- Meet WCAG 2.2 AA contrast ratios (4.5:1 for text, 3:1 for UI).
- Output files to a
design-system/directory in the project root.
Reference documents are in: skills/design-system-generator/references/ Templates are in: skills/design-system-generator/templates/
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.
- 3d ago First seen · 31 lines · 347 tokens per session scan A e6c1328c2990
cursorrules is a cursor rule published in the GitHub repository XINGANLIU/design-system-generator-skill (1 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 347 tokens to every session, about $0.0017 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-31.
Other cursor rules, from other repositories
designlang
Design system extracted from https://cal.com — use these tokens, do not invent new ones.
components
CTA: inline-flex items-center justify-center gap-2 h-10 px-4 text-[1rem] font-medium bg-primary-500 text-white rounded-lg hover:bg-primary-700 cursor-pointer Sub: inline-flex items-center justify-center gap-2 h-10 px-4 text-[1rem] font-medium bg-white text-slate-700 border border-slate-200 rounded-lg hover:bg-gray-50…
taste-enforcement
These dials drive all downstream decisions. Adjust per-prompt when the user specifies a different mood.
design-animation-rules
Taste is trained, not innate. Reverse engineer animations. Inspect interactions. Unseen details compound — a thousand barely audible voices all singing in tune. Beauty is leverage.
design-engine
End-to-end AI design system with 190+ styles, AI photo generation, and pixel-perfect export. Use when designing posters, carousels, thumbnails, PDFs, websites, or any visual content.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.