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.zip

Installs 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.
167 charsno explicit “when” trigger
Advanced

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

You give it
API endpoint and request parameters
You get back
Typed API response

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

TypeScript/JavaScript environment

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.

SkillInstallsUpdatedSafetyDifficulty
api-client (this skill)16moCautionAdvanced
copilot-sdk74moReviewIntermediate
create-bubble26moReviewIntermediate
exa-sdk-patterns126dReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

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.

763

create-bubble

bubblelabai

Create a new Bubble integration for Bubble Lab following all established patterns and best practices from CREATE_BUBBLE_README.md

23

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".

14

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".

13

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.

13

graphql-schema

ChrisWiles

GraphQL queries, mutations, and code generation patterns. Use when creating GraphQL operations, working with Apollo Client, or generating types.

12

Search skills

Search the agent skills registry