API and Interface Design

•
14
•

Designs stable, type-safe, and hard-to-misuse interfaces for REST endpoints, MCP tools, and internal module boundaries.

The API and Interface Design skill provides a rigorous framework for building predictable and maintainable software surfaces. It emphasizes a contract-first approach, ensuring that interfaces are defined before implementation to prevent the leakage of internal details. By applying principles such as Hyrum’s Law and the One-Version Rule, the skill helps developers create robust schemas that are resilient to drift. It enforces strict boundary validation at system edges and promotes consistent error semantics, making it essential for building scalable AI coding agents and complex backend systems.

主な機能

01Strict boundary validation using Zod schemas for untrusted input hardening
0214 GitHub stars
03Contract-first design methodology for predictable API development
04Type-safe patterns including discriminated unions and branded ID types
05Consistent error handling strategies across REST, MCP, and CLI surfaces
06Proactive deprecation planning and backward-compatibility workflows

ユースケース

01Establishing standardized REST API endpoints with unified error envelopes
02Designing new Model Context Protocol (MCP) tool schemas for AI interaction
03Defining immutable public type contracts across different internal package boundaries