improve-codebase
Skill1 starsChanged 4 days agoMITView on GitHub
Scan the codebase for improvement opportunities, present them as a visual HTML report, then plan through whichever one you pick. Use when looking for refactoring opportunities across the whole codebase.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- jmusick/skillstheir own version, first seen Nov 8, 2026
- chrisleekr/skillstheir own version, first seen Nov 6, 2026
- fabiandistler/agentstheir own version, first seen Nov 1, 2026
- ratacat/ratacats-skillstheir own version, first seen Nov 1, 2026
- BuilderIO/builder-agent-skillstheir own version, first seen May 26, 2026
- kimgoetzke/coding-agent-configstheir own version, first seen Apr 30, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- BuilderIO/builder-agent-skills★ 16same name
- ratacat/ratacats-skills★ 9same name
- fabiandistler/agents★ 2same name
- kimgoetzke/coding-agent-configs★ 2same name
- chrisleekr/skills★ 1same name
- jmusick/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- commit-prSkill
- implement-ticketSkill
- jira-ticketSkill
- review-branchSkill
The file
Files
Improve Codebase
Goal: Find global opportunities to improve the codebase, and for each one, propose a concrete change with a side-by-side before/after visualization presented in an HTML report.
Unlike simple mechanical refactors (e.g., renaming a variable, extracting a function), these changes only make sense when the codebase is considered as a whole: how identical concepts are expressed in different places in the code, and how hard individual pieces are to use and understand. Every candidate here requires judgment that cannot be automated by a safe find-and-replace. The report should surface each of these opportunities, argue for a concrete solution, and demonstrate what the code looks like afterwards.
Opportunities come in two directions:
- Across the codebase (consistency). The same idea may be implemented in multiple ways across the codebase, with an older way that lingers and a newer/preferred approach (a shared util, a documented convention, the pattern most new code follows). The question is: should these become one? Sometimes yes - because they model the same concept. Sometimes no - because they only look alike, and merging them couples two things that truly should be separate. The report has to make this case both ways, backed by the actual list of affected locations.
- Within a piece of code (clarity). A part of the codebase is more painful to use or understand than it should be: an extraneous wrapper, a single operation spread across multiple modules, an interface which is as complicated as the implementation. The question is: should this be reshaped so the logic (and any bug in it) lives in one place to read, change, and test - or would that just move the parts around?
Either direction is only worth reporting if it lowers one thing: the cognitive load of working in the code. Five concrete outcomes capture what that means:
- Uniformity - the same thing works the same way everywhere, so it's learned once.
- Navigability - an operation can be followed in one pass instead of chased across many files.
- Testability - behavior is tested through one clear entry point, not scattered pieces wired together.
- Safety - the shape leaves fewer ways to get it wrong; bad states are hard or impossible to express.
- Extensibility - the next change (a new case, variant, or caller) lands in one place, not many.
For each opportunity, the report gives:
- Where - the specific files/places involved (for consistency, the full list; this is the evidence that it's codebase-wide, not a one-off).
- The problem - in plain terms, what makes this painful today.
- The suggested change - a concrete approach, described the way you'd explain it to a colleague, not in design-theory jargon.
- Before / after - a side-by-side diagram showing the current shape and the proposed one.
- Payoff - which outcomes this buys (usually more than one) and how much.
- How sure we are - how strongly this is worth doing, and the argument against it.
Working through the one you pick
Once the report is written, ask which opportunity to pursue and build a concrete implementation plan for it: the deliverable is the plan itself, not a code change. Vet the choice first: run /grill-me if it's available, otherwise challenge it yourself.
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.

