api-client
A structured TypeScript API client offering automatic token management and error handling.
Install
mkdir -p .claude/skills/api-client && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6409" && unzip -o skill.zip -d .claude/skills/api-client && rm skill.zipInstalls to .claude/skills/api-client
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Centralized TypeScript API client with typed namespaces, automatic token refresh with request deduplication, TanStack Query integration, and consistent error handling.Key capabilities
- →Centralizes API request logic
- →Handles automatic token refresh
- →Integrates with TanStack Query
- →Standardizes error handling
How it works
The client uses typed namespaces and a centralized request handler to manage API calls, including automatic token refresh and response transformation.
Inputs & outputs
When to use api-client
- →Standardizing API calls across a project
- →Handling automatic OAuth token refreshes
- →Implementing consistent API error management
About api-client
Provides a robust client structure for handling API requests with consistent error logic and token refreshing. Integrates with TanStack Query for state management.
Centralized TypeScript API client with typed namespaces, automatic token refresh with request deduplication, TanStack Query integration, and consistent error handling.
When not to use it
- →When the project does not use TypeScript
- →When the API does not support OAuth token refresh
Prerequisites
Limitations
- →Requires TypeScript/JavaScript environment
- →Requires consistent API response structure
How it compares
It provides a centralized, deduplicated token refresh mechanism, whereas manual fetch calls require repetitive error handling and refresh logic.
Compared to similar skills
api-client side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| api-client (this skill) | 1 | 6mo | Caution | Advanced |
| copilot-sdk | 7 | 4mo | Review | Intermediate |
| create-bubble | 2 | 6mo | Review | Intermediate |
| exa-sdk-patterns | 1 | 26d | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by dadbodgeoff
View all by dadbodgeoff →You might also like
copilot-sdk
github
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.
create-bubble
bubblelabai
Create a new Bubble integration for Bubble Lab following all established patterns and best practices from CREATE_BUBBLE_README.md
exa-sdk-patterns
jeremylongshore
Apply production-ready Exa SDK patterns for TypeScript and Python. Use when implementing Exa integrations, refactoring SDK usage, or establishing team coding standards for Exa. Trigger with phrases like "exa SDK patterns", "exa best practices", "exa code patterns", "idiomatic exa".
generating-api-sdks
jeremylongshore
Generate client SDKs in multiple languages from OpenAPI specifications. Use when generating client libraries for API consumption. Trigger with phrases like "generate SDK", "create client library", or "build API SDK".
openapi-to-typescript
davila7
Converts OpenAPI 3.0 JSON/YAML to TypeScript interfaces and type guards. This skill should be used when the user asks to generate types from OpenAPI, convert schema to TS, create API interfaces, or generate TypeScript types from an API specification.
graphql-schema
ChrisWiles
GraphQL queries, mutations, and code generation patterns. Use when creating GraphQL operations, working with Apollo Client, or generating types.