Every coding agent ships the same dead weight. The code compiles and the test suite is green, so you merge it, and a week later your repo is full of // Import dependencies, catch blocks that log and rethrow unchanged, tests asserting expect(true).toBe(true), purple-gradient landing pages with three glass cards, and commit messages that say Update files.
Adding “don’t write AI slop” to AGENTS.md does not fix it. Models ignore vague style rules three turns into a task. What works is a concrete catalog of patterns, a local script that flags every mechanical hit in milliseconds, and a workflow that forces the agent to prove every deletion is safe before it touches a line.
That is unslop-skills: nine installable agent skills, 188 numbered tells across six catalogs, local Node scanners, and a single-file HTML report that audits every run.
npx skills add bberka/unslop-skills
Install them once (Node 20+ required; reword.mjs needs Git 2.38+), then run "unslop the uncommitted diff" right after your agent finishes a task. It scans only the lines your agent just wrote, cleans up the noise, and leaves the rest of your repo untouched.
Why you can trust it on a real codebase
Asking an agent to “clean up this repo” is normally risky because it will quietly delete live code or alter behavior you depended on. unslop-skills is built around a strict contract so you can run it on production branches without babysitting:
- Baseline first. Every code skill records your build, typecheck, lint, and test status before editing anything, and starts a change ledger (
ledger.mjs start). - Scanners before judgment.
scan.mjscatches the regex-detectable tells first so the agent spends its attention on structural slop a script cannot see. - Behavior-preserving edits only. Anything that changes a public API, runtime behavior, or product flow is logged as a
proposeentry instead of being applied silently. - No evidence, no deletion. Every removal in
.unslop/ledger.jsonlmust cite the check that proved it safe (rg getUser: 0 callers,knip: unused file,scan.mjs: 0 hits).ledger.mjsrejects removals with noevidencefield. - One HTML audit report. At the end of a run,
report.mjswrites.unslop/report.html, a self-contained page grouping every change, kept finding, proposal, and git diff by file. If a file changed without a ledger entry, the report calls it out at the top.
Each new run archives the previous ledger and report into .unslop/history/. The script adds .unslop/ to .git/info/exclude and gives it its own .gitignore, so it stays out of commits and linters without touching your project’s .gitignore. Your own repo rules (lint configs, .editorconfig, CONTRIBUTING.md) always override a tell, except for AI commit attribution, which unslop-git removes unconditionally.
What is in the suite
| Skill | What it catches | Catalog / scripts |
|---|---|---|
unslop-diff |
Slop on changed lines only (PR, branch, or uncommitted work) | detect.mjs, --diff=<base> |
unslop-all |
Whole-repo survey, interactive scope prompt, multi-pass cleanup | detect.mjs |
unslop-text |
Inflated prose, filler, stock outlines, Mermaid lists in docs and comments | 41 tells, scan.mjs |
unslop-typescript |
any casts, log-and-rethrow, dead exports, narrating comments |
27 tells, scan.mjs (+ knip, jscpd) |
unslop-react |
Prop-to-state copies, effect-derived state, nested components | 20 tells, scan.mjs, inventory.mjs |
unslop-csharp |
.Result deadlocks, async void, throw e;, service locators |
26 tells, scan.mjs, dead-code.mjs |
unslop-tests |
Assertionless tests, it.only, tautologies, sleep-based tests |
16 tells, scan.mjs |
unslop-ui |
Template landing pages, chart clutter, fake status dots, product slop | 58 tells, scan.mjs, tokens.mjs |
unslop-git |
Vague commit subjects, self-narrating bodies, AI co-author trailers | lint-msg.mjs, reword.mjs |
Install the folders together (either with npx skills add bberka/unslop-skills or by copying skills/ into ~/.agents/skills/ or ~/.claude/skills/). They chain automatically: unslop-typescript hands React files to unslop-react, which hands markup to unslop-ui, which hands UI copy to unslop-text. You can invoke them in plain English (“unslop this PR”, “unslop the tests”) or by name (/unslop-ui src/pages).
All code and Markdown comparisons below come from the skills’ own test fixtures, deliberately packed with slop to test every scanner rule. Click any tell count in a pane header to highlight the exact lines and fixes pulled from scan.mjs --json and TELLS.md. The “after” panes are hand rewrites verified against the same scanners.
Start with unslop-diff in your daily loop
unslop-diff is the fastest way to get value out of the suite. Every scanner accepts --diff=<base>, filtering hits down to lines added or edited since that ref. Running it against HEAD right after an agent finishes means you catch new slop before committing without dragging old tech debt into the PR.
In this demo repo, I committed clean files, added one sloppy TypeScript file, and edited README.md. detect.mjs planned only unslop-typescript and unslop-text and printed why it skipped the other four skills.
Text: 36 tells down to 0
Readers spot AI-written docs in two seconds and stop trusting the rest of the page. unslop-text catches 41 prose tells, from “In today’s fast-paced world” and [Your Name] to horizontal rules above headings (text-35), manufactured emphasis (text-36), false agency (text-37), false balance (text-38), stock “Final Thoughts” sections (text-41), and Mermaid flowcharts drawn for a three-step list (text-34).
# Getting Started With The Toolkit 🚀text-26 Title Case heading. Fix: Sentence case ("Getting started with the API").text-27 Decorative emoji. Fix: Remove them.In today's fast-paced world, developer tooling plays a pivotal role in shipping software. In this guide, we'll explore how the toolkit serves as a seamless bridge between your code and production -- ensuring a smooth experience.text-1 Inflated significance. Fix: State what happened and to whom, or cut.text-1 Inflated significance. Fix: State what happened and to whom, or cut.text-5 Promotional register. Fix: The plain claim with its evidence, or nothing.text-7 Preview or recap. Fix: Start with the first useful sentence and stop after the last one.text-10 AI vocabulary. Look for: "Landscape" and "realm" count only in the abstract sense ("the AI landscape", "the realm of"); screen orientation and scenery are plain words.text-11 Copula dodging. Fix: "is", "has".text-19 Em dash. Fix: A period or a comma.It's not just a CLI, but a complete platform. Whether you're a beginner or an expert, you'll love it. Experts say it is truly the best choice.text-3 Vague attribution. Fix: Name the source and link it, or cut the claim.text-12 Negative parallelism. Fix: State Y.text-15 False range. Fix: Name who it is for, or cut.text-18 Intensifier. Fix: Cut the adverb or use the stronger verb or the number.- **Performance:** Performance is blazing fast.text-5 Promotional register. Fix: The plain claim with its evidence, or nothing.text-25 Inline-header list item. Fix: Plain bullets or prose.- **Safety:** Safety is built in.text-25 Inline-header list item. Fix: Plain bullets or prose.---text-35 Horizontal rule. Fix: Delete the rule and keep the blank line.## SetupLet's dive in! No config. No boilerplate. Just code.text-8 Signposting or setup. Fix: State the point.text-20 Staccato fragments. Fix: One sentence with a verb.text-39 Exclamation marks. Fix: A period.```bashnpm install toolkit -- --delve```In order to configure it, you could potentially edit `robust.config.js`. The cache is rebuilt on every run, ensuring fresh output. Additionally, the “smart” mode reads your shell history.text-2 Trailing -ing commentary. Fix: Delete it, or make it a sentence with a real subject and evidence.text-16 Hedge stack. Fix: One hedge where doubt is real, none where it is not.text-17 Filler phrase. Look for: "in order to" (to), "due to the fact that" (because), "it is important to note that" (cut), "when it comes to" (for), "a wide range of" (many, or the list), "at its core" (cut), "is able to" (can), "in the event that" (if), "the vast majority of" (most), "the reality is" (cut).text-28 Typographic residue. Fix: Straight quotes, `.text-33 Stacked connective. Fix: Delete the connective, or merge the two sentences.As an AI language model, I can't run it for you. Replace [Your Name] in the config before you start.text-31 Model disclaimer. Fix: Delete, or replace with the verified fact.text-32 Placeholder. Fix: Fill it from the project, or ask the user.Make no mistake, the numbers speak for themselves. While the plugin API is promising, stability remains a challenge.text-36 Manufactured emphasis. Fix: Delete the phrase.text-37 False agency. Fix: State the finding ("revenue doubled") or the mechanism ("the router sends each job to the cheapest model that passes").text-38 False balance. Fix: Name the tradeoff with its condition ("use X under 10k rows, Y above"), or pick a side.I hope this helps! Happy coding!text-9 Generic closer. Fix: End on a specific next step or fact, or end earlier.text-30 Chatbot residue. Fix: Delete.## Final Thoughtstext-41 Stock outline. Fix: Cut the section if it restates the body (text-7), or name it for what it holds ("Known limits", "What ships next").In the current AI landscape, single arrows → stand in for words.text-10 AI vocabulary. Look for: "Landscape" and "realm" count only in the abstract sense ("the AI landscape", "the realm of"); screen orientation and scenery are plain words.text-28 Typographic residue. Fix: Straight quotes, `.```mermaidtext-34 Diagram for a list. Fix: A list.flowchart LR A[Install] --> B[Configure] --> C[Run]```Getting Started With The Toolkit 🚀
In today's fast-paced world, developer tooling plays a pivotal role in shipping software. In this guide, we'll explore how the toolkit serves as a seamless bridge between your code and production -- ensuring a smooth experience.
It's not just a CLI, but a complete platform. Whether you're a beginner or an expert, you'll love it. Experts say it is truly the best choice.
- Performance: Performance is blazing fast.
- Safety: Safety is built in.
Setup
Let's dive in! No config. No boilerplate. Just code.
npm install toolkit -- --delve
In order to configure it, you could potentially edit robust.config.js. The cache is rebuilt on every run, ensuring fresh output. Additionally, the “smart” mode reads your shell history.
As an AI language model, I can't run it for you. Replace [Your Name] in the config before you start.
Make no mistake, the numbers speak for themselves. While the plugin API is promising, stability remains a challenge.
I hope this helps! Happy coding!
Final Thoughts
In the current AI landscape, single arrows → stand in for words.
flowchart LR
A[Install] --> B[Configure] --> C[Run]
# Getting startedThe toolkit is a CLI that takes your code to production.## Setup```bashnpm install toolkit -- --delve```To configure it, edit `robust.config.js`. The cache is rebuilt on every run.Smart mode reads your shell history.Set your name in the config before you start. The workflow has three steps:install, configure, and run.Getting started
The toolkit is a CLI that takes your code to production.
Setup
npm install toolkit -- --delve
To configure it, edit robust.config.js. The cache is rebuilt on every run.
Smart mode reads your shell history.
Set your name in the config before you start. The workflow has three steps: install, configure, and run.
Every verifiable fact survives: the CLI, install command, robust.config.js, cache behavior, smart mode, and the three workflow steps. Unbacked claims like “blazing fast” get cut until you attach a number. (The fixture uses -- instead of a Unicode em dash because this site’s pre-commit hook blocks em dashes in tracked files; text-19 flags both.)
TypeScript: 24 tells down to 0
Agents love defensive boilerplate that looks safe and hides bugs. In this 73-line fixture, getUser alone stacks two any casts, two non-null assertions, a catch that logs and rethrows, a debug console.log, and a JSDoc comment that says “Gets the user.”
// Import dependenciests-18 Narrating comment. Fix: Delete.import { db } from "./db";// ==========================ts-18 Section banner. Fix: Delete.// Helpers// ==========================ts-18 Section banner. Fix: Delete./** * Gets the user. * @param id - The idts-18 JSDoc restating the signature. Fix: Delete. * @returns The resultts-18 JSDoc restating the signature. Fix: Delete. */export async function getUser(id: any) {ts-1 Type escape hatch. Fix: The real type, `unknown` plus narrowing at the boundary, or a generic. const label: string = "user";ts-4 Redundant annotation. Fix: Let inference work. try { const user = await db.find(id as any);ts-1 Type escape hatch. Fix: The real type, `unknown` plus narrowing at the boundary, or a generic. console.log("found", label, user);ts-20 Debug residue. Fix: Finish the work, delete it, or link the TODO to an issue. return user!.profile!.name;ts-3 Non-null assertion spam. Fix: Narrow once (early return, guard) or fix the type that claims nullability. } catch (e) {ts-9 Catch-and-rethrow. Fix: Catch where you can handle or add context (`new Error("…", { cause })`). console.error(e); throw e; }}export function isActive(user: { active?: boolean }) { if (user.active === true) {ts-11 if-return-true-else-false. Fix: The direct expression. return true; } else { return false; }}export function hasAdmins(users: { role: string }[]) { return users.filter((u) => u.role === "admin").length > 0;ts-11 Verbose boolean. Fix: The direct expression.}export function cityOf(order: any) {ts-1 Type escape hatch. Fix: The real type, `unknown` plus narrowing at the boundary, or a generic. return order?.customer?.address?.city?.name;ts-7 Deep optional chain. Fix: Make required what is required, and make absence explicit where it is real.}export function load(): Promise<string> { return new Promise(async (resolve) => {ts-10 Async Promise executor. Fix: Plain `async`/`await`, with `Promise. resolve(await db.raw()); });}export async function syncOrders(userId: string) { try { const orders = await db.orders(userId); await db.archive(orders); await db.notify(userId); return orders.length; } catch {ts-9 Swallowed error. Fix: Catch where you can handle or add context (`new Error("…", { cause })`). return null; }}// const legacy = getUser(1);ts-19 Commented-out code. Fix: Delete it.// if (legacy) {// doSomething();// }export class DataManager {ts-17 Junk-drawer class. Fix: Move each function next to its only caller, or into a module named for its domain. // TODO: implement cachingts-20 TODO without owner or issue. Fix: Finish the work, delete it, or link the TODO to an issue. // eslint-disable-next-linets-2 Silenced check without reason. Fix: Fix the error. save() { // In a real app you would persist thists-20 Demo residue. Fix: Finish the work, delete it, or link the TODO to an issue. throw new Error("Not implemented");ts-20 Demo residue. Fix: Finish the work, delete it, or link the TODO to an issue. }}// @ts-ignorets-2 Silenced check without reason. Fix: Fix the error.export const value = window.config;import { db } from "./db";export async function getUser(id: string) { const user = await db.find(id); if (!user?.profile) throw new Error(`User ${id} has no profile`); return user.profile.name;}export const isActive = (user: { active?: boolean }) => user.active === true;export const hasAdmins = (users: { role: string }[]) => users.some((u) => u.role === "admin");export const load = () => db.raw();export async function syncOrders(userId: string) { const orders = await db.orders(userId); await db.archive(orders); await db.notify(userId); return orders.length;}Three edits in the after pane change runtime behavior (getUser throws a named error, syncOrders stops swallowing errors as null, and load rejects instead of hanging when db.raw() fails), and three unused exports are removed. In a live run, those behavioral changes land in the HTML report as proposals for you to approve.
React: 13 tells down to 1 intentional keep
unslop-react catches the state and effect bugs agents repeat constantly: copying props into useState, deriving values inside useEffect, splitting one status into three booleans, and declaring a child component inside a parent so React remounts it on every render.
import { useEffect, useMemo, useState } from "react";export function Profile(props: { first: string; last: string; items: string[]; initial: number }) {react-10 God component. Fix: Extract the data hook and the presentational pieces along real seams. const [fullName, setFullName] = useState(""); const [count] = useState(props.initial);react-2 Prop copied into state. Fix: Read the prop. const [isLoading, setIsLoading] = useState(false);react-5 Boolean soup. Fix: One status union, or `useReducer`. const [isError, setIsError] = useState(false); const [isOpen, setIsOpen] = useState(false); const [data, setData] = useState(null); useEffect(() => {react-1 Effect that only sets state. Fix: Compute it during render. setFullName(props.first + " " + props.last); }, [props.first, props.last]); useEffect(() => {react-4 fetch inside useEffect. Fix: The project's pattern. setIsLoading(true); fetch("/api/profile") .then((r) => r.json()) .then(setData) .catch(() => setIsError(true)) .finally(() => setIsLoading(false)); // eslint-disable-next-line react-hooks/exhaustive-depsreact-7 Silenced exhaustive-deps. Fix: Restructure. }, []); const title = useMemo(() => props.first, [props.first]);react-8 Memoized trivial value. Fix: Remove it. const Row = ({ label }: { label: string }) => <li>{label}</li>;react-11 Component defined inside a component. Fix: Move them to module scope and pass props. function handleClick() { setIsOpen(!isOpen); } return ( <div className={`card ${isOpen ? "open" : ""}`}>react-19 Hand-assembled className. Fix: The project's helper. <h2>{title} {fullName} {count}</h2> {props.items.length && <ul>{props.items.map((item, index) => <Row key={index} label={item} />)}</ul>}react-17 Index as key. Fix: A stable id.react-20 length && renders 0. Fix: `{items. <button onClick={() => handleClick()}>Toggle</button>react-18 Redundant handler arrow. Fix: `onClick={handleClick}`. <>react-12 Fragment around one child. Fix: Delete the layer. <Spinner /> </> {isLoading && "Loading"} {isError && "Error"} {String(data)} </div> );}function Spinner() { return <span />;}import { useEffect, useState } from "react";type Props = { first: string; last: string; items: string[]; initial: number };export function Profile({ first, last, items, initial }: Props) { const [data, setData] = useState<unknown>(null); const [status, setStatus] = useState<"idle" | "loading" | "error">("loading"); const [isOpen, setIsOpen] = useState(false); useEffect(() => {react-4 fetch inside useEffect. Fix: The project's pattern. fetch("/api/profile") .then((r) => r.json()) .then((d) => { setData(d); setStatus("idle"); }) .catch(() => setStatus("error")); }, []); return ( <div className={isOpen ? "card open" : "card"}> <h2>{first} {last} {initial}</h2> {items.length > 0 && ( <ul>{items.map((item) => <li key={item}>{item}</li>)}</ul> )} <button onClick={() => setIsOpen((open) => !open)}>Toggle</button> <Spinner /> {status === "loading" && "Loading"} {status === "error" && "Error"} {String(data)} </div> );}function Spinner() { return <span />;}Notice the 1 remaining tell in the after pane: fetch inside useEffect. Adding a data-fetching library to a tiny example is an owner call, not an automatic refactor, so it stays as a recorded keep. The skill knows when to stop.
C#: 24 tells down to 1 intentional keep
In .NET codebases, agent slop causes real production bugs: .Result deadlocks, async void, new HttpClient() per call, throw e; wiping stack traces, empty catch blocks, #region noise, and service locators.
using System;using System.Linq;using System.Net.Http;namespace Demo{ public class UserManager : IUserManagercs-5 Junk-drawer class. Fix: Move each member next to its caller or onto the type it belongs to. { #region Private Fieldscs-17 Region or banner. Fix: Delete. private readonly ILogger<UserManager> _logger; private readonly IConfiguration _configuration; #endregion /// <summary>cs-16 Restating XML doc. Fix: Delete it, or document what the signature can't say (units, side effects, thrown exceptions). /// Gets the user. /// </summary> /// <param name="id">The id.</param>cs-16 Restating XML doc. Fix: Delete it, or document what the signature can't say (units, side effects, thrown exceptions). public User GetUser(int id) { _logger.LogInformation("Entering GetUser");cs-18 Trace log noise. Fix: Delete the trace logs, and use message templates (`LogInformation("User {UserId}", id)`), or `[LoggerMessage]` on hot paths. try { var user = _repository.FindAsync(id).Result;cs-8 Blocking on async. Fix: `await` all the way up. _logger.LogInformation($"Found user {id}");cs-18 Interpolated log template. Fix: Delete the trace logs, and use message templates (`LogInformation("User {UserId}", id)`), or `[LoggerMessage]` on hot paths. return user!;cs-11 Null-forgiving spam. Fix: Validate once at the boundary (model validation, options validation, a guard in the public method) and trust the annotations inside it. } catch (Exception ex)cs-10 Log-and-rethrow. Fix: Catch where you can handle or add context. { _logger.LogError(ex, "Failed"); throw; } } public static string CurrentTenant { get; set; } = "";cs-25 Static mutable state. Fix: Inject the dependency, pass the value, or share one constant (`cs-14`). public async void Refresh()cs-9 async void. Fix: Return the `Task`, drop the wrapper, and follow the repo's library-vs-app convention. { var repository = _provider.GetRequiredService<IUserRepository>();cs-25 Service locator. Fix: Inject the dependency, pass the value, or share one constant (`cs-14`). await Task.Run(async () => await LoadAsync());cs-9 Task.Run around async work. Fix: Return the `Task`, drop the wrapper, and follow the repo's library-vs-app convention. await LoadAsync().ConfigureAwait(false); var client = new HttpClient();cs-15 HttpClient per call. Fix: `IHttpClientFactory`, `using` declarations, and delete the rest. var key = _configuration["Api:Key"];cs-14 Magic string key. Fix: `const` fields, `nameof`, or the options pattern. Console.WriteLine(string.Format("Key {0}", key));cs-13 string.Format. Fix: Follow `.cs-19 Debug residue. Fix: Finish it, delete it, or link an issue. } public bool HasUsers(List<User> users) { if (users!.Count() > 0)cs-12 LINQ detour. Fix: The direct call. { return users.Where(u => u.Active).First()!.Name != null;cs-12 LINQ detour. Fix: The direct call. } try { Save(); } catch (Exception e) { throw e; }cs-10 throw ex resets the stack. Fix: Catch where you can handle or add context. try { Save(); } catch { }cs-10 Empty or swallowing catch. Fix: Catch where you can handle or add context. // var old = GetUser(1);cs-7 Commented-out code. Fix: Delete. // old.Save(); return false; } public void Save() { // TODO: persistcs-19 TODO without issue. Fix: Finish it, delete it, or link an issue. throw new NotImplementedException();cs-19 Not implemented. Fix: Finish it, delete it, or link an issue. } }}namespace Demo;public class UserManager(IUserRepository repository, ILogger<UserManager> logger)cs-5 Junk-drawer class. Fix: Move each member next to its caller or onto the type it belongs to.{ public async Task<User?> GetUserAsync(int id, CancellationToken ct) { var user = await repository.FindAsync(id, ct); logger.LogInformation("Found user {UserId}", id); return user; } public Task RefreshAsync(CancellationToken ct) => LoadAsync(ct); public bool FirstActiveUserHasName(IReadOnlyList<User> users) => users.First(u => u.Active).Name is not null;}The remaining hit is the class name UserManager (cs-22), which needs surrounding codebase context to split properly. Unused stubs (Save, CurrentTenant, IUserManager, HttpClient, and the line printing an API key to stdout) are gone; caller-visible signature changes (GetUserAsync, RefreshAsync, FirstActiveUserHasName) would be proposals in a real run.
Tests: 14 tells down to 1
This is the skill that pays for itself fastest. A sloppy test is worse than no test because a green checkmark convinces you broken code is covered.
import { describe, it, expect, vi } from "vitest";import { cart, api, Service } from "./cart";describe("cart", () => { it("works", () => {tests-2 No assertion. Fix: Assert the behavior the name claims, or delete the test.tests-13 Name doesn't state behavior. Fix: Name the behavior and condition ("rejects expired tokens", "returns empty list when the cart is empty"). cart.add({ id: "a", price: 3 }); }); it("is true", () => { expect(true).toBe(true);tests-1 Tautology. Fix: Expected values from an independent source, such as a literal, a worked example, or the spec. }); it("creates a cart", () => {tests-3 Weak assertion only. Fix: Assert the actual value or effect. const c = cart.create(); expect(c).toBeDefined(); }); it("returns the user", async () => { const fetchUser = vi.fn().mockResolvedValue(42);tests-4 Mock echo. Fix: Assert an outcome the unit computes. const result = await api.load(fetchUser); expect(result).toBe(42); }); it("reads the cache", () => { // Arrangetests-16 Narration. Fix: Delete them, unless the repo's style guide mandates AAA comments. const svc = new Service(); // Act const hit = (svc as any).cache.get("a");tests-7 Private access. Fix: Test through the public interface. // Assert expect(hit).toEqual("a"); }); it("waits", async () => { await new Promise((r) => setTimeout(r, 500));tests-8 Sleep or fixed wait. Fix: Fake timers and an injected clock, waiting on the condition instead of on time, a fresh state per test. expect(Date.now()).toBeGreaterThan(0);tests-8 Real clock. Fix: Fake timers and an injected clock, waiting on the condition instead of on time, a fresh state per test. }); it("throws on bad input", async () => { try { await api.load(null); } catch (e) {tests-15 try/catch hiding a failure. Fix: `await expect(…). expect(e).toBeInstanceOf(Error); } }); it.skip("handles refunds", () => {tests-11 Skipped test. Fix: Unskip it if it passes, delete it if its subject is gone, otherwise link an issue. expect(cart.refund()).toBe(0); }); it.only("totals", () => {tests-11 Focused test. Fix: Unskip it if it passes, delete it if its subject is gone, otherwise link an issue. console.log(cart.total());tests-16 Narration. Fix: Delete them, unless the repo's style guide mandates AAA comments. expect(cart.total()).toBe(3); }); // it("old test", () => {tests-12 Commented-out test. Fix: Delete. // expect(cart.legacy()).toBe(1); // });});import { describe, it, expect, vi } from "vitest";import { cart, api } from "./cart";describe("cart", () => { it("adds an item to the total", () => { cart.add({ id: "a", price: 3 }); expect(cart.total()).toBe(3); }); it("passes the loaded user through", async () => { const fetchUser = vi.fn().mockResolvedValue({ id: 42 });tests-4 Mock echo. Fix: Assert an outcome the unit computes. await expect(api.load(fetchUser)).resolves.toEqual({ id: 42 }); expect(fetchUser).toHaveBeenCalledOnce(); }); it("rejects null input", async () => { await expect(api.load(null)).rejects.toThrow(Error); }); it("refunds an empty cart as zero", () => { expect(cart.refund()).toBe(0); });});The before file contains an it("works") with zero assertions, expect(true).toBe(true), a 500 ms setTimeout asserting Date.now() > 0, a try/catch that passes when nothing throws, and an it.only silently skipping the rest of the suite. The single hit left in the after pane flags a mock whose return value is also asserted on, reminding you to verify whether the test is testing your code or testing its own mock.
UI: 58 tells covering landing pages, charts, and product slop
unslop-ui is the biggest catalog in the suite. It started by stripping the default AI SaaS look and now also covers UI copy, fake status dots, chart scaffolding (adapted from felipebasurto/unslop-ui), and product-level decisions nobody made.
To show the visual difference fairly, I built two mockups for a fictional static host called Shiplane (both are mockups, not a real site). Here is what an agent hands you by default:
Gradient text, ambient blobs, grid texture, an all-caps “AI-powered” badge, unsourced “10K+ developers” proof, and three glass cards promising “Lightning Fast”, “Secure by Default”, and “Seamless Integration”. unslop-ui flagged 51 tells in the fixture code behind a page like this.
Strip the tells and write what the product actually does:
One accent color, one primary button, and a plain list for three features. Real numbers stay; “Trusted by 10K+” gets flagged because nothing in the repo backs it up.
Here is the fixture code behind those 51 tells. The after pane rewrites Landing and drops the fixture’s three extra demo components (Pricing, Features, Trends), which held 25 of the 51 hits.
import { Sparkles, Zap, Rocket } from "lucide-react";ui-6 Stock icon as content. Fix: Real product imagery, or no icon; a tinted tile goes with its icon.export function Landing() { return ( <main> <section className="text-center py-24"> <span className="uppercase tracking-widest text-xs">✨ New: AI-powered</span>ui-6 Emoji in UI. Fix: Real product imagery, or no icon; a tinted tile goes with its icon.ui-7 ALL-CAPS eyebrow. Fix: Keep only the chrome that encodes information.ui-20 Copy slop. Fix: Name things from the user's side. <h1 className="text-6xl font-bold bg-gradient-to-r from-purple-500 to-blue-500 bg-clip-text text-transparent">ui-1 Default gradient. Fix: A palette drawn from the subject.ui-1 Gradient text. Fix: A palette drawn from the subject. Supercharge your workflowui-20 Copy slop. Fix: Name things from the user's side. </h1> <p className="text-gray-400 mt-[13px]">Trusted by 10K+ developers · 99.9% uptime</p>ui-7 Template chrome. Fix: Keep only the chrome that encodes information.ui-8 Fabricated proof. Fix: Real numbers with sources.ui-8 Fabricated proof. Fix: Real numbers with sources.ui-13 Arbitrary values. Fix: Map every value onto the project's scale.ui-15 Low-contrast text. Fix: Darken to pass WCAG AA, and use visible labels. <a href="/docs">Learn more →</a>ui-7 Template chrome. Fix: Keep only the chrome that encodes information.ui-20 Copy slop. Fix: Name things from the user's side. </section> <div className="grid grid-cols-3 gap-6 data-[state=open]:bg-white"> <div className="rounded-2xl shadow-lg backdrop-blur-md p-6 hover:scale-105 transition-all" onClick={() => alert("hi")}>ui-5 Glass or glow. Fix: Remove them; use solid surfaces.ui-11 Motion everywhere. Fix: One deliberate moment, plus motion that answers a user action: a color or surface step on hover, a few pixels of travel for a menu.ui-11 Motion everywhere. Fix: One deliberate moment, plus motion that answers a user action: a color or surface step on hover, a few pixels of travel for a menu.ui-17 Clickable non-button. Fix: The native element with its name. <Sparkles /> <h3>Feature 1</h3>ui-21 Placeholder residue. Fix: Real content from the project, or ask. <p>Lorem ipsum dolor sit amet.</p>ui-21 Placeholder residue. Fix: Real content from the project, or ask. </div> </div> <imgui-17 Image without alt. Fix: The native element with its name. src="https://placehold.co/600x400"ui-21 Placeholder residue. Fix: Real content from the project, or ask. className="w-full" /> <button className="outline-none animate-pulse bg-[#5b5bd6]">Get started</button>ui-11 Motion everywhere. Fix: One deliberate moment, plus motion that answers a user action: a color or surface step on hover, a few pixels of travel for a menu.ui-16 Focus outline removed. Fix: A visible `:focus-visible` style and a working keyboard path.ui-19 Animation without reduced-motion path. Fix: Disable or shorten non-essential motion under it.ui-20 Copy slop. Fix: Name things from the user's side. </main> );}export function Pricing({ name }: { name: string }) { return ( <section className="min-h-screen"> <h1 className="font-extrabold">Welcome back, {name}</h1>ui-39 Heavy heading weight. Fix: Hierarchy from size and color first, then weight, within two or three weights.ui-41 Greeting headline. Fix: Title the page with its context (the view or the period). <span>Most Popular</span>ui-40 Stock pricing or testimonial. Fix: Keep the sections the product has content for, in the order a buyer asks the questions, and size each to its content. <p className="transition-[width]">Ship faster!</p>ui-11 Layout or bounce animation. Fix: One deliberate moment, plus motion that answers a user action: a color or surface step on hover, a few pixels of travel for a menu.ui-20 Exclamation mark in UI text. Fix: Name things from the user's side. </section> );}export function Features() { return ( <section className="bg-white/5 border-white/10">ui-26 Opacity stack. Fix: Named surface and text tokens on the scale, and one opacity for disabled states. <nav className="font-mono text-xs"><span>~/src/components/Hero.tsx</span></nav>ui-29 Code breadcrumb. Fix: Remove them. <h2 className="font-serif tracking-tighter">Built for <em>people</em></h2>ui-23 Italic word in a headline. Fix: Set the headline in one style.ui-24 Negative tracking. Fix: A face chosen for the subject, at its designed spacing. <div className="flex gap-2 text-white/60 ring-white/20"> <span className="rounded-full text-xs">New</span>ui-22 Badge and tag clutter. Fix: A tag only where the reader sorts or filters by it, or where it shows state the app tracks. <span className="rounded-full text-xs">Beta</span> <span className="rounded-full text-xs">Pro</span> </div> <hr />ui-25 Dividers everywhere. Fix: Let spacing separate. <div className="border rounded-xl p-6"><span>01</span></div>ui-7 Section numbering. Fix: Keep only the chrome that encodes information.ui-27 Bordered boxes everywhere. Fix: Boxes only around things that are objects (a card the user picks, a form). <hr /> <div className="border rounded-xl p-6"><span>02</span></div> <hr /> <div className="border rounded-xl p-6">c</div> <div className="ring-1 rounded-lg px-4">d</div> <div className="border rounded-xl py-6">e</div> <svg viewBox="0 0 100 100">ui-28 Inline diagram. Fix: A real screenshot, a real diagram with labels the reader needs, or nothing. <circle cx="10" cy="10" r="2" /><circle cx="20" cy="10" r="2" /><circle cx="30" cy="10" r="2" /><circle cx="40" cy="10" r="2" /> <line x1="10" y1="10" x2="20" y2="10" /><line x1="20" y1="10" x2="30" y2="10" /><line x1="30" y1="10" x2="40" y2="10" /><line x1="40" y1="10" x2="50" y2="10" /> <path d="M0 0" /><path d="M1 1" /><path d="M2 2" /><path d="M3 3" /> </svg> </section> );}import { MeshGradient } from "@paper-design/shaders-react";ui-35 Painterly background. Look for: Mesh gradients, aurora washes, and impressionist or watercolor paintings blurred behind the content, usually from a shader library (`@paper-design/shaders`).ui-35 Painterly background. Look for: Mesh gradients, aurora washes, and impressionist or watercolor paintings blurred behind the content, usually from a shader library (`@paper-design/shaders`).import { layout } from "@chenglou/pretext";ui-38 Text-layout showpiece. Look for: Headlines that reflow, measure, or animate per glyph with a layout engine such as Pretext, `SplitText`, or a per-character `motion` stagger.export function Trends() { return ( <section className="bg-zinc-950 bg-gradient-to-b from-indigo-500/20 bg-grid-small">ui-1 Default gradient. Fix: A palette drawn from the subject.ui-1 Dark-mode gradient hero. Fix: A palette drawn from the subject.ui-33 Grid or dot background. Look for: The dotted or ruled "infinite canvas" background behind a hero or a whole page, from `bg-grid` and `DotPattern` components to the one-pixel `linear-gradient` trick. <video autoPlay muted loop playsInline src="/bg.mp4" />ui-32 ASCII or video background. Look for: An ASCII-art render over a looping background video, or the video alone, autoplaying and muted behind the headline. <div className="holographic">ui-34 Logo marquee or holographic chrome. Look for: An endlessly scrolling logo strip (`animate-marquee`), and iridescent, holographic, or chrome-metal treatments on logos and headline text. <div className="animate-marquee">logos</div>ui-34 Logo marquee or holographic chrome. Look for: An endlessly scrolling logo strip (`animate-marquee`), and iridescent, holographic, or chrome-metal treatments on logos and headline text. </div> <MeshGradient />ui-35 Painterly background. Look for: Mesh gradients, aurora washes, and impressionist or watercolor paintings blurred behind the content, usually from a shader library (`@paper-design/shaders`). <h2 className="squircle">{layout("Reflowing headline")}</h2>ui-37 Squircle. Look for: `corner-shape: squircle` or `superellipse`, and the `figma-squircle` and `react-squircle` libraries, applied to every corner to feel like iOS. </section> );}export function Landing() { return ( <main> <section className="hero"> <h1>Deploy a static site in one command</h1> <p>Push a folder, get a URL. Builds run on your machine, so a deploy takes seconds.</p> <a className="button" href="/docs/quickstart">Read the quickstart</a> </section> <dl className="features"> <dt>Preview URLs</dt> <dd>Every branch gets its own address, deleted when the branch merges.</dd> <dt>Plain config</dt> <dd>One file, six settings. The defaults are listed in the docs.</dd> <dt>Rollback</dt> <dd>Redeploy any of the last 20 builds with a single flag.</dd> </dl> </main> );}For real app screens, the newer tells (ui-44 to ui-58) go beyond styling. They catch status dots wired to nothing, chart titles that say “Bar chart of…”, legends where direct labels fit, day/month/year dropdowns for a date near today (ui-56), react-joyride onboarding tours in place of actual setup (ui-57), borrowed menu items like a workspace switcher when only one workspace exists (ui-55), and entity names printed as plain text so every lookup forces a trip back to the sidebar (ui-58). Because fixing product tells changes behavior, the skill logs them as proposals in the report instead of rewriting screens behind your back.
Git: block bad commits automatically
unslop-git includes lint-msg.mjs for checking commit messages and reword.mjs for cleaning up branch history before you open a PR:
Drop it into a Git commit-msg hook and vague subjects, “This commit…” filler, and AI attribution trailers never land on the branch in the first place:
#!/bin/sh
node ~/.agents/skills/unslop-git/scripts/lint-msg.mjs --check "$1"
Clean an existing repo with unslop-all
When you inherit a repo that already has months of agent output in it, run unslop-all. It surveys the codebase with detect.mjs --questions and asks up to four questions in one prompt: scope, exclusions (respecting read-only folders in AGENTS.md, CLAUDE.md, and CONTRIBUTING.md), which passes to run, and whether to land fixes on a review branch, leave them uncommitted, or generate a report only without modifying a single file.
When commit history is included, unslop-git runs last so the commit messages can describe every pass that ran before it. You can silence any intentional hit with unslop-ignore, unslop-ignore-file, or --exclude <path>.
Try it on your last agent diff
No skill can invent product taste or decide what your landing page should say. What unslop-skills does is clear out the 188 mechanical habits that make AI-written repos tiring to review and brittle to maintain, while giving you an HTML audit trail for every edit.
Install it, run unslop-diff on whatever your agent wrote last, and open .unslop/report.html. The full source and tell catalogs are at github.com/bberka/unslop-skills.
npx skills add bberka/unslop-skills




