antislop-codebase
Skill171 starsChanged 8 months agoMITView on GitHub
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.
In this repository99 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accelevents-apiSkill
- accelevents-speaker-syncSkill
- agents-sdkSkill
- ai-devblogSkill
- ai-engineeringSkill
- ai-readmeSkill
- align-meSkill
- app-ux-paradigmsSkill
- autoreviewSkill
- babysit-runsSkill
- blog-system-designSkill
- cassandra-creatorSkill
- ceo-creatorSkill
- claude-session-introspectSkill
- cli-uxSkill
- cloudflare-do-turn-based-multiplayerSkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflare-production-builderSkill
- cloudflareSkill
- conference-developer-endpointsSkill
- conference-transcribeSkill
- coordinateSkill
- data-chatbotsSkill
- data-visualization-qualitySkill
- deep-trajectory-analysisSkill
- design-apps-with-imagegenSkill
- design-preferencesSkill
- diy-netlifySkill
- download-videoSkill
- download-x-videoSkill
- durable-objectsSkill
- europe-developer-apiSkill
- face-matchingSkill
- forgeSkill
- future-onlySkill
- generalizeSkill
- gsuite-setupSkill
- keep-it-simpleSkill
- latent-space-thumbnail-directorSkill
- live-ai-pipelinesSkill
- location-inputSkill
- long-running-operation-uxSkill
- media-heavy-workflowsSkill
- media-to-wiki-pipelineSkill
- media-transformSkill
- mobile-nativeSkill
- mobile-webapp-uxSkill
- multimodal-extractionSkill
- new-mac-setupSkill
- next-stepsSkill
- observability-hardeningSkill
- person-profile-writingSkill
- podcast-publishing-assistantSkill
- productionize-app-with-servicesSkill
- programmatic-agentsSkill
- provision-model-keysSkill
- public-qa-chatbotSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 20 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to reduce demonstrated maintenance cost while keeping current behavior essentially as-is.
- Distinctive: line 14
Do not expand the scope into a full production-readiness initiative.
- Distinctive: line 20
Prefer deletion and direct code over new layers.
- Distinctive: line 21
Treat file size, folder shape, type coverage, and test count as clues, not targets.
- Distinctive: line 23
Never rewrite active user-owned areas without permission.
- Distinctive: line 24
Use subagents, commits, deployments, screenshots, and audit artifacts only when the user requests them or the migration's scale clearly …
- Distinctive: line 31
Do not add feature folders, shared action layers, runtime schemas, tests, docs, or compatibility surfaces as a completeness checklist.
- Distinctive: line 32
Do not turn a local refactor into a repository migration, productization program, release exercise, or audit presentation.
- Distinctive: line 39
Run a quick non-mutating discovery pass before planning:
- Distinctive: line 44
Read recent commits and docs to avoid undoing active work.
- Distinctive: line 46
If the repo is live or user-facing, preserve compatibility for named live readers and keep changes reversible.
- Distinctive: line 60
Ask the user only for product tradeoffs that cannot be discovered from the repo.
- Distinctive: line 66
Run the narrowest existing checks that establish a useful baseline.
- Distinctive: line 67
If behavior cannot otherwise be preserved confidently, add the smallest high-value characterization test.
- Distinctive: line 68
Add only minimal diagnostics or recoverable error handling needed to make the refactor safe.
- Distinctive: line 80
Keep each slice small enough to test, review, and revert.
- Distinctive: line 82
If the user explicitly requests parallel work, assign independent surfaces and keep hot files single-owner.
- Distinctive: line 90
Run the narrow tests for the touched surface.
- Distinctive: line 92
Run e2e/visual smoke before deploy when UI or production flows changed.
- Distinctive: line 94
Commit or deploy only when the active request includes those actions.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

