cursorrules

cursorrules is a cursor rule for Cursor from XINGANLIU/design-system-generator-skill. It costs 347 tokens per session, scanned A, original, Apache-2.0.

A set of Cursor rules that tells the editor to load a design-system generator guide for creating palettes, design tokens, themes, and component styles.

In plain words
What is it for?
Generating color systems, typography and spacing tokens, light and dark themes, component CSS, and a visual preview page.
Why use it?
It gives Cursor a defined process for turning brand preferences into reusable interface rules.

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/xinganliu/design-system-generator-skill/cursorrules
Clone the repo
git clone --depth 1 https://github.com/XINGANLIU/design-system-generator-skill

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/xinganliu/design-system-generator-skill/cursorrules.svg)](https://agentmods.dev/rules/xinganliu/design-system-generator-skill/cursorrules)
Your own site
<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>
Per session 347 This file is loaded in full into every session.
When invoked 347 The same file — it is already loaded in full.
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 $0.00347 $0.00347
Opus 5 $0.00173 $0.00173
Sonnet 5 $0.00069 $0.00069
Haiku 4.5 $0.00035 $0.00035

Measured 3d ago against content hash e6c1328c2990, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.cursorrules · 31 lines

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:

  1. Brand Input Collection — Collect brand color, font, style preferences
  2. Color System Generation — Generate OKLCH color palettes (see references/color-system.md)
  3. Token Architecture — Generate W3C Design Tokens + CSS custom properties (see references/typography-scale.md, references/spacing-system.md)
  4. Component Styles — Generate production-ready component CSS (see references/component-patterns.md)
  5. 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/

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. 3d ago First seen · 31 lines · 347 tokens per session scan A e6c1328c2990

Subscribe to this mod's changes

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.