Skip to content

Improve Codebase Architecture skill

Scan a codebase for deeper design improvements and work through one with you.

Community, verifiedby Matt PocockChecked November 18, 2026

Install Improve Codebase Architecture free

Leave your email and the install steps open right here: one prompt to paste into your AI tool. Works for all 151 skills.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Improve Codebase Architecture is a Claude skill from Matt Pocock's collection that looks for places where your code could be simpler and deeper, shows them in an HTML report, then questions you through the one you pick. How to use it: call it by name in a real codebase with some git history, after installing its three companion skills. On November 8, 2026, with Claude Opus 5.5, it read our 100-line demo checkout in 100 seconds and listed three ideas, two marked Strong. A fresh project gives it little to find. Install steps above are free with one email; our Claude Code course (early access) covers keeping a codebase easy to change.

Who is Improve Codebase Architecture for?

  • Developers
  • Tech leads

What's inside Improve Codebase Architecture

Improve Codebase Architecture is a 71-line SKILL.md plus a 123-line guide to the HTML report it builds; no scripts. It calls three companion skills from the same collection by name (codebase-design, grilling, domain-modeling), so those must be installed too.

When it switches on

It runs only when you call it by name; Claude will not start it on its own.

What the instructions cover

  • Where to look: a subagent with a fresh context walks the area you name, or else the files that change most in the git history
  • A deletion test for thin modules: would removing one gather the complexity in one place, or just move it
  • An HTML report saved to your temp folder, not the project, with before and after diagrams per candidate
  • Candidate cards listing files, problem, fix and gains, with a Strong, Worth exploring or Speculative badge
  • A fixed vocabulary (module, interface, seam, depth, locality) with substitutes like component or service banned
  • Offering ADRs (short decision records) for ideas you reject, so later reviews do not suggest them again

What it needs

  • The companion skills codebase-design, grilling and domain-modeling
  • Internet access to view the report, since its styling (Tailwind) and diagrams (Mermaid) load from the web
FileWhat it is
SKILL.md71 lines: the three steps (explore, report, grill)
HTML-REPORT.md123 lines: page skeleton, five diagram patterns, colors and tone
agents/openai.yaml5 lines: display name and a setting that blocks automatic use

Watch out: The report stays out of your project, but the follow-up session does change it: it adds terms to GLOSSARY.md, creating the file if needed.

How to use Improve Codebase Architecture: which prompts work?

Prompt 1
Find the biggest architecture improvements in [folder or feature] and show them as a report
Prompt 2
Look at our [API layer] and suggest how to make its modules deeper, with before and after diagrams
Prompt 3
Show me refactoring opportunities as a report, then grill me on the strongest one

How do you install Improve Codebase Architecture?

Skills follow the open Agent Skills standard, so this one is not tied to one company. Pick the AI tool you use. Not sure? The first tab covers most of them in one step. New to this? Our guide on how to install Claude skills walks through it, and Anthropic's plugin guide covers the Claude app.

Easiest: paste this into your AI tool
Install this skill for me so it works in every project: run `npx skills add https://github.com/mattpocock/skills/tree/main/skills/engineering/improve-codebase-architecture -g -y` in my terminal. If Node.js is missing, tell me how to install it first. When it's done, confirm the skill is installed and tell me how to start using it.

Or do it yourself:

One command installs the skill: it finds the AI tools on your computer and asks which ones should get it.

npx skills add https://github.com/mattpocock/skills/tree/main/skills/engineering/improve-codebase-architecture -g

You need Node.js installed (free, from nodejs.org). The -g flag makes the skill available in every project.

Good to know: Alternative: npx skills@latest add mattpocock/skills, then include setup-matt-pocock-skills when prompted.

Unlock the install steps

Free. Leave your email once to open the install steps for all 151 skills, and get the best new skills each month.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

How did we check Improve Codebase Architecture?

On November 8, 2026 we read all 3 files in the skill's folder, starting with its 71-line SKILL.md. The section on what's inside comes from those files. Its license is MIT. Its files were last changed in October 2026.

On November 8, 2026 we ran it with Claude Opus 5.5 in Claude Code on a small shop checkout codebase of about 100 lines with a short git history. In 100 seconds it loaded its design vocabulary skill, read the whole codebase itself instead of sending a subagent, and wrote the HTML report with three ideas: two marked Strong (gather the pricing rules into one module, keep money as numbers until the email) and one Speculative. It also found a live bug, every order of $100 or more charged shipping, and ended by asking which idea to explore.

Not a developer? You can still use Improve Codebase Architecture: you say in plain words what should work, Claude Code does the technical part and shows you what it checked. Working that way, from the first install to reading the result, is what our Claude Code course teaches (early access).