claude-api
Anthropic's official skill for building with the Claude API and Agent SDK.
- For people who code
- Needs: A coding tool such as Claude Code; the apps it helps you build need an Anthropic account…
What it does
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration.
Instructions the AI follows
This is the skill's own instruction file. It's written for the AI, so it can read like a list of orders. You don't need to read it to use the skill.
This skill helps you build LLM-powered applications with Claude. Choose the right surface based on your needs, detect the project language, then read the relevant language-specific documentation.
Scan the target file (or, if no target file, the prompt and project) for non-Anthropic provider markers - import openai, from openai, langchain_openai, OpenAI(, gpt-4, gpt-5, file names like agent-openai.py or *-generic.py, or any explicit instruction to keep the code provider-neutral. If you find any, stop and tell the user that this skill produces Claude/Anthropic SDK code; ask whether they want to switch the file to Claude or want a non-Claude implementation. Do not edit a non-Anthropic file with Anthropic SDK calls. (Exception: the prompt-audit subcommand is non-interactive and does not stop here - it records non-Anthropic provider markers in its report's stated assumptions and never proposes switching a non-Anthropic file to the Anthropic SDK.)
From skills/claude-api/SKILL.md in anthropics/skills · read from GitHub at commit main
Try it
- 1Add claude-api to your AI
- 2Ask for something like this
Add a Claude-powered summary button to our app, using the official SDK and current model.
Build a small agent with the Claude Agent SDK that can search our docs and answer questions.
Our Claude API costs are high. Check how we call it and add prompt caching where it helps.
Example prompts written from the skill's instructions.
Safety
SafeDetails
All three scanners ran and found nothing that could steal your data or hijack your AI.
What it can do- Runs commands on your computer
- Goes online
- Reads keys or settings
- Asks for wide access to your files
No clear license.
- Scanners
- SkillSpector 2.12.0 · HoneyBadger 0.8.1 · agentscan 1.2.2
- Version scanned
2c5958eanthropics/skills/skills/claude-api- Scanned on
- Nov 9, 2026
- Raw reports
- full report skillspector honeybadger agentscan
- Secret scanNoticed
agentscan: secrets high shared/managed-agents-onboarding-from-url.md:213 Secret-like assignmentContains something that looks like a key or password. (LLM02 Sensitive Information Disclosure)HoneyBadger: ss-sensitive-paths CRITICAL Sensitive path references ([.env .env .env .env .env .env .env ~/.ssh/ id_rsa .env .env ~/.ssh/ id_rsa .env]) combined with external URLs suggest data exfiltrationMentions secret files and also web addresses. (LLM02 Sensitive Information Disclosure)SkillSpector: AS2 HIGH shared/prompt-audit.md:33 MCP Config AccessReads your connector (MCP) settings. (LLM02 Sensitive Information Disclosure) - Dangerous commandsNoticed
agentscan: filesystem medium shared/managed-agents-self-hosted-sandboxes.md:187 permission escalation (chmod 777 / chown)Can delete or overwrite your files. (LLM06 Excessive Agency)agentscan: filesystem medium shared/managed-agents-self-hosted-sandboxes.md:247 permission escalation (chmod 777 / chown)Can delete or overwrite your files. (LLM06 Excessive Agency)agentscan: shell medium curl/managed-agents.md:410 Invokes bashCan run commands on your computer. (LLM06 Excessive Agency) - Network callsNoticed
agentscan: exfil high shared/anthropic-cli.md:24 Environment/command interpolation in URLBuilds web addresses from your settings or commands. (LLM02 Sensitive Information Disclosure)agentscan: exfil medium shared/anthropic-cli.md:24 Environment variable in URLBuilds web addresses from your settings or commands. (LLM02 Sensitive Information Disclosure)agentscan: exfil medium typescript/managed-agents/README.md:81 Environment variable in URLBuilds web addresses from your settings or commands. (LLM02 Sensitive Information Disclosure) - PermissionsNoticed
SkillSpector: AS3 MEDIUM shared/anthropic-cli.md:171 Skill EnumerationLooks up your other installed skills. (LLM06 Excessive Agency)SkillSpector: AS3 MEDIUM shared/managed-agents-onboarding-from-url.md:108 Skill EnumerationLooks up your other installed skills. (LLM06 Excessive Agency)SkillSpector: EA1 MEDIUM shared/managed-agents-quickstarts/performance-tuner.md:52 Unrestricted Tool AccessLets your AI use any tool. (LLM06 Excessive Agency) - Prompt injectionNoticed
SkillSpector: AE1 HIGH SKILL.md:128 Incomplete referenced artifact analysisSkillSpector: AE1 HIGH SKILL.md:200 Incomplete referenced artifact analysisSkillSpector: AE1 HIGH SKILL.md:204 Incomplete referenced artifact analysis - LicenseNoticed
GitHub API: No license found.License is missing or unclear. (LLM03 Supply Chain) - MaintenancePassed
No person has signed this one off yet.
Three open-source scanners (SkillSpector, HoneyBadger, agentscan) check this exact version. Heads up means it could steal your data or hijack your AI. What it can do is listed, not warned about. Scanners miss things.
How we check: only harm earns a Heads up, meaning prompt injection (OWASP LLM01) or data leaks (LLM02), in files the skill ships. Abilities like running commands (LLM06) are listed, not warned about. No AI is used for this step. OWASP
Details
- Stars
- 200kwhole repo
- Last updated
- Nov 16, 2026on GitHub
GitHub numbers are a snapshot from Nov 24, 2026, not live.
Community
Comments
How to add claude-api to Claude
Press Add to your AI at the top of this page and pick Claude, or do it yourself:
- Download the skill. Keep the .zip as it is.
- On Claude's skills page, click +, then Create skill, then Upload a skill.
- Pick the file you downloaded and switch the skill on.
Works on every Claude plan, Free included. Code execution and file creation need to be on in Claude's settings. How to add a skill to Claude, step by step.
In ChatGPT
Skills are on ChatGPT Business, Enterprise, Healthcare and Edu plans. Download the skill. Keep the .zip as it is. In ChatGPT, open Plugins in the sidebar, then the Skills tab, then Create, then Upload from your computer. Pick the file you downloaded. ChatGPT checks it, then it's ready. More on ChatGPT.
For AI apps and agents: the skill's instructions as plain text, at the version we scanned.