Vocabulary

From juanibiapina/dotfiles · View interactive version

Vocabulary is an AI agent skill from the GitHub repository juanibiapina/dotfiles. Shared software design vocabulary (module, interface, depth, seam, adapter, leverage, locality). Use when writing code plans, discussing architecture, or describing how code is structured.

How to use this skill

Skill file

Language

Shared vocabulary for software design. Use these terms exactly — don't substitute "component," "service," "API," or "boundary." Consistent language is the whole point.

Terms

Module

Anything with an interface and an implementation. Deliberately scale-agnostic — applies equally to a function, class, package, or tier-spanning slice.

_Avoid_: unit, component, service.

Interface

Everything a caller must know to use the module correctly. Includes the type signature, but also invariants, ordering constraints, error modes, required configuration, and performance characteristics.

_Avoid_: API, signature (too narrow — those refer only to the type-level surface).

Implementation

What's inside a module — its body of code. Distinct from Adapter: a thing can be a small adapter with a large implementation (a Postgres repo) or a large adapter with a small implementation (an in-memory fake). Reach for "adapter" when the seam is the topic; "implementation" otherwise.

Depth

Leverage at the interface — the amount of behaviour a caller (or test) can exercise per unit of interface they have to learn. A module is deep when a large amount of behaviour sits behind a small interface. A module is shallow when the interface is nearly as complex as the implementation.

Seam _(from Michael Feathers)_

A place where you can alter behaviour without editing in that place. The location at which a module's interface lives. Choosing where to put the seam is its own design decision, distinct from what goes behind it.

_Avoid_: boundary (overloaded with DDD's bounded context).

Adapter

A concrete thing that satisfies an interface at a seam. Describes role (what slot it fills), not substance (what's inside).

Leverage

What callers get from depth. More capability per unit of interface they have to learn. One implementation pays back across N call sites and M tests.

Locality

What maintainers get from depth. Change, bugs, knowledge, and verification concentrate at one place rather than spreading across callers. Fix once, fixed everywhere.

Principles

Relationships

Rejected framings

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.