What problem does it solve?
This Skill automates the creation of a complete data layer when integrating APIs into a module, generating type definitions, API contracts, an adapter, and a service layer to wire client code to backend services.
Core Features & Use Cases
- Generates types in types/[resource].types.ts that mirror API payloads (snake_case) and app contracts in types/[resource].contracts.ts (camelCase, correctly typed).
- Scaffolds an adapter in adapters/[resource]-adapter.ts that implements pure, side-effect-free mappings between inbound API payloads and app models, as well as outbound transformations.
- Creates a production-ready service in services/[resource]-service.ts that uses native fetch, with no try/catch blocks and no data transformations, suitable for deterministic API calls.
- Produces a clear separation of concerns: types, contracts, adapters, and services aligned to docs/ARCHITECTURE.md sections 4.1-4.3.
Quick Start
Provide the base API URL and a sample response shape, then run this skill to generate the full data layer.