remove-ai-slops

remove-ai-slops is a skill for Claude Code, Codex from daeryundf2-prog/LAZYANTIGRAVITY. It costs 45 tokens per session (5,009 once invoked), scanned A, original, MIT.

A code-cleanup workflow for removing common AI-generated coding patterns from changed files while preserving behavior. It adds or checks regression tests before making cleanup changes.

In plain words
What is it for?
Use it to clean recent branch changes or selected files after AI-assisted coding, then verify them with tests.
Why use it?
It reduces the risk that code cleanup accidentally changes what the program does.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; names the TodoWrite tool.

Good fit Use it to clean recent branch changes or selected files after AI-assisted coding, then verify them with tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daeryundf2-prog/lazyantigravity/remove-ai-slops
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add daeryundf2-prog/LAZYANTIGRAVITY --skill remove-ai-slops
Clone the repo
git clone --depth 1 https://github.com/daeryundf2-prog/LAZYANTIGRAVITY

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for remove-ai-slops

README.md
[![agentmods](https://agentmods.dev/badge/skills/daeryundf2-prog/lazyantigravity/remove-ai-slops/github.svg)](https://agentmods.dev/skills/daeryundf2-prog/lazyantigravity/remove-ai-slops)
Your own site
<a href="https://agentmods.dev/skills/daeryundf2-prog/lazyantigravity/remove-ai-slops"><img src="https://agentmods.dev/badge/skills/daeryundf2-prog/lazyantigravity/remove-ai-slops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for remove-ai-slops

Your own site · 80×15
<a href="https://agentmods.dev/skills/daeryundf2-prog/lazyantigravity/remove-ai-slops"><img src="https://agentmods.dev/badge/skills/daeryundf2-prog/lazyantigravity/remove-ai-slops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,009 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.05009
Opus 5.5 $0.00018 $0.02004
Sonnet 5.5 $0.00009 $0.01002
Haiku 4.5 $0.00005 $0.00501

Measured 19d ago against content hash 614cf51af95f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

remove-ai-slops scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

shared-skills/skills/remove-ai-slops/SKILL.md · 329 lines

How it starts

The opening of the file, as written. The whole thing — 329 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Antigravity Harness Tool Compatibility

In Google Antigravity, use native subagents and tools (invoke_subagent with Tier-Routing, file editing tools):

Task Antigravity tool
Parallel slop cleanup lane invoke_subagent with Model: "flash" (TypeName: "self")
Gate review / adversarial check invoke_subagent with Model: "pro"
Direct file operations view_file, replace_file_content, write_to_file
Direct command & test execution run_command

Remove AI Slops Skill

Inputs

  • Default scope: branch diff vs merge-base main (no arguments needed)
  • Optional scope: explicit file list passed by the caller (e.g., a Ralph workflow's changed-files set)

What this skill does

Cleans AI-generated slop from a bounded set of changed files while strictly preserving behavior. Locks behavior with regression tests first, then runs a categorized multi-pass cleanup, then verifies with quality gates and a critical review. Reverts and direct-edits when verification fails.

The core safety invariant: behavior is locked by green tests before a single line is removed. A checklist alone is not safety; a passing regression test is.


Categories (what counts as slop)

The agent looks for these ten categories. The first three are stylistic, the next four are structural, the next two are about hidden cost, and the last is about behavior coverage.

Stylistic

  1. Obvious comments — comments restating code, trivial docstrings, section dividers, commented-out code, vague TODOs/Notes.

    • KEEP: comments explaining WHY (business logic, edge cases, workarounds), ticket links, regex/algorithm explanations.
    • KEEP: BDD markers (# given, # when, # then, # when/then).
  2. Over-defensive code — null checks for guaranteed values, try/except around code that cannot raise, isinstance checks for statically typed params, default values for required params, backward-compat shims, redundant validation duplicated at multiple layers, broad exception catching (except Exception/except BaseException in Python, empty catch {} or catch (e) { console.error(e) } without narrowing in TypeScript/JavaScript).

    • KEEP: validation at system boundaries (user input, external APIs), I/O error handling, nullable DB fields. Top-level boundary catch-all (CLI main(), HTTP handler) with explicit logging + re-raise is acceptable.
    • REFACTOR: except Exception → catch the specific exception you expect. Empty catch {} → add instanceof narrowing or re-throw. catch (e) { log(e) } → narrow with instanceof, handle known cases, re-throw unknown.
    • PROOF REQUIRED: before deleting any validation or error handling at a trust boundary, Phase 2 must include an adversarial regression (malformed or hostile input) that fails if the guard is removed. No adversarial test → the guard stays. Redundant defense to remove is a duplicate of a check that already runs inside the boundary; a guard with no proof of redundancy is load-bearing.

Read the full file on GitHub · 329 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago First seen · 329 lines · 45 tokens per session scan A 614cf51af95f

Subscribe to this mod's changes

remove-ai-slops is a skill published in the GitHub repository daeryundf2-prog/LAZYANTIGRAVITY (14 stars, last pushed 3d ago), licensed MIT. It adds 45 tokens to every session and 5,009 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.