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/Kevin-Liu-01/Sigil-UIWrote 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/kevin-liu-01/sigil-ui/css-ui-enforcement)<a href="https://agentmods.dev/rules/kevin-liu-01/sigil-ui/css-ui-enforcement"><img src="https://agentmods.dev/badge/rules/kevin-liu-01/sigil-ui/css-ui-enforcement/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/kevin-liu-01/sigil-ui/css-ui-enforcement"><img src="https://agentmods.dev/badge/rules/kevin-liu-01/sigil-ui/css-ui-enforcement.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.00772 | $0.00772 |
| Opus 5.5 | $0.00309 | $0.00309 |
| Sonnet 5.5 | $0.00154 | $0.00154 |
| Haiku 4.5 | $0.00077 | $0.00077 |
Grade A, and why
css-ui-enforcement 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 3mo 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 — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CSS UI Enforcement
Hard UI conventions imported from Kevin's wiki (
wiki/style/css-ui-enforcement.md). Default surface: Tailwind utilities +cn()only. Raw CSS is a last resort. Cross-reference:sigil-design-system.mdc(token consumption),taste-enforcement.mdc(anti-slop).
ENFORCE: Tailwind + cn() first; globals.css only for "nowhere else" rules
Ship UI as:
className={cn(...)}everywhere: layout, spacing, color, typography, states, responsive, dark mode.cn()=clsx+tailwind-merge(from~/lib/utils).
Avoid:
- Co-located
.css/.module.cssfor ordinary component styling — if it can be a utility, it must be. <style>tags, ad-hoc.scss, and one-off stylesheets per feature.
globals.css (or equivalent) — allowed only for what Tailwind cannot own cleanly:
@layer baseresets@font-face- Document-wide scrollbar defaults
@propertyregistrations- Global
@keyframes :root/html/bodytheme plumbing- Third-party overrides that must target foreign selectors
If a rule could be a utility on the element, do not put it in globals.
ENFORCE: No style + className soup (React)
Do not mix Tailwind on className with ad-hoc style={{ ... }} on the same node.
Do instead:
- Static visuals → Tailwind on
classNameviacn(). - Dynamic but design-shaped → CSS variables on
:root/ theme layer or inline--tokenplus Tailwind arbitrary values.
Exceptions:
- Runtime-only values (drag position, live chart layout, embed constraints).
- No "couldn't find the class" exception.
ENFORCE: Scrollbars (thin + neutral)
Prefer Tailwind scrollbar plugin if the project has one. Otherwise define once in globals.css:
* {
scrollbar-width: thin;
scrollbar-color: gray transparent;
}
Add ::-webkit-scrollbar rules in the same global block. Never per-component.
ENFORCE: Hit area expansion (Tailwind-first)
Prefer Tailwind pseudo utilities on the interactive node:
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.
- 3mo ago First seen · 92 lines · 772 tokens per session scan A 447b8ea1c76e
css-ui-enforcement is a cursor rule published in the GitHub repository Kevin-Liu-01/Sigil-UI (10 stars, last pushed 1mo ago), licensed MIT. It adds 772 tokens to every session, about $0.0031 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.
css-ui-enforcement compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| css-ui-enforcementKevin-Liu-01/Sigil-UI | Cursor rule | 10 | 1mo ago | MIT | A | 772 | Cursor |
| cursorrulesbitjaru/styleseed | Cursor rule | 1.1k | 2d ago | MIT | A | 921 | Cursor |
| css-postcssOcean-Industries-Concept-Lab/openbridge-webcomponents | Cursor rule | 114 | yesterday | none | A | 0 | Cursor |
| tinted-ui-tokens-skillstruman-t3/tinted-ui-tokens-skills | Cursor rule | 2 | 3mo ago | MIT | A | 23 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 204k | 11d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | today | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |