Agent skill · AI & Agents

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 17 KB
Bundled scripts: none
Path: skills/agent/claude-agent-sdk-basher83-lunar-claude/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Overview
  2. Quick Start
  3. Choosing Between query() and ClaudeSDKClient
  4. Quick Comparison
  5. When to Use query()
  6. When to Use ClaudeSDKClient
  7. Advanced: Interrupts with ClaudeSDKClient
  8. Quick Decision Guide
  9. Core Patterns
  10. 1. Orchestrator with Subagents
  11. 2. System Prompt Configuration
  12. 3. Tool Restrictions
  13. 4. Hooks
  14. 5. Permission Callbacks
Ships with 1 file
  • metadata.json
Commands it runs
cp assets/sdk-template.py my-app.py
Edit my-app.py - customize agents and workflow
chmod +x my-app.py
More from claude-skill-registry
All skills →
About this skill
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.

Keep going