agent-sdk-definitions
Installation
SKILL.md
Agent SDK Definitions
For SDK-based applications, agents can be defined programmatically instead of as markdown files.
TypeScript Definition
import { query, ClaudeAgentOptions, AgentDefinition } from "@anthropic-ai/claude-agent-sdk";
const options: ClaudeAgentOptions = {
// Parent agent needs Task tool to invoke subagents
allowed_tools: ["Read", "Grep", "Glob", "Edit", "Write", "Bash", "Task"],
agents: {
"code-reviewer": {
description: "Security-focused code reviewer. Use PROACTIVELY for auth code.",
prompt: `You are a security code reviewer specializing in authentication
and authorization code. You identify vulnerabilities, suggest fixes,
and ensure best practices are followed.