Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

anti-slop-stack

/anti-slop-stack

Oczyszcza kod pisany przez agentów AI z przerostu szablonów, zmyślonych abstrakcji, narracyjnych komentarzy i robotycznego tekstu.

Licencja
MIT
Ostatnia zmiana repozytorium
30.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
14
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 30.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Oczyszcza kod pisany przez agentów AI z przerostu szablonów, zmyślonych abstrakcji, narracyjnych komentarzy i robotycznego tekstu.

Wyzwalacze z opisu

remove AI slopclean up codeaudit for bloatsimplify projectpurify codebase
Oryginalny opis (EN)

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".

Jak działa

  1. What is AI Slop?
  2. The 4 Purification Layers
  3. Usage Commands
Sekcje z nagłówków SKILL.md, w oryginale · 75 linii, 625 słów
Podgląd SKILL.md
---
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.
Pliki w paczce (14)
  • .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

Wersje

W bazie nie ma innych skilli o nazwie anti-slop-stack.

Migawka bazy z 13.11.2026 · wersja paczki 8cbb2a1485c4 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90ai-slop-cleaner
    Usuwa z kodu wygenerowanego przez AI zbędne elementy, zachowując działanie dzięki procesowi odpornemu na regresje.
  • 100anti-slop
    Oczyszcza tekst ze sztucznych zwrotów AI, nie zmieniając jego treści, po polsku i po angielsku, np. przed wysłaniem opisu PR.
  • 90purify
    Usuwa z gałęzi zbędny kod generowany przez AI: zbędne komentarze, nadmiarowe zabezpieczenia i zagnieżdżenia, bez zmiany zachowania.
  • 100codesaver
    Czyści kod z nadmiarowości: usuwa zbędny kod i abstrakcje, upraszcza, ogranicza rozwlekłość i rozdęte testy, zwłaszcza po wygenerowaniu przez AI, przed PR-em.
  • 91code-degunker
    Wykrywa i naprawia typowe wady kodu pisanego przez AI: niedokończone funkcje, zbędne zabezpieczenia i martwy kod.
  • 100ai-slop-cleaner
    Czyści działającą ścieżkę kodu, która wydaje się rozdęta, hałaśliwa lub przeabstrahowana, usuwa nadmiar z kodu wygenerowanego przez AI i wykonuje przegląd anty-slop.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.