anti-slop-stack
/anti-slop-stack
Ruthless multi-layer purifier for AI coding agents. Eliminates bloated boilerplate, hallucinated abstractions, narrative comments, generic AI template UIs, and robotic prose. Use when asked to "remove AI slop", "clean up code", "audit for bloat", "simplify project", or "purify codebase".
- Author
- Dhani078 ↗
- Repository
- anti-slop-stack ↗
- Licence
- MIT
- Last repository change
- 30.10.2026
Assessment and security
- Files in this package
- 23
- Scripts
- 8
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 30.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 8 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: src/diff.js, src/index.js, src/reporter.js, src/rules/bloat-slop.js, src/rules/code-slop.js, src/rules/prose-slop.js, src/rules/ui-slop.js, src/staged.js
What it does and when to use it
Ruthless multi-layer purifier for AI coding agents. Eliminates bloated boilerplate, hallucinated abstractions, narrative comments, generic AI template UIs, and robotic prose. Use when asked to "remove AI slop", "clean up code", "audit for bloat", "simplify project", or "purify codebase".
Triggers from the description
Original author description
Ruthless multi-layer purifier for AI coding agents. Eliminates bloated boilerplate, hallucinated abstractions, narrative comments, generic AI template UIs, and robotic prose. Use when asked to "remove AI slop", "clean up code", "audit for bloat", "simplify project", or "purify codebase".
How it works
- What is AI Slop?
- The 4 Purification Layers
- Usage Commands
SKILL.md preview
---
name: anti-slop-stack
description: >
Ruthless multi-layer purifier for AI coding agents. Eliminates bloated boilerplate,
hallucinated abstractions, narrative comments, generic AI template UIs, and robotic prose.
Use when asked to "remove AI slop", "clean up code", "audit for bloat", "simplify project",
or "purify codebase".
version: 1.0.0
license: MIT
metadata:
author: Dhani078
repository: https://github.com/Dhani078/anti-slop-stack
tags: [code-quality, anti-slop, clean-code, refactoring, ai-cleaner]
---
# Anti-Slop Stack
A unified, multi-layer purifier that strips away AI-generated sludge across Code, Architecture, UI, and Prose.
## What is AI Slop?
AI models naturally gravitate toward:
1. Code Slop: Narrative comments restating obvious code, empty `catch (e) {}`, `as any` band-aids, and orphan functions.
2. Architecture Bloat (YAGNI violations): 5 layers of indirection where a single function works, premature factories, speculative configuration files.
3. UI Slop: Cookie-cutter purple gradients, centered cards with generic lavender borders, hardcoded sizes causing horizontal scroll.
4. Prose Slop: Buzzword salads ("delve", "leverage", "testament"), throat-clearing openings, and breathless conclusions.
`anti-slop-stack` enforces strict senior-developer discipline to eradicate all four.
---
## The 4 Purification Layers
### 1. Code Slop Purifier
- Ban Narrative Comments: Delete comments like `// increment counter` or `// function to fetch user`. Keep only non-obvious why.
- Forbid Swallowed Errors: Flag every empty `catch` block or log-and-forget handler that risks silent failure.
- Eliminate Unsafe Coercions: Flag `as any`, `@ts-ignore`, and dynamic casts that bypass the type checker.
- Dead Code Sweep: Purge unreferenced imports, unreachable branches, and commented-out scraps.
- Purge Debug Console Output: Detect and clean stray `console.log()` / debug prints from production code.
- Destructive Error Wrapping: Forbid generic `catch (err) { throw new Error(err); }` which destroys original stack traces.
- Dangerous Dynamic Evaluation: Detect critical `eval()` and `new Function()` anti-patterns that expose applications to code injection.
- Ban Hardcoded Secrets: Flags inline API tokens or mock keys (`sk-...`, `ghp_...`, `AIzaSy...`). Always inject secrets from environment variables or secure vaults.
- Ban Blind Sleeps & Excessive Timeouts: Flag arbitrary `sleep(3000)` or large `setTimeout` calls that paper over race conditions. Replace with event-based signals, polling, or condition checks.
### 2. Architecture & YAGNI Purifier (Senior Rules)
- Stdlib & Native First: Replace third-party library imports with native stdlib or platform built-ins when a few lines suffice.
- Single-Implementation Rule: Delete interfaces, abstractions, or wrappers that only have one concrete consumer.
- 200 LOC Ceiling: Strongly discourage monolithic god-files. Break components by single responsibility, never arbitrary splits.
- Shortest Working Diff: Choose the solution with the fewest lines of code that cleanly satisfies all requirements and edge cases.
### 3. UI & Visual Slop Purifier
- Ban Generic AI Aesthetics: Reject template dark-mode purple/lavender glows and unstyled cards.
- Tailwind Template Slop: Detect boilerplate gradients (`from-purple-500 to-indigo-500`) and shadow glows (`shadow-purple-500/50`).
- Optical Precision: Enforce concentric corner radiuses (`outer_radius = inner_radius + padding`).
- Contrast & Hierarchy: Ensure minimum WCAG 4.5:1 text contrast and distinct typographic scale.
- Zero Horizontal Overflow: Zero tolerance for horizontal scrolling on mobile (360px) and desktop viewports (`w-[800px]`, `width: 900px`).
### 4. Prose & Copywriting Purifier
- Purge AI Clichés: Ban filler words: `delve`, `leverage`, `robust`, `seamless`, `testament`, `spearhead`, `tapestry`, `vital role`.
- Delete Throat-Clearing: Cut opening sentences like "In today's fast-paced digital world..." or "It is important to remember that...".
- Bold Overuse Detection: Flag stacked markdown bold tags (`word`) used as artificial emphasis crutches.
- Active & Direct: Replace passive constructions with direct, concrete human language.
---
## Usage Commands
### Interactive CLI Tool
Scan a codebase or target directory:
```bash
node src/index.js scan [path]
```
Automatically apply mechanical fixes (strip narrative comments, clean dead imports, fix trivial slop):
```bash
node src/index.js fix [path]
```
Audit in CI mode (exits with non-zero code if slop exceeds threshold):
```bash
node src/index.js ci [path]
```
### Agent Integration (Hermes / Claude Code / Cursor / Windsurf / Codex / Aider / Cline / Copilot)
When this skill is invoked:
1. Run the local scanner across the affected project files.
2. Report categorized slop findings grouped by severity (Critical / High / Cleanable).
3. Present the shortest working diff that removes all unnecessary code while maintaining 100% of functional requirements.
Files in this package (23)
- .antisloprc.json 1 KB
- .gitignore 1 KB
- .npmignore 1 KB
- .pre-commit-hooks.yaml 1 KB
- CHANGELOG.md 3 KB
- CODE_OF_CONDUCT.md 2 KB
- CONTRIBUTING.md 1 KB
- LICENSE 1 KB
- README.md 7 KB
- SECURITY.md 1 KB
- SKILL.md 5 KB
- SPEC.md 6 KB
- action.yml 1 KB
- package.json 1 KB
- assets/banner.svg 3 KB
- src/diff.js 3 KB
- src/index.js 8 KB
- src/reporter.js 5 KB
- src/staged.js 3 KB
- src/rules/bloat-slop.js 2 KB
- src/rules/code-slop.js 5 KB
- src/rules/prose-slop.js 2 KB
- src/rules/ui-slop.js 2 KB
Versions
The database has no other skills named anti-slop-stack.
Database snapshot: 13.11.2026 · package version c0d8d4d12d0e (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90ai-slop-cleaner
Clean AI-generated code slop with regression-safe workflow. Activate when user says: deslop, anti-slop, AI slop, cleanup slop, clean up this code, remove bloat. - 100anti-slop
Clean AI slop out of prose so it reads plain and human without changing what it says, in English or Polish. Use when asked to de-slop, humanize, simplify or plain-word a text, to check it for AI tells, or when another skill hands over prose to clean before it ships (a PR body, a code story, docs). - 90purify
Katara bends the impurities out of the water and leaves it clear. Use for deslop, /deslop, "remove AI slop", "clean up this diff", or before every commit. Checks the branch diff against main and removes AI-generated code slop, such as needless comments, abnormal defensive… - 100codesaver
This skill should be used when the user asks for "Codesavers", "use Codesavers", "clean up", "remove slop", "simplify", "unslop", "reduce complexity", "tighten up", "cleanup before PR", "review for unnecessary complexity", "too verbose", "over-engineered", "remove unnecessary… - 91code-degunker
Identify and fix AI-generated code anti-patterns: incomplete implementations, TODO placeholders, over-engineering, hallucinated APIs, missing error handling, over-defensive code, security vulnerabilities, performance anti-patterns, code bloat, type workarounds, dead code, magic… - 100ai-slop-cleaner
Use when a working code path feels bloated, noisy, or over-abstracted, when asked to clean up or deslop AI-generated code, or when a reviewer-only anti-slop pass is requested.