Skill Issue
← Browse

improve-codebase-architecture

Find and fix the worst structure in a codebase

  • For people who code
  • Nothing to set up
by mattpocock
Add to your AI

What it does

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
mattpocock, in the skill's own instructions
Instructions the AI follows

This is the skill's own instruction file. It's written for the AI, so it can read like a list of orders. You don't need to read it to use the skill.

Instruction file4 min read

Surface architectural friction and propose deepening opportunities: refactors that turn shallow modules into deep ones. The aim is testability and AI-navigability.

This command is _informed_ by the project's domain model and built on a shared design vocabulary:

  • Call the Skill tool with "codebase-design" for the architecture vocabulary (module, interface, depth, seam, adapter, leverage, locality) and its principles (the deletion test, "the interface is the test surface", "one adapter = hypothetical seam, two = real"). Use these terms exactly in every suggestion, and don't drift into "component," "service," "API," or "boundary."
  • The domain language in GLOSSARY.md gives names to good seams; ADRs in docs/adr/ record decisions this command should not re-litigate.

Scope before you scan: YAGNI. Deepening a module pays off by making future changes to it easier, so put extra weight on the parts of the codebase that have recently changed. Decide where to look before you look:

From skills/engineering/improve-codebase-architecture/SKILL.md in mattpocock/skills · read from GitHub at commit 5beb35b

Try it

  1. 1Add improve-codebase-architecture to your AI
  2. 2Ask for something like this
Your AI
  • Scan this codebase for places where modules are too shallow and show me the report. Then grill me on the one you think matters most.

  • Our order code is spread across 9 files. Find the best way to deepen it into one clear module and walk me through the trade-offs.

  • Before we add a second payment provider, look at the current structure and tell me what to fix first.

Example prompts written from the skill's instructions.

Safety

SafeDetails

All three scanners ran and found nothing that could steal your data or hijack your AI.

What it can do
  • Runs commands on your computer
Scanners
SkillSpector 2.12.0 · HoneyBadger 0.8.1 · agentscan 1.2.2
Scanned on
Nov 9, 2026
  • Secret scanPassed
  • Dangerous commandsNoticedSkillSpector: Report recommendation is CAUTION. SkillSpector analysis was partial (reference_missing).
  • Network callsPassed
  • PermissionsPassed
  • Prompt injectionPassed
  • LicensePassed
  • MaintenancePassed
Human review

No person has signed this one off yet.

Reviewer notes (AI, proposed)

nothing found (markdown only; writes its HTML report to the OS temp dir and opens it locally).

An AI reviewer read the files and wrote this. It is not a scan, nobody approved it yet, and it never sets the label above.

Three open-source scanners (SkillSpector, HoneyBadger, agentscan) check this exact version. Heads up means it could steal your data or hijack your AI. What it can do is listed, not warned about. Scanners miss things.

How we check: only harm earns a Heads up, meaning prompt injection (OWASP LLM01) or data leaks (LLM02), in files the skill ships. Abilities like running commands (LLM06) are listed, not warned about. No AI is used for this step. OWASP

Details

Stars
332kwhole repo
Installs
1.3Mon skills.sh
Last updated
Nov 24, 2026on GitHub

GitHub and skills.sh numbers are a snapshot from Nov 24, 2026, not live.

Compared with

Picked from reading the skills, not yet tested head to head.

Our best pick for untangle a messy codebase

It finds the messiest areas, shows before-and-after options in a visual report, then talks one through with you.

Alternativecodebase-design
See every coding pick

Community

Comments

See all Build skills

How to add improve-codebase-architecture to Claude

Press Add to your AI at the top of this page and pick Claude, or do it yourself:

  1. Download the skill. Keep the .zip as it is.
  2. On Claude's skills page, click +, then Create skill, then Upload a skill.
  3. Pick the file you downloaded and switch the skill on.

Works on every Claude plan, Free included. Code execution and file creation need to be on in Claude's settings. How to add a skill to Claude, step by step.

In ChatGPT

Skills are on ChatGPT Business, Enterprise, Healthcare and Edu plans. Download the skill. Keep the .zip as it is. In ChatGPT, open Plugins in the sidebar, then the Skills tab, then Create, then Upload from your computer. Pick the file you downloaded. ChatGPT checks it, then it's ready. More on ChatGPT.

For AI apps and agents: the skill's instructions as plain text, at the version we scanned.