claude-agent-sdk
This skill should be used when building applications with the Claude Agent SDK (Python). Use for creating orchestrators with subagents, configuring agents programmatically, setting up hooks and permissions, and following SDK best practices. Trigger when implementing agentic workflows, multi-agent systems, or SDK-based automation.
npx skills add majiayu000/claude-skill-registry --skill claude-agent-sdk-basher83-lunar-claude --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 Build production-ready applications using the Claude Agent SDK for Python. **SDK Version:** This skill targets `claude-agent-sdk>=0.1.6` (Python) ## Overview This skill provides patterns, examples, and best practices for building SDK applications that orchestrate Claude agents. ## Quick Start Copy the template and customize: ```bash cp assets/sdk-template.py my-app.py # Edit my-app.py - customize agents and workflow chmod +x my-app.py ./my-app.py ``` The template includes proper uv script headers, agent definitions, and async patterns. ## Choosing Between query() and ClaudeSDKClient The SDK provides two ways to interact with Claude: the `query()` function for simple one-shot tasks, and `ClaudeSDKClient` for continuous conversations. ### Quick Comparison | Feature | `query()` | `ClaudeSDKClient` | |---------|-----------|-------------------| | **Conversation memory** | No - each call is independent | Yes - maintains context across queries | | **Use case** | One-off tasks, single questions | Multi-turn conversations, complex workflows | | **Complexity** | Simple - one function call | More setup - context manager pattern | | **Hooks support** | No | Yes | | **Custom
- Overview
- Quick Start
- Choosing Between query() and ClaudeSDKClient
- Quick Comparison
- When to Use query()
- When to Use ClaudeSDKClient
- Advanced: Interrupts with ClaudeSDKClient
- Quick Decision Guide
- Core Patterns
- 1. Orchestrator with Subagents
- 2. System Prompt Configuration
- 3. Tool Restrictions
- 4. Hooks
- 5. Permission Callbacks
cp assets/sdk-template.py my-app.py Edit my-app.py - customize agents and workflow chmod +x my-app.py
What does the claude-agent-sdk skill do?
This skill should be used when building applications with the Claude Agent SDK (Python). Use for creating orchestrators with subagents, configuring agents programmatically, setting up hooks and permissions, and following SDK best practices. Trigger when implementing agentic workflows, multi-agent systems, or SDK-based automation.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill claude-agent-sdk-basher83-lunar-claude --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.
