agentleFS
lldxflwblldxflwb/claude-code-skills/skills/agent-sdk/SKILL.md

agent-sdk

Skill28 starsChanged 8 months agoMITView on GitHub

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 the user says "update agent sdk docs" or "更新 agent sdk 文档":

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. SZoloth/claude-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to answer questions about building AI agents with the Agent SDK, including Python and TypeScript API usage, built-in tools, …

    line 4
  2. Distinctive:

    When the user asks about Claude Agent SDK development, API, or configuration

    line 10
  3. Very specific:

    When developing code that imports claude_agent_sdk or @anthropic-ai/claude-agent-sdk

    line 11
  4. Distinctive:

    When the user mentions "agent sdk", "claude agent sdk", or "claude code sdk"

    line 12
  5. Distinctive:

    When building AI agents using the Agent SDK

    line 13
  6. Very specific:

    Read the documentation index at skills/agent-sdk/docs/INDEX.md to understand the available docs

    line 22
  7. Distinctive:

    Always include both Python and TypeScript examples when available in the docs

    line 25
  8. Distinctive:

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

    line 29
  9. Very specific:

    Run the update script: python3 skills/agent-sdk/scripts/update-docs.py

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

TopicFile
Overview & getting starteddocs/overview.md
Quickstart tutorialdocs/quickstart.md
Agent loop internalsdocs/agent-loop.md
Claude Code featuresdocs/claude-code-features.md
Sessions & contextdocs/sessions.md
Streaming inputdocs/streaming-vs-single-mode.md
Streaming outputdocs/streaming-output.md
MCP serversdocs/mcp.md
Custom toolsdocs/custom-tools.md
Tool searchdocs/tool-search.md
Permissionsdocs/permissions.md
User input & approvalsdocs/user-input.md
Hooksdocs/hooks.md
File checkpointingdocs/file-checkpointing.md
Structured outputsdocs/structured-outputs.md
Hostingdocs/hosting.md
Secure deploymentdocs/secure-deployment.md
System promptsdocs/modifying-system-prompts.md
Subagentsdocs/subagents.md
Slash commandsdocs/slash-commands.md
Skillsdocs/skills.md
Cost trackingdocs/cost-tracking.md
Todo listsdocs/todo-tracking.md
Pluginsdocs/plugins.md
TypeScript SDK refdocs/typescript.md
TypeScript V2docs/typescript-v2-preview.md
Python SDK refdocs/python.md
Migration guidedocs/migration-guide.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.