Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add WalterSumbon/claude-agent-sdk-skill --skill claude-agent-sdk-pythongit clone --depth 1 https://github.com/WalterSumbon/claude-agent-sdk-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/waltersumbon/claude-agent-sdk-skill/claude-agent-sdk-python)<a href="https://agentmods.dev/skills/waltersumbon/claude-agent-sdk-skill/claude-agent-sdk-python"><img src="https://agentmods.dev/badge/skills/waltersumbon/claude-agent-sdk-skill/claude-agent-sdk-python/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/waltersumbon/claude-agent-sdk-skill/claude-agent-sdk-python"><img src="https://agentmods.dev/badge/skills/waltersumbon/claude-agent-sdk-skill/claude-agent-sdk-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00120 | $0.03406 |
| Opus 5.5 | $0.00048 | $0.01362 |
| Sonnet 5.5 | $0.00024 | $0.00681 |
| Haiku 4.5 | $0.00012 | $0.00341 |
Grade A, and why
claude-agent-sdk-python scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude Agent SDK — Python Guide
Production guidance for building AI agents with the Claude Agent SDK in Python.
Naming: The Claude Code SDK was renamed to the Claude Agent SDK (v0.1.0+). Package:
pip install claude-agent-sdk· Import:from claude_agent_sdk import ...
Message Types
All message types for type checking and isinstance() checks:
from claude_agent_sdk import (
AssistantMessage, # Claude's text/tool responses
ResultMessage, # Final result with subtype (success/error/cancelled)
SystemMessage, # System events (session_id, etc.)
UserMessage, # User prompts
ToolUseMessage, # Tool invocation requests
ToolResultMessage, # Tool execution results
)
Quick Reference — Two Interaction Modes
1. query() — Stateless, One-Shot
Best for: independent tasks, automation scripts, CI pipelines.
import asyncio
from claude_agent_sdk import query, ClaudeAgentOptions, AssistantMessage, ResultMessage
async def main():
async for message in query(
prompt="Review utils.py for bugs. Fix any issues you find.",
options=ClaudeAgentOptions(
allowed_tools=["Read", "Edit", "Glob"],
permission_mode="acceptEdits",
),
):
if isinstance(message, AssistantMessage):
for block in message.content:
if hasattr(block, "text"):
print(block.text)
elif hasattr(block, "name"):
print(f"Tool: {block.name}")
elif isinstance(message, ResultMessage):
print(f"Done: {message.subtype}")
asyncio.run(main())
2. ClaudeSDKClient — Stateful, Multi-Turn
Best for: conversations, follow-up questions, interactive apps.
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions
async with ClaudeSDKClient(
options=ClaudeAgentOptions(
allowed_tools=["Read", "Write", "Bash"],
permission_mode="acceptEdits",
)
) as client:
await client.query("Analyze the codebase structure")
async for msg in client.receive_messages():
print(msg)
# Continue the conversation with context preserved
await client.query("Now refactor the largest file you found")
async for msg in client.receive_messages():
print(msg)
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 414 lines · 120 tokens per session scan E a1d4a95570a6
claude-agent-sdk-python is a skill published in the GitHub repository WalterSumbon/claude-agent-sdk-skill (8 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 120 tokens to every session and 3,406 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
claude-agent-sdk-python compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| claude-agent-sdk-pythonWalterSumbon/claude-agent-sdk-skill | Skill | 8 | 8mo ago | Apache-2.0 | A | 120 | Claude Code |
| beautifulsoup-parsingMindrally/skills | Skill | 301 | 29d ago | Apache-2.0 | A | 32 | Claude Code |
| analytics-data-analysisMindrally/skills | Skill | 301 | 29d ago | Apache-2.0 | A | 60 | Claude Code |
| data-analysis-jupyterMindrally/skills | Skill | 301 | 29d ago | Apache-2.0 | A | 29 | Claude Code |
| odoo-developmentMindrally/skills | Skill | 301 | 29d ago | Apache-2.0 | A | 21 | Claude Code |
| rest-api-djangoMindrally/skills | Skill | 301 | 29d ago | Apache-2.0 | A | 31 | Claude Code |
| python-uvMindrally/skills | Skill | 301 | 29d ago | Apache-2.0 | A | 21 | Claude Code |