/engineering:codebase-designfrom engineering
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.
Ships in engineering. 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. Callers get leverage, maintainers get locality.
The vocabulary and the tests below are fixed, because other skills, reports and module names share them. How you apply them to the code in front of you is your own judgement: decide the design, and state the reason.
Use these terms exactly, in designs, reports and names.
Module: anything with an interface and an implementation, at any scale: a function, class, package, or tier-spanning slice. Avoid: unit, component, service.
Interface: everything a caller must know to use the module correctly: the type signature, and also invariants, ordering constraints, error modes, required configuration and performance characteristics. Avoid: API, signature (both name only the type-level surface).
Implementation: the code inside a module.
Depth: leverage at the interface: how much behaviour a caller or test can exercise per unit of interface they have to learn. Deep is a lot of behaviour behind a small interface; shallow is an interface nearly as complex as the implementation. Depth is leverage, not a ratio of implementation lines to interface lines, which would reward padding.
Seam (Michael Feathers): a place where behaviour can be altered without editing in that place; the location where a module's interface lives. Where the seam goes is its own decision, separate from what sits behind it. Avoid: boundary (taken by DDD's bounded context).
Adapter: a concrete thing that satisfies an interface at a seam. It names the role (the slot filled), whatever its size: a Postgres repo and an in-memory fake are both adapters.
Leverage: what callers get from depth: one implementation pays back across N call sites and M tests.
Locality: what maintainers get from depth: change, bugs and knowledge concentrate in one place. Fix once, fixed everywhere.
| Dependency | Examples | Seam and tests |
|---|---|---|
| In-process | pure computation, in-memory state | Merge the modules and test through the new interface. No adapter. |
| Local-substitutable | Postgres via PGLite, in-memory filesystem | Test with the stand-in running. The seam stays internal. |
| Remote but owned | your own services over a network | A port at the seam; the module owns the logic, the transport is an injected adapter (HTTP in production, in-memory in tests). |
| True external | Stripe, Twilio | Injected port; tests supply a mock adapter. |
After deepening, replace, don't layer: write tests at the new interface that assert observable outcomes, and delete the old tests on the shallow modules they cover. A test that must change when the implementation changes is testing past the interface.
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/diagnosing-bugsDiagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow./domain-modelingBuild and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR./improve-codebase-architectureSurvey a codebase for deepening opportunities and return verified, ranked candidates with the top one designed, ready for /plan-this.Other plugins' skills for the same job
npx claudepluginhub pluneto/skills --plugin engineering