Build applications with the Claude API or Anthropic SDK. Covers authentication, streaming, tool use, and the Agent SDK.
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.
"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."
Install in any project building on the Anthropic SDK. Claude uses current API patterns — no deprecated interfaces.
For tool use: describe what tools you want Claude to have. Claude generates correct tool definitions with proper JSON Schema.
For the Agent SDK: describe the multi-step workflow. Claude generates the agent loop with correct task management.
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.
npx skillsadd anthropics/skills/claude-api
npx skillsadd anthropics/skills/claude-api
Requires skills.sh CLI
Build Obsidian.md plugins following official API patterns, TypeScript best practices, and plugin review guidelines.
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Share a tip, report and issue or ask a question!