# Agent Sdk

> A Claude skill from lldxflwb/claude-code-skills.

- **Type:** Skill
- **Install:** `agentstack add skill-lldxflwb-claude-code-skills-agent-sdk`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [lldxflwb](https://agentstack.voostack.com/s/lldxflwb)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [lldxflwb](https://github.com/lldxflwb)
- **Source:** https://github.com/lldxflwb/claude-code-skills/tree/main/skills/agent-sdk

## Install

```sh
agentstack add skill-lldxflwb-claude-code-skills-agent-sdk
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Claude Agent SDK

Provides local documentation for the Claude Agent SDK (formerly Claude Code SDK).
Use this skill to answer questions about building AI agents with the Agent SDK,
including Python and TypeScript API usage, built-in tools, hooks, subagents, MCP,
sessions, permissions, structured outputs, hosting, deployment, and more.

## When to use

- When the user asks about Claude Agent SDK development, API, or configuration
- When developing code that imports `claude_agent_sdk` or `@anthropic-ai/claude-agent-sdk`
- When the user mentions "agent sdk", "claude agent sdk", or "claude code sdk"
- When building AI agents using the Agent SDK

## When NOT to use

- General Claude API questions that don't involve the Agent SDK
- Claude Code CLI usage questions (use claude-code-guide agent instead)

## Instructions

1. Read the documentation index at `skills/agent-sdk/docs/INDEX.md` to understand the available docs
2. Based on the user's question, read the relevant doc file(s) from `skills/agent-sdk/docs/`
3. Answer the question using the documentation content, providing code examples when appropriate
4. Always include both Python and TypeScript examples when available in the docs

### Documentation update

When the user says "update agent sdk docs" or "更新 agent sdk 文档":

1. Run the update script: `python3 skills/agent-sdk/scripts/update-docs.py`
2. Report how many pages were updated successfully

### Key documentation files

| Topic | File |
|-------|------|
| Overview & getting started | `docs/overview.md` |
| Quickstart tutorial | `docs/quickstart.md` |
| Agent loop internals | `docs/agent-loop.md` |
| Claude Code features | `docs/claude-code-features.md` |
| Sessions & context | `docs/sessions.md` |
| Streaming input | `docs/streaming-vs-single-mode.md` |
| Streaming output | `docs/streaming-output.md` |
| MCP servers | `docs/mcp.md` |
| Custom tools | `docs/custom-tools.md` |
| Tool search | `docs/tool-search.md` |
| Permissions | `docs/permissions.md` |
| User input & approvals | `docs/user-input.md` |
| Hooks | `docs/hooks.md` |
| File checkpointing | `docs/file-checkpointing.md` |
| Structured outputs | `docs/structured-outputs.md` |
| Hosting | `docs/hosting.md` |
| Secure deployment | `docs/secure-deployment.md` |
| System prompts | `docs/modifying-system-prompts.md` |
| Subagents | `docs/subagents.md` |
| Slash commands | `docs/slash-commands.md` |
| Skills | `docs/skills.md` |
| Cost tracking | `docs/cost-tracking.md` |
| Todo lists | `docs/todo-tracking.md` |
| Plugins | `docs/plugins.md` |
| TypeScript SDK ref | `docs/typescript.md` |
| TypeScript V2 | `docs/typescript-v2-preview.md` |
| Python SDK ref | `docs/python.md` |
| Migration guide | `docs/migration-guide.md` |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [lldxflwb](https://github.com/lldxflwb)
- **Source:** [lldxflwb/claude-code-skills](https://github.com/lldxflwb/claude-code-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-lldxflwb-claude-code-skills-agent-sdk
- Seller: https://agentstack.voostack.com/s/lldxflwb
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
