
API integration
Guides an agent to wire a backend API into an app with fetching, caching and error
API integration is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 13
- Last commit
- License
- MIT
- Listing updated
Similar skills
About API integration
This skill walks the agent through connecting an application to a backend endpoint. It covers defining request and response types, writing plain async API client functions, and wrapping those calls in data-fetching hooks or a service layer. Examples are given for React with TanStack Query, Vue and Angular, and for Python backends using Pydantic, httpx and FastAPI.
The guidance also covers boundary validation of responses with libraries such as Zod or Pydantic, loading, empty and error state handling in components, and optimistic updates. It includes suggested stale time defaults by data type, a cache key factory pattern, and a record-replay approach for deterministic tests against external APIs with secrets redacted from fixtures.
The skill is instruction-only and ships no scripts. It expects the project to already have an HTTP client and state layer, and it asks the agent to finish by running the project's linter, type checker and build. Its examples assume TypeScript or Python.
When your agent uses it
Wire the app to a backend API — data fetching, caching, error handling, loading states. Use when connecting to an endpoint, adding a fetch layer, or fixing API error and loading behaviour. React-query detail lives in tanstack-react-query-patterns.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (13 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the claude-kit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kitOr copy only this skill to ~/.claude/skills/api-integration:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-integration &&
cp -R "$tmp/providers/codex/claude-kit/skills/api-integration" ~/.claude/skills/api-integration &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/api-integration inside it instead.
Copy the skill folder to ~/.agents/skills/api-integration to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/api-integration &&
cp -R "$tmp/providers/codex/claude-kit/skills/api-integration" ~/.agents/skills/api-integration &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/api-integration inside it instead.
Copy the skill folder to ~/.cursor/skills/api-integration to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/api-integration &&
cp -R "$tmp/providers/codex/claude-kit/skills/api-integration" ~/.cursor/skills/api-integration &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/api-integration inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ajyadav013/claude-kit.git --path providers/codex/claude-kit/skills/api-integrationOr copy the folder to ~/.gemini/skills/api-integration yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/api-integration:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-integration &&
cp -R "$tmp/providers/codex/claude-kit/skills/api-integration" ~/.copilot/skills/api-integration &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/api-integration inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ajyadav013/claude-kit.gitThen copy claude-kit/providers/codex/claude-kit/skills/api-integration into your agent's skills folder as api-integration. Agents that support SKILL.md read one folder per skill.
What it does
- Typed API clients
- Covers request and response type definitions and plain async client functions placed in the project's API layer.
- Data-fetching hooks
- Shows query and mutation wrappers with cache key factories and cache invalidation after writes.
- Response validation
- Describes validating API payloads at the boundary using Zod or Pydantic validators.
- Loading and error states
- Gives the component pattern for loading, empty and failed-request states, plus auth error handling.
- Caching defaults
- Suggests stale time values for reference data, dashboards, real-time feeds and user preferences.
- Record-replay testing
- Explains recording real API responses to fixtures with secrets redacted, then replaying them offline.
Good for
- Connect a React screen to a REST endpoint with loading and error states
- Add a typed fetch layer for a new backend resource
- Fix an API call that shows stale data or fails silently
- Set up mutations that refresh the list after a change
- Add response validation so bad payloads fail early
- Write offline tests for code that calls a third-party API
API integration FAQ
What does API integration change in my project?
It guides the agent to add typed API client functions, data-fetching hooks or a service layer, and validation of responses, following the project's existing conventions.
Which stacks does API integration cover?
Its examples cover React with TanStack Query, Vue with Pinia, Angular with RxJS, and Python backends such as FastAPI, using Pydantic and httpx.
Does API integration include scripts?
No. The skill contains only the SKILL.md instructions and a folder README, with no scripts.
Which libraries does API integration require?
It assumes the project already has an HTTP client and a data-fetching or state layer. Its examples use Axios or fetch, TanStack Query, Zod and Pydantic, but the text says to use whatever the project configures.
How do I install API integration in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/api-integration to use it in all your projects, or to .claude/skills/api-integration in one project. Or install the claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.
Does API integration run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use API integration?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to API integration?
The closest alternatives to API integration are Backend patterns, Backend patterns, API design, API and interface design and Backend patterns.
Where this comes from
- Description: from the skill's own SKILL.md.
More from ajyadav013/claude-kit

Guides an agent through pytest, async fixtures and security-regression tests for FastAPI
- Open source
- 13 GitHub stars
- Developer tools

Lets your agent inspect and debug live browser pages via Chrome DevTools MCP
- Open source
- 13 GitHub stars
- Browser automation

Runs concurrent load and stress tests against API endpoints to find latency and throughput
- Open source
- 13 GitHub stars
- Developer tools

Lets an agent click through a feature in a real browser and check how it behaves
- Open source
- 13 GitHub stars
- Developer tools

Runs quick health checks on backend, frontend and login to catch obvious breakage
- Open source
- 13 GitHub stars
- Developer tools

Guides an agent through red-green-refactor, bug reproduction tests and test pyramid
- Open source
- 13 GitHub stars
- Developer tools



