refactor_skills
Agent skills that debloat and optimise code
- Role
- Solo · open source
- Tags
Two agent skills for refactoring, for Claude Code, Codex, Cursor and other agents that load skills.
debloat shrinks code to the least that keeps its behaviour. It pins what the code does first, then deletes dead code and unused dependencies, collapses layers and merges duplicates, pass after pass.
optimize fixes costs that grow with data, such as loading everything into memory, missing pagination, filtering in the frontend, N+1 queries and missing indexes, and measures each fix.
Each skill ships with an evaluation suite: sample projects, a prompt, graders, and hidden checks the run never sees, so a change to the skill is measured and not guessed. The optimize checks run against a real Postgres and a real browser.
npx skills add sianachi/refactor_skills