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-typescriptgit 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-typescript)<a href="https://agentmods.dev/skills/waltersumbon/claude-agent-sdk-skill/claude-agent-sdk-typescript"><img src="https://agentmods.dev/badge/skills/waltersumbon/claude-agent-sdk-skill/claude-agent-sdk-typescript/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-typescript"><img src="https://agentmods.dev/badge/skills/waltersumbon/claude-agent-sdk-skill/claude-agent-sdk-typescript.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.00133 | $0.03538 |
| Opus 5 | $0.00067 | $0.01769 |
| Sonnet 5 | $0.00027 | $0.00708 |
| Haiku 4.5 | $0.00013 | $0.00354 |
Grade A, and why
claude-agent-sdk-typescript 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 11d 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 — 455 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude Agent SDK — TypeScript Guide
Production guidance for building AI agents with the Claude Agent SDK in TypeScript.
Naming: The Claude Code SDK was renamed to the Claude Agent SDK (v0.1.0+). Package:
npm install @anthropic-ai/claude-agent-sdk· Import:import { query } from "@anthropic-ai/claude-agent-sdk"
Quick Reference — Two Interaction Modes
1. query() — Stateless, One-Shot
Best for: independent tasks, automation scripts, CI pipelines.
import { query, type ClaudeAgentOptions } from "@anthropic-ai/claude-agent-sdk";
const options: ClaudeAgentOptions = {
allowedTools: ["Read", "Edit", "Glob"],
permissionMode: "acceptEdits",
};
for await (const message of query({
prompt: "Review utils.ts for bugs. Fix any issues you find.",
options,
})) {
if (message.type === "assistant") {
for (const block of message.message.content) {
if ("text" in block) console.log(block.text);
else if ("name" in block) console.log(`Tool: ${block.name}`);
}
}
if (message.type === "result") {
console.log(`Done: ${message.subtype}`);
}
}
2. ClaudeSDKClient — Stateful, Multi-Turn
Best for: conversations, follow-up questions, interactive apps.
import { ClaudeSDKClient } from "@anthropic-ai/claude-agent-sdk";
const client = new ClaudeSDKClient({
options: {
allowedTools: ["Read", "Write", "Bash"],
permissionMode: "acceptEdits",
},
});
try {
await client.query("Analyze the codebase structure");
for await (const msg of client.receiveMessages()) {
console.log(msg);
}
// Continue the conversation with context preserved
await client.query("Now refactor the largest file you found");
for await (const msg of client.receiveMessages()) {
console.log(msg);
}
} finally {
await client.close();
}
ClaudeAgentOptions — Complete Configuration
All options are optional. Key fields (all camelCase):
| Field | Type | Description |
|---|---|---|
allowedTools |
string[] |
Tools Claude can use. See Built-in Tools below. |
disallowedTools |
string[] |
Explicitly block specific tools. |
permissionMode |
string |
"default", "acceptEdits", or "bypassPermissions". |
systemPrompt |
string | object |
Custom instructions. Use { type: "preset", preset: "claude_code" } for CC default. |
model |
string |
e.g. "sonnet", "opus", "haiku", or full model string. |
cwd |
string |
Working directory for the agent. |
maxTurns |
number |
Maximum agentic loop iterations. |
settingSources |
string[] |
["user", "project"] to load Skills/CLAUDE.md from filesystem. |
mcpServers |
Record<string, McpServerConfig> |
MCP server configurations. |
agents |
Record<string, AgentDefinition> |
Named subagent definitions. |
hooks |
object |
Lifecycle hook callbacks. |
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.
- 11d ago First seen · 455 lines · 133 tokens per session scan E 4e48101cb24f
claude-agent-sdk-typescript is a skill published in the GitHub repository WalterSumbon/claude-agent-sdk-skill (7 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 133 tokens to every session and 3,538 once invoked, about $0.0007 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
react-component-generator
Generate React components with TypeScript, proper props, hooks, and accessibility. Use when creating new React components, UI elements, or refactoring existing components.
typescript
Apply when writing TypeScript code. Strict types, discriminated unions, async patterns, and runtime safety.
typescript-strict
TypeScript strictness, clean code, and security rules. Use when writing, reviewing, or refactoring TypeScript code in any project. Enforces strict type safety (no any, no as, no unknown abuse), proper error handling patterns, import hygiene, React component conventions, and vulnerability prevention. Derived from 10+…
nestjs-expert
Creates and configures NestJS modules, controllers, services, DTOs, guards, and interceptors for enterprise-grade TypeScript backend applications. Use when building NestJS REST APIs or GraphQL services, implementing dependency injection, scaffolding modular architecture, adding JWT/Passport authentication, integrating…
programming
Applies strict, modern language practice (typed errors, exhaustive match, TDD) for Python, Rust, TypeScript, and Go. Use for work on .py, .rs, .ts, or .go files.
electron-dev
Electron desktop apps with React, TypeScript, and Vite. Use for IPC, window/tray, PTY terminals, WebRTC, and packaging.