Claude API

Claude API

✓ Verified

Build applications with the Claude API or Anthropic SDK. Covers authentication, streaming, tool use, and the Agent SDK.

Claude / Claude Codetested
DevelopmentDeveloper

What it does

The Anthropic SDK and Claude API evolve quickly. Claude's training data contains older patterns — the pre-SDK direct API calls, deprecated message formats, missing streaming patterns, and Agent SDK usage that doesn't match the current release. This skill loads the current Anthropic SDK patterns: correct client initialisation, streaming with proper error handling, tool use with correctly structured tool definitions, vision input handling, and the Agent SDK for building multi-step agent workflows.

Use case

Building applications on top of the Claude API or Anthropic SDK. The failure mode this prevents: Claude generates API calls that look correct but use a deprecated interface, miss required parameters, or handle streaming incorrectly causing silent failures. Made by Anthropic.

The Prompt

Copy and use immediately
"Build a streaming chat endpoint that passes messages through Claude and returns tokens as they arrive."
"Add tool use to this agent — Claude should be able to search the web and read files."
"Create a multi-turn conversation handler that maintains message history correctly."
"Build an Agent SDK workflow that researches a topic and produces a structured report."
"Why is this streaming response cutting off? Debug the handler."

How to use

  1. 1

    Install in any project building on the Anthropic SDK. Claude uses current API patterns — no deprecated interfaces.

  2. 2

    For tool use: describe what tools you want Claude to have. Claude generates correct tool definitions with proper JSON Schema.

  3. 3

    For the Agent SDK: describe the multi-step workflow. Claude generates the agent loop with correct task management.

Input / Output

Input

A description of the Claude-powered feature you want to build, or existing API integration code to review.

Output

Current Anthropic SDK code: correct client setup, proper streaming implementation, well-structured tool definitions, and Agent SDK usage that matches the current release.

Install via CLI

npx skillsadd anthropics/skills/claude-api
Added 15 Mar 2026Submitted by anthropics👁 35📋 0

Details

Platforms
Claude / Claude Code
Category
Development
License
apache-2.0
Author
Anthropic

Stats

📋 Copies0
👁 Views35
👍 Upvotes0

Install with skills.sh

npx skillsadd anthropics/skills/claude-api

Requires skills.sh CLI

Community Notes

Sign in with GitHub to leave a note.
theskillsdirectory
theskillsdirectoryabout 1 month ago

Share a tip, report and issue or ask a question!