- Home
- Skills
- Code Quality & Review
- DeSlop: Human-Reviewable AI Code
Works with the AI Agents you already use
DeSlop: Human-Reviewable AI Code
deslop teaches your agent to work the way a good colleague would, so you can review its changes in a minute or two instead of skimming them.
Free
DeSlop: Human-Reviewable AI Code
Example session with this skill installed
Add input validation to the signup form: email must be valid, password at least 8 characters, and show the errors under each field.
- Read your context and instructions
- Compiled the deslop
Illustrative example. File names and the existing helper are made up to show the deslop style.
Without deslop (typical AI output)
Changed 9 files, +612 / -388
- New src/utils/validators.ts (a fresh isEmail(), duplicating the existing isValidEmail())
- New ValidationService class + IValidator interface "for future forms"
- SignupForm.tsx rewritten and reformatted, imports reordered
- 20-line comment blocks explaining what each function does
With deslop
Plan: small enough for one step (~45 lines). Searched first: isValidEmail() already exists in src/shared/validation.ts.
// src/features/signup/SignupForm.tsx
+import { isValidEmail } from "@/shared/validation";
+
+const MIN_PASSWORD_LENGTH = 8;
+
+function validateSignup(email: string, password: string) {
+ const errors: { email?: string; password?: string } = {};
+ if (!isValidEmail(email)) errors.email = "Enter a valid email address.";
+ if (password.length < MIN_PASSWORD_LENGTH)
+ errors.password = `Use at least ${MIN_PASSWORD_LENGTH} characters.`;
+ return errors;
+}
Plus a few lines in the submit handler to stop on errors, and one <FieldError> under each input.
Hand-off
Changed (2 files, +45 / -3):
- features/signup/SignupForm.tsx: validateSignup() + error display
- features/signup/SignupForm.test.tsx: 4 cases (valid, bad email, short password, both)
Reused: isValidEmail() from shared/validation.ts
Look closely at: submit handler, early return on errors
Test: npm test -- SignupForm
Not done / noticed: the profile form has its own email regex. Switch it to isValidEmail() next?
Next steps
Review the 45-line diff, run the test, and decide whether to tackle the duplicated regex as its own small change.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop AI slop before it hits your PR.
What it does
AI coding tools love to produce +1000 / -1000 diffs, rewrite helpers that already exist, write paragraph-long comments and dump 40 files into one handlers/ folder. The result: you stop reading and just click merge.
deslop teaches your agent to work the way a good colleague would, so you can review its changes in a minute or two instead of skimming them.
How it works
The skill (SKILL.md) applies six rules to every coding task:
- Small changes: one concern per change, roughly under 300 changed lines. Bigger tasks get a short step-by-step plan first, then one step at a time.
- Search before you write: reuse existing code, the standard library and installed packages; extract a shared helper instead of copy-pasting.
- Touch only what the task needs: no drive-by rewrites, renames or reformatting; unrelated problems are mentioned, not silently fixed.
- Short comments, or none: one line about why, never what.
- Obvious structure: folders by feature, files under ~300 lines, functions under ~40 lines, plain names.
- Short hand-off: every change ends with what changed, what was reused, where to look closely and how to test.
The /deslop- commands* clean up an existing codebase. Every command that edits lists what it found first, lets you choose, then fixes one small step at a time: own git branch, tests before and after, one commit, then stop.
| Command | What it does |
|---|---|
/deslop-audit | Read-only scan, writes a prioritized plan to .deslop/audit.md |
/deslop-next | Does the next item of that plan |
/deslop-review | Reviews your branch before merging |
/deslop-deadcode | Removes unused code and dependencies |
/deslop-dupes | Merges duplicate functions into shared helpers |
/deslop-comments | Deletes noise comments, shortens long ones |
/deslop-split | Splits long files and functions |
/deslop-structure | Reorganizes folders by feature |
/deslop-simplify | Removes needless abstractions |
All commands accept a path, e.g. /deslop-dupes src/features/cart. No slash commands in your tool? Ask in plain words ("find duplicate functions in src/").
The package also includes reference files (comment examples, folder layouts per stack, a review checklist) and a size report script that lists oversized files and crowded folders.
Who it's for
Developers who review AI-generated code and are tired of huge, sloppy diffs: solo devs using coding agents daily, and teams who want AI pull requests that a human can actually read before merging.
Where it stops
- It guides style, size and structure. It does not test or verify that the logic is correct; you still review and test the code.
- The limits (~300 lines per change or file, ~40 lines per function, ~15 files per folder) are guidelines, not hard checks, and the project's existing conventions come first.
- The slash commands need a tool that supports them (Claude Code, Cursor, GitHub Copilot via the installer). Elsewhere you get the skill only and ask for cleanups in plain words.
Install
The full install (skill + /deslop-* commands, for Claude Code, Cursor, GitHub Copilot, AGENTS.md-based tools, the Claude Code plugin marketplace or manual setup) is in the GitHub repo: https://github.com/cdrcthv/deslop
Quick start (Claude Code, needs Node.js):
npx github:cdrcthv/deslop
MIT licensed.
- Guides style, size and structure only. It does not test or verify that the logic is correct; you still review and test the code.
- Size limits (~300 lines per change or file, ~40 lines per function, ~15 files per folder) are guidelines, not hard checks, and the project's existing conventions come first.
- The /deslop-* slash commands need a supported tool (Claude Code, Cursor, GitHub Copilot via the installer). Elsewhere you get the skill only and ask for cleanups in plain words.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 14 days ago
- Free with an Agensi account
Requires