- Home
- Skills
- Frontend & Web Apps
- css design drift linter
More screenshots
Works with the AI Agents you already use
css design drift linter
Find design drift in existing CSS: near-duplicate colours (deltaE), off-scale font sizes, off-grid spacing, radius and z-index sprawl, token adoption - with a merge map to clean it up.
$8.49
css design drift linter
Example session with this skill installed
Audit the styles in src/assets/css for design drift. Use an 8px grid and a 1.25 type ratio. Generate a markdown report.
- Read your context and instructions
- Compiled the css design drift
- Generated the UI component
I have analyzed the CSS files in src/assets/css using an 8px grid and 1.25 modular ratio. The audit found significant color duplication and spacing drift.
Design Drift Audit Report
| Category | Finding | Impact | Suggested Fix |
|---|---|---|---|
| Colors | 5 shades of "Brand Blue" detected (deltaE < 2.0) | High | Merge #3b82f6 and #3b83f7 into --color-primary |
| Typography | 13px and 15px sizes found (off-scale) | Med | Snap 13px to 12.8px (0.8rem) or 16px (1rem) |
| Spacing | 22px margin found on .card | Med | Snap to 24px (grid-3) |
| Tokens | 42% hardcoded values | High | Replace static hex/px with existing variables |
Drift Statistics
- Exit Code: 1 (Findings detected)
- Token Adoption: 58%
- Z-index Sprawl: 12 unique levels found (Max: 9999)
Next steps
- Review the full
drift.mdfile for the complete merge map of all 24 identified clusters. - Run the script with
--jsonif you need to pipe these findings into a custom refactor script. - Update your
variables.cssto include the missing 24px spacing token identified in the audit.
variables.css
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
14 colours that should be 6. This finds them and tells you which to keep.
Point it at your CSS/SCSS/LESS. It collects every hard-coded colour, font size, spacing value, radius and z-index with file:line, clusters near-duplicate colours by perceptual distance, snaps font sizes to a target scale and spacing to a grid, and reports how much of the codebase already uses tokens. Every suggestion is a concrete replace map you can apply.
What it does
- Perceptual (CIE Lab deltaE) near-duplicate colour clusters
- Font sizes snapped to a scale (default 12-60 or modular
--ratio) - Spacing grid check (
--grid 4/8) - Token adoption % and z-index sprawl; CI gate
Who it's for
Front-end teams cleaning up a legacy stylesheet before introducing a design system.
Limits
Line-based parser; minified CSS should be prettified first. Not legal/financial advice.
What's included
SKILL.md: workflow, commands, how to explain findingsscripts/: the tool (stdlib Python)references/sources.md: specs and guidance citedexamples/: sample inputs used in the demotests/: unit tests (Python 3.8 / 3.9 / 3.13)
Standard-library Python only. No API keys, no network calls, no installs.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
Offline / local files only - does not fetch live URLs or call APIs.
Line-based parser; minified CSS should be prettified first.
Does not understand SCSS maths or mixins.
Not legal/financial advice.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 16 days ago
Permissions
File Scopes
Fully offline. No subprocess, no network calls, no credential access.