jtaroreh/agystack/deslop

Claude Code and agent skill by jtaroreh/agystack

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Clean AI slop and defensiveness out of code and diffs before commit. Strips narrating comments, redundant guards, speculative error handling, unused abstractions, and dead compatibility code.

Install

npx vskill@latest install jtaroreh/agystack/deslop

SKILL.md

The same SKILL.md was published earlier as jtaroreh/agystack/deslop.

Deslop

Clean AI patterns, excessive defensiveness, and unnecessary bloat out of code and git diffs before committing.

While `/unslop` cleans human/agent prose and `/no-comments` strips comments before review, /deslop operates directly on application code and diffs.

Process

  1. Inspect the diff. Run git diff against your base branch or HEAD~1. Focus on newly added or modified lines.
  2. Scan for code slop patterns (see checklist below).
  3. Refactor and simplify. Delete defensive bloat, eliminate speculative layers, and restore direct, obvious code.
  4. Verify correctness. Run tests, typechecks, or linters to prove the streamlined code still works.

Code Slop Patterns to Detect and Fix

1. Defensive Over-Engineering
  • Redundant null/undefined checks: Checking variables that internal types or preceding guards guarantee cannot be null. Trust internal invariants; concentrate validation at external boundaries (principle-boundary-discipline).
  • Try-catch swallows: Wrapping synchronous or infallible calls in try...catch blocks that swallow errors or return fallback values silently.
  • Speculative error handling: Catching errors that cannot happen in normal flow rather than letting real failures surface (principle-fix-root-causes).
2. Speculative Flexibility
  • Unrequested configuration: Adding options objects, configurable flags, or generalized plugin systems for single-use logic (principle-laziness-protocol).
  • One-caller abstractions: Creating helper functions, interfaces, or wrapper classes used in exactly one place with no likelihood of reuse (principle-minimize-reader-load).
  • Premature type parameterization: Introducing complex generic type parameters where concrete types suffice.
3. Narrating and Placeholder Comments
  • Obvious narration: // check if user exists, // return the result, // loop through items. Delete them immediately.
  • Section banner comments: // ===================== HELPERS =====================. Remove them.
  • Commented-out code: Dead code blocks left "just in case". Delete them; git history preserves past code (principle-subtract-before-you-add).
4. Artificial AI Code Tells
  • Intermediate variable churn: Assigning a value to a temporary variable only to immediately return or pass it once:

```ts // Slop const result = calculateTotal(items); return result;

// Clean return calculateTotal(items); ```

  • Redundant type assertions: Overusing as any, as unknown as T, or unnecessary non-null assertions ! when proper typing or narrowing makes the code type-safe (principle-type-system-discipline).
  • Verbose conditional boilerplate: Using 10-line if/else ladders where a simple ternary, dictionary lookup, or early return is cleaner.
5. Lingering Debug and Scratch Artifacts
  • Leftover console.log, print(), dbg!(), or ad-hoc benchmark timers.
  • Temporary test fixtures or scratch files committed by mistake.

Output / Reply

State:

  • Files cleaned and line delta (e.g. -45 lines).
  • Types of slop removed (e.g., redundant null guards, one-caller helper collapsed, narrating comments stripped).
  • Verification command run to confirm tests and types remain green.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4
Repository forks
2
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jtaroreh/agystack/deslop/badge)](https://verified-skill.com/skills/jtaroreh/agystack/deslop)

Something wrong with this skill or its page? Tell us.