Back to Skills

Claude API

Official

by anthropics

developmentbeginner
claudeanthropicsdkapillmagentspythontypescriptai-development

The claude-api skill connects Claude Code directly to Anthropic's SDK and API surface. When it detects Claude-related imports in your project, it guides you through the right integration tier — from simple single-shot API calls to full autonomous agent systems with file, web, and terminal access. No more digging through docs to figure out which SDK method you actually need.

Installation

claude skills add https://github.com/anthropics/skills/tree/main/skills/claude-api

Key Features

  • Detects Claude SDK imports and auto-suggests the correct integration surface
  • Guides tier selection: single API calls → multi-step workflows → full agent systems
  • Supports all major languages: Python, TypeScript, Java, Go, Ruby, C#, PHP, cURL
  • Covers batch processing, streaming, file uploads, and context compaction
  • Works with all Claude models: Opus 4.6 (200K context), Sonnet 4.6, Haiku 4.5
  • Includes Agent SDK path for autonomous agents with file/web/terminal access

Use Cases

  • Single LLM calls for text classification, summarization, or Q&A
  • Multi-step workflows requiring code-orchestrated tool use
  • Autonomous agents with file system, web, and shell access
  • Batch processing large datasets at reduced API cost
  • Streaming responses for real-time UI applications

Related Resources

Weekly AI Digest