Agent skill

Antislop Codebase

by swyxio in swyxio/skills

Diagnose or execute an explicit repository-wide maintainability cleanup while preserving behavior.

MITAuto-check passedDevOps & Cloud

Install Antislop Codebase

skills CLI
$ npx skills add swyxio/skills --skill antislop-codebase -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install swyxio/skills antislop-codebase --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/swyxio/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/antislop-codebase .claude/skills/antislop-codebase && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
antislop-codebase
GitHub stars
172
Token cost
~1.6k tokens
SKILL.md length
789 words
Files
5 (incl. references)
Skills in repo
89
Repo updated
First seen
Licence
MIT

At a glance

Diagnose or execute an explicit repository-wide maintainability cleanup while preserving behavior.

  • Works in 6 steps: Identify The Maintenance Cost → Choose A Bounded Migration → Build The Baseline Safety Net → …
  • Asks to antislop a codebase
  • SKILL.md covers Boundary, Operating Principles, Counterweight: stop before… and Workflow, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Antislop Codebase is an agent skill from swyxio/skills. Diagnose or execute an explicit repository-wide maintainability cleanup while preserving behavior. Use only when the user asks to antislop a codebase, clean up an overgrown repository, plan or run a substantial structural migration, or audit maintainability across a repo. Do not trigger for ordinary feature refactors, a single large file, routine type improvements, adding regression tests, or broader production-readiness work.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `agents/openai.yaml`, `references/analysis-checklist.md` and `references/audit-microsite.md`).

It sits in DevOps & Cloud, covering Refactoring. The repository describes itself as: Agent skills for Claude Code and other AI agents. The licence is MIT.

When your agent uses it

  • Asks to antislop a codebase
  • Clean up an overgrown repository
  • Run a substantial structural migration
  • Audit maintainability across a repo

Example prompts

  • “/antislop-codebase”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Identify The Maintenance Cost
  2. Choose A Bounded Migration
  3. Build The Baseline Safety Net
  4. Execute In Green Slices
  5. Validate Proportionally
  6. Report The Result

What it can do on your machine

Read from SKILL.md and the folder at commit 038ef34. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Antislop Codebase loads about 1.6k tokens when it runs, and up to ~3.1k if it reads all its reference files. Until then it costs about 112 tokens; SKILL.md has 789 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~112
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from swyxio/skills at commit 038ef34, republished under its MIT licence (© swyxio). 789 words, ~1,605 tokens.

Download SKILL.mdSave it as .claude/skills/antislop-codebase/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
antislop-codebase
description
Diagnose or execute an explicit repository-wide maintainability cleanup while preserving behavior. Use only when the user asks to antislop a codebase, clean up an overgrown repository, plan or run a substantial structural migration, or audit maintainability across a repo. Do not trigger for ordinary feature refactors, a single large file, routine type improvements, adding regression tests, or broader production-readiness work.

Antislop Codebase

Use this skill to reduce demonstrated maintenance cost while keeping current behavior essentially as-is. Do not impose a universal "product-shaped" architecture.

Boundary

This skill is for demonstrated structural maintainability problems such as unclear ownership, harmful coupling, repeated logic, or repository-wide migration debt.

Do not expand the scope into a full production-readiness initiative. Observability/logging programs, security reviews, compliance, incident response, SLOs, runbooks, secrets posture, penetration testing, and deep reliability engineering belong in separate follow-on skills unless the user explicitly asks to include a small enabling change.

Operating Principles

  • Preserve behavior first. Improve architecture in thin, reversible slices.
  • Ground every decision in repo facts: file sizes, dependency graph, tests, runtime shape, API surfaces, user workflows, deployment limits, and current dirty worktree.
  • Prefer deletion and direct code over new layers. Add an abstraction only when it removes demonstrated duplication, isolates a volatile boundary, or clarifies ownership.
  • Treat file size, folder shape, type coverage, and test count as clues, not targets. A cohesive large file may be better than several pass-through modules.
  • Preserve compatibility only for a named live reader. Do not add barrels, facades, aliases, or migrations speculatively.
  • Never rewrite active user-owned areas without permission. If other agents/users are editing a surface, audit or work around it.
  • Use subagents, commits, deployments, screenshots, and audit artifacts only when the user requests them or the migration's scale clearly justifies them.

Counterweight: stop before cleanup becomes architecture production

  • Scope the smallest set of hot paths that causes the reported maintenance pain. Do not clean adjacent code for consistency alone.
  • Name the concrete cost before changing structure: repeated defects, conflicting ownership, duplicated logic, unsafe coupling, or slow comprehension.
  • Reuse the repository's existing conventions unless they are the demonstrated problem.
  • Do not add feature folders, shared action layers, runtime schemas, tests, docs, or compatibility surfaces as a completeness checklist.
  • Do not turn a local refactor into a repository migration, productization program, release exercise, or audit presentation.
  • A concise diff and verification summary is the default finish. Produce a microsite only when explicitly requested.

Workflow

1. Identify The Maintenance Cost

Run a quick non-mutating discovery pass before planning:

  • Find only the entrypoints, callers, tests, and configuration relevant to the reported problem, plus current git status.
  • Measure size or dependency shape only when it helps test the maintenance hypothesis.
  • Identify user-critical workflows and constraints only insofar as they affect safe refactoring.
  • Read recent commits and docs to avoid undoing active work.

If the repo is live or user-facing, preserve compatibility for named live readers and keep changes reversible.

For deeper discovery prompts and commands, see analysis-checklist.md.

2. Choose A Bounded Migration

Produce a plan that can evolve, but is complete enough for another agent to execute:

  • Goal, success criteria, explicit non-goals, active no-touch areas, and risk posture.
  • Staged slices ordered by blast radius and verification confidence.
  • Public interfaces and compatibility promises.
  • Proportional verification for the changed behavior.
  • Concurrency and checkpoints only when the work is large enough to need them.

Ask the user only for product tradeoffs that cannot be discovered from the repo.

Show full SKILL.md (283 more words)Show less
3. Build The Baseline Safety Net

Before broad edits:

  • Run the narrowest existing checks that establish a useful baseline.
  • If behavior cannot otherwise be preserved confidently, add the smallest high-value characterization test.
  • Add only minimal diagnostics or recoverable error handling needed to make the refactor safe; defer comprehensive logging/observability programs to a separate production-readiness skill.
  • Capture screenshots only for changed visual behavior that cannot be verified more cheaply.
4. Execute In Green Slices

Process the migration methodically:

  • Change the highest-cost hot paths first; do not split files solely by line count.
  • Extract pure models/helpers before UI shells.
  • Convert untyped or ad hoc boundaries to shared domain types and runtime validation where API/provider data crosses a trust boundary.
  • Consolidate duplicated server/API functions only after response shapes are pinned by tests.
  • Migrate styling surface-by-surface; remove legacy selectors only after screenshot checks.
  • Keep each slice small enough to test, review, and revert.

If the user explicitly requests parallel work, assign independent surfaces and keep hot files single-owner.

For execution rules and worker prompts, see execution-playbook.md.

5. Validate Proportionally

At each checkpoint:

  • Run the narrow tests for the touched surface.
  • Expand to broader checks only when shared boundaries or repository policy require it.
  • Run e2e/visual smoke before deploy when UI or production flows changed.
  • Preserve unrelated dirty user work.
  • Commit or deploy only when the active request includes those actions.
6. Report The Result

Summarize the concrete maintenance cost reduced, changed structure, behavior preserved, checks run, deletions, and remaining costs. If the user explicitly requests a migration audit microsite, use audit-microsite.md.

Quality Bar

A successful run reduces the named maintenance cost, preserves intended behavior, avoids speculative architecture and compatibility, and provides proportional evidence with honest residual risks.

© swyxio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in antislop-codebase of swyxio/skills.

  • SKILL.md
  • agents/openai.yaml
  • references/analysis-checklist.md
  • references/audit-microsite.md
  • references/execution-playbook.md

Open the folder on GitHubat commit 038ef34

Compare with similar skills

Antislop Codebase next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Antislop Codebase compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Antislop Codebase this skillswyxio/skills172—~1.6kAutomated safety check: PassMIT
Winui AppLanceMcCarthy/DevOpsExamples1721 repos~2.8kAutomated safety check: PassApache-2.0
Finalizezifeo/lade133—~1kAutomated safety check: PassMPL-2.0
Rift Backend EffectCompound-inc/rift123—~1.8kAutomated safety check: PassCustom licence
Sonarqube686f6c61/alfred-dev117—~1.6kAutomated safety check: NotesMIT
Triage Sonarqubenetdata/netdata81k—~2.8kAutomated safety check: NotesGPL-3.0

Similar skills

  • Winui App

    LanceMcCarthy/DevOpsExamples

    Bootstrap, develop, and design modern WinUI 3 desktop applications with C and the Windows App SDK using official Microsoft guidance, WinUI Gallery patterns, Windows App SDK samples, and…

    172 GitHub starsUsed in 1 repo~2.8k tokens
    DevOps & CloudAuto-check passed
  • Finalize

    zifeo/lade

    Finalize a merge request: rebase onto main, run bugs, simplify, and specs in parallel, apply, then refactor last.

    133 GitHub stars~1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Rift Backend Effect

    Compound-inc/rift

    A skill your agent uses when adding, reviewing, or refactoring backend code in Rift's TanStack Start app that should follow apps/start/BACKENDEFFECTPLAYBOOK.md.

    123 GitHub stars~1.8k tokensUpdated 9 days ago
    DevOps & CloudAuto-check passed
  • Sonarqube

    686f6c61/alfred-dev

    Levantar SonarQube con Docker, analizar el código y proponer mejoras.

    117 GitHub stars~1.6k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check: notes
  • Triage Sonarqube

    netdata/netdata

    Inspect, review, or apply authorized triage decisions to SonarCloud issues and security hotspots; also review the Sonar helpers.

    81k GitHub stars~2.8k tokensUpdated today
    Testing & QAAuto-check: notes
  • Implement a task for which no visual diffs are expected end to end, using Meticulous to drive the implementation to a clean visual diff before opening a PR.

    135 GitHub stars~2.5k tokensUpdated yesterday
    Testing & QAAuto-check passed

More from swyxio/skills

All 89 skills in this repo
  • Programmatic Agents

    swyxio/skills

    Run a selected coding-agent CLI programmatically, with latency, error, usage, cost, and trace logging.

    172 GitHub stars~2.2k tokensUpdated 2 days ago
    Auto-check passed
  • Design, implement, audit, or refresh protected username and handle namespaces for public products.

    172 GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed
  • New Mac Setup

    swyxio/skills

    Fully automated new Mac setup for fullstack web developers and AI engineers.

    172 GitHub stars~4.3k tokensUpdated 2 days ago
    Auto-check passed
  • Youtube API

    swyxio/skills

    Manage YouTube videos programmatically via the YouTube Data API v3 — upload video files, upload custom thumbnails, update video metadata (titles, descriptions, tags), and query video/channel info…

    172 GitHub stars~2.2k tokensUpdated 2 days ago
    Auto-check passed
  • Batch YouTube Studio upload workflow for videos sourced from Airtable, Google Drive, Loom, YouTube, or local files.

    172 GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check: warnings
  • Reconstruct and visually analyze paired agent, game, or policy trajectories to determine whether changed actions produced their intended effects.

    172 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed

Questions about Antislop Codebase

What does Antislop Codebase do?

Diagnose or execute an explicit repository-wide maintainability cleanup while preserving behavior. Antislop Codebase is an agent skill from swyxio/skills. Diagnose or execute an explicit repository-wide maintainability cleanup while preserving behavior.

When should I use Antislop Codebase?

Antislop Codebase fits situations like: asks to antislop a codebase; clean up an overgrown repository; run a substantial structural migration; audit maintainability across a repo.

How do I install Antislop Codebase in Claude Code?

Run `npx skills add swyxio/skills --skill antislop-codebase -a claude-code`. Or copy the skill folder (antislop-codebase in swyxio/skills) into .claude/skills/antislop-codebase in your project. Claude Code loads it when a task matches its description.

How do I install Antislop Codebase in Codex?

Run `npx skills add swyxio/skills --skill antislop-codebase -a codex`. Or copy the skill folder (antislop-codebase in swyxio/skills) into .agents/skills/antislop-codebase in your project. Codex loads it when a task matches its description.

Can I use Antislop Codebase in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add swyxio/skills --skill antislop-codebase -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/antislop-codebase, .gemini/skills/antislop-codebase, .github/skills/antislop-codebase and .opencode/skills/antislop-codebase in your project.

What does Antislop Codebase need to run?

SKILL.md names no scripts, command-line tools or credentials: Antislop Codebase is instructions for the agent only.

Does Antislop Codebase access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Antislop Codebase safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Antislop Codebase use?

Antislop Codebase is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Antislop Codebase use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Antislop Codebase?

Skills that share tags, products or a category with Antislop Codebase: Winui App (LanceMcCarthy/DevOpsExamples, 172 stars), Finalize (zifeo/lade, 133 stars), Rift Backend Effect (Compound-inc/rift, 123 stars) and Sonarqube (686f6c61/alfred-dev, 117 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Antislop Codebase?

swyxio (a GitHub user) maintains it in swyxio/skills, which has 172 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on October 5, 2026.

Source: swyxio/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.