# Improve arch

> Improve arch is an open-source agent skill for developer tools. Scans a codebase for shallow modules and proposes deepening refactors with an HTML report. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/evist0/okf-matt-skills/tree/main/improve-arch
- **Repository:** https://github.com/evist0/okf-matt-skills
- **GitHub stars:** 18
- **License:** MIT
- **Skill name:** improve-arch
- **Collection:** https://github.com/evist0/okf-matt-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/evist0/okf-matt-skills/tree/HEAD/improve-arch)
- [License: MIT](https://github.com/evist0/okf-matt-skills/tree/HEAD/improve-arch)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/improve-arch` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/improve-arch` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/improve-arch` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/evist0/okf-matt-skills.git --path improve-arch
```

Or copy the folder to `~/.gemini/skills/improve-arch` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/improve-arch`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/evist0/okf-matt-skills.git
```

Then 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.

## 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.

## Alternatives

- [Improve codebase architecture](https://ai-powered.com/skills/improve-codebase-architecture): Improve codebase architecture is an open-source agent skill for developer tools.
- [Deepening review](https://ai-powered.com/skills/deepening-review): Deepening review is an open-source agent skill for developer tools.
- [Architecture rescue](https://ai-powered.com/skills/architecture-rescue): Architecture rescue is an open-source agent skill for developer tools.
- [Improve architecture](https://ai-powered.com/skills/improve-architecture): Improve architecture is an open-source agent skill for developer tools.
- [Architecture review](https://ai-powered.com/skills/architecture-review): Architecture review is an open-source agent skill for developer tools.
- [Oracle codebase design](https://ai-powered.com/skills/oracle-codebase-design): Oracle codebase design is an open-source agent skill for developer tools.
- [Arch review](https://ai-powered.com/skills/arch-review-ramboz): Arch review is an open-source agent skill for developer tools.
- [Refactoring guide](https://ai-powered.com/skills/refactoring-guide): Refactoring guide is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/improve-arch
