api-client-genlisted
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.