sloplint
A zero-dependency linter for the patterns AI coding assistants leave behind: purple gradients and icon-circle grids, swallowed errors and N+1 queries, fallback secrets and wildcard CORS, filler copy, tests that cannot fail, and launch videos where everything fades in to the same whoosh.
| Claude Code alone | Same prompt, with sloplint init --hooks |
|---|
 |  |
sloplint ships five things:
- A CLI that reports 43 deterministic rules with compiler-style diagnostics, a fix for every finding, autofixes where the fix is mechanical, and a weighted Slop Score from
0/100 Studio Grade to 100/100 Critical Slop.
- A design-system generator that gives every project its own
DESIGN.md: a typeface trio, a contrast-checked palette, shape, motion and a layout archetype picked from a seed and a one-line brief, so agents stop converging on the same look. Two rules then hold the code to it.
- Agent integrations: a Claude Code plugin that lints every file as it is written, a skill for any agent that reads skills, rule blocks synced into
CLAUDE.md, GEMINI.md, AGENTS.md and Cursor rules, master briefs per discipline, and a Playwright suite that audits the rendered page.
- A GitHub Action that annotates findings on pull requests and can send them to code scanning.
- A docs site (sloplint.xyz) with the rule catalog, worked examples, a style generator and an in-browser grader that runs the same engine as the CLI.
Help, false positives and release news: Discord.
$ npx @sloplint/cli check examples/samples
error[SEC-001]: JWT_SECRET silently falls back to a hard-coded value
--> examples/samples/api.slop.ts:9:20
|
9 | const JWT_SECRET = process.env.JWT_SECRET || 'supersecretkey';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= fix: Read secrets once at boot and crash if they are missing. Never ship a default for anything that signs, encrypts or authenticates.
= autofix available (--fix)
Slop Score ████████████████████████ 100/100 Critical Slop
8 files · 419 lines · 11 errors · 97 warnings · 18 autofixable
UI 39 SEC 9 BE 14 COPY 28 TEST 9 MOTION 9
Quick start
Node 20 or newer. Nothing else is installed at runtime. Installed as a dev dependency (npm i -D @sloplint/cli), the command is plain sloplint.
npx @sloplint/cli check .
npx @sloplint/cli init --brief "Invoicing for freelance studios" --hooks
npx @sloplint/cli explain SEC-001
In Claude Code
/plugin install sloplint --marketplace mattbaconz/sloplint
The plugin lints every file Claude writes, as it writes it, checks the files it wrote once more before it stops, and adds the sloplint skill. The one-step install needs Claude Code 2.1.275 or later; on older versions run /plugin marketplace add mattbaconz/sloplint, then /plugin install sloplint@sloplint. init --hooks installs the same hooks in a single project; use one or the other.
In other agents
npx skills add mattbaconz/sloplint
installs the skill for Codex, Cursor and the other agents that read skills. It tells the agent to generate a DESIGN.md before writing UI and to run sloplint check before it finishes; init writes the rules into AGENTS.md, GEMINI.md and Cursor rules as well.
Benchmark
Six tasks (landing page, REST API, dashboard, test suite, CLI README, launch video), run headless twice per cell, each in a fresh directory. baseline gets the prompt alone. sloplint adds sloplint init --brief "<the prompt's first sentence>" and a local install. hooks (Claude Code only) is sloplint plus --hooks. No prompt mentions sloplint.
2026-10-15, sloplint at bf5982c:
| Agent and model | Arm | Mean Slop Score | Findings | Mean turns | Mean cost | Mean time |
|---|
Claude Code, claude-sonnet-5-5, medium effort | baseline | 15.3 | 15 | 3.7 | $0.219 | 45s |
| sloplint | 0.0 | 0 | 6.6 | $0.275 | 63s |
| hooks | 0.0 | 0 | 6.1 | $0.277 | 66s |
Antigravity, gemini-3.8-flash-high | baseline | 16.0 | 53 | n/a | n/a | 321s |
| sloplint | 0.0 | 0 | n/a | n/a | 441s |
The same day, after fixing what the transcripts of that run showed (below):
| Agent and model | Arm | Mean Slop Score | Findings | Mean turns | Mean cost | Mean time |
|---|
Claude Code, claude-sonnet-5-5, medium effort | baseline | 18.4 | 24 | 4.0 | $0.210 | 45s |
| hooks | 0.0 | 0 | 5.3 | $0.242 | 58s |