Claude Agent SDK Reference
БесплатноЗапускает вложенные скриптыНе проверенDocument for build custom AI agents with the Claude Agent SDK, include full SDK Reference and Example Codes.
Об этом скилле
Claude Agent SDK Reference
Instructions
Follow this document to develop any custom AI Agent based on Claude Agent SDK, with system prompts, context management, MCP/Tools/Subagents/Slash Commands/Skills Support.
For any detailed information, read the reference document.
Agent SDK overview → See [reference/Agent SDK overview.md](reference/Agent SDK overview.md)
Why use the Claude Agent SDK? What can you build with the SDK?
Agent SDK reference - TypeScript → See [reference/Agent SDK reference - TypeScript.md](reference/Agent SDK reference - TypeScript.md)
Complete API reference for the TypeScript Agent SDK, including all functions, types, and interfaces.
Agent SDK reference - Python → See [reference/Agent SDK reference - Python.md](reference/Agent SDK reference - Python.md)
Complete API reference for the Python Agent SDK, including all functions, types, and classes.
Guides - Streaming Input → See [reference/Streaming Input.md](reference/Streaming Input.md)
Understanding the two input modes for Claude Agent SDK and when to use each. The Claude Agent SDK supports two distinct input modes for interacting with agents: - Streaming Input Mode (Default & Recommended) - A persistent, interactive session - Single Message Input - One-shot queries that use session state and resuming This guide explains the differences, benefits, and use cases for each mode to help you choose the right approach for your application.
Guides - Handling Permissions → See [reference/Handling Permissions.md](reference/Handling Permissions.md)
Control tool usage and permissions in the Claude Agent SDK. The Claude Agent SDK provides powerful permission controls that allow you to manage how Claude uses tools in your application. This guide covers how to implement permission systems using the canUseTool callback, hooks, and settings.json permission rules.
Guides - Session Management → See [reference/Session Management.md](reference/Session Management.md)
Understanding how the Claude Agent SDK handles sessions and session resumption. The Claude Agent SDK provides session management capabilities for handling conversation state and resumption. Sessions allow you to continue conversations across multiple interactions while maintaining full context.
Guides - Hosting the Agent SDK → See [reference/Hosting the Agent SDK.md](reference/Hosting the Agent SDK.md)
Deploy and host Claude Agent SDK in production environments. The Claude Agent SDK differs from traditional stateless LLM APIs in that it maintains conversational state and executes commands in a persistent environment. This guide covers the architecture, hosting considerations, and best practices for deploying SDK-based agents in production.
Guides - Modifying system prompts → See [reference/Modifying system prompts.md](reference/Modifying system prompts.md)
Learn how to customize Claude’s behavior by modifying system prompts using three approaches - output styles, systemPrompt with append, and custom system prompts. System prompts define Claude’s behavior, capabilities, and response style. The Claude Agent SDK provides three ways to customize system prompts: using output styles (persistent, file-based configurations), appending to Claude Code’s prompt, or using a fully custom prompt.
Guides - MCP in the SDK → See [reference/MCP in the SDK.md](reference/MCP in the SDK.md)
Extend Claude Code with custom tools using Model Context Protocol servers. Model Context Protocol (MCP) servers extend Claude Code with custom tools and capabilities. MCPs can run as external processes, connect via HTTP/SSE, or execute directly within your SDK application.
Guides - Custom Tools → See [reference/HCustom Tools.md](reference/Custom Tools.md)
Build and integrate custom tools to extend Claude Agent SDK functionality. Custom tools allow you to extend Claude Code’s capabilities with your own functionality through in-process MCP servers, enabling Claude to interact with external services, APIs, or perform specialized operations.
Guides - Subagents in the SDK → See [reference/Subagents in the SDK.md](reference/Subagents in the SDK.md)
Working with subagents in the Claude Agent SDK.
Subagents in the Claude Agent SDK are specialized AIs that are orchestrated by the main agent. Use subagents for context management and parallelization.
This guide explains how to define and use subagents in the SDK using the agents parameter.
Guides - Slash Commands in the SDK → See [reference/Slash Commands in the SDK.md](reference/Slash Commands in the SDK.md)
Learn how to use slash commands to control Claude Code sessions through the SDK. Slash commands provide a way to control Claude Code sessions with special commands that start with /. These commands can be sent through the SDK to perform actions like clearing conversation history, compacting messages, or getting help.
Guides - Agent Skills in the SDK → See [reference/Agent Skills in the SDK.md](reference/Agent Skills in
Установить Claude Agent SDK Reference в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Claude Agent SDK Reference?
Document for build custom AI agents with the Claude Agent SDK, include full SDK Reference and Example Codes.
Как установить скилл Claude Agent SDK Reference?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Claude Agent SDK Reference запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic