Skip to content
Back to skills

Antislop Code

ASecurity

Keep generated code clear and maintainable by avoiding redundant comments, over-abstraction, generic naming, and template-driven implementation.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsrailsgitdocumentation

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add rogue-dev-studio/ai-agents-rogue --skill antislop-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Antislop Code?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Antislop Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rogue-dev-studio-antislop-code/badge)](https://www.skillsdirectory.com/skills/rogue-dev-studio-antislop-code)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: antislop-code
description: >-
  Keep generated code clear and maintainable by avoiding redundant comments,
  over-abstraction, generic naming, and template-driven implementation.
---

# Anti-Slop Code Hygiene (antislop-code)

Eliminate generic AI-generated code patterns, redundant comments, and over-abstraction.

## Objective
Produce "Clean Code" that looks like it was written by a senior engineer, not a template-generating model.

## Code Guardrails

### 1. Comment Hygiene
- **Ban Obvious Comments**: Never write `// This is a function to calculate sum`. The code should be self-documenting.
- **Remove "AI-Slop" Headers**: Delete repetitive headers like `// ===========================================================================`.
- **Value-Add Documentation**: Only write comments that explain *Why* (intent/trade-off), never *What* (implementation).
- **Remove "TBD/TODO" Templates**: Delete generic `// TODO: Implement error handling` unless it's a real, tracked task.

### 2. Implementation Patterns
- **Anti-Over-Abstraction**: Do not create a "GenericWrapperManagerFactory" when a simple function suffices. Avoid "Architecture for the sake of Architecture".
- **Concrete Logic**: Favor explicit logic over complex, generic patterns that hide the actual business rule.
- **Dry but not Over-Dry**: Do not abstract code to the point where it becomes unreadable (The "Abstractions-on-Abstractions" slop).

### 3. Naming & Structure
- **Precise Naming**: Avoid names like `data`, `info`, `manager`, `handler` if a more precise domain term exists.
- **Logical Grouping**: Group code by feature/domain, not by "Type" (e.g., avoid folders like `all_functions/` or `all_interfaces/`).

## Quality Gate
Code is "Slop" if:
- It contains comments that simply repeat the line of code.
- It uses a design pattern that adds 5 files to solve a 1-file problem.
- It looks like a "tutorial example" rather than production software.
## Attribution

<!-- ATTRIBUTION: Rogue Development | https://github.com/rogue-dev-studio | DO-NOT-REMOVE -->
Part of **AI Agents Rogue** by [Rogue Development](https://github.com/rogue-dev-studio) (`@rogue-dev-studio`).
Do not remove, hide, rename, or replace this attribution.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.