Comprehensive toolkit for detecting and eliminating "AI slop" - generic, low-quality AI-generated patterns in natural language, code, and design. Use when reviewing or improving content quality, preventing generic AI patterns, cleaning up existing content, or enforcing quality standards in writing, code, or design work.
A comprehensive Claude Code skill for detecting and eliminating generic AI-generated patterns ("AI slop") in natural language, code, and design.
anti-slop.skill)A complete Claude Code skill package containing:
text-patterns.md: Natural language slop patterns (5.5KB)code-patterns.md: Programming antipatterns (9.5KB)design-patterns.md: Visual/UX design slop patterns (10KB)detect_slop.py: Automated slop detection for text filesclean_slop.py: Automated slop cleanup with safety featuresCLAUDE_MD_UPDATES.md)Proposed system-level integration updates including:
"AI slop" refers to telltale patterns that signal generic, low-quality AI-generated content:
data, result, temp, itemInstall the skill in Claude Code:
# Download anti-slop.skill from outputs
# Import it into Claude Code via the Skills menu
Test the detection script:
python scripts/detect_slop.py your_file.txt
Preview cleanup:
python scripts/clean_slop.py your_file.txt
Detect slop in a text file:
python scripts/detect_slop.py article.md --verbose
Clean up slop (with backup):
python scripts/clean_slop.py article.md --save
Ask Claude to use the skill:
"Can you review this article for AI slop patterns?"
"Help me clean up generic AI patterns in my code"
"Does this design look too generic?"
The detect_slop.py script analyzes text files and provides:
Slop Score (0-100):
Pattern Categories:
Example output:
Overall Slop Score: 85/100
Assessment: 🚨 High slop detected
🔴 HIGH-RISK PHRASES (6 found):
Line 1: 'delve into' in: In this article, we will delve into...
Line 3: 'it's important to note that' in: ...
📢 BUZZWORDS (10 found):
leverage, synergistic, paradigm shift, empower...
💡 RECOMMENDATIONS:
• Replace high-risk phrases with direct, specific language
• Remove buzzwords and use concrete, specific terms
• Delete meta-commentary; lead with actual content
The clean_slop.py script automatically removes common patterns:
Preview mode (default):
python scripts/clean_slop.py article.md
# Shows what would change without modifying file
Save mode (creates backup):
python scripts/clean_slop.py article.md --save
# Creates article.md.backup and overwrites original
Aggressive mode:
python scripts/clean_slop.py article.md --save --aggressive
# More aggressive cleanup, may slightly change meaning
Custom output:
python scripts/clean_slop.py article.md --output cleaned_article.md
What it cleans:
For code, the skill provides manual review guidance:
# Read the reference first
view references/code-patterns.md
# Then manually review code against patterns:
# - Generic variable names
# - Obvious comments
# - Over-engineering
# - Unnecessary abstractions
Common fixes:
data → userPreferences, transactionHistory, searchResultsresult → parsedDocument, filteredItems, validationError# Create a user before user = User()For design work, consult the design patterns reference:
view references/design-patterns.md
Key checks:
Comprehensive guide to natural language slop:
Programming antipatterns across languages:
Visual and UX design slop patterns:
The CLAUDE_MD_UPDATES.md file contains proposed system-level changes that would make Claude naturally avoid slop patterns.
Key updates:
Implementation approaches:
Option 1: Gradual Integration
Option 2: Full Integration
Option 3: User-Controlled
When creating content:
Run detection when:
Cleanup workflow:
Safety notes:
User: "Can you review this article for AI slop?"
Claude:
1. Reads text-patterns.md for reference
2. Runs detect_slop.py script
3. Reviews findings manually
4. Optionally runs clean_slop.py
5. Provides manual cleanup recommendations
6. Verifies final content quality
User: "Help me remove generic patterns from my code"
Claude:
1. Reads code-patterns.md
2. Reviews code files manually
3. Identifies generic names to rename
4. Spots over-engineering to simplify
5. Suggests removing obvious comments
6. Provides refactoring guidance
User: "Does this design look too generic?"
Claude:
1. Reads design-patterns.md
2. Checks against high-confidence indicators
3. Identifies specific issues
4. Provides concrete recommendations
5. Suggests alternatives
6. Focuses on user needs over templates
User: "Help me create quality standards for our team"
Claude:
1. Reviews all reference files
2. Identifies relevant patterns for user's domain
3. Creates project-specific guidelines
4. Sets up detection in pipeline
5. Documents acceptable exceptions
6. Provides training materials
Current scope:
Context sensitivity:
Not a replacement for:
detect_slop.py:
clean_slop.py:
Before (Score: 85/100):
In this article, we will delve into the complexities of modern AI.
In today's fast-paced world, it's important to note that leveraging
cutting-edge solutions can empower businesses to drive innovation.
After (Score: 15/100):
Modern AI systems balance accuracy, speed, and cost. This article
examines practical trade-offs with examples from production deployments.
Before:
# Process the data
def process_data(data):
result = []
# Loop through items
for item in data:
result.append(item)
return result
After:
def filter_completed_transactions(transactions):
return [t for t in transactions if t.status == 'completed']
Before:
Purple gradient background
"Empower Your Business"
"Transform your workflow with cutting-edge solutions"
[Get Started] button
Generic 3D shapes floating
After:
Brand color background
"Automate Invoice Processing"
"Extract line items from PDFs, sync to QuickBooks"
[Try 50 invoices free] button
Screenshot of actual interface
To extend the skill:
For issues or questions:
See LICENSE.txt for complete terms.
The Anti-Slop skill provides:
✅ Detection: Automated scanning for slop patterns in text ✅ Cleanup: Safe automated removal of common patterns ✅ Prevention: Reference guides for all content types ✅ Integration: System-level updates for Claude ✅ Flexibility: Use as tool or integrate into behavior
The goal: Create authentic, high-quality content that serves users rather than following generic AI patterns.
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Control Sonos speakers (discover/status/play/volume/group).
Terminal Spotify playback/search via spogo (preferred) or spotify_player.
Capture frames or clips from RTSP/ONVIF cameras.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
Category:tools