What problem does it solve?
This Skill streamlines API interactions by providing type safety, automatic request/response transformations, and robust error handling, reducing boilerplate code and potential bugs.
Core Features & Use Cases
- Type-Safe Fetch: Ensures requests and responses match predefined TypeScript or Pydantic models.
- Interceptors: Centralizes logic for authentication, logging, and data transformation (e.g., snake_case to camelCase).
- Automatic Retries: Implements retry logic for transient errors, respecting
Retry-After headers.
- Use Case: When building a new feature that consumes a backend API, use this Skill to create a typed client that automatically adds authentication tokens, logs requests, and retries on 429 errors, ensuring a consistent and reliable integration.
Quick Start
Use the api-client skill to create a typed fetch wrapper for the '/users' endpoint.