---
name: de-slop
description: "Audit a web page for AI design tells and fix them. Checks markup, styles and screenshots against a ban list (purple gradients, glows, three identical cards, buzzword copy, sparkle icons and emoji, fade-up on everything) and gives the replacement for each. Use when the user asks to de-slop a page, asks why a site looks AI-generated or vibe coded, or wants UI screenshots reviewed. Modes: audit (report only, the default), fix (apply the changes), review (judge screenshots)."
allowed-tools: Read Grep Glob
---

# de-slop

Find the patterns that make a page look generated, and replace each with a deliberate choice. The ban list at the
end of this file is the standard. Every finding names a line on it.

Arguments: $ARGUMENTS

## Pick the mode

Read the first word of the arguments above.

- `audit`: report only. Do not edit any file.
- `fix`: run the audit, then apply the fixes.
- `review`: judge screenshots instead of code. Do not edit any file.

The rest of the arguments is the target: a file, a folder, a route such as `/pricing`, or screenshot paths.

If there are no arguments (for example when you loaded this skill on your own), take the mode from the user's
request. When the request does not clearly ask for changes, use `audit`. Never edit files unless the mode is `fix`.

If there is no target, use the page the user is working on. If that is unclear, ask which page, and list the page
files you found under `src/pages/` or the project's equivalent.

## Project rules win

Before you start, read the project's `CLAUDE.md` and any `DESIGN.md` or design rules file it points to. When a
project rule contradicts a ban (the brand color is purple, the hero is centered on purpose), follow the project and
say in the report which ban you skipped and why. Use the project's tokens, fonts and spacing scale for every
replacement. Do not invent new colors, fonts or sizes when the project already defines them.

## Audit mode

1. Find the files that make up the target page: the page file, every component it imports, its layout, and the
   global stylesheet (for Tailwind CSS v4, the file with `@import "tailwindcss";` and the `@theme` block).
2. Search those files with these patterns. A match is a lead, not a verdict: open the line and check it.

   - Gradients: `bg-gradient-to-|bg-linear-|bg-radial|bg-conic|linear-gradient\(|radial-gradient\(|conic-gradient\(`
   - Gradient text: `bg-clip-text|background-clip:\s*text`
   - Purple and violet: `(purple|violet|indigo|fuchsia)-[0-9]`, plus hex values in the purple range
   - Glows and blur: `blur-(2xl|3xl)|drop-shadow|box-shadow:.*rgba|shadow-\[`
   - Sparkle and rocket icons: `Sparkle|Rocket|Zap|Brain|Wand`
   - Emoji: `\p{Extended_Pictographic}` (ignore the copyright and trademark signs)
   - Buzzwords: `(?i)\b(unlock|elevate|seamless|supercharge|revolutioni[sz]e|next-level|game-chang)`
   - "Not just X": `(?i)not just`
   - Generic buttons: `(?i)>\s*get started\s*<`
   - Scroll motion: `fade-up|fadeUp|data-aos|whileInView|IntersectionObserver|animate-`
   - Reduced motion: `prefers-reduced-motion|motion-reduce|motion-safe` (if motion exists and this finds
     nothing, that is a ban)

3. Read the page's markup from top to bottom for the patterns grep cannot find: three or more sibling cards with the
   same structure, every section centered, cards inside cards, an icon on every list item, invented numbers, logos
   or testimonials, a headline that could fit any product, center-aligned paragraphs, paragraphs with no max width.
4. Report. Use this format and nothing else:

   ```text
   de-slop audit: <target>

   | # | Ban | Where | What you see | Fix |
   | 1 | <category: ban line> | <file:line> | <short quote or description> | <the replacement, using project tokens> |

   Skipped because of project rules: <ban and the rule, or "none">
   Needs a screenshot to judge: <spacing, line length, hierarchy, mobile layout>
   ```

   List at most 15 findings, worst first. Worst means most visible: the hero and the first screen beat the footer.
   Group repeats of one pattern into a single row with every location.

## Fix mode

1. Run the audit and show the report.
2. Fix the findings in order. Keep each change small and inside the existing files and components.
3. Copy changes: rewrite with the plain verb for what the product does. Use only facts already on the page or in
   the project. Show each changed headline as before and after in the report.
4. Invented stats, logos or testimonials: do not replace them with other invented ones. Remove the section, or
   leave it and ask the user for the real content. Never delete a whole section for any other reason without
   asking.
5. Motion: wrap any motion you keep in a reduced-motion guard.
6. Run the grep patterns again on the changed files and confirm the matches are gone.
7. Report the files you changed, one line per fix, and every finding you left alone with the reason. Say that the
   visual result is not checked until someone looks at the page, and suggest `review` mode on fresh screenshots.

## Review mode

1. Read every screenshot path in the arguments. If there are none, ask for them. One phone-width shot (about 390px)
   and one desktop shot (about 1440px), both full page, is the useful minimum. If the project has Playwright, you
   can suggest:

   ```sh
   npx playwright screenshot --viewport-size "390,844" --full-page <url> phone.png
   npx playwright screenshot --viewport-size "1440,900" --full-page <url> desktop.png
   ```

2. Go through the ban list one category at a time and look for each pattern in the images.
3. Then check what only a screenshot shows: gaps between sections larger than gaps inside them, body lines of
   roughly 50 to 75 characters on desktop, three or four text sizes at most, nothing cut off or squeezed side by
   side on the phone, one clear primary action on the first screen.
4. Report in the audit format, with the screenshot and the region ("hero, right column") in the Where column. Do
   not edit files.

## Limits

- This checks for known defaults. A page can pass every line and still be plain or wrong for the brand. Say so
  when the page passes but you still see a problem.
- Grep finds class names and words, not rendered results. A gradient from a shared class, an imported component or
  an image file only shows up in a screenshot.
- Judge only what you can see in the files or images. Do not guess at pages you did not open.

## Ban list

Each line: BANNED -> USE INSTEAD.

### Color
- Purple, violet or blue-to-purple gradients -> flat backgrounds from the neutral ramp
- Gradient text on headings -> solid text in the ink color
- More than one accent color -> one accent, used for primary actions, links and data only
- Glows, neon edges, colored blur behind elements -> nothing; separate surfaces by background tone
- Pure #000 text on pure #fff -> near-black ink on an off-white or white page
- Colored section backgrounds that alternate every block -> one page color, one surface color

### Type
- Inter or the system default for everything -> one display face for headings, one text face for body
- Every heading in the same weight and size -> a fixed type scale with 3 to 4 sizes in use per page
- All-caps eyebrow labels above every heading -> an eyebrow only where it names a real category
- Body text wider than 75 characters -> max-width around 65ch for paragraphs
- Center-aligned paragraphs -> left-aligned body text; center only short headlines

### Layout
- Three identical feature cards in a row -> one large feature plus a list, or a two-column split
- Every section centered and full width -> vary alignment; at least one asymmetric section per page
- Cards inside cards -> one level of surface; use spacing to group
- Random padding values -> spacing only from the project's scale
- Same vertical gap everywhere -> large gaps between sections, small gaps inside them
- Box shadows and hairline borders on every card -> background tone to separate surfaces

### Copy
- "Unlock", "elevate", "seamless", "supercharge", "revolutionize", "next-level" -> the plain verb for what it does
- "Not just X, it's Y" -> say what it is
- Lists of three adjectives -> one specific claim
- "Get started" on every button -> the action: "Create a project", "Book a call"
- Invented stats, logos or testimonials -> leave the section out until real ones exist
- Headline that could fit any product -> what this product does, for whom, in one line

### Imagery and icons
- Abstract 3D blobs, gradient meshes, floating spheres -> a real product screenshot in a plain frame
- AI-generated people or office stock photos -> real photos, or no photo
- Sparkle, rocket, lightning or brain icons -> no icon, or one that carries meaning a label can't
- Emoji as section decoration -> nothing
- An icon on every list item -> plain list; icons only where items need telling apart at a glance

### Motion
- Fade-up on every element as it scrolls in -> motion only on elements that change state
- Bouncy or elastic easing -> ease-out, 150 to 250ms for UI, up to 400ms for larger moves
- Animated gradient or particle backgrounds -> static background
- Parallax on text -> text stays still and readable
- Motion that ignores prefers-reduced-motion -> respect it everywhere
