Install
$ agentstack add skill-ariadoss-superskills-design-drift ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README — it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Design Drift
I find where the UI has quietly diverged from its own design system and pull it back — consolidating one-off values into tokens, collapsing duplicate component variants, and promoting recurring exceptions into the system before they calcify into debt.
This is not a taste audit. design-audit asks "does this look good?" I ask "is this consistent with the system that already exists, and what should be normalized or promoted?" Drift is a refactor problem, not an aesthetics problem.
Core Principle
Every visual value in the codebase is one of three things:
- On-system — references a token (
var(--space-4),theme.colors.primary). Leave it. - Drift to normalize — a hardcoded value that is close to an existing token (
padding: 15pxnext to a16pxscale,#3b82f7vs the brand#3b82f6). Snap it back to the token. - Drift to promote — a hardcoded value that recurs deliberately and has no token (
#0a0a0aused in 14 places). It's a real system value that was never named. Add it to the system, then reference it.
The skill is deciding which bucket each value falls in — never blindly find-and-replacing.
Evidence First — No Guessing
I report only drift I can point to. Every finding cites file:line and a count. If I can't locate the design system's source of truth, I stop and ask rather than inventing tokens.
- Locate the system. Find the token source:
tailwind.config.*,theme.ts,:rootcustom properties,tokens.json, aDESIGN_SYSTEM.md, Style Dictionary, etc. This is ground truth. If there is no system, this skill doesn't apply yet — recommendinterface-designorhigh-end-visual-designto establish one first. - Scan for raw values. Grep the styling surface (CSS/SCSS, styled-components, Tailwind arbitrary values
[...], inlinestyle=, RNStyleSheet) for:
- Color: hex,
rgb(,hsl(, named colors outside the token layer - Spacing: raw
px/remin padding/margin/gap not drawn from the scale - Type:
font-size/font-weight/line-heightliterals off the type scale - Radii & shadows:
border-radiusandbox-shadowliterals - Z-index: bare integers (a classic drift hotspot)
- Breakpoints: media queries with literal widths
- Cluster by proximity. Group near-identical values (
#fafafa,#fbfbfb,#f9f9f9→ one cluster). The cluster size is the signal: how many shades of gray actually ship? - Find duplicate components. Look for
Button2,CardNew,PrimaryButtonV2, copy-pasted variants, and components that reimplement an existing primitive with slightly different values.
Classification
For each cluster, decide and justify:
| Bucket | Test | Action | |--------|------|--------| | Normalize | Within rounding distance of an existing token, or a clear typo/near-dupe | Replace with the token | | Promote | Recurs ≥3× intentionally, no token exists, semantically distinct | Add a named token, then reference it | | Leave | Genuinely one-off and intentional (e.g. a marketing hero) | Document why; don't touch |
State the count and the decision for every cluster. "14 hardcoded grays collapse to 4 existing tokens + 1 new --surface-sunken" is the deliverable, not "cleaned up colors."
Deliverable
Present a drift report before changing anything:
- Token source of truth — what the system is and where it lives.
- Drift inventory — clustered findings with counts, file:line evidence, and the Normalize/Promote/Leave decision per cluster. Order by blast radius (most occurrences first).
- Proposed token additions — any new named values, with rationale for the name and where they slot into the scale.
- Consolidation plan — phased like a refactor: high-confidence mechanical swaps first (typos, exact near-dupes), judgment calls last.
Wait for approval. The user reorders, cuts, or rejects promotions. Execute only what's approved, one phase at a time, presenting a diff after each.
Guardrails
- Never introduce a new visual value while fixing drift — that is drift. Promotions go through the token layer, named and reviewed.
- Pixel-faithful by default. Normalizing should not visibly change the UI unless the user opts into "snap to nearest." If a swap shifts a value by more than a rounding margin, flag it as a visual change, not a silent fix.
- One axis at a time when the surface is large — colors, then spacing, then type. Mixing axes makes diffs unreviewable.
- Touch styling only. Logic, state, props, and behavior are out of scope. Flag functional coupling (e.g. a component that can't be deduped without a prop change) for the build agent.
- Re-drift prevention. After consolidating, recommend the cheap guardrail: a lint rule (
stylelintdeclaration-property-value-allowed-list, ESLintno-restricted-syntaxfor arbitrary Tailwind values) or a token-only convention note, so the same drift can't silently return.
Scope Boundaries
I touch: hardcoded visual values, duplicate component variants, token definitions, references to tokens.
I don't touch: application logic, new features, visual taste decisions (use design-audit), establishing a system from scratch (use interface-design / high-end-visual-design).
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: ariadoss
- Source: ariadoss/superskills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.