# Codebase design

> Codebase design is an open-source agent skill for developer tools. Gives the agent a shared vocabulary and principles for designing deep, testable modules. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/evist0/okf-matt-skills/tree/main/codebase-design
- **Repository:** https://github.com/evist0/okf-matt-skills
- **GitHub stars:** 18
- **License:** MIT
- **Skill name:** codebase-design
- **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 sets out a glossary for module design, covering modules, interfaces, seams, adapters, depth, leverage and locality. It frames good design as small interfaces that hide a lot of behaviour, and explains how to judge a module by its depth and by whether deleting it would remove complexity or spread it across callers.

It also lists design principles and practical rules for testability, such as passing dependencies in instead of creating them, returning results rather than mutating state, and keeping the interface small. It names terms to avoid, like boundary, component and service, so that the agent uses consistent language across a design discussion.

For deeper work, the skill points to two companion documents: one on deepening a cluster of modules given its dependency categories, and one on generating several radically different interface designs in parallel and comparing them. Examples are written in TypeScript, but the ideas are language-neutral.

## When your agent uses it

> Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

## 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/codebase-design)
- [License: MIT](https://github.com/evist0/okf-matt-skills/tree/HEAD/codebase-design)

## Features

- **Deep module vocabulary:** Defines the core terms such as module, interface, seam, adapter, depth, leverage and locality.
- **Deep versus shallow design:** Explains how to recognise a module whose interface is nearly as complex as its implementation.
- **Deletion test:** Checks whether a module earns its keep by asking where complexity would reappear if it were removed.
- **Testability guidance:** Shows how to accept injected dependencies, return results and keep interface surface area small.
- **Seam placement:** Separates where a seam lives from what sits behind it, and when a seam is actually justified.
- **Companion design guides:** Links to separate guides for deepening module clusters and for exploring several alternative interfaces.

## Good for

- Review an existing module's interface and suggest how to make it deeper
- Decide where a seam should go between two parts of a codebase
- Make a tangled module easier to test through its public interface
- Compare several possible interface designs for the same module
- Restructure code so an AI agent can navigate it more easily

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/codebase-design` 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/codebase-design &&
cp -R "$tmp/codebase-design" ~/.claude/skills/codebase-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/codebase-design` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/codebase-design` 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/codebase-design &&
cp -R "$tmp/codebase-design" ~/.agents/skills/codebase-design &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/codebase-design` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/codebase-design` 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/codebase-design &&
cp -R "$tmp/codebase-design" ~/.cursor/skills/codebase-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/codebase-design` 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 codebase-design
```

Or copy the folder to `~/.gemini/skills/codebase-design` yourself.

### VS Code

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

```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/codebase-design &&
cp -R "$tmp/codebase-design" ~/.copilot/skills/codebase-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/codebase-design` 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/codebase-design` into your agent's skills folder as `codebase-design`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Codebase design trigger?

It is meant for requests to design or improve a module's interface, find deepening opportunities, place a seam, or make code more testable or AI-navigable, and when another skill needs the deep-module vocabulary.

### Does Codebase design run any scripts or need extra tools?

No scripts are included, and it does not set any allowed tools. It consists of instructions and two reference documents.

### What does the skill ask the agent to avoid?

It asks the agent to avoid words such as component, service, API and boundary, and to use the defined terms consistently.

### How do I install Codebase design in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/codebase-design to use it in all your projects, or to .claude/skills/codebase-design in one project.

### Does Codebase design 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 Codebase design?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Codebase design?

The closest alternatives to Codebase design are Codebase design, Oracle codebase design, Deepening review, Architecture rescue and Improve arch.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Codebase design](https://ai-powered.com/skills/codebase-design): Codebase design is an open-source agent skill for design and media.
- [Oracle codebase design](https://ai-powered.com/skills/oracle-codebase-design): Oracle codebase design 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 arch](https://ai-powered.com/skills/improve-arch): Improve arch is an open-source agent skill for developer tools.
- [Improve codebase architecture](https://ai-powered.com/skills/improve-codebase-architecture): Improve codebase architecture is an open-source agent skill for developer tools.
- [API and interface design](https://ai-powered.com/skills/api-and-interface-design-ajyadav013): API and interface design is an open-source agent skill for design and media.
- [Go interface design](https://ai-powered.com/skills/go-interface-design): Go interface design is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/codebase-design-evist0
