Install
$ agentstack add skill-xiaolai-anthropic-docs-claude-agent-sdk ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Claude Agent SDK Reference
| | TypeScript | Python | |---|---|---| | Version | v0.3.159 | v0.2.87 | | Package | @anthropic-ai/claude-agent-sdk | claude-agent-sdk (PyPI) | | Docs | TypeScript SDK | Python SDK | | Repo | claude-agent-sdk-typescript | claude-agent-sdk-python | | Full reference | [SKILL-typescript.md](SKILL-typescript.md) | [SKILL-python.md](SKILL-python.md) |
When you detect the user's language
- Working with
.tsfiles, TypeScript imports, ornpm/node→ readSKILL-typescript.md - Working with
.pyfiles, Python imports, orpip/python→ readSKILL-python.md - Ambiguous or multi-language → read both surface files
Cross-Language Naming Map
| Concept | TypeScript | Python | |---------|-----------|--------| | One-shot query | query(options) | query(options) | | Stateful client | N/A (query manages state) | ClaudeSDKClient | | Options type | Options interface | ClaudeAgentOptions dataclass | | Tool definition | tool(name, schema, handler) | @tool(name, desc, schema) decorator | | MCP server factory | createSdkMcpServer() | create_sdk_mcp_server() | | Permission callback | canUseTool | can_use_tool | | Permission mode | permissionMode: "..." | permission_mode="..." | | Hook registration | hooks: { PreToolUse: [...] } | hooks={"PreToolUse": [...]} | | System prompt | systemPrompt | system_prompt | | Max turns | maxTurns | max_turns | | Allowed tools | allowedTools | allowed_tools | | MCP servers | mcpServers | mcp_servers | | Subagent def | AgentDefinition | AgentDefinition dataclass |
Shared Concepts (both languages)
Both SDKs wrap the Claude Code CLI and share these concepts:
- Hooks: Pre/PostToolUse, Stop, SubagentStop, Notification, etc.
- Permissions: default, acceptEdits, plan, bypassPermissions, etc.
- MCP Servers: stdio, HTTP, SSE, SDK (in-process) configurations
- Subagents: Delegate tasks to child agents with scoped tools/permissions
- Structured Outputs: JSON Schema validation on agent output
- Sandbox: Container-based isolation (Docker/Kubernetes)
- Sessions: Capture, resume, fork, and mirror transcripts to external storage (
SessionStore)
For API details, code examples, options tables, and known issues, read the language-specific reference file.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: xiaolai
- Source: xiaolai/anthropic-docs
- License: MIT
- Homepage: https://github.com/xiaolai/autoupdated-anthropic-documentation-knowledge
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.