Welcome to the documentation for the Code Slob Cleanup project. This project provides an automated toolchain and a packaged skill for coding agents, designed to identify, refactor, and rigorously verify Python code to remove “code slob”—subtle technical debt, unnecessary verbosity, and complexity often introduced by AI coding agents or rapid development.
curl -LsSf https://raw.githubusercontent.com/Jazz23/CodeSlobCleanup/refs/heads/main/install.sh | sh.During the first run, a code-slob-cleanup.json file will be auto-generated in your project root to manage exclusions and track edits for potential reverts. During the cleanup process, a temporary directory .code-slob-tmp will be created. It is recommended to add this to your .gitignore file.
For manual installation:
skills directory.There are multiple workflows you can trigger with natural language. Below is a comprehensive list of example prompts to utilize Code Slob Cleanup:
src/helpers folder” -> The agent will only cleanup the src/helpers folder.test_e2e.py“ -> A Python script will run your provided test script to identify all code that is not covered by the test script and remove it.See exclusions for how to specify functions, files, or folders to ignore during the cleanup process.
Code Slob Cleanup identifies, tests, and applies code refactorings in a rigorous multi-stage workflow.