agentleFS
udaysharmadevudaysharmadev/Skills/skills/unslop/SKILL.md

unslop

Skill12 starsChanged 57 days agoMITView on GitHub

Removes accidental complexity, duplication, dead code, abstraction leakage, naming debt, and generated cruft in small behavior-preserving batches. Use when a working repository is hard to change or contains messy AI-generated code.

197 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use principle-never-block-on-the-human, greploop-apps 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.
  • jaydubya818Skill

    principle-never-block-on-the-human

    Apply when safe reversible implementation details can proceed inside scope.

    Also in 45 projects that use this

  • jaydubya818Skill

    greploop-apps

    Run greploop through @greptile-apps when the normal trigger rejects a large PR. Use only with the companion greploop skill.

    Also in 5 projects that use this

  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 30 projects that use this

  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 26 projects that use this

  • ianclearySkill

    poteto-help

    Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.

    Also in 15 projects that use this

  • +7 more from jaydubya818

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 16 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 193 edited versions we read keep these.

  • 16

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No tests but runnable: first capture the minimum behavior-preservation evidence appropriate to the code being changed.

    line 58
  2. Distinctive:

    Run the test suite, build, and the app's critical flows (browser where relevant).

    line 67
  3. Distinctive:

    Don't list style preferences.

    line 83
  4. Very specific:

    after each batch: affected checks → diff review (referee discipline) → relevant browser check when available → a recoverable checkpoint.

    line 108
  5. Distinctive:

    Use this change order unless repository evidence makes another order safer:

    line 115
  6. Distinctive:

    Delete a proven unreachable artifact or remove a proven unused dependency.

    line 117
  7. Distinctive:

    Do not combine the steps merely because they touch nearby files.

    line 124
  8. Distinctive:

    If a check fails, stop the batch.

    line 144
  9. Distinctive:

    If the baseline was already failing, distinguish pre-existing failures from regressions with the smallest comparison possible.

    line 151
  10. Distinctive:

    Unused dependencies: remove only when nothing imports them (verified by search + build, not memory).

    line 160
  11. Distinctive:

    Keep error semantics intact.

    line 168
  12. Distinctive:

    Prefer rename-only moves before semantic reshaping when the seam is unclear.

    line 171
  13. Distinctive:

    Every finding has file:line evidence.

    line 177
  14. Distinctive:

    Every batch: affected behavior evidenced + diff-reviewed + applicable UI observations before dependent work.

    line 178
  15. Distinctive:

    Every structural batch has a stated invariant and a verification that could falsify it.

    line 186
  16. Distinctive:

    Read references/research.md when a decision depends on an external standard, a numerical claim, or a fast-moving practice.

    line 214
  17. Distinctive:

    Read references/slop-catalog.md while classifying findings.

    line 217

“Common” is measured: kept by at least 6 in 10 of the 193 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

unslop: rescue the three-week vibe-coded mess

The user is scared to touch their own project. Your job is to make it safe to touch again: baseline what currently works, remove what's accidental, verify every batch. Never "clean up" by rewriting, that's how the last ounce of working behavior dies.

When to use

  • "I vibe coded this for three weeks and I'm scared to touch it"
  • "there's so much duplicated garbage in this codebase"
  • "audit the mess first, don't delete anything yet"

When NOT to use

  • One specific bug → sleuth. Slow → hotpath. Missing tests by design → proof.
  • The repo is fine and someone just wants activity: say so. No-ops are allowed; performative cleanup is slop too.

Prerequisites

A runnable baseline or the means to build one. Behavior-preservation claims are only as good as the signal behind them.

Authority and operating modes

This skill improves internal structure while holding the observed contract constant. It may make small, reversible source and dependency changes after a baseline exists. It must ask before changing a public API, persistence schema, wire format, security policy, product behavior, generated source, or an unowned deployment artifact. A request to "make it cleaner" is not approval for any of those changes.

Choose one mode before editing:

ModeUse whenDeliverable
AssessScope or safety is unclearranked inventory and proposed batches; no edits
DetoxBaseline is trustworthyone or more behavior-preserving, reviewable batches
StabilizeNo suitable baseline existsthe smallest reliable signal, then return to assessment
Hand offFinding changes behavior or crosses an owner boundaryevidence packet for the owning skill or team

Record the chosen mode, baseline command or flow, protected behavior, and excluded areas. Read the cleanup decision record in references/cleanup-protocol.md before a batch with more than one structural change.

Tool selection/fallback

  • Project test runner + build → baseline signal; every batch re-verified the same way.
  • No tests but runnable: first capture the minimum behavior-preservation evidence appropriate to the code being changed.
  • Nothing runnable → fix that first (via sleuth if broken); no cleanup batch ships without a signal: "it still runs" is not one.

Workflow

1. Establish the behavior baseline

Run the test suite, build, and the app's critical flows (browser where relevant). Record what works today, including known quirks that are load-bearing by accident. Without tests, establish the cheapest trustworthy signal before touching structure. "It still runs" is not enough evidence.

Inspect repository instructions, package manifests, CI commands, generated-file markers, recent changes around the target, and the narrow dependency path before deciding what is dead. Search definitions, imports, dynamic loading, templates, configuration, build entries, tests, and documentation that names the candidate. Search absence is evidence only after these paths are relevantly covered; it is never proof by itself in reflection-heavy or plugin systems.

2. Map the mess

Walk the slop catalog (references/slop-catalog.md) with evidence, every finding carries file:line and one line of why it's a problem. Don't list style preferences; list what costs actual time, tokens or correctness.

3. Rank

RankMeaning
CriticalBreaks behavior or hides bugs (swallowed errors, duplicated schemas drifting apart, dead auth paths)
High leverageRemoving it makes every future change faster (mega-components, duplicated logic, premature abstractions)
MediumReal friction, contained blast radius (unused deps, stale comments, scattered config)
CosmeticNaming, ordering: do last, maybe never

Rank by evidence, expected recurrence, blast radius, and reversibility. Favor a small, high-confidence removal over a broad "cleanup" that cannot be explained or rolled back. Deliberate duplication is acceptable when it isolates a public boundary, versioned migration, performance path, or independent deployment. Mark it kept rather than merging it on principle.

4. Fix in batches

Small batches, each independently verifiable and revertable:

  1. one category or one module per batch: never "the whole cleanup";
  2. behavior-preserving only: no feature changes, no "while I'm here" improvements smuggled in (note them, do them as their own batch);
  3. after each batch: affected checks → diff review (referee discipline) → relevant browser check when available → a recoverable checkpoint; commit only when authorized and stage only this batch's changes, preserving the user's pre-existing index and worktree edits;
  4. report line delta without making it a gate. A safe extraction or new characterization can add lines while reducing change risk.

Use this change order unless repository evidence makes another order safer:

  1. Delete a proven unreachable artifact or remove a proven unused dependency.
  2. Extract one repeated, stable behavior into its existing natural home.
  3. Collapse a one-use wrapper only after all callers and error behavior are understood.
  4. Split a large unit along an existing responsibility seam, preserving public imports and lifecycle order.

Do not combine the steps merely because they touch nearby files. A batch should have one falsifiable claim, such as "the deprecated parser has no reachable callers and its supported replacement passes the same fixtures." Read references/cleanup-protocol.md for the candidate matrix, dynamic-reachability checks, and safe transformation recipes.

5. Track and report honestly

Count what changed where it's measurable: dead dependencies removed, duplication merged (lines), files under size thresholds crossed, tests preserved through every batch, net lines. Metrics describe the work; they never become the objective (deleting useful code to improve the number is the same slop in a clean outfit). Report: what was removed, what was kept with a reason (intentional duplication, performance- motivated ugliness, compatibility hacks, legacy constraints, load-bearing weirdness: the catalog's keep-list), what's ranked but untouched.

6. Recover without hiding evidence

If a check fails, stop the batch. Capture the failing command, relevant diff, and the changed assumption. Revert only the batch under examination, or repair it if the user has authorized behavior changes; do not weaken a test, suppress an error, or broaden the cleanup to make the symptom disappear. Re-classify the candidate as uncertain or load-bearing and report it. A failed cleanup is a useful result when it prevents a later outage.

If the baseline was already failing, distinguish pre-existing failures from regressions with the smallest comparison possible. Do not call a batch verified when that distinction cannot be made.

Rules

  • Protect the observed baseline. Stop on a new failure and isolate this batch. An already-failing unrelated suite does not forbid a bounded cleanup when unchanged failures and the affected behavior are evidenced separately. If attribution is impossible, defer. Characterization may be a contract fixture or reproducible flow; a formal suite is useful, not the only possible signal.
  • Generated-looking UI slop (banned patterns, decorative junk) → route to polish; structural code slop is yours.
  • Unused dependencies: remove only when nothing imports them (verified by search + build, not memory); lockfile updated; install still works.
  • Dead code: deleted, not commented out. Git remembers.
  • Commented-out blocks, debug leftovers, empty files, TODO: fix this: mass grave cleanup is allowed in one cosmetic batch, clearly labeled.
  • Preserve source provenance: do not hand-edit generated, vendored, lockfile, or migration-history artifacts unless their owning workflow requires it.
  • Keep error semantics intact. Consolidating duplicate code must preserve validation order, retry behavior, logging, cancellation, and caller-visible error shape unless an approved behavior change says otherwise.
  • Prefer rename-only moves before semantic reshaping when the seam is unclear. A clearer map is a valid intermediate result; forcing the final design is not.

Quality gates

  • Baseline captured (test/build/flow evidence) before batch 1.
  • Every finding has file:line evidence; no vibes-based "this smells".
  • Every batch: affected behavior evidenced + diff-reviewed + applicable UI observations before dependent work; distinguish unchanged baseline failures and unavailable browser checks from new regressions.
  • Net line delta and per-batch diffs available in the report.
  • Zero behavior changes: if any happened accidentally, disclosed and reverted.
  • Candidate evidence covers plausible indirect use, or the report names the unresolved reachability risk and leaves the candidate untouched.
  • Every structural batch has a stated invariant and a verification that could falsify it; formatting and line-count reductions alone do not qualify.

Stop conditions

  • Critical + high-leverage ranks cleared → report, offer to continue into medium/cosmetic, stop.
  • Baseline can't be established (app won't run) → fixing that becomes the first mission, possibly via sleuth; no cleanup before a signal exists.
  • A finding turns out to be load-bearing behavior → keep it, document why in the report.
  • The next change would require a product, compatibility, or ownership choice → stop with alternatives and seek the appropriate decision.
  • The remaining inventory is cosmetic or lower confidence than its expected benefit → stop; an explicit no-change conclusion is a successful assessment.

Output contract

Chat: findings table (rank · location · problem · status), batch log (each: what changed, verification evidence), net line delta, what was deliberately kept. On request: docs/reports/detox-<slug>.md with provenance header. Each changed batch includes: protected invariant, candidate evidence, change summary, verification outcome, residual risk, and a clear verdict of shipped, reverted, deferred, or handed off.

Research basis

Read references/research.md when a decision depends on an external standard, a numerical claim, or a fast-moving practice. The ledger records what the source supports, what it does not support, and when to reverify. Read references/slop-catalog.md while classifying findings. Read references/cleanup-protocol.md for non-trivial reachability analysis, batch design, or a failed verification.

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.