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 berekvolgyipeter/dotclaude --skill claude-agent-sdkgit clone --depth 1 https://github.com/berekvolgyipeter/dotclaudeWrote 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/berekvolgyipeter/dotclaude/claude-agent-sdk)<a href="https://agentmods.dev/skills/berekvolgyipeter/dotclaude/claude-agent-sdk"><img src="https://agentmods.dev/badge/skills/berekvolgyipeter/dotclaude/claude-agent-sdk/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/berekvolgyipeter/dotclaude/claude-agent-sdk"><img src="https://agentmods.dev/badge/skills/berekvolgyipeter/dotclaude/claude-agent-sdk.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.00107 | $0.02572 |
| Opus 5 | $0.00053 | $0.01286 |
| Sonnet 5 | $0.00021 | $0.00514 |
| Haiku 4.5 | $0.00011 | $0.00257 |
Grade A, and why
claude-agent-sdk 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 8d 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 — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude Agent SDK
When to Use This Skill
Use this skill when:
- You're building with the Agent SDK in Python (one-off queries, persistent agents, multi-turn conversations)
- You need to decide between API patterns (e.g.,
query()vsClaudeSDKClient, streaming vs buffered) - You're implementing features like custom tools, session management, permissions, or hooks
- You're architecting agent applications (error handling, permissions, cost control, session branching)
- You want working code examples from real SDK code
- You need to troubleshoot Agent SDK issues or understand API behavior
How to Answer SDK Questions
The SDK evolves frequently. The patterns below capture stable concepts, but field names and exact APIs may have moved. Verify concrete API details against the live source before quoting them:
- Refresh the doc index when fetching docs. If you need to consult the official docs to answer (i.e. you'll hit step 1 below), run
bash ~/.claude/skills/claude-agent-sdk/scripts/fetch-agent-sdk-urls.shfirst to rewritereferences/agent-sdk-urls.mdfrom Anthropic's currentllms.txt. Skip the refresh for purely conceptual answers or when the existing snapshot is sufficient. - Check official docs for conceptual explanations: fetch from the URLs listed in agent-sdk-urls.md.
- Search the indexed repo for the feature in question:
mcp__claude-context__search_code( path="~/.claude/skills-references/claude-agent-sdk/claude-agent-sdk-python", query="<feature name or concept>" ) - Browse examples for working usage patterns:
Glob(~/.claude/skills-references/claude-agent-sdk/claude-agent-sdk-python/examples/*.py) - Read specific example files when you find a relevant match — these are the source of truth.
Core Concepts
These concepts are architecturally stable — the names and roles don't change, even if exact field names evolve.
What ships with it
5 files 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.
- 8d ago First seen · 218 lines · 107 tokens per session scan A d3476875c4bd
claude-agent-sdk is a skill published in the GitHub repository berekvolgyipeter/dotclaude (2 stars, last pushed 2d ago), licensed MIT. It adds 107 tokens to every session and 2,572 once invoked, about $0.0005 per session on Opus 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.
Other skills, from other repositories
temporal-python-testing
Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.
fastapi-templates
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
accelerated-computing-cudf
Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.
cuopt-routing-api-python
Vehicle routing (VRP, TSP, PDP) with cuOpt — Python API only. Use when the user is building or solving routing in Python.
mcore-linting-and-formatting
Linting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules.
cuopt-numerical-optimization-api
LP, MILP, and QP (beta) with cuOpt — Python, C, and CLI. Use when the user is solving LP, MILP, or QP with any cuOpt interface.