/rc:rc-codebase-designfrom rc
Vocabulary for designing deep modules with leverage and locality. Use when deciding where an interface lives and how much it should hide.
Ships in rc. 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.
None: SKILL.md is the whole skill.
Shared vocabulary for designing deep modules: substantial behaviour behind a small interface, placed at a clean seam, verifiable through that interface. Reach for it whenever code structure is being created or reshaped — the goal is leverage for the caller and locality for the maintainer.
This is a reference to consult, not a session to run. rc-tdd uses seam from here to decide where
tests go; rc-implement uses depth to judge whether a new abstraction earned its place;
rc-code-review's delete-list uses the deletion test. It answers the question those skills come
after: where should this interface live, and how much should it hide?
Not this skill: UI and visual craft is rc-interface-design; service boundaries, data ownership and
10x/100x scaling are a rc-council debate. This one is the everyday module.
The terms are the point. Use them literally — they are chosen to avoid words that arrive pre-loaded with someone else's model.
| Term | Means | Say this, not |
|---|---|---|
| module | anything with an interface and an implementation — deliberately scale-agnostic: a function, a class, a package, a slice spanning tiers | unit, component, service |
| interface | everything a caller must know to use it correctly: the type signature plus invariants, ordering constraints, error modes, configuration and performance facts | API, signature — both too narrow |
| implementation | the code inside the module | — |
| depth | leverage at the interface: how much behaviour a caller or a test can exercise per unit of interface they must learn | — |
| seam | a place where you can alter behaviour without editing in that place (Feathers). Where a module's interface lives | boundary — carries DDD baggage |
| adapter | the concrete thing satisfying an interface at a seam. Names a role, not a substance | — |
| leverage | what the caller gains from depth: capability per unit of interface learned | — |
| locality | what the maintainer gains from depth: change, bugs and knowledge concentrate in one place instead of scattering across call sites | — |
A deep module shows a small interface over substantial hidden implementation. A shallow one shows a large interface over almost nothing — the interface nearly restates the implementation, so the caller learns as much as they would have by writing it themselves.
deep shallow
┌────────────┐ ┌──────────────────────────┐
│ interface │ │ interface │
├────────────┴───────┐ ├──────────────────────────┤
│ │ │ implementation │
│ implementation │ └──────────────────────────┘
│ │
└────────────────────┘
Shallow is the default failure mode of code written to be "flexible": every option becomes a parameter, every step becomes a method, and the caller ends up orchestrating what the module should have owned.
When a module reads shallow, ask: can it expose fewer methods? Fewer parameters? Can more of the decision live inside instead of being handed out?
Depth is a property of the interface, not the implementation. A 2000-line module is not deep because it is large. A module may hold internal seams — private, used by its own tests — entirely separate from the external seam it presents.
The deletion test. Delete the module and inline it at every call site. If the complexity
simply vanishes, the module was a pass-through and never earned its place. If the complexity
reappears at each of N callers, it earned it. This is the same instrument the delete-list lens in
rc-code-review uses — here it is applied at design time, before the code exists.
The interface is the test surface. Callers and tests cross the same seam. If a test has to reach past the interface — poking at internals, asserting through a side channel, needing a test-only accessor — that is information about the design, not about the test. The shape is probably wrong.
One adapter is a hypothetical seam; two adapters is a real one. A seam introduced for a variation that does not exist yet is speculative flexibility — the interface with a single implementation that YAGNI names. Wait for the second adapter.
Testability is not a property you add afterward; it is what these three practices produce:
When a change introduces or reshapes structure, name the pieces with these words before arguing about them — most design disagreements dissolve once both sides say which interface they mean and whether the disagreement is about depth or about placement.
The two questions worth asking out loud on any new abstraction: what does the caller no longer have to know? (depth) and has the second adapter actually shown up? (seam).
What SKILL.md sets; muted values are Claude Code's defaults
sonnetmediumnpx claudepluginhub rodolfochicone/rc-project --plugin rc32 skills in this plugin
/rcExplains RC — its skills, agents, hooks and artifacts. Use to learn what RC offers. Do not use to run a workflow step./rc-a11yGuias de acessibilidade (a11y) para web seguindo WCAG 2.2 AA — semântica HTML, ARIA, navegação por teclado, gestão de foco, contraste e leitores de tela. Use ao construir ou revisar UI (componentes, formulários, modais, navegação, tabelas). Não use para acessibilidade de PDF, auditoria jurídica de conformidade, ou design visual sem relação com a11y./rc-axumImplements and reviews Axum 0.8+ APIs in Rust — routing, State, extractors, Tower middleware, typed errors, WebSockets, CORS, timeouts, hardening. Use when building or changing Axum backends, handlers, middleware, or WS endpoints. Do not use for SvelteKit (rc-sveltekit), the SQLx data layer alone (rc-sqlx), or Rust language idioms (rc-rust)./rc-boardDrives a Linear or Jira board through its MCP server as a Product Manager — create, update, or search issues, refine one into a PRD/TechSpec with native child issues, or execute its children with test evidence. Use when working a tracker. Do not use for GitHub Issues, bulk imports, or when no board MCP is configured./rc-codemapBuilds and refreshes per-directory codemap.md as a cheap structure map. Use before exploring a large repo. Do not use to trace one bug./rc-code-reviewReviews a change set on three lenses — standards, spec, delete-list — then fixes what it confirms. Use before a PR. Not for diagnosing bugs.Other plugins' skills for the same job