API and Interface Design
Standardizes the creation of stable, production-grade APIs and module boundaries using industry engineering best practices.
This skill provides Claude with advanced engineering principles for designing robust interfaces, ranging from REST and GraphQL endpoints to internal module contracts and component props. It enforces critical patterns like Hyrum's Law, contract-first development, and consistent error handling to ensure that APIs are easy to use, hard to misuse, and maintainable over time. Whether you are defining a new database schema or refactoring a public interface, this skill ensures your architecture remains stable, backward-compatible, and highly predictable for consumers.
主要功能
01Provides patterns for resource-based design, pagination, and partial updates.
02Implements consistent error semantics and standardized status code mapping.
03Supports TypeScript best practices like discriminated unions and branded types for IDs.
04Enforces Hyrum's Law to prevent unintentional breaking changes and observable leaks.
0557,850 GitHub stars
06Guides contract-first API development for REST, GraphQL, and TypeScript modules.
使用场景
01Refactoring existing module boundaries to improve maintainability and prevent tight coupling.
02Designing new RESTful or GraphQL API endpoints with robust error handling and pagination.
03Defining strict type contracts between frontend and backend systems to enable parallel development.