
Improve arch
Scans a codebase for shallow modules and proposes deepening refactors with an HTML report
Improve arch is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 18
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Improve arch
This skill walks a codebase to find places where modules are shallow, meaning their interfaces are nearly as complex as their implementations, and where pure functions were split out only for testing while the real bugs sit in how they are called. It applies a deletion test to suspicious modules and ranks the results as candidate refactors, each marked with a recommendation strength.
The findings are written to a self-contained HTML report in the OS temp directory, not the repository. The report uses Tailwind and Mermaid from CDNs, with before and after diagrams for each candidate, a top recommendation, and warnings where a candidate conflicts with a recorded decision. The agent then opens the file and asks which candidate to explore.
After a choice is made, the skill runs a question-by-question design session covering constraints, dependencies, the shape of the deepened module and the tests that would survive. It also keeps a project glossary and decision records up to date as terms and choices settle. It expects a project that keeps a domain glossary and ADRs under a knowledge folder, and it relies on companion skills for the design vocabulary and grilling loop.
When your agent uses it
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (12 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/improve-arch to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/evist0/okf-matt-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/improve-arch &&
cp -R "$tmp/improve-arch" ~/.claude/skills/improve-arch &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/improve-arch inside it instead.
Copy the skill folder to ~/.agents/skills/improve-arch to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/evist0/okf-matt-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/improve-arch &&
cp -R "$tmp/improve-arch" ~/.agents/skills/improve-arch &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/improve-arch inside it instead.
Copy the skill folder to ~/.cursor/skills/improve-arch to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/evist0/okf-matt-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/improve-arch &&
cp -R "$tmp/improve-arch" ~/.cursor/skills/improve-arch &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/improve-arch inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/evist0/okf-matt-skills.git --path improve-archOr copy the folder to ~/.gemini/skills/improve-arch yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/improve-arch:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/evist0/okf-matt-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/improve-arch &&
cp -R "$tmp/improve-arch" ~/.copilot/skills/improve-arch &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/improve-arch inside it instead.
Get the folder:
git clone --depth 1 https://github.com/evist0/okf-matt-skills.gitThen copy okf-matt-skills/improve-arch into your agent's skills folder as improve-arch. Agents that support SKILL.md read one folder per skill.
What it does
- Shallow module detection
- Explores the codebase for modules whose interfaces are nearly as complex as their implementations, and applies a deletion test to each suspect.
- Visual HTML report
- Writes a self-contained report with before and after diagrams, Mermaid graphs and per-candidate recommendation badges.
- Testability focus
- Highlights untested areas and code that is hard to test through its current interface, aiming at better testability.
- ADR conflict flagging
- Marks candidates that contradict existing decision records and surfaces them only when the friction justifies revisiting the decision.
- Guided design grilling
- After a candidate is chosen, walks through constraints, dependencies and the shape of the deepened module one question at a time.
- Glossary and ADR upkeep
- Adds or sharpens domain terms and offers to record rejected candidates as decision records when the reason is load-bearing.
Good for
- Find the modules in my codebase that would be easier to test if they were deepened
- Review the architecture and show me the refactoring candidates in an HTML report
- Walk me through redesigning one shallow module before I start coding
- Check whether a proposed refactor conflicts with our existing architecture decisions
Improve arch FAQ
What does Improve arch need from the project?
It reads a domain glossary in knowledge/glossary/ and decision records in knowledge/adr/ when they exist, and it calls companion skills named codebase-design, grilling and domain-modeling.
Where does the report get saved?
It writes a timestamped HTML file to the OS temp directory so nothing is added to the repository, then opens it and gives the absolute path.
Does Improve arch change code?
The instructions say it proposes candidates first and only moves into a design discussion after the user picks one. Glossary and decision record updates happen inline during that discussion.
When does Improve arch trigger?
Invocation is disabled for the model, so it runs only when the user invokes it directly.
How do I install Improve arch in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/improve-arch to use it in all your projects, or to .claude/skills/improve-arch in one project.
Does Improve arch run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Improve arch?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Improve arch?
The closest alternatives to Improve arch are Improve codebase architecture, Deepening review, Architecture rescue, Improve architecture and Architecture review.
Where this comes from
- Description: from the skill's own SKILL.md.
More from evist0/okf-matt-skills

Gives the agent a shared vocabulary and principles for designing deep, testable modules
- Open source
- 18 GitHub stars
- Developer tools

Guides an agent through a disciplined loop for diagnosing hard bugs and slow regressions
- Open source
- 18 GitHub stars
- Developer tools

Guides an agent to build and sharpen a project's domain model and glossary
- Open source
- 18 GitHub stars
- Developer tools

Interviews you relentlessly to sharpen a plan or design while recording ADRs
- Open source
- 18 GitHub stars
- Developer tools

Makes the agent interview you one question at a time to stress-test a plan
- Open source
- 18 GitHub stars
- Developer tools

Condenses a conversation into a handoff document for another agent to resume
- Open source
- 18 GitHub stars
- Developer tools





