
Codebase design
Gives the agent a shared vocabulary and principles for designing deep, testable modules
Codebase design is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 18
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Codebase design
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.
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 3 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/codebase-design 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/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.
Copy the skill folder to ~/.agents/skills/codebase-design 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/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.
Copy the skill folder to ~/.cursor/skills/codebase-design 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/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.
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 codebase-designOr copy the folder to ~/.gemini/skills/codebase-design yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/codebase-design:
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.
Get the folder:
git clone --depth 1 https://github.com/evist0/okf-matt-skills.gitThen 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.
What it does
- 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
Codebase design 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.
More from evist0/okf-matt-skills

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

Guides an agent to implement a spec or ticket set with TDD, review and commit
- Open source
- 18 GitHub stars
- Developer tools





