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.
git clone --depth 1 https://github.com/sukirman1901/frontend-expertWrote 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/sukirman1901/frontend-expert/design-system-enforcer)<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.
<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>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.01503 | $0.01503 |
| Opus 5.5 | $0.00601 | $0.00601 |
| Sonnet 5.5 | $0.00301 | $0.00301 |
| Haiku 4.5 | $0.00150 | $0.00150 |
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.
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 |
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.
- 1mo ago Changed · +15 lines · +411 tokens per session 23cdaf6fcba2
- 2mo ago First seen · 55 lines · 1,092 tokens per session scan A d24a9e68bab3
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.
Other cursor rules, from other repositories
prototype-previewer
Build interactive prototype reviewers with synced review notes and Figma capture pages.
figma-performance
Handling large documents efficiently in the Plugin API.
ant-design
A set of guidelines for using Ant Design, a collection of ready-made interface components, in React applications. It covers code organization, performance, security, testing, and common mistakes.
7-day-nextjs-web-design-cursor
A seven-day design workflow for web products that will be built in Next.js.
clone-ai
Site Clone AI — website klonlama pipeline kuralları.
mermaid
Diagram Creator. Load when the user requests "Create a diagram".