Repository navigation
Releases
v1.14.2
slop-scan.py: abox-shadowin an inlinestyle="…"no longer runs
past its quote. A neutral shadow followed by alinear-gradient(#7c3aed…)
in the next attribute was reported as a colored glow (#32). New case:
glow-inline-style(the neutral one passes, a violet one still hits).
Found while making the launch images from real output.- The README shows the hook and the PR comment at work
(assets/hook.gif,assets/pr-comment.png,assets/videos/hook.mp4),
both made from the scripts' real output.
v1.14.1
Two blind runs of 1.14 with a small model (Haiku), only the skill and the
user's messages: the web app flow (no command, init, quick pass, "yes",
score: 58 → 99) and the SwiftUI flow with a partial yes ("skip the stat
cards for now"), apply, the Gemini hook and the Action (62 → 94). Both
followed the 1.14 changes (baseline saved, proposal in .unslop/proposal/,
Contrast and Context rows, context not committed). What they had to guess:
review.mdgets[~]for "not now": apply skips it, the next review
may raise it once. "Skip for now" had to be filed as rejected.SKILL.mdnames the Action asuses: marcosnovo/unslop-design@v1; a run
pinned the version from the skill's metadata instead.- On the web, the screen's score is its markup plus the rendered audit; a
shared stylesheet's code score is reported apart. - With code, the edited "after" is a copy in
.unslop/proposal/after/. - A "revise" verdict from the second critic: one more pass, then show it
with the verdict stated. Commit nothing unless the user asks. context.md: with no tokens, propose the base-4 scale nearest to the
most used values (it contradicted #1).unslop-score.pyandtest.pyno longer write__pycache__into the
installed skill's folder.
v1.14.0
Three blind runs of 1.13 by fresh agents that only had the skill and the
request: a web app (no command, then init, a quick pass, "yes", score), a
SwiftUI screen with no simulator (quick pass, apply, then the Gemini hook
and the Action), and a landing page (critique, then "refine, don't
redesign"). Each worked end to end (27 → 68, 62 → 100, 2 → 96); what they
had to guess is now written down.
Quick mode (SKILL.md):
-
The "before" is saved (
--save --json > .unslop/before.json) and the
"after" compares with it (--baseline): the trend had only one entry. -
Score the screen's own files; a stylesheet shared with other screens
carries their slop and is reported apart (a fixed screen read 68). -
The board, mocks and audits go in
.unslop/proposal/, each audit with its
own--out: mocks were counted in the project's score (and its CI),
and the second audit overwrote the first. No project file changes
before the "yes". -
On "yes", apply the accepted fixes; apply picks up
[ ]rows and,
with none left, says so and offers the next steps. -
The report gets Contrast (pairs measured) and Context (read, or
none: offerinitonce) rows. -
Refine or redesign: don't ask when the request already says. The three
concepts are for a redesign only. A refine still removes what principles
5 and 6 rule out, keeping the slot and saying what real content goes in. -
scripts/contrast.py(andnpx unslop-design contrast): the WCAG ratio
of any pair, translucent text composited, Compose0xFF…hex read, the
worst of several backgrounds. Native screens had no way to measure
principle 5. -
context.md: with no tokens, the scale is a proposal from the most used
values; commit only on a "yes" to the context;allow:may be empty. -
web.mdand thepressurerule: the recommended plan is labeled
"Recommended", never "Most popular" without data (they contradicted). -
npx unslop-design --helplistshookandcontrast. -
Releases move a major tag (
v1), souses: marcosnovo/unslop-design@v1
follows every 1.x release; the README and guide use it. -
README in 30 seconds (587 → 266 lines); install options, automation,
how it works and the FAQ move toguide/.
Tests: 4 contrast checks.
v1.13.0
The post-edit hook in every agent whose hooks can talk back to the model.
hooks/unslop-hook.mjsreads the event of each agent: Claude Code
(Write/Edit/MultiEdit), Gemini CLI (AfterToolonwrite_fileand
replace), Codex CLI (apply_patch, with the paths and added lines taken
from the patch) and GitHub Copilot / VS Code agents (postToolUse, the
path fromtool_inputortoolArgs). It scans every UI file the edit
touched and answers withhookSpecificOutput.additionalContext, which all
four read. Hits now show asfile:line.npx unslop-design hookruns it from npm, so a config needs no path.npx unslop-design hooks gemini|copilot|claude [--write]prints or adds
the config to the project (.gemini/settings.jsonmerged,
.github/hooks/unslop-design.json,.claude/settings.json; writing twice
doesn't duplicate it).hooks codexprints theconfig.tomlblock.- Cursor and Windsurf are left out on purpose: their post-edit hooks can't
send anything back to the agent yet.
Tests: 4 new hook checks (Gemini write and a clean replace, a Codex patch,
Copilot toolArgs).
v1.12.0
The score where people read it: on the pull request, against the base
branch.
- PR comment (
action.yml): onpull_request, the action also scores
the base commit with the same scripts and options, and keeps one comment
on the PR, updated on every push: "unslop score: 88/100 (+7 vs main)",
what got worse, what got better, every row in a fold. New inputs
comment(default true) andgithub-token, a newdeltaoutput. It
needspull-requests: write; without it (or on a fork's read-only token)
it leaves a warning and the job goes on. unslop-score.py --baselinecompares with an earlier--jsonrun, in
text, Markdown and JSON (--baseline-label main), so the same comparison
works locally between two branches.- Share your score: an issue template (before/after, both numbers, the
fixes that mattered, what it missed, permission to show it) and a
Scores in the wild section in the README. - This repo's CI comments its own score on its PRs.
Tests: 3 new command-line checks (text, Markdown, a missing baseline).
v1.11.0
Thirteen scanner rules for fixes that had no automatic check, picked by one
test: the fix is already in the checklist and a static check is reliable.
Each comes with hits and near misses (13 new cases), and none fires on an
"after" case. The checklist ends with Automatic checks, every rule
by fix number (48 rules).
- multiple-h1 (#13): two or more
<h1>in one page file (HTML, Vue,
Svelte, Astro; not.tsx, which often holds several components). - justified-text (#28):
text-align: justify,text-justify. - extreme-tracking (#29): letter-spacing tighter than -0.04em;
tracking-tightand -0.02em headlines pass. - icon-circle (#33): three or more icons in tinted circles in one file;
one in an empty state passes. - lorem and placeholder-image (#35, #48): lorem ipsum, and
placeholder.com, picsum, placehold.co and similar. - count-pill (#50): a bare count in a filled pill or a
badge/pill;
a mutedcountpasses. - bare-delta (#52): "+12%" or "▲ 8%" with no baseline within a few
words ("vs September", "from last month" pass), in web and native text. - fixed-width (#57):
widthormin-widthof 400px or more,w-[640px];
max-widthand media queries pass. - section-numbers (#60): 01, 02 and 03 as section markers.
- straight-quotes (#61): "You're", "Let's Go" and straight double
quotes in visible copy; attributes and code pass. - no-color-scheme (#62): a dark theme with no
color-schemeanywhere
in the scanned files. no-reduced-motion (#63): keyframe animations
with noprefers-reduced-motionormotion-safe:anywhere.
Found on our own pages: the example dashboard's after had a dark theme with
no color-scheme (fixed, still 100), and the website had one straight
apostrophe (fixed). The dashboard's before now scores 21 (91 hits).
Workflows use actions/checkout@v5, setup-python@v6 and setup-node@v5
(Node 24), so GitHub's Node 20 deprecation warning is gone.
v1.10.1
Native proof, and releases that run themselves.
examples/swiftui/andexamples/compose/: a SwiftUI subscriptions
screen (32 → 100, with the HTML mock of each state at iPhone size) and a
Compose settings screen (62 → 100), next to the web dashboard. The README
and the website show the SwiftUI pair (assets/swiftui-before-after.png).- Releases: merging a version bump to
maintags it, publishes the GitHub
release with the CHANGELOG entry andunslop-design.zip(the skill for
claude.ai, Claude desktop and ChatGPT, which earlier releases lacked), and
publishes to npm through Trusted Publishing. npx unslop-designis on npm; the website is at
https://marcosnovo.github.io/unslop-design/.
v1.10.0
A release about what happens after the review: the project's decisions are
written down once, slop is caught while the agent writes it, and CI keeps
the score. Plus seven fixes and six scanner rules from a comparison with
other design skills.
Commands and context (SKILL.md, context.md, critique.md):
- Commands: init, score, audit, critique, apply and full
next to the default review. With no command and nothing attached, the
agent reads where you left off and proposes the next two or three steps. initwrites.unslop/context.md: users, the scene, surface modes,
what must not change, and machine-read lines (scale,type-scale,
allow,hook). Three questions at most, and it never blocks a quick
pass.slop-scan.py,unslop-score.pyand the hook read it; flags win..unslop/review.mdis the backlog: each quick pass writes its five
fixes as applied, pending or rejected (with the reason), and apply
picks up the pending ones.critique.md: a usability report that changes nothing and doesn't
touch the score: tasks walked as three users, eight cognitive-load
checks, ten heuristics scored 0-4, findings P0-P3.- Refine or redesign: ask first. Refining keeps the layout, face,
signature and voice; only a redesign may change the skeleton. process.md§ 2b starts from the scene (who, where, when, what
light): it decides light or dark and density, not the product category.
Seven fixes (checklist.md), numbered after the current ones:
- #66 a hard offset shadow is a style, not depth · #67 ease out, don't
bounce · #68 one separator per surface (the "ghost card") · #69 code
faces for code and data · #70 a modal is the last resort, Undo beats
Confirm · #71 built for every language and every size of data (text
expansion, RTL with logical properties, platform plurals and formatters,
errors with Retry) · #72 four choices or fewer per group.
Scanner (slop-scan.py), six rules, each with hits and near misses:
- side-stripe (#60): a 2px+ side border on a rounded card, CSS and
Tailwind; a square blockquote rule and 1px dividers pass. - hard-shadow (#66): box-shadow layers with no blur; insets and focus
rings pass. bounce-easing (#67): overshootingcubic-bezier,
animate-bounce, bounce/elastic/wobble keyframes. - ghost-card (#68): a 1px border and a soft shadow on one rounded
surface, including the shadcn card (rounded-xl border … shadow);
hover:shadowpasses. mono-disguise (#69): monospace onh1-h3,
title classes orbody. plural-hack (#71): "item(s)" in UI text,
nottrim(s)in code. --json,--github(an Actions annotation per hit) and--list-rules.- Scores: the six rules cost 1-2 points per hit with small caps. The
example dashboard's before goes from 25 to 24 (its cards are ghost cards).
Score (unslop-score.py): --save appends each run to
.unslop/history.json and prints the trend; --markdown prints a table
for a PR comment or a job summary.
Automation:
- Claude Code hook (
hooks/): after each Write or Edit of a UI file,
the scan runs on that file and the agent gets the hits its edit added, as
context. Silent when clean, never edits, off withUNSLOP_HOOK=offor
hook: off. - GitHub Action (
action.yml): annotations, the score in the job
summary, ascoreoutput and an optionalmin. - This repo now runs
validate.pyandtest.pyin CI, and the action on
its own example.
Distribution:
npx unslop-design install | scan | score | audit | rules
(package.json,bin/unslop.mjs), no dependencies.install.shlinks eleven more agents: Devin, Grok Build, Hermes, Pi, Oh
My Pi, Qoder, Trae, Trae CN, Rovo Dev, Mistral Vibe, DeepSeek Harness
(Replit already reads~/.agents/skills).docs/: a landing page for GitHub Pages with a draggable before/after of
the example dashboard. It scores 100 on its own code and rendered page.
Tests: 9 new cases (one per rule, plus Next/shadcn, Vue and Svelte), 10 new
command-line checks (rule list, annotations, JSON, Markdown, context file,
flags over context, the hook on a write, a clean edit and a non-UI file).
validate.py checks a 3,000-word budget for SKILL.md and that
package.json carries the same version.
v1.9.0
One release for three blind runs by a fresh agent that only had the skill
and the request: an order-tracking screen given only as a screenshot, a
SwiftUI paywall, and a web analytics dashboard.
Paywalls and pressure copy:
checklist.mdgets a Paywall bullet: a visible 44pt close, Restore,
Terms and Privacy, the price after the trial, one primary, a computed
"save N%" with its baseline, plans as rows with one selected state. No
resetting countdown, "only N left", unsourced counts or "most popular".
Paywalls are no longer exempt as a "brand moment".slop-scan.pyadds the rule pressure (#64): countdowns, "limited
time", "only N left", "hurry", "most popular", "best value", and a bare
"save N%". "Save 88% vs weekly" passes, even with a tag in between.- unverified-claim catches "Join 2,000,000+ happy users" (up to two
words before the noun). - title-case knows common screen nouns (Status, Order, History,
Payment, Preferences…): "Order Status Tracking" passed before.
Web audit (web-audit.mjs):
- Text on a gradient is checked against its worst stop and marked
"estimated", instead of being left as unknown. - The default scale includes 1, and the browser's own 1px 6px button
padding no longer counts as off-scale. Margins over twice the largest
step (margin: autoresolved) are skipped. - SVG text (chart labels) is left out of the text-scale check.
- Left edges ignore text in the second and later columns of a grid or
flex row. - SVG text is measured as drawn: its contrast uses
fill(not CSS
color), and a new check lists text drawn under 11 px at each width,
with a score row (tiny-text). A chart whose viewBox shrinks to a
phone took its 12-unit labels down to 5 px with nothing reported. - The report groups identical contrast failures (eleven axis labels in
one color are one line, ×11) and marks off-scale values that are the
browser's default 1em margin onp,ul,dlor a heading.
Process (SKILL.md, checklist.md):
- A scanner hit is fixed by changing the value, not by hiding it (a
calc()that lands on the same 11px). Phone mocks are fluid up to the
device width, so the 390 audit doesn't report a scroll that isn't there. - #39: chart labels stay at 11 px or more as drawn on a phone.
- Only a screenshot, no code: rebuild the before as an HTML mock,
call sampled colors approximate, and label scores as mock scores. - Phone mocks are audited with
--deviceat 390; the text-scale line
doesn't apply to native Dynamic Type. A desktop page is compared at
its real width, stacked, not shrunk. - With no subagents, the second critic is a separate pass with its own
prompt, reported as such. - #52: a delta's color follows its meaning (churn or latency going up is
worse). #39: keep horizontal grid lines at the kept ticks, drop the
vertical ones. #51: app-wide categories keep their color; parts of one
measure use one hue light and dark, with a dash or a direct label.
Tests: 14 new cases (pressure, adjective claims, gradient text (twice), the UA
button, SVG text, an SVG chart, Title Case nouns, grid edges, and the three test screens before and
after).
v1.8.9 — project decisions vs floors, quick-mode report, reading checks
One release for three test runs, held until all three were in: a project
with its own design skill (Ledger), and two blind runs by a fresh agent
that only had the skill and the user's request: a long article (Read
mode) and a Jetpack Compose settings screen it couldn't compile.
Project decisions and the floors (SKILL.md):
- A written project decision beats a taste rule (a base-6 grid over #1,
a brand face over #6, tracked caps as the signature over #45), never
contrast (principle 5) or invented claims (principle 6). The
agent had offered "keep white on the brand green at 3.4:1" as an option;
it's now a blocker reported with the ratio and a fix inside the brand. slop-scan.pyandunslop-score.pytake--allowfor the rules a
written decision covers (listed apart, not scored) and refuse
contrast,graphics-contrastandunverified-claim. Run them with the
project's own--scale/--type-scale.
Quick mode (SKILL.md):
- It ends with a fixed report (render looked at, the passes, six axes,
spec card rows, score, not checked), so a skipped step shows: the first
agent never opened the render and said so only when asked. - The before/after is one page, side by side at the same width. Native
code that can't run here gets an HTML mock at device size, which counts
as the render, and each state is audited on its own page (a board mixed
both into one census).
Scanner (slop-scan.py):
- Fixed: a one-line
:root { … }left the scanner "inside :root" for the
rest of the file, hiding raw colors and off-scale values after it. - Fixed: hex values in custom-property definitions anywhere on a line (a
dark palette in@media … { :root { … } }) aren't raw colors. - Fixed: literals in token files on native (
Tokens.kt,Type.swift,
typography, dimens, spacing, shapes) aren't literals in a view. - New
elevation-literal(#5, #32):cardElevation(6.dp),
.shadow(radius: 12)on components. - New
translucent-text(#22):Color.White.copy(alpha = …),
.white.opacity(…),text-white/60,color: rgba(255,255,255,.6). - New
empty-action(#64, principle 6):onClick = {},Button { },
action: {},onClick={() => {}}: a control that implies a feature
that doesn't exist ("Save changes" when switches already save). unverified-claimreads any comparative after "Nx" ("10x warmer") and
"100% waterproof / secure / guaranteed…";hype-copyknows "crushing
it", "in today's fast-paced world", "let's dive in".
Rendered checks (web-audit.mjs):
- Reading (#27, #28): running text over ~85 characters a line, and
long text justified or centered. The article had 114-141 characters a
line, justified, and nothing measured it. - Empty blocks (#35): a big painted box with no text or media, the
placeholder where a photo or the product should be. unslop-score.pyweighs all three.
Checklist: #34's "one gradient" allowance never covers gradient text
(#55).
Tests: 57 cases and 10 rendered checks (from 41 and 8), including the
three test projects before and after, and five command-line checks for
--allow and its refusals.