Design Stable API Contract
Design or review an internal, public, HTTP, event, library, or command interface using consumer evidence, invariants, compatibility, error semantics, and evolution rules. Use before implementation or when an interface change could affect independent consumers.
Runs on
Scope
$npx @youdede/toolkit add design-stable-api-contract --target claude-code
What it does
Design an interface contract around consumers, invariants, compatibility, and failure semantics.
When it fires
- planning
- design
- review
How it behaves
It does not invent consumer needs or expose implementation details without a contract reason.
It does not label a breaking change safe because current tests pass.
It does not generate credentials, weaken authorization, or deploy interface changes.
- Version
- 1.4.0
- Licence
- RiskThis skill designs an interface contract around consumers, invariants, compatibility, and failure semantics; it does not label a breaking change safe because current tests pass.
- Medium
- ModeHow it works: fixed rules, model instructions, or both.
- Prompt only
- Behaviour
- Advises, never blocks
- On failure
- Stops and reports
- LatencyThe skill designs an interface contract around consumers, invariants, compatibility, and failure semantics, using sequential evidence and verification steps.
- Bounded
- Data retentionWhether data remains after use and who manages its storage.
- Managed by the runtime
Often used with
All in Development