agentleFS
stijnvanhullestijnvanhulle/agents/.agents/skills/deslop/SKILL.md

deslop

Skill1 starsChanged 2 months agoMITView on GitHub

Audit a diff for over-engineering and AI code/prose tells, then apply only confirmed fixes. Use before opening a PR or when asked to clean up a diff.

59 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use verify-this, thermo-nuclear-code-quality-review and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnastasiyaWSkill

    verify-this

    Prove a concrete behavior, performance, UI, CLI, API, or memory claim with fresh baseline-versus-treatment evidence and one explicit verdict. Use when asked to verify, prove, compare before and after, show evidence, or confirm that a fix works. Do not use for vague claims such as cleaner code, a full plan-based release verification, or a known bug that needs a red-to-green reproducer.

    Also in 4 projects that use this

  • AnastasiyaWSkill

    thermo-nuclear-code-quality-review

    Run an opt-in strict maintainability review for giant files, spaghetti growth, misplaced logic, weak boundaries, unnecessary abstractions, and missed structural simplifications. Use for a thermonuclear review, harsh code-quality audit, code-judo review, or a file approaching 1000 lines. Do not use as an automatic rewrite mandate or for cosmetic cleanup.

    Also in 3 projects that use this

  • maxvaegaSkill

    dream

    Self-improving memory loop — capture the user's preferences, corrections, and standing rules as project memories; periodically consolidate them (REM pass) and propose improvements to skills and CLAUDE.md. Modes - default, history, queued, rem, proposals, setup. Full loop on Claude Code; capture-only portable mode on Claude Cowork.

    Also in 3 projects that use this

  • Hugging FaceSkill

    simplify

    Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.

    Also in 4 projects that use this

  • AWSSkill

    teach

    Teach the user a new skill or concept, within this workspace.

    Also in 5 projects that use this

  • nicodianskSkill

    brainstorm

    Use when starting creative work - creating features, building components, adding functionality, or modifying behavior. Explores requirements through Socratic dialogue before any implementation.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 58 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Already in this codebase?: Search before writing a new helper or component.

    line 14
  2. Distinctive:

    Otherwise: write only what the task needs.

    line 20
  3. Very specific:

    Run humanizer criteria on changed docs/comments.

    line 39
  4. Very specific:

    Before editing, list each finding with path, violated rung/tell, and fix.

    line 43
  5. Distinctive:

    Keep trust-boundary checks and real error handling.

    line 50
  6. Distinctive:

    Read and apply the relevant convention rules before editing, including rules for tests you add.

    line 52
  7. Distinctive:

    Run format, lint, and relevant tests.

    line 53

“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Deslop

1. The reuse-first decision ladder

For each new dependency, file, wrapper, or export, stop at the first fit:

  1. Does this need to exist? Skip safeguards for inputs that can't occur and flags for cases nobody asked for.
  2. Already in this codebase? Search before writing a new helper or component.
  3. Stdlib or the language? A native method beats a utility function.
  4. A platform or framework feature? A browser <input type="date"> beats a hand-rolled date picker.
  5. An installed dependency? Reuse before adding a package.
  6. One line? Inline it instead of extracting a function or component.
  7. Otherwise: write only what the task needs.

Flag dependencies covered by an earlier rung, one-caller wrappers, unrequested flags, and generality for inputs never passed. Two real callers means reuse, not a violation.

Apply the deletion test to a new module or layer. Imagine it gone. If the complexity vanishes, it was a pass-through. If it reappears across several callers, it earns its place. One implementation behind an interface is a hypothetical seam, not a real one.

2. Code tells

  • Comments that restate code or do not match local comment density.
  • Abnormal defensive checks or try/catch on trusted paths. Keep trust-boundary validation.
  • any casts that dodge a type error.
  • Deep nesting that early returns would flatten, and any else or else if (ternaries are the only allowed inline conditional).
  • Naming/import/export style inconsistent with nearby code.

3. Prose

Run humanizer criteria on changed docs/comments. Skip when no prose changed.

4. Report, then ask

Before editing, list each finding with path, violated rung/tell, and fix. Use ask: apply / skip / show more per finding or related group. Treat requests to review, assess, or explain a diff as audit-only unless the user also asks for fixes or has already approved those fixes.

5. Apply only what is confirmed

  • Preserve behavior unless fixing a clear bug. Make surgical edits.
  • Keep trust-boundary checks and real error handling.
  • Fix root causes; never weaken types, rules, or tests.
  • Read and apply the relevant convention rules before editing, including rules for tests you add.
  • Run format, lint, and relevant tests.
  • Re-audit the complete resulting diff against the same rules and code tells. Fix any issues introduced by the edits before reporting completion.
  • Summarize changes and skipped findings.

Related skills

SkillUse for
humanizerThe full pattern list step 3 runs, and prose review outside a code diff
code-style ruleThe house style this skill enforces on code, dependencies, and abstractions

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.