/design-gate-local:slop-checkfrom design-gate-local
Checks UI changes for common AI-generated design patterns (hue gradients, gradient text, glows, emoji labels, sparkle badges, pulsing dots, uppercase labels, placeholder copy) before review or merge. Reports pass/fail and fixable items.
Ships in design-gate-local. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill is a gate, not a redesign. Find the defaults an AI agent adds that no one asked for, and report them. The design mock and the repo's own design system are the allow-list: a tell is slop only when neither of them uses it.
For a full redesign, use unslop if it is installed. For general visual quality, use quality-gates:design-audit. This skill only answers: did this change add AI defaults?
Before you flag anything, collect what the design itself uses:
.claude/design-gate/*.md report header, or one the user names. Run scan.js on an HTML or artifact mock as well. Read the gradients, shadows and effects from Figma with get_design_context. From an image mock, note what you can see and mark it ~.DESIGN.md. A gradient or shadow defined as a token is allowed.A tell that appears in any of these is ALLOWED. List it once, and do not flag it again.
The default is the current diff: git diff --name-only <base>...HEAD plus uncommitted changes, limited to UI files (.tsx .jsx .vue .svelte .astro .html .css .scss, and Tailwind config). Scan a whole app only when the user asks.
Search only the changed files; for a diff, search the added lines. Then read the hits.
| Tell | Search for |
|---|---|
| Hue gradient | bg-gradient-to-, `from-(purple |
| Gradient text | bg-clip-text, text-transparent, background-clip: text |
| Glow | `shadow-(purple |
| Looping motion | animate-pulse, animate-ping, animate-bounce, animate-spin on things that are not live or loading, infinite |
| Glass | backdrop-blur on cards and panels that sit on nothing |
| Emoji UI | emoji in JSX text, labels, buttons, headings or toasts (✨🚀🔥💡⚡️🎉👋✅), and Sparkles icons next to "AI" or "New" |
| Badge noise | "New", "Beta", "Pro", "AI" pills that the mock does not have |
| Shouty labels | uppercase tracking-wider / tracking-widest on small text |
| Heavy type | font-bold, font-extrabold, font-black on headings when the scale says otherwise |
| Filler copy | lorem, Acme, John Doe, "Unlock the power of", "Supercharge", "Seamlessly", "Elevate", "Revolutionize", "in seconds", "game-changer" |
| Filler visuals | blobs, orbs, blur-3xl circles behind content, grid or dot backgrounds, three identical icon-title-text cards |
| Sprawl | raw hex or [#...] / [13px] arbitrary values where tokens exist; more than 3 radii, more than 6 font sizes, more than 2 shadows in one screen |
Open each changed screen (obscura, then Claude in Chrome, then the built-in browser for localhost). Read scan.js next to this SKILL.md, and run its whole content through the browser's JavaScript tool. It returns tells (count and sample selectors) and sprawl (distinct radii, font sizes, shadows and text colours). Run it at 1280, and at 375 if the screen has a mobile layout. Also run it with dark mode on if the app has dark mode.
The render pass catches what the code pass misses: styles from shared components, global CSS and libraries. A tell found in only one pass still counts; note which pass found it.
Every hit becomes one of:
animate-spin on a real loading state, a pulsing dot on a live connection, uppercase on a real tab label in the design system. Say why in a few words.Severity:
Write the report to .claude/design-gate/slop-<scope-slug>.md. Use the same header and item fields as a design-match report, so that close-gaps can work through it unchanged:
# Slop report: <scope>
Mock: <path / URL, or "none: design system only"> | Build: <url / routes> | Date: <YYYY-MM-DD>
Evidence: code + rendered | code only
Run: <command> | Login: <seed user or none>
Design system: <tokens path> | Conventions: <styling approach>
Verdict: CLEAN | SLOP (S1 <n> · S2 <n> · S3 <n>)
Allowed: <tells the mock or tokens use, one line each with their source>
## Gaps
- [ ] G01 [SLOP] [P1] Hue gradient on hero background
Mock: hero is a flat surface `--bg-subtle` (frame "Home / Desktop")
Build: `linear-gradient(90deg, #7c3aed, #2563eb)`, 41° hue spread; found by code + render
Where: src/components/Hero.tsx:12
Do: replace `bg-gradient-to-r from-violet-600 to-blue-600` with `bg-[var(--bg-subtle)]` / the token class
Accept: at 1280, scan.js reports no `hue gradient` on the hero; the hero background equals the token value
Depends: none
Size: S
## Justified
- `animate-spin` on `Spinner.tsx:8`: real loading state
## Not checked
Map severity to priority: S1 is P1, S2 is P2, S3 is P3. With no mock, Do uses the repo's design tokens. If there are no tokens either, the slop is fixed toward neutral: no hue gradient, no coloured shadow, the scale's nearest value. Write a QUESTION only when the fix needs a new visual direction.
End with: Next: close-gaps on .claude/design-gate/slop-<slug>.md, or unslop if more than about 15 S1 items point to a redesign rather than cleanup.
ALLOWED? and ask once.design:ux-copy's job.Lessons from earlier runs live in two files: ~/.claude/skill-lessons/slop-check.md (any repo) and .claude/skill-lessons/slop-check.md at the repo root (this repo only).
- <YYYY-MM-DD>: <do or avoid X> because <Y>. (seen: 1). When a line already says the same thing, raise its seen count and date instead of adding one. Facts about this repo go in the repo file, everything else in the user file. Keep each file under 30 lines by merging or dropping stale lessons.seen: 3: if the ashish-claude-skills source repo is open, propose the edit to plugins/design-gate/skills/slop-check/SKILL.md as a diff and wait for a yes, then delete the lesson once it lands; otherwise say Lesson ready to promote: <line> in the report.Learned: <the line written | nothing>.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub ashishyd/ashish-claude-skills --plugin design-gate-local