← ClaudeAtlas

api-client-genlisted

Use when you have an OpenAPI/Swagger spec and need to generate a typed API client instead of hand-writing HTTP calls.
NSBen/skillfoundry · ★ 1 · AI & Automation · score 73
Install: claude install-skill NSBen/skillfoundry
# API Client Gen ## When to use Invoke this skill when integrating with a REST API that ships an OpenAPI document, or when HTTP calls are scattered and error-prone. ## Steps 1. Locate the OpenAPI/Swagger spec (local file or URL). 2. Choose a generator or hand-roll a thin client matching the project's stack. 3. Map each operation to a typed method with request/response models. 4. Centralize auth, base URL, retries, and error handling. 5. Emit one usage example per major resource so the caller copy-pastes safely. ## Examples - "Generate a typed client from openapi.yaml" - "Create a fetch-based SDK for this spec" ## References Prefer generated models over `any`; keep the client stateless and let callers own transport config so it stays testable.