API and Interface Design
Designs robust, backward-compatible REST and GraphQL APIs and TypeScript interfaces using contract-first principles.
The API and Interface Design skill equips Claude Code with architectural guidelines and best practices for creating stable, developer-friendly interfaces. It emphasizes contract-first design, unified error semantics, boundary validation, and non-breaking additive changes to prevent common anti-patterns and reduce integration friction. Whether defining REST endpoints, structuring GraphQL schemas, typing TypeScript contracts, or delineating clean boundaries between frontend and backend systems, this skill ensures interfaces are intuitive, resilient, and hard to misuse.
Key Features
01Standardizes consistent REST resource naming, pagination, and error response shapes
02Enforces contract-first API design and strong typing across system boundaries
03Incorporates Hyrum's Law awareness to avoid leaking implementation details
04Applies strict boundary validation using schema parsers like Zod while trusting internal types
050 GitHub stars
06Provides TypeScript design patterns including discriminated unions and branded types
Use Cases
01Establishing clear type contracts and module boundaries between frontend and backend teams
02Designing new RESTful or GraphQL endpoints and structuring input/output payload types
03Refactoring existing public APIs and interfaces safely without introducing breaking changes