design-system-enforcer

design-system-enforcer is a cursor rule for Cursor from sukirman1901/frontend-expert. It costs 1,503 tokens per session, scanned A, original, MIT.

A rule set that routes natural-language frontend requests to relevant design and development guidance, such as layout, components, forms, data loading, and accessibility.

In plain words
What is it for?
Use it when building or changing web pages, screens, components, responsive layouts, forms, dashboards, animations, or page metadata.
Why use it?
It helps an agent choose consistent frontend practices for each kind of interface change without requiring a slash command.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when building or changing web pages, screens, components, responsive layouts, forms, dashboards, animations, or page metadata.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/sukirman1901/frontend-expert/design-system-enforcer
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.

Clone the repo
git clone --depth 1 https://github.com/sukirman1901/frontend-expert

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/sukirman1901/frontend-expert/design-system-enforcer/github.svg)](https://agentmods.dev/rules/sukirman1901/frontend-expert/design-system-enforcer)
Your own site
<a href="https://agentmods.dev/rules/sukirman1901/frontend-expert/design-system-enforcer"><img src="https://agentmods.dev/badge/rules/sukirman1901/frontend-expert/design-system-enforcer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-system-enforcer

Your own site · 80×15
<a href="https://agentmods.dev/rules/sukirman1901/frontend-expert/design-system-enforcer"><img src="https://agentmods.dev/badge/rules/sukirman1901/frontend-expert/design-system-enforcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,503 This file is loaded in full into every session.
When invoked 1,503 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.01503 $0.01503
Opus 5.5 $0.00601 $0.00601
Sonnet 5.5 $0.00301 $0.00301
Haiku 4.5 $0.00150 $0.00150

Measured 1mo ago against content hash 23cdaf6fcba2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-system-enforcer 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 1mo 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.

.cursor/rules/design-system-enforcer.mdc · 70 lines

How it starts

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

Frontend Expert (auto)

Users should not need slash commands. Map natural language to skills yourself. Pillars: docs/pillars.md.

Intent → load (mandatory)

User intent (examples) Load skills in order
Build/change UI, page, screen, component, layout, styling design-direction (if non-trivial) → (+ prototype if comparing/stressing) → design-foundations → tokens → (+ marketing if landing) → components → anti-slop-code → responsive → motion (light) → anti-slop-design → polish → accessibility
+ form / validasi above + forms
+ API list/detail / async data above + data-fetching
+ shell / sidebar / routing above + app-shell
+ architecture / folder / state + architecture
+ SEO / meta / OG + seo
Mobile / responsive / semua device responsive MUST
Marketing landing / homepage / logo cloud / testimonials + marketing (section stack hand-roll — not @tailark/block registry) → motion → seo as needed
Animation / transition / motion / marquee / parallax / text reveal above + motion (families/patterns in motion-families.md; hand-roll — not registry default)
Inspeksi animasi / frame by frame / jelaskan transisi motion-inspection (then motion to fix)
Match Figma / mock / pixel perfect / fidelity fidelity → tokens → responsive → polish
Lighthouse / axe / DevTools / measured scores devtools → accessibility → performance
Hierarchy / unclear primary / competing CTAs design-direction Hierarchy pass → design-foundations → anti-slop-design → polish
Grid / spacing / alignment / density / "layout berantakan" / "struktur layout" / "rapikan struktur" design-foundations → tokens → responsive
Typography / type scale / multi-h1 design-direction Typography ladder → design-typography → polish
Font choice / wrapping / truncation design-typography → responsive → accessibility
Palette / OKLCH / dark mode / contrast tokens → design-color → accessibility
Card / modal / radius / shadow / elevation tokens → design-surfaces → polish
Component props / API / “prop terlalu banyak” components
Prototype / varian / side-by-side / bandingkan arah / cek semua state design-direction (if needed) → prototype
Kode terasa AI / rapikan kode / dampak ke modul lain / error handling generik / edge case anti-slop-code (not anti-slop-design, not polish)
UI copy / CTA / error / empty state content-design
Copy terasa AI / tulisan generik / “unlock seamless” / “tulisan AI” content-design (not anti-slop-design, not polish)
Figma Auto Layout / Fill / Hug responsive (Auto Layout ↔ CSS)
Feels off / rapihin detail / micro polish polish (+ anti-slop-design if generik) — one pass
Design audit, AI slop, "UI jelek/generik", visual review anti-slop-design → polish → tokens → responsive → accessibility → performance (+ motion / motion-inspection if animated; + marketing if landing)
Tests / TDD / coverage / regresi UI testing → components → accessibility
Polish / rapihin sampai bagus / until audit passes quality-loop (max 3)
Slow UI / LCP / optimize performance performance
WebGL / shader / Plasma / animated canvas background webgl required
Sentry / analytics / observability monitoring

Read the full file on GitHub · 70 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. 1mo ago Changed · +15 lines · +411 tokens per session 23cdaf6fcba2
  2. 2mo ago First seen · 55 lines · 1,092 tokens per session scan A d24a9e68bab3

Subscribe to this mod's changes

design-system-enforcer is a cursor rule published in the GitHub repository sukirman1901/frontend-expert (9 stars, last pushed 1mo ago), licensed MIT. It adds 1,503 tokens to every session, about $0.0060 per session on Opus 5.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.