# claude-api

> Builds or debugs Anthropic Claude integrations using @anthropic-ai/sdk, covering messages, tool use, extended thinking, prompt caching, and streaming.

- Skill: `joshuashepherd/claude-api` (Agent Skill)
- Install (CLI): `npx skillmds add joshuashepherd/claude-api`
- Raw SKILL.md: https://api.skillmd.com/api/skills/joshuashepherd/claude-api/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML, Coding & Dev Tools, Agent Building, Prompt Engineering
- Tags: Anthropic, Api Integration, Prompt Caching, Sdk, Streaming, Tool Use
- Author: JoshuaShepherd (https://skillmd.com/u/joshuashepherd)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/joshuashepherd/claude-api

---


# Claude API (Cursor)

## Canonical source

**`.claude/skills/claude-api/SKILL.md`** contains model IDs, message format notes, tool-use loops, caching, and a table of **authoritative docs.anthropic.com URLs**.

## In Cursor

1. Read the canonical skill section for your task (tool use, streaming, caching, etc.).
2. Use **WebFetch** or **WebSearch** on the listed Anthropic URLs when model names or API fields may have changed.
3. Keep client access through `anthropicClient` from `src/lib/ai/clients/anthropic.ts` and `env` from `@/lib/env`.

