/codebase-design:codebase-designfrom codebase-design
Shared vocabulary and method for designing deep modules. Use when designing or improving a module's interface, deciding where a seam goes, finding deepening opportunities, making code more testable or AI-navigable, or when the user asks for an architecture review or to improve the codebase architecture. Not for making a specific mistake impossible to write (mistake-proof).
Ships in codebase-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Design deep modules: a lot of behaviour behind a small interface, placed at a clean seam, testable through that interface. Use this language and these principles wherever code is being designed or restructured. The aim is leverage for callers, locality for maintainers, and testability for everyone.
Not for project vocabulary (domain-modeling, if installed), recording a decision (adr-writing), or HTTP API conventions (api-rest-design).
Use these terms exactly. Don't substitute "component", "service", "API" or "boundary"; consistent language is the point.
A module has one interface; depth is measured against it; the seam is where it lives; adapters sit at the seam; depth yields leverage and locality.
When shaping an interface, ask: can it have fewer entry points, simpler parameters, more hidden inside?
processOrder(order, paymentGateway) is testable; a body that calls new StripeGateway() is not.calculateDiscount(cart): Discount beats applyDiscount(cart): void that mutates the cart.interface keyword or a class's public methods: too narrow. It includes every fact a caller must know.references/deepening.md (dependency categories, seam discipline, replace-don't-layer testing).references/design-it-twice.md (parallel subagents design it several radically different ways, then compare).references/architecture-review.md. It scopes by hot spots, explores with the codebase-memory MCP tools, writes an HTML report of deepening candidates (references/html-report.md), then works through the one the user picks. Don't start it unprompted; it is long and writes a file.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin codebase-design