From ai-eng-core
Designs APIs and module boundaries using contract-first principles, Hyrum's Law, and clear error semantics. Useful for REST, GraphQL, SDKs, and internal interfaces.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-eng-core:api-and-interface-designThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Design APIs and module boundaries with contract-first thinking. Apply Hyrum's Law (all observable behaviors will be depended on), the One-Version Rule (prefer one way to do something), and clear error semantics. Public interfaces deserve more care than internal ones.
Design APIs and module boundaries with contract-first thinking. Apply Hyrum's Law (all observable behaviors will be depended on), the One-Version Rule (prefer one way to do something), and clear error semantics. Public interfaces deserve more care than internal ones.
Define the contract before implementation:
Every observable behavior of your API will eventually be depended on by someone. Design accordingly:
Prefer one way to accomplish a given task:
Errors should be:
Validate all input at system boundaries:
Write the API contract before any implementation:
Review for:
| Rationalization | Reality |
|---|---|
| "I can refine the API after it works" | Breaking changes after adoption are expensive and disruptive. |
| "This is an internal API, it does not matter" | Internal APIs become external APIs the moment another team depends on them. |
| "Adding more parameters is backward compatible" | Adding parameters increases the surface area that consumers may depend on. |
| Excuse | Counter |
|---|---|
| "I'll define the contract as I implement" | Without a contract, implementation drifts. Define it first to catch design flaws early. |
| "This is an internal API, Hyrum's Law doesn't apply" | Internal APIs become external the moment another team depends on them. Design accordingly. |
| "Adding one more endpoint is quick" | Every new endpoint increases the surface area consumers depend on. One-version rule prevents confusion. |
| "Error handling can be added later" | Inconsistent error semantics are hard to retrofit. Define error responses upfront. |
| "The contract tests are too much overhead" | Contract tests catch drift between spec and implementation. They prevent silent breaking changes. |
npx claudepluginhub p/v1truv1us-ai-eng-core-plugins-ai-eng-coreCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
2plugins reuse this skill
First indexed Jul 8, 2026