API Surface Definition

•
2
•

Defines clean, minimal API surfaces, function signatures, and type definitions from design documents before implementation.

API Surface Definition guides Claude Code to analyze design documents and task specifications holistically to establish an optimal API surface before writing implementation logic. By focusing strictly on module interfaces, function signatures, and types, this skill minimizes API bloat, promotes reusability, and ensures encapsulation. It facilitates an iterative refinement process with the developer, capturing clean contract definitions into temporary or code files to serve as a reliable blueprint for downstream task execution.

主な機能

01Signature-first approach defining types and functions without premature implementation
02Surface minimization through smart reuse and privatization of internal logic
03Interactive refinement loop to align API contracts with user expectations
042 GitHub stars
05Holistic API design across multiple tasks rather than piecemeal interfaces
06Automatic generation of type definitions and signature files for downstream tasks

ユースケース

01Architecting new backend modules or library interfaces from system design docs
02Establishing strong contract definitions and TypeScript/interface definitions prior to team implementation
03Refactoring sprawling monolithic components into clean, encapsulated API boundaries