Agent SDK Meta Skill
🚨 MANDATORY: Invoke docs-management First
STOP - Before providing ANY response about Claude Agent SDK:
- INVOKE
docs-management skill
- QUERY using keywords: Agent SDK, TypeScript SDK, Python SDK, sessions, custom tools, permissions, or related topics
- BASE all responses EXCLUSIVELY on official documentation loaded
Skipping this step results in outdated or incorrect information.
Verification Checkpoint
Before responding, verify:
If ANY checkbox is unchecked, STOP and invoke docs-management first.
Overview
Central authority for Claude Agent SDK (TypeScript and Python SDKs). This skill uses 100% delegation to docs-management - it contains NO duplicated official documentation.
Architecture: Pure delegation with keyword registry. All official documentation is accessed via docs-management skill queries.
Reference Loading Guide
This skill follows a pure delegation architecture with three loading layers:
Layer 1: Always in Context
- SKILL.md (this file) - Keyword registry, decision trees, delegation patterns
Layer 2: On-Demand via docs-management
All official Agent SDK documentation is accessed through docs-management queries:
| doc_id |
Topic |
| platform-claude-com-docs-en-agent-sdk-overview |
SDK overview and getting started |
| platform-claude-com-docs-en-agent-sdk-typescript |
TypeScript SDK API reference |
| platform-claude-com-docs-en-agent-sdk-python |
Python SDK API reference |
| platform-claude-com-docs-en-agent-sdk-sessions |
Session management and resumption |
| platform-claude-com-docs-en-agent-sdk-streaming-vs-single-mode |
Input mode selection |
| platform-claude-com-docs-en-agent-sdk-custom-tools |
Creating custom tools |
| platform-claude-com-docs-en-agent-sdk-permissions |
Permission configuration |
| platform-claude-com-docs-en-agent-sdk-modifying-system-prompts |
System prompt customization |
| platform-claude-com-docs-en-agent-sdk-cost-tracking |
Cost and usage tracking |
| platform-claude-com-docs-en-agent-sdk-todo-tracking |
Todo list integration |
| platform-claude-com-docs-en-agent-sdk-structured-outputs |
Structured output features |
| platform-claude-com-docs-en-agent-sdk-hosting |
Production hosting patterns |
| platform-claude-com-docs-en-agent-sdk-mcp |
MCP server integration |
| platform-claude-com-docs-en-agent-sdk-plugins |
Plugin loading |
| platform-claude-com-docs-en-agent-sdk-subagents |
Subagent usage |
| platform-claude-com-docs-en-agent-sdk-skills |
Skills integration |
| platform-claude-com-docs-en-agent-sdk-slash-commands |
Slash command usage |
Layer 3: External Resources (GitHub)
- TypeScript SDK: anthropics/claude-agent-sdk-typescript
- Python SDK: anthropics/claude-agent-sdk-python
Loading Strategy
This skill has no local reference files. All documentation is accessed via docs-management queries using the keyword registry below. This ensures:
- Zero duplication of official documentation
- Always-current information from canonical sources
- Zero maintenance overhead for documentation sync
When to Use This Skill
Keywords: Agent SDK, Claude Agent SDK, TypeScript SDK, Python SDK, npm install claude-agent-sdk, pip install claude-agent-sdk, sessions, session resumption, forking sessions, streaming mode, single mode, custom tools, allowedTools, disallowedTools, permissionMode, system prompts, appendSystemPrompt, outputStyle, CLAUDE.md, settingSources, cost tracking, todo tracking, structured outputs, hosting, plugins SDK, MCP SDK, agent branding
Use this skill when:
- Installing or configuring Claude Agent SDK
- Setting up authentication (API key, Bedrock, Vertex)
- Managing sessions and resumption
- Choosing between streaming and single input modes
- Creating custom tools
- Configuring permissions (allowedTools, disallowedTools)
- Modifying system prompts
- Tracking costs and usage
- Working with todo lists in agents
- Getting structured outputs
- Hosting agents in production
- Integrating MCP with SDK
- Understanding SDK branding requirements
Keyword Registry for docs-management Queries
Use these keywords when querying docs-management skill for official documentation:
SDK Fundamentals
| Topic |
Keywords |
| Overview |
"Agent SDK", "Claude Agent SDK overview", "why use Agent SDK" |
| Installation |
"Agent SDK installation", "npm install claude-agent-sdk", "pip install claude-agent-sdk" |
| SDK Options |
"SDK options", "TypeScript SDK", "Python SDK" |
| Migration |
"Claude Code SDK migration", "migration guide" |
Authentication
| Topic |
Keywords |
| API Key |
"Agent SDK authentication", "ANTHROPIC_API_KEY" |
| Bedrock |
"CLAUDE_CODE_USE_BEDROCK", "Bedrock SDK" |
| Vertex |
"CLAUDE_CODE_USE_VERTEX", "Vertex SDK" |
Sessions
| Topic |
Keywords |
| Session Management |
"session management SDK", "session ID", "getting session ID" |
| Resumption |
"session resumption", "resume option", "continuing sessions" |
| Forking |
"forking sessions", "forkSession", "session branching" |
Input Modes
| Topic |
Keywords |
| Overview |
"streaming vs single mode", "input modes SDK" |
| Streaming Mode |
"streaming input mode", "recommended mode" |
| Single Mode |
"single input mode", "non-streaming" |
Custom Tools
| Topic |
Keywords |
| Creating Tools |
"custom tools SDK", "creating custom tools" |
| Tool Schema |
"tool schema", "tool definition SDK" |
| Tool Handlers |
"tool handlers", "tool execution SDK" |
Permissions
| Topic |
Keywords |
| Tool Permissions |
"allowedTools", "disallowedTools", "tool permissions SDK" |
| Permission Mode |
"permissionMode SDK", "permission strategy" |
| Handling Permissions |
"handling permissions SDK", "permission callbacks" |
System Prompts
| Topic |
Keywords |
| Overview |
"modifying system prompts", "system prompts SDK" |
| CLAUDE.md |
"CLAUDE.md SDK", "settingSources", "project instructions" |
| Append System Prompt |
"appendSystemPrompt", "custom instructions" |
| Output Style |
"outputStyle SDK", "agent persona" |
Cost and Tracking
| Topic |
Keywords |
| Cost Tracking |
"cost tracking SDK", "token usage", "billing SDK" |
| Todo Tracking |
"todo tracking SDK", "todo lists SDK", "task management" |
Structured Outputs
| Topic |
Keywords |
| Structured Outputs |
"structured outputs SDK", "JSON results", "validated outputs" |
| Schema Definition |
"output schema SDK", "result validation" |
Hosting and Deployment
| Topic |
Keywords |
| Hosting Overview |
"hosting Agent SDK", "production deployment" |
| Ephemeral Sessions |
"ephemeral sessions", "pattern 1 hosting" |
| Persistent Sessions |
"persistent sessions", "pattern 2 hosting" |
Plugins and MCP
| Topic |
Keywords |
| Plugins |
"plugins SDK", "loading plugins", "programmatic plugins" |
| MCP Integration |
"MCP SDK", "MCP servers SDK", "extending with MCP" |
Branding
| Topic |
Keywords |
| Branding Guidelines |
"agent branding", "Claude Agent naming", "SDK branding" |
SDK Feature Integration
| Topic |
Keywords |
| Subagents |
"subagents SDK", "SDK subagents", "subagent integration" |
| Skills |
"skills SDK", "SDK skills", "agent skills SDK" |
API Reference
| Topic |
Keywords |
| TypeScript Reference |
"TypeScript SDK reference", "TypeScript API" |
| Python Reference |
"Python SDK reference", "Python API" |
| Changelog |
"SDK changelog", "SDK updates" |
Quick Decision Tree
What do you want to do?
- Install the SDK -> Query docs-management: "Agent SDK installation"
- Set up authentication -> Query docs-management: "Agent SDK authentication"
- Manage sessions -> Query docs-management: "session management SDK", "resume option"
- Fork a session -> Query docs-management: "forking sessions", "forkSession"
- Choose input mode -> Query docs-management: "streaming vs single mode"
- Create custom tools -> Query docs-management: "custom tools SDK"
- Configure permissions -> Query docs-management: "allowedTools", "permissionMode SDK"
- Modify system prompts -> Query docs-management: "modifying system prompts"
- Use CLAUDE.md files -> Query docs-management: "CLAUDE.md SDK", "settingSources"
- Track costs -> Query docs-management: "cost tracking SDK"
- Add todo tracking -> Query docs-management: "todo tracking SDK"
- Get structured outputs -> Query docs-management: "structured outputs SDK"
- Host in production -> Query docs-management: "hosting Agent SDK"
- Use subagents -> Query docs-management: "subagents SDK"
- Integrate skills -> Query docs-management: "skills SDK", "agent skills SDK"
- Add skills (commands) -> Query docs-management: "skills SDK", "SDK commands"
- Load plugins -> Query docs-management: "plugins SDK"
Topic Coverage
SDK Installation and Setup
- npm package: @anthropic-ai/claude-agent-sdk
- pip package: claude-agent-sdk
- TypeScript and Python SDK options
- Migration from Claude Code SDK
Authentication Methods
- ANTHROPIC_API_KEY environment variable
- Amazon Bedrock integration (CLAUDE_CODE_USE_BEDROCK)
- Google Vertex AI integration (CLAUDE_CODE_USE_VERTEX)
- Third-party provider configuration
Session Management Features
- Automatic session creation
- Session ID capture from init message
- Session resumption with resume option
- Forking sessions (forkSession/fork_session)
- Session branching for experimentation
- Context preservation across sessions
Input Mode Configuration
- Streaming input mode (recommended)
- Single input mode
- Mode selection criteria
- Performance considerations
Custom Tool Development
- Tool schema definition
- Tool handler implementation
- Tool registration with SDK
- Tool execution patterns
Permission Configuration
- allowedTools list
- disallowedTools list
- permissionMode settings
- Permission callbacks and handling
System Prompt Customization
- CLAUDE.md file loading (settingSources)
- appendSystemPrompt option
- outputStyle for agent persona
- Project-level vs user-level instructions
Cost and Usage Tracking
- Token usage monitoring
- Billing integration patterns
- Usage reporting
- Cost estimation
Todo List Integration
- Todo tracking API
- Task display and management
- Progress monitoring
- Todo state persistence
Structured Output Features
- Output schema definition
- JSON result validation
- Type-safe results
- TODO tracking agent example
Hosting Patterns
- Ephemeral sessions pattern
- Persistent sessions pattern
- Production deployment strategies
- Scaling considerations
Full Claude Code Features
- Subagents (./.claude/agents/)
- Agent Skills (./.claude/skills/)
- Hooks (./.claude/settings.json)
- Plugins (programmatic loading)
- Memory (CLAUDE.md files)
Branding Requirements
- Allowed naming (Claude Agent, Claude)
- Not permitted naming (Claude Code)
- Product branding guidelines
Delegation Patterns
Standard Query Pattern
User asks: "How do I create a custom tool in the Agent SDK?"
1. Invoke docs-management skill
2. Use keywords: "custom tools SDK", "creating custom tools"
3. Load official documentation
4. Provide guidance based EXCLUSIVELY on official docs
Multi-Topic Query Pattern
User asks: "I want to build an agent with sessions, custom tools, and cost tracking"
1. Invoke docs-management skill with multiple queries:
- "session management SDK", "session resumption"
- "custom tools SDK", "creating custom tools"
- "cost tracking SDK", "token usage"
2. Synthesize guidance from official documentation
Troubleshooting Pattern
User reports: "My session resumption isn't working"
1. Invoke docs-management skill
2. Use keywords: "session management SDK", "resume option", "session ID"
3. Check official docs for session patterns
4. Guide user through proper session handling
Troubleshooting Quick Reference
| Issue |
Keywords for docs-management |
| Authentication failing |
"Agent SDK authentication", "ANTHROPIC_API_KEY" |
| Session not resuming |
"session resumption", "resume option" |
| Custom tool not working |
"custom tools SDK", "tool handlers" |
| Permissions blocking |
"allowedTools", "permissionMode SDK" |
| System prompt not loading |
"CLAUDE.md SDK", "settingSources" |
| Cost tracking issues |
"cost tracking SDK", "token usage" |
| Structured output invalid |
"structured outputs SDK", "schema definition" |
| Streaming not working |
"streaming input mode", "streaming vs single" |
Related Skills
Skills that work well with agent-sdk-development:
- docs-management - Primary delegation target; provides all official Agent SDK documentation
- mcp-integration - MCP server configuration; Agent SDK can integrate with MCP servers
- settings-management - Settings configuration; SDK respects Claude Code settings
- hook-management - Hook configuration; SDK supports hooks via programmatic loading
- current-date - Get current UTC date for version history and audit timestamps
Delegation example:
When working with Agent SDK + MCP integration:
1. Use agent-sdk-development for SDK-specific guidance
2. Use mcp-integration for MCP server configuration
3. Both skills delegate to docs-management for official documentation
Additional Resources
For test scenarios, multi-model testing notes, repository-specific guidance, and external references, see:
- references/testing-and-notes.md - Test scenarios, multi-model testing, repository notes, external links
Version History
Last Updated
Date: 2025-11-28
Model: claude-opus-4-5-20251101
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: agent-sdk-development3description: Central authority for Claude Agent SDK (TypeScript and Python SDKs). Covers SDK installation, authentication (Anthropic key, Bedrock, Vertex), sessions and resumption, forking sessions, streaming vs single mode, custom tools, permissions (allowedTools, disallowedTools, permissionMode), MCP integration, system prompts (CLAUDE.md, appendSystemPrompt, outputStyle), cost tracking, todo tracking, structured outputs, hosting patterns, plugins, and SDK branding guidelines. Assists with building custom agents, configuring SDK options, and troubleshooting SDK issues. Delegates 100% to docs-management skill for official documentation. Use when this capability is needed.4---56# Agent SDK Meta Skill78## 🚨 MANDATORY: Invoke docs-management First910> **STOP - Before providing ANY response about Claude Agent SDK:**11>12> 1. **INVOKE** `docs-management` skill13> 2. **QUERY** using keywords: Agent SDK, TypeScript SDK, Python SDK, sessions, custom tools, permissions, or related topics14> 3. **BASE** all responses EXCLUSIVELY on official documentation loaded15>16> **Skipping this step results in outdated or incorrect information.**1718### Verification Checkpoint1920Before responding, verify:2122- [ ] Did I invoke docs-management skill?23- [ ] Did official documentation load?24- [ ] Is my response based EXCLUSIVELY on official docs?2526If ANY checkbox is unchecked, STOP and invoke docs-management first.2728## Overview2930Central authority for Claude Agent SDK (TypeScript and Python SDKs). This skill uses **100% delegation to docs-management** - it contains NO duplicated official documentation.3132**Architecture:** Pure delegation with keyword registry. All official documentation is accessed via docs-management skill queries.3334## Reference Loading Guide3536This skill follows a **pure delegation architecture** with three loading layers:3738### Layer 1: Always in Context3940- **SKILL.md** (this file) - Keyword registry, decision trees, delegation patterns4142### Layer 2: On-Demand via docs-management4344All official Agent SDK documentation is accessed through docs-management queries:4546| doc_id | Topic |47| --- | --- |48| platform-claude-com-docs-en-agent-sdk-overview | SDK overview and getting started |49| platform-claude-com-docs-en-agent-sdk-typescript | TypeScript SDK API reference |50| platform-claude-com-docs-en-agent-sdk-python | Python SDK API reference |51| platform-claude-com-docs-en-agent-sdk-sessions | Session management and resumption |52| platform-claude-com-docs-en-agent-sdk-streaming-vs-single-mode | Input mode selection |53| platform-claude-com-docs-en-agent-sdk-custom-tools | Creating custom tools |54| platform-claude-com-docs-en-agent-sdk-permissions | Permission configuration |55| platform-claude-com-docs-en-agent-sdk-modifying-system-prompts | System prompt customization |56| platform-claude-com-docs-en-agent-sdk-cost-tracking | Cost and usage tracking |57| platform-claude-com-docs-en-agent-sdk-todo-tracking | Todo list integration |58| platform-claude-com-docs-en-agent-sdk-structured-outputs | Structured output features |59| platform-claude-com-docs-en-agent-sdk-hosting | Production hosting patterns |60| platform-claude-com-docs-en-agent-sdk-mcp | MCP server integration |61| platform-claude-com-docs-en-agent-sdk-plugins | Plugin loading |62| platform-claude-com-docs-en-agent-sdk-subagents | Subagent usage |63| platform-claude-com-docs-en-agent-sdk-skills | Skills integration |64| platform-claude-com-docs-en-agent-sdk-slash-commands | Slash command usage |6566### Layer 3: External Resources (GitHub)6768- TypeScript SDK: anthropics/claude-agent-sdk-typescript69- Python SDK: anthropics/claude-agent-sdk-python7071### Loading Strategy7273**This skill has no local reference files.** All documentation is accessed via docs-management queries using the keyword registry below. This ensures:7475- Zero duplication of official documentation76- Always-current information from canonical sources77- Zero maintenance overhead for documentation sync7879## When to Use This Skill8081**Keywords:** Agent SDK, Claude Agent SDK, TypeScript SDK, Python SDK, npm install claude-agent-sdk, pip install claude-agent-sdk, sessions, session resumption, forking sessions, streaming mode, single mode, custom tools, allowedTools, disallowedTools, permissionMode, system prompts, appendSystemPrompt, outputStyle, CLAUDE.md, settingSources, cost tracking, todo tracking, structured outputs, hosting, plugins SDK, MCP SDK, agent branding8283**Use this skill when:**8485- Installing or configuring Claude Agent SDK86- Setting up authentication (API key, Bedrock, Vertex)87- Managing sessions and resumption88- Choosing between streaming and single input modes89- Creating custom tools90- Configuring permissions (allowedTools, disallowedTools)91- Modifying system prompts92- Tracking costs and usage93- Working with todo lists in agents94- Getting structured outputs95- Hosting agents in production96- Integrating MCP with SDK97- Understanding SDK branding requirements9899## Keyword Registry for docs-management Queries100101Use these keywords when querying docs-management skill for official documentation:102103### SDK Fundamentals104105| Topic | Keywords |106| --- | --- |107| Overview | "Agent SDK", "Claude Agent SDK overview", "why use Agent SDK" |108| Installation | "Agent SDK installation", "npm install claude-agent-sdk", "pip install claude-agent-sdk" |109| SDK Options | "SDK options", "TypeScript SDK", "Python SDK" |110| Migration | "Claude Code SDK migration", "migration guide" |111112### Authentication113114| Topic | Keywords |115| --- | --- |116| API Key | "Agent SDK authentication", "ANTHROPIC_API_KEY" |117| Bedrock | "CLAUDE_CODE_USE_BEDROCK", "Bedrock SDK" |118| Vertex | "CLAUDE_CODE_USE_VERTEX", "Vertex SDK" |119120### Sessions121122| Topic | Keywords |123| --- | --- |124| Session Management | "session management SDK", "session ID", "getting session ID" |125| Resumption | "session resumption", "resume option", "continuing sessions" |126| Forking | "forking sessions", "forkSession", "session branching" |127128### Input Modes129130| Topic | Keywords |131| --- | --- |132| Overview | "streaming vs single mode", "input modes SDK" |133| Streaming Mode | "streaming input mode", "recommended mode" |134| Single Mode | "single input mode", "non-streaming" |135136### Custom Tools137138| Topic | Keywords |139| --- | --- |140| Creating Tools | "custom tools SDK", "creating custom tools" |141| Tool Schema | "tool schema", "tool definition SDK" |142| Tool Handlers | "tool handlers", "tool execution SDK" |143144### Permissions145146| Topic | Keywords |147| --- | --- |148| Tool Permissions | "allowedTools", "disallowedTools", "tool permissions SDK" |149| Permission Mode | "permissionMode SDK", "permission strategy" |150| Handling Permissions | "handling permissions SDK", "permission callbacks" |151152### System Prompts153154| Topic | Keywords |155| --- | --- |156| Overview | "modifying system prompts", "system prompts SDK" |157| CLAUDE.md | "CLAUDE.md SDK", "settingSources", "project instructions" |158| Append System Prompt | "appendSystemPrompt", "custom instructions" |159| Output Style | "outputStyle SDK", "agent persona" |160161### Cost and Tracking162163| Topic | Keywords |164| --- | --- |165| Cost Tracking | "cost tracking SDK", "token usage", "billing SDK" |166| Todo Tracking | "todo tracking SDK", "todo lists SDK", "task management" |167168### Structured Outputs169170| Topic | Keywords |171| --- | --- |172| Structured Outputs | "structured outputs SDK", "JSON results", "validated outputs" |173| Schema Definition | "output schema SDK", "result validation" |174175### Hosting and Deployment176177| Topic | Keywords |178| --- | --- |179| Hosting Overview | "hosting Agent SDK", "production deployment" |180| Ephemeral Sessions | "ephemeral sessions", "pattern 1 hosting" |181| Persistent Sessions | "persistent sessions", "pattern 2 hosting" |182183### Plugins and MCP184185| Topic | Keywords |186| --- | --- |187| Plugins | "plugins SDK", "loading plugins", "programmatic plugins" |188| MCP Integration | "MCP SDK", "MCP servers SDK", "extending with MCP" |189190### Branding191192| Topic | Keywords |193| --- | --- |194| Branding Guidelines | "agent branding", "Claude Agent naming", "SDK branding" |195196### SDK Feature Integration197198| Topic | Keywords |199| --- | --- |200| Subagents | "subagents SDK", "SDK subagents", "subagent integration" |201| Skills | "skills SDK", "SDK skills", "agent skills SDK" |202203### API Reference204205| Topic | Keywords |206| --- | --- |207| TypeScript Reference | "TypeScript SDK reference", "TypeScript API" |208| Python Reference | "Python SDK reference", "Python API" |209| Changelog | "SDK changelog", "SDK updates" |210211## Quick Decision Tree212213**What do you want to do?**2142151. **Install the SDK** -> Query docs-management: "Agent SDK installation"2162. **Set up authentication** -> Query docs-management: "Agent SDK authentication"2173. **Manage sessions** -> Query docs-management: "session management SDK", "resume option"2184. **Fork a session** -> Query docs-management: "forking sessions", "forkSession"2195. **Choose input mode** -> Query docs-management: "streaming vs single mode"2206. **Create custom tools** -> Query docs-management: "custom tools SDK"2217. **Configure permissions** -> Query docs-management: "allowedTools", "permissionMode SDK"2228. **Modify system prompts** -> Query docs-management: "modifying system prompts"2239. **Use CLAUDE.md files** -> Query docs-management: "CLAUDE.md SDK", "settingSources"22410. **Track costs** -> Query docs-management: "cost tracking SDK"22511. **Add todo tracking** -> Query docs-management: "todo tracking SDK"22612. **Get structured outputs** -> Query docs-management: "structured outputs SDK"22713. **Host in production** -> Query docs-management: "hosting Agent SDK"22814. **Use subagents** -> Query docs-management: "subagents SDK"22915. **Integrate skills** -> Query docs-management: "skills SDK", "agent skills SDK"23016. **Add skills (commands)** -> Query docs-management: "skills SDK", "SDK commands"23117. **Load plugins** -> Query docs-management: "plugins SDK"232233## Topic Coverage234235### SDK Installation and Setup236237- npm package: @anthropic-ai/claude-agent-sdk238- pip package: claude-agent-sdk239- TypeScript and Python SDK options240- Migration from Claude Code SDK241242### Authentication Methods243244- ANTHROPIC_API_KEY environment variable245- Amazon Bedrock integration (CLAUDE_CODE_USE_BEDROCK)246- Google Vertex AI integration (CLAUDE_CODE_USE_VERTEX)247- Third-party provider configuration248249### Session Management Features250251- Automatic session creation252- Session ID capture from init message253- Session resumption with resume option254- Forking sessions (forkSession/fork_session)255- Session branching for experimentation256- Context preservation across sessions257258### Input Mode Configuration259260- Streaming input mode (recommended)261- Single input mode262- Mode selection criteria263- Performance considerations264265### Custom Tool Development266267- Tool schema definition268- Tool handler implementation269- Tool registration with SDK270- Tool execution patterns271272### Permission Configuration273274- allowedTools list275- disallowedTools list276- permissionMode settings277- Permission callbacks and handling278279### System Prompt Customization280281- CLAUDE.md file loading (settingSources)282- appendSystemPrompt option283- outputStyle for agent persona284- Project-level vs user-level instructions285286### Cost and Usage Tracking287288- Token usage monitoring289- Billing integration patterns290- Usage reporting291- Cost estimation292293### Todo List Integration294295- Todo tracking API296- Task display and management297- Progress monitoring298- Todo state persistence299300### Structured Output Features301302- Output schema definition303- JSON result validation304- Type-safe results305- TODO tracking agent example306307### Hosting Patterns308309- Ephemeral sessions pattern310- Persistent sessions pattern311- Production deployment strategies312- Scaling considerations313314### Full Claude Code Features315316- Subagents (./.claude/agents/)317- Agent Skills (./.claude/skills/)318- Hooks (./.claude/settings.json)319- Plugins (programmatic loading)320- Memory (CLAUDE.md files)321322### Branding Requirements323324- Allowed naming (Claude Agent, Claude)325- Not permitted naming (Claude Code)326- Product branding guidelines327328## Delegation Patterns329330### Standard Query Pattern331332```text333User asks: "How do I create a custom tool in the Agent SDK?"3343351. Invoke docs-management skill3362. Use keywords: "custom tools SDK", "creating custom tools"3373. Load official documentation3384. Provide guidance based EXCLUSIVELY on official docs339```340341### Multi-Topic Query Pattern342343```text344User asks: "I want to build an agent with sessions, custom tools, and cost tracking"3453461. Invoke docs-management skill with multiple queries:347 - "session management SDK", "session resumption"348 - "custom tools SDK", "creating custom tools"349 - "cost tracking SDK", "token usage"3502. Synthesize guidance from official documentation351```352353### Troubleshooting Pattern354355```text356User reports: "My session resumption isn't working"3573581. Invoke docs-management skill3592. Use keywords: "session management SDK", "resume option", "session ID"3603. Check official docs for session patterns3614. Guide user through proper session handling362```363364## Troubleshooting Quick Reference365366| Issue | Keywords for docs-management |367| --- | --- |368| Authentication failing | "Agent SDK authentication", "ANTHROPIC_API_KEY" |369| Session not resuming | "session resumption", "resume option" |370| Custom tool not working | "custom tools SDK", "tool handlers" |371| Permissions blocking | "allowedTools", "permissionMode SDK" |372| System prompt not loading | "CLAUDE.md SDK", "settingSources" |373| Cost tracking issues | "cost tracking SDK", "token usage" |374| Structured output invalid | "structured outputs SDK", "schema definition" |375| Streaming not working | "streaming input mode", "streaming vs single" |376377## Related Skills378379**Skills that work well with agent-sdk-development:**380381- **docs-management** - Primary delegation target; provides all official Agent SDK documentation382- **mcp-integration** - MCP server configuration; Agent SDK can integrate with MCP servers383- **settings-management** - Settings configuration; SDK respects Claude Code settings384- **hook-management** - Hook configuration; SDK supports hooks via programmatic loading385- **current-date** - Get current UTC date for version history and audit timestamps386387**Delegation example:**388389```text390When working with Agent SDK + MCP integration:3911. Use agent-sdk-development for SDK-specific guidance3922. Use mcp-integration for MCP server configuration3933. Both skills delegate to docs-management for official documentation394```395396## Additional Resources397398For test scenarios, multi-model testing notes, repository-specific guidance, and external references, see:399400- [references/testing-and-notes.md](references/testing-and-notes.md) - Test scenarios, multi-model testing, repository notes, external links401402## Version History403404- **v1.1.0** (2025-11-27): Comprehensive audit and enhancement405 - Added Reference Loading Guide with explicit doc_id table for all 17 official Agent SDK docs406 - Added Test Scenarios section with 5 common use case scenarios407 - Added Related Skills section documenting skill composition patterns408 - Added Multi-Model Testing Notes section409 - Enhanced Last Verified section with Type B audit metadata410 - Verified keyword registry covers all official SDK documentation411412- **v1.0.0** (2025-11-26): Initial release413 - Pure delegation architecture414 - Comprehensive keyword registry415 - Quick decision tree416 - Topic coverage for all Agent SDK features417 - Troubleshooting quick reference418419---420421## Last Updated422423**Date:** 2025-11-28424**Model:** claude-opus-4-5-20251101425426---427> Converted and distributed by [TomeVault](https://tomevault.io/claim/melodic-software) — claim your Tome and manage your conversions.428<!-- tomevault:4.0:skill_md:2026-04-11 -->