Simplify Codebase
Skill : A reusable method: instructions, procedures, sometimes scripts or templates · requires codex
A skill that proves before it deletes: it hunts down needless complexity in a repository without breaking what is still in use.
The approach is rigorous: for each deletion candidate, the skill looks for who really consumes the code (production, tests, dynamic loading, data formats), what would be lost and which minimal test would reveal a mistake. It knows how to conclude that something should be kept. An audit mode modifies nothing. The documentation is in Chinese, but the skill can be used in French or English.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
In a codebase, needless complexity rarely amounts to a function nobody calls. It can be duplicated state, an abstraction with no owner, an interface only tests use, a compatibility path that no longer matters, or a half-removed feature lingering in a shared file. Deleting these blindly risks breaking something that still serves a purpose.
Simplify Codebase is a skill for Codex, also usable with other agents that support the SKILL.md format. For each deletion candidate, it builds a proof record: where it sits, what maintenance burden it adds, who consumes it (production, tests, dynamic loading, external consumers), the full deletion boundary, what would be lost, and which minimal test would reveal a mistake. It then concludes: delete, merge, keep, or flag that the answer is still unclear.
Two modes combine with two scopes. The read-only audit modifies no file, while the change mode, once authorized, applies the edits, verifies them in layers and delivers an operation receipt with an undo path. The scope can be focused (one subsystem, one state machine) or cover the whole repository, in batches that are validated separately. An interactive HTML cleanup map can accompany the written report on request.
It is meant for teams and developers who want to slim down existing code with an agent without sacrificing public APIs, data formats or compatibility. It is not for anyone looking for an automatic deletion tool or a plain dead-code cleaner: the skill prefers concluding that something should stay over forcing a result, and decisions about still-reachable capabilities remain yours.
What it offers
- ·Builds a proof record for each candidate: location, maintenance burden, consumers, deletion boundary, behavior given up and the minimal test that would reveal an error.
- ·Looks for the real consumers of a piece of code: production, tests, dynamic loading, plugin registration, data formats and consumers outside the repository.
- ·Can conclude that something should be kept when a real consumer exists, the boundary is not established, or the simplification merely moves the complexity elsewhere.
- ·Offers a read-only audit, focused on one subsystem or covering the whole repository, that delivers coverage, ranked candidates, counterexamples and blind spots.
- ·In change mode, applies an authorized edit, verifies it in layers and provides an operation receipt with an executable undo path.
- ·Handles with care public APIs, data formats and migrations, authorization and input validation, concurrency, generated files and still-valid ADRs or RFCs.
- ·Generates an interactive cleanup map on request (HTML, no external font loading), which complements the written report without replacing it.
- ·Gathers and rechecks simplification proposals coming from another branch, a PR or another agent, keeping the evidence rather than the number of candidates.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- codex, any-agent
- Host
- codex
- Licence
- MIT
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Local or cloud depending on use
- Maintenance
- Active
Links and repository checked on 29 November 2026 · added on 29 November 2026
How to install Simplify Codebase
git clone https://github.com/tt-a1i/simplify-codebase.git ~/.codex/skills/simplify-codebase