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 latestaiagents/agent-skills --skill agent-sdk-quickstartgit clone --depth 1 https://github.com/latestaiagents/agent-skillsWrote 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/latestaiagents/agent-skills/agent-sdk-quickstart)<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/agent-sdk-quickstart"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/agent-sdk-quickstart.svg" alt="Measured on agentmods" 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.00099 | $0.01411 |
| Opus 5 | $0.00049 | $0.00705 |
| Sonnet 5 | $0.00020 | $0.00282 |
| Haiku 4.5 | $0.00010 | $0.00141 |
Grade C, and why
agent-sdk-quickstart scanned grade C with 1 finding 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 3d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
if (toolName === "bash" && input.command.includes("rm -rf")) { How it starts
The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude Agent SDK — Quickstart
The Claude Agent SDK is Anthropic's framework for building agents. It handles the tool-use loop, context compaction, sub-agent spawning, and MCP integration so you don't reinvent them.
When to Use
- Starting a new agent project
- Migrating from hand-rolled
messages.createloops - Need sub-agent orchestration, compaction, or skills out-of-box
- Building CLI tools, automation, or backend agents
SDK vs Direct API vs Managed Agents
| Approach | Best for | Tradeoff |
|---|---|---|
Direct messages.create |
Simple one-shot calls | You manage everything |
| Agent SDK (client-side) | Custom agents with full control | You run the loop, manage state |
Managed Agents API (/v1/agents) |
Production agents at scale | Anthropic runs the loop server-side |
Use the SDK when you need more control than Managed Agents but don't want to rewrite the tool loop.
Install
TypeScript:
npm i @anthropic-ai/claude-agent-sdk
Python:
pip install claude-agent-sdk
Minimal Agent — TypeScript
import { query } from "@anthropic-ai/claude-agent-sdk";
for await (const message of query({
prompt: "What files are in the current directory?",
options: {
model: "claude-sonnet-4-6",
permissionMode: "default",
},
})) {
if (message.type === "assistant") {
for (const block of message.message.content) {
if (block.type === "text") process.stdout.write(block.text);
}
}
}
Under the hood: the SDK connects to Claude, provides default tools (file read, bash, web fetch), runs the tool-use loop, and streams results back.
Minimal Agent — Python
import asyncio
from claude_agent_sdk import query
async def main():
async for msg in query(
prompt="What files are here?",
options={"model": "claude-sonnet-4-6"},
):
if msg.type == "assistant":
for block in msg.message.content:
if block.type == "text":
print(block.text, end="")
asyncio.run(main())
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.
- 3d ago First seen · 196 lines · 99 tokens per session scan C 6b5ee87134f0
agent-sdk-quickstart is a skill published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 99 tokens to every session and 1,411 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
ai-humanizer-zh
A Chinese writing editor that detects signs of AI-generated prose and rewrites the text to sound more natural.
ai-paywall-cro
A conversion-experiment review assistant for deciding whether a proposed product or marketing change is worth testing.
ai-account-research-sales-card
A sales-growth assistant for understanding why a customer is not moving a deal forward. It uses the information you provide to organize the situation and recommend actions.
ai-account-research
A customer-research assistant for breaking down a potential customer and deciding how to approach them. It uses the materials you provide to shape a sales plan.
ai-amazon-brand-analytics
An Amazon Brand Analytics assistant for working with Amazon brand-analysis tasks. The description does not provide enough detail about its exact data or outputs.
ai-amazon-international-listings
An Amazon localization assistant for checking whether a product listing is written correctly for an overseas market. Localization means adapting language and presentation to a specific country or region.