/unslop-design:unslop-designfrom Unslop Design
Reviews and redesigns app/website UIs to remove visual slop (decorative accents, gradients, emoji icons, eyeballed spacing) and replace with a design system. Covers SwiftUI, Compose, and web (Tailwind). Includes scanning scripts, scoring, and orchestrated multi-reviewer process.
Ships in Unslop Design. 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.
None: SKILL.md is the whole skill.
Three parts: what to fix (checklist.md, 72 fixes, each with its reason),
how to orchestrate it (process.md, rounds with reviewers and devs in
parallel) and cases and sources (references.md: the before/afters
that shaped this skill and a map of Refactoring UI). The spec card every
reviewer fills is in spec-card.md. Per-platform notes
(SwiftUI, Compose, web, widgets, watch, car) live in platforms.md; websites,
web apps and dashboards have their own playbook in web.md. The project's
own decisions live in .unslop/context.md (context.md), and the usability
rubric in critique.md. Read the one you need, not all of them.
The user can name one; with none, pick by what they gave you.
| Say | What happens |
|---|---|
| unslop / review + a screen | Quick mode below: five fixes, before/after, wait for "yes" |
| unslop init | Write .unslop/context.md (context.md): three questions at most |
| unslop score | Run the scripts, --save the run, report "score X → Y" and the top rows. No proposal |
| unslop audit | scripts/slop-scan.py + scripts/web-audit.mjs, findings ranked by fix number. Changes nothing |
| unslop critique | The usability report in critique.md. Changes nothing, doesn't touch the score |
| unslop apply | The next accepted fixes from .unslop/review.md, one at a time, score after each |
| unslop full | The full flow below |
No command and nothing attached: read .unslop/context.md, the last
entry of .unslop/history.json, .unslop/review.md and git status, and
propose two or three concrete next steps ("3 accepted fixes are pending in
review.md: apply them?", "the settings screen changed since the last score:
score it?", "no context yet: init?"). One line each, then wait.
If .unslop/context.md exists, read it first and follow its Keeps: the
scripts already take its scale and allowed rules. If it doesn't, don't
block: run as usual and offer init once at the end.
The scripts live in this skill's folder: run them by their full path from
the project (python3 <skill>/scripts/unslop-score.py src/), or through
npx unslop-design scan|score|audit|contrast. They measure instead of guessing:
python3 scripts/slop-scan.py <paths> [--scale …] [--allow rules] — slop patterns in source (web,
SwiftUI, Compose) with file, line and fix number, including starter-kit
defaults (#6), rows of identical stat cards (#65), pep-talk copy, Title
Case and greetings with a name (#25, #26, #64), in SwiftUI and Compose
strings too. Standard library only.node scripts/web-audit.mjs <url> — the rendered page at 390/768/1280 px:
horizontal scroll, a census of every size/color/radius/shadow/spacing in
use, computed contrast, focus states, emoji, glows, plus a grayscale
screenshot, icon contrast (3:1, WCAG 1.4.11) for small SVG, whether
the type follows the reader's text size, line length and justified or
centered long text, and big empty placeholder boxes.
--device iphone,iphone-se,pixel renders at real phone
size and density with safe areas and reports which font really
rendered. Needs Playwright.python3 scripts/unslop-score.py <paths> [--audit report.json] [--save] — both
as one number from 0 to 100 with where the points went, plus a README
badge. Run it before and after: "score 41 → 88" is the PR's headline.
--save appends the run to .unslop/history.json and prints the trend;
--markdown gives the table for a PR, and --baseline main.json (an
earlier --json run) adds what got better and what got worse.
A hit is fixed by changing the value, never by hiding it from the
scanner (a calc() that lands on the same 11px is still 11px).scripts/contrast.py <text> <background> gives the WCAG ratio of any pair
(hex, rgba(), Compose 0xFF…; translucent text composited first): use it
for native colors, where there's no rendered page to audit.
scripts/slop-scan.py --list-rules lists every rule id; --json and --github
(Actions annotations) are for CI, and action.yml wraps both with a
minimum score and a PR comment (uses: marcosnovo/unslop-design@v1). In Claude Code the plugin's hook runs the scan after each
UI edit and tells you what you just added: fix those hits before moving on.
Gemini CLI, Codex and Copilot get the same hook with npx unslop-design hooks <agent>.
examples/dashboard-before.html and -after.html show both on one page.
process.md § 2b): one sentence from the domain that
decides type, layout, color and motion, scaled to the surface mode.
Attractive is not the same as different; a concept never buys lower
contrast, invented data or decoration.process.md
§ 2). What can't be compiled in your environment gets audited by
reading, and the PR says so.The rules are the same everywhere. Where it says "agents", use what your tool has: subagents if it has them (Claude Code, Codex…), with a git worktree each for devs. With no subagents, run the reviewers one after another, each with its own brief, and keep their outputs separate before the jury step. Where it says "publish", Claude Code publishes an artifact; other agents write an HTML file the user opens. In a chat app without a codebase, stop after the before/after proposal.
One screenshot, one screen or one page, or the user says "quick": no subagents, no jury, one pass you can finish in a few minutes.
scripts/unslop-score.py on this screen's own
files with --save and --json > .unslop/before.json (and --audit
for a web page), so the trend and the "after" have a baseline. A
stylesheet shared with other screens carries their slop too: on the web
the page's markup plus its rendered --audit is the screen's score, and
the shared stylesheet's code score is reported apart. Then the
passes on the render (process.md § 2): one second, squint, cover the
logo, left edges, gray, ten-app lineup. Only when redesigning a Persuade
or Experience screen, write three one-line concepts and pick one
(process.md § 2c); a refine keeps the skeleton and skips them.checklist.md number and one line of why. Hierarchy and spacing before
color, color before polish. Say what you would not change.spec-card.md rows it uses. Put the board, the mocks and the audits in
.unslop/proposal/ (the scanner skips dot folders, so they never count
against the project's score or its CI), the edited "after" as a copy in
.unslop/proposal/after/, and change no project file before the "yes". Audit each state as its own page with its own --out
(.unslop/proposal/audit-before, -after), not the side-by-side
board, or the census mixes before and after; a phone mock
(fluid up to the device width, not a fixed 393px) with --device and
--widths 390 (its text-scale line says nothing
about native Dynamic Type: draw the largest size instead). For a
desktop page, "same width" means its real width: stack the two, don't
shrink them into half-width frames.
Only a screenshot, no code: rebuild the before as an HTML mock from
it, sample the colors (say they're approximate) and score the two
mocks, labeled as mocks: never quote them as the app's score.
Score it on the six axes of process.md § 4 first; under 3 on any
axis, revise before showing. For Persuade and Experience screens run
the second critic of § 4 once (with no subagents: answer its questions
1-3 from the image alone, before rereading your own notes); for Operate
and Read, answer questions 1-3 yourself. A "revise" verdict means one
more pass; if it still holds, show it with the verdict stated.--save --baseline .unslop/before.json and report "score X → Y" and
what's still left. Write the five fixes to .unslop/review.md (format
in context.md): applied [x], accepted but not done [ ], rejected
[-] with the reason, deferred "for now" [~], so the next run neither
repeats nor forgets them. Commit nothing unless the user asks.
unslop apply picks up the [ ] rows later; with none left, it says
so and offers the next steps instead.End the proposal with this report, filled honestly, so a skipped step shows:
Render looked at yes / no (which widths, light/dark)
Passes one second · squint · logo · edges · gray · lineup
Six axes H _ R _ S _ E _ Honesty _ Fit _
Spec card rows the rows the after uses
Contrast pairs measured (web-audit, or scripts/contrast.py for native)
Score X → Y (same files, same script version, --allow if any)
Context .unslop/context.md read / none (offer init once)
Not checked largest text, dark, long data, … (say which)
Switch to the full flow below when there are several screens or videos, no design system yet, platforms to ship together, or the user asks for a full review.
Not every screen gets the same ambition. Name the mode before judging:
| Mode | Screens | What wins | Expression budget |
|---|---|---|---|
| Operate | dashboards, settings, editors, admin | scanning, consistency, platform conventions | low: one signature at most |
| Persuade | landing pages, onboarding, paywalls | one message, one action, a real product shot | higher: one bold idea |
| Read | articles, docs, detail pages | line length, rhythm, quiet chrome | low |
| Experience | games, maps, camera, media | the content itself as the canvas (#59) | high, from the domain |
The checklist applies to all four; the budget decides how far #47, #58
and #65 go and how big the concept is (process.md § 2b): Operate and
Read a signature, never a fill; Persuade one bold idea; Experience a whole
world. A concept the product's content doesn't ask for stays a signature.
process.md § 1), screens and
states, and each screen located in the code. Run scripts/slop-scan.py on the
UI code and, for the web, scripts/web-audit.mjs on each key page.checklist.md § System). Without scales, reviewers judge by eye; the
audit's census shows which values the page really uses.process.md § 2b), explore three directions as
parallel agents on one key screen (§ 2c), and the user picks. An
Operate app with an established signature skips this.checklist.md, applying fixes one at a time.process.md § 3). Winning proposal: one HTML page with before/after, the spec card
and the list of decisions, checked by the second critic (§ 4); the user
chooses.Ask which one before proposing, unless the request already says ("keep
our layout", "start over"). Refining preserves: the layout, the
brand face, the signature and the voice stay, and fixes move values inside
them. Redesigning replaces: the concept (process.md § 2b) can change
the skeleton. Most requests are refinements; a refine that quietly redraws
the screen is the one thing the user didn't ask for. A refine still removes
what principles 5 and 6 rule out (contrast under AA, invented numbers,
logos and testimonials): keep the slot when it has a job ("social proof
here, once there is some") and say what real content goes in it.
Use it for concrete tokens and components; this one brings the method and the general checklist. If a rule here clashes with a written project decision, the project wins and the proposal points it out: a base-6 grid beats #1, a brand face beats #6, tracked caps as the brand's signature beat #45.
Two things a project decision can't settle: contrast (principle 5) and invented or unsourced claims (principle 6). They aren't taste. White on the brand green at 3.4:1 is a blocker, reported with the measured ratio and a fix inside the brand (a darker green that passes, or dark ink on it), not an option to keep. The owner can still overrule it, knowingly.
Run the scripts with the project's own values: --scale (and
--type-scale) from its spacing and type tokens, and --allow with the rule
ids its written decisions cover (--allow tracked-caps,off-scale). Allowed
rules are listed apart and not scored; contrast and unverified claims can't
be allowed, nor can focus or target size.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub marcosnovo/unslop-design --plugin unslop-designOther plugins' skills for the same job