01
It starts by itself
weekly architecture review. Runs in Claude Code routine.
- ↻ weekly architecture review
0 9 * * 1
Code that gets easier to change each week.
Install the Improve Codebase Architecture skill and make it a habit: follow https://gethabit.dev/skills/mattpocock/improve-codebase-architecture.md
1.2M installs300K starsMIT licenceSource on GitHub ↗

Improve Codebase Architecture
by Matt Pocock · 1.2M installs
The skill
Finds messy parts of your code and helps you make them simpler.
Only when you ask.
Cleaner code
Code that gets easier to change each week. Less time lost on hard-to-test spots.
↻ Runs by itselfevery Monday
When does it start? How does it check its work? What does it remember?
Stops after one report and one picked candidate per run.
Your agent calls the codebase design skill for terms like module, seam, depth and leverage.
It reads GLOSSARY.md and the ADRs in docs/adr/ so it does not reopen settled decisions.
Unless you named an area, it walks git log --oneline to see which files change most.
A sub-agent walks the code, notes friction and applies the deletion test to suspect modules.
It writes a self-contained HTML report with one card and before/after diagram per candidate.
It opens the report and asks which candidate you want to explore.
It calls the grilling skill on your choice and the domain modeling skill to keep GLOSSARY.md current.
If you reject a candidate for a lasting reason, it offers to record that as an ADR.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the Improve Codebase Architecture skill helps.
No. It goes to the OS temp directory, with a new file each run.
Codebase design for the vocabulary, grilling for the interview and domain modeling for the glossary.
No. Interfaces come only after you pick a candidate and the grilling starts.
Copy the prompt at the top into your agent. It installs the skill from mattpocock/skills and sets up the habit. Or run npx skills add mattpocock/skills --skill improve-codebase-architecture.
Yes. It is published under MIT. Habit is free too.
Install the Improve Codebase Architecture skill and make it a habit: follow https://gethabit.dev/skills/mattpocock/improve-codebase-architecture.md
All Matt Pocock skills →More code skills →
Works in
Made by Matt Pocock, published under MIT. Habit links to the original and never changes it. Is this your skill?