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/adobecom/da-express-milo/css-variable-linting-standardsgit clone --depth 1 https://github.com/adobecom/da-express-miloWhat 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.02859 | $0.02859 |
| Opus 5 | $0.01430 | $0.01430 |
| Sonnet 5 | $0.00572 | $0.00572 |
| Haiku 4.5 | $0.00286 | $0.00286 |
Grade A, and why
css-variable-linting-standards 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 2d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- css-variable-linting-standards — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 373 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CSS Variable Linting Standards
APPLY: "Code review" queries and block creation
Automated CSS Variable Enforcement
Based on PR #496: CSS Variable Linter and enhanced by PR #527: Auto-fix Improvements, this rule enforces consistent use of CSS variables from :root instead of hardcoded values.
Pre-commit Hook Integration
Automatic Enforcement
- Blocks commits until violations are fixed
- Staged files only - only checks files being committed
- Clear feedback - shows exact file, line, and suggested fixes
- Reliable auto-fix - actually replaces values (enhanced in PR #527)
- Multiple values per line - handles
padding: 40px 32px;correctly - Precise line targeting - accurate line number calculation for fixes
What Gets Detected
1. Color Values (All Formats)
/* ❌ VIOLATIONS: Hardcoded colors */
color: #ffffff;
background: #000;
border-color: #E9E9E9;
background: rgb(255, 255, 255);
border: 1px solid rgba(0, 0, 0, 0.1);
color: black; /* ✨ NEW: Named colors now detected */
background: white; /* ✨ NEW: Named colors now detected */
color: transparent; /* ✨ NEW: Named colors now detected */
/* ✅ CORRECT: CSS variables */
color: var(--color-white);
background: var(--color-black);
border-color: var(--color-light-gray);
background: var(--color-white);
border: 1px solid var(--color-black-10);
color: var(--color-black); /* ✨ NEW: Better variable suggestions */
background: var(--color-white); /* ✨ NEW: Better variable suggestions */
color: var(--color-transparent);/* ✨ NEW: Better variable suggestions */
2. Spacing Values (All Units)
/* ❌ VIOLATIONS: Hardcoded spacing */
margin-top: 16px;
padding: 8px 16px; /* ✨ FIXED: Multiple values now handled */
gap: 24px;
margin: 40px 32px 24px 16px; /* ✨ FIXED: All values replaced correctly */
width: 320px;
height: 2rem;
/* ✅ CORRECT: CSS variables (auto-fix now works reliably) */
margin-top: var(--spacing-300);
padding: var(--spacing-100) var(--spacing-300); /* ✨ FIXED: Both values replaced */
gap: var(--spacing-400);
margin: var(--spacing-600) var(--spacing-500) var(--spacing-400) var(--spacing-300); /* ✨ FIXED: All values replaced */
width: var(--size-mobile-width);
height: var(--spacing-600);
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.
- 2d ago First seen · 373 lines · 2,859 tokens per session scan A e87f08170c90
css-variable-linting-standards is a cursor rule published in the GitHub repository adobecom/da-express-milo (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,859 tokens to every session, about $0.0143 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
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.
family-instance-domain-actions
Family instance domain action implementation patterns.