Claude Agent SDK
Build production agents with the Claude Agent SDK. Covers agent architecture, tool design, hooks, skills, MCP server integration, and the patterns for reliable, long-running agentic workflows.
This skill helps you build agents on the Claude Agent SDK. It structures the agent loop, designs well-scoped tools and their schemas, wires up hooks and skills, integrates MCP servers, manages context and permissions, and applies production patterns for error handling, observability, and long-running multi-step tasks.
When to use
Use when building an agent or agentic workflow with the Claude Agent SDK — designing tools, hooks, skills, MCP integration, and reliable agent loops.
Examples
Scaffold an agent
Set up the agent loop
Build a Claude Agent SDK agent with two custom tools and an MCP server connection, with permission prompts and error handling
Design tools
Write tool schemas
Help me design clear tool definitions and input schemas so the agent reliably picks the right tool and arguments