
Api And Interface Design
Stable API and module-boundary design guide that makes correct usage easy and misuse hard.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 7
- skills.sh installs
- 77.2K
- GitHub stars
- 119.7K
- last updated
- Aug 21, 2026
What it does
- Covers contract-first interface definition, Hyrum's Law, the one-version rule, and predictable naming for REST, GraphQL, and component props
- Includes a consistent error envelope with status-code mapping and validation placed at system boundaries, treating third-party responses as untrusted
- Enforces additive-only changes such as optional fields and no removals or type changes to existing consumers
- Designed for teams defining public APIs, cross-team module contracts, or frontend-backend boundaries
Install
$ npx -y skills add addyosmani/agent-skills --skill api-and-interface-design -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
API and Interface Design
Overview
Design stable, well-documented interfaces that are hard to misuse. Good interfaces make the right thing easy and the wrong thing hard. This applies to REST APIs, GraphQL schemas, module boundaries, component props, and any surface where one piece of code talks to another.
When to Use
- Designing new API endpoints
- Defining module boundaries or contracts between teams
- Creating component prop interfaces
- Establishing database schema that informs API shape
- Changing existing public interfaces
Core Principles
Hyrum's Law
With a sufficient number of users of an API, all observable behaviors of your system will be depended on by somebody, regardless of what you promise in the contract.
This means: every public behavior — including undocumented quirks, error message text, timing, and ordering — becomes a de facto contract once users depend on it. Design implications:
Details
- Repository
- github.com/addyosmani/agent-skills
- Categories
- Backend & APIs, Technical Documentation
- First seen
- Apr 16, 2026
More from addyosmani/agent-skills
All 25- Debugging And Error Recovery77K
- Test Driven Development75.8K
- Context Engineering75.6K
- Incremental Implementation75.5K
- Git Workflow And Versioning73.3K
- Idea Refine72.7K
- Using Agent Skills72.3K
- Browser Testing With Devtools72.1K
- Source Driven Development71.8K
- Shipping And Launch71.8K
- Ci Cd And Automation71.7K
- Interview Me70.9K
- Deprecation And Migration70.7K
- Doubt Driven Development70.2K
- Observability And Instrumentation68.2K
- Constraint Driven Development46.7K
- Code Review And Quality89.3K
- Security And Hardening86.6K
- Frontend Ui Engineering82.8K
- Performance Optimization79.9K
- Spec Driven Development79.3K
- Documentation And Adrs78.1K
- Planning And Task Breakdown78.1K
- Code Simplification77.3K
Similar to Api And Interface Design
More Backend & APIs
api-design-principlessickn33/agentic-awesome-skills824 installsStructured guide for designing REST and GraphQL APIs that stay intuitive and maintainable over time.
api-patternssickn33/agentic-awesome-skills1.1K installsNeutral API design guidance covering endpoint contracts, pagination, versioning, and authentication decisions.
designing-apiscloudai-x/claude-workflow-v2184 installsStructured API design guide covering REST endpoints, GraphQL schemas, versioning, and error handling in a single workflow.
api-design-patternsasyrafhussin/agent-skills1K installsRESTful API design rules covering resources, errors, security, pagination, versioning, and documentation.
api-designyonatangross/orchestkit211 installsAPI contract design for REST and GraphQL covering versioning, RFC 9457 error bodies, and OpenAPI specs.
rest-api-designaj-geddes/useful-ai-prompts2.1K installsGuide for designing RESTful APIs covering resource naming, status codes, versioning, and OpenAPI documentation.