claude-agent-sdk
Build custom AI agents using Anthropic Claude API and agent SDK patterns. Create tool-using agents, multi-turn conversations, agent loops, streaming responses, and production-ready agent architectures. Use when building Claude-powered applications, implementing agentic AI features, or developing autonomous task completion systems.
npx skills add majiayu000/claude-skill-registry --skill claude-agent-sdk-housegarofalo-claude-code-base-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Claude Agent SDK: Building AI Agents with Claude Build production-ready AI agents using Claude API patterns for tool use, multi-turn conversations, and autonomous task completion. ## Triggers Use this skill when: - Building Claude-powered AI applications - Implementing tool-using agents - Creating multi-turn conversation systems - Developing autonomous task completion - Building agentic features with Claude - Keywords: claude api, anthropic, agent sdk, tool use, function calling, claude agent, ai agent, autonomous ## Core Concepts ### Claude API Fundamentals ```python import anthropic client = anthropic.Anthropic(api_key="your-api-key") # Basic message response = client.messages.create( model="claude-opus-4-5-20251101", max_tokens=4096, messages=[ {"role": "user", "content": "Hello, Claude!"} ] ) ``` ### Model Selection | Model | Use Case | Context | Speed | |-------|----------|---------|-------| | claude-opus-4-5-20251101 | Complex reasoning, coding | 200K | Slower | | claude-sonnet-4-20250514 | Balanced performance | 200K | Medium | | claude-haiku-3-5-20241022 | Fast responses, simple tasks | 200K | Fast | --- ## Pattern 1: Tool-Using Agent ### Define Tools ```python tools = [
- Triggers
- Core Concepts
- Claude API Fundamentals
- Model Selection
- Pattern 1: Tool-Using Agent
- Define Tools
- Agent Loop
- Tool Execution
- Pattern 2: Streaming Agent
- Stream Responses
- Event Types
- Pattern 3: Multi-Turn Conversation
- Conversation Manager
- With Memory Summarization
What does the claude-agent-sdk skill do?
Build custom AI agents using Anthropic Claude API and agent SDK patterns. Create tool-using agents, multi-turn conversations, agent loops, streaming responses, and production-ready agent architectures. Use when building Claude-powered applications, implementing agentic AI features, or developing autonomous task completion systems.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill claude-agent-sdk-housegarofalo-claude-code-base-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
