# Claude API (agent skill)

> Claude API is an agent skill (a SKILL.md file) from anthropics/skills. Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. It works with Claude Code and has 179,945 GitHub stars across a repository of 9 listed skills.

Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, anthropic, @anthropic-ai, claude-, us.anthropic., [1m]); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from…

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/anthropics/skills |
| Skill path | skills/claude-api/SKILL.md |
| Skill name | claude-api |
| GitHub stars | 179,945 |
| Installs on skills.sh | 69,312 |
| License | Apache-2.0 |
| Skills in repo | 9 |
| Plugin marketplace | anthropic-agent-skills |
| Official | yes |
| Works with | Claude Code |
| Category | Coding |
| Last commit | Oct 5, 2026 |

## When it triggers

- "looks like a one-liner"

## Add this skill

### Claude Code

```sh
/plugin marketplace add anthropics/skills
/plugin   # browse anthropic-agent-skills and install the plugin that contains claude-api
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/anthropics/skills.git
cp -r skills/skills/claude-api .agents/skills/claude-api   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/anthropics/skills.git
cp -r skills/skills/claude-api .cursor/skills/claude-api   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

skills.sh listing: https://www.skills.sh/anthropics/skills/claude-api

---

Canonical page: https://appsgit.com/skills/anthropics-claude-api
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
