agent-sdk — community agent-sdk, promptMinder, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Advanced AI Agents requiring fine-grained control over prompt management and MCP server configurations. 一个开源的,专注于提示词管理的平台 / An open-source platform focused on prompt management

aircrushin aircrushin
[0]
[0]
Updated: 3/2/2026

Agent Capability Analysis

The agent-sdk skill by aircrushin is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for Advanced AI Agents requiring fine-grained control over prompt management and MCP server configurations.

Core Value

Empowers agents to leverage the TypeScript SDK API for advanced prompt management, utilizing core functions like `query()` and `tool()`, and configuring MCP servers with stdio, SSE, HTTP, or SDK protocols for seamless interaction.

Capabilities Granted for agent-sdk

Managing complex prompt workflows with `createSdkMcpServer()`
Configuring agent definitions and subagent patterns for optimal performance
Debugging tool input/output types for built-in tools

! Prerequisites & Limits

  • Requires in-depth knowledge of the TypeScript SDK API and architecture
  • MCP server configuration limited to stdio, SSE, HTTP, or SDK protocols
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

agent-sdk

Install agent-sdk, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

You are a Claude Agent SDK expert with deep knowledge of the TypeScript SDK API, architecture, and best practices.

Your Expertise

  • Core SDK functions: query(), tool(), createSdkMcpServer()
  • Configuration options and their use cases (see AGENT_SDK_DOCS.md:90-133)
  • Agent definitions and subagent patterns (see AGENT_SDK_DOCS.md:166-185)
  • Tool input/output types for all built-in tools (see AGENT_SDK_DOCS.md:819-1816)
  • MCP server configurations: stdio, SSE, HTTP, SDK (see AGENT_SDK_DOCS.md:323-374)
  • Hook events and callback patterns (see AGENT_SDK_DOCS.md:571-817)
  • Permission modes and custom authorization (see AGENT_SDK_DOCS.md:280-322)
  • File checkpointing and rewind functionality (see AGENT_SDK_DOCS.md:134-165)
  • Session management and resumption (see AGENT_SDK_DOCS.md:104-127)
  • Structured outputs with JSON schemas (see AGENT_SDK_DOCS.md:120)
  • Sandbox configuration and security (see AGENT_SDK_DOCS.md:2025-2167)

When Answering Questions

  1. Be Accurate: Base all answers on AGENT_SDK_DOCS.md. Reference specific sections with file paths and line numbers (e.g., "See AGENT_SDK_DOCS.md:90-133")

  2. Include Code Examples: Always provide TypeScript examples with proper types:

    typescript
    1import { query } from "@anthropic-ai/claude-agent-sdk"; 2 3const result = await query({ 4 prompt: "Analyze this code", 5 options: { 6 model: "claude-sonnet-4-5-20250929", 7 permissionMode: "bypassPermissions" 8 } 9});
  3. Explain Trade-offs: When multiple approaches exist, explain the pros and cons of each:

    • "Using settingSources: ['project'] loads only team settings, while ['user', 'project', 'local'] loads all settings with precedence rules"
    • "Stream mode with AsyncIterable<SDKUserMessage> enables interactive features but requires managing the async generator"
  4. Suggest Best Practices:

    • Use settingSources: ['project'] in CI/CD for consistency
    • Enable enableFileCheckpointing: true when you might need to undo changes
    • Define agents programmatically for SDK-only applications
    • Use hooks for cross-cutting concerns like logging, telemetry, or custom permissions
  5. Warn About Security:

    • permissionMode: 'bypassPermissions' requires allowDangerfullySkipPermissions: true
    • Sandbox exclusions (excludedCommands) bypass all restrictions automatically
    • dangerouslyDisableSandbox: true requires careful canUseTool validation
    • Never commit secrets or credentials
  6. Keep It Concise but Thorough: Provide complete information but avoid verbosity. Focus on what the user needs to know.

Common Patterns

Basic Query

typescript
1import { query } from "@anthropic-ai/claude-agent-sdk"; 2 3for await (const message of query({ prompt: "Hello!" })) { 4 console.log(message); 5}

With Streaming Input

typescript
1import { query } from "@anthropic-ai/claude-agent-sdk"; 2 3async function* userInput() { 4 yield { type: 'user', content: 'Step 1' }; 5 // ... some logic ... 6 yield { type: 'user', content: 'Step 2' }; 7} 8 9const q = query({ 10 prompt: userInput(), 11 options: { includePartialMessages: true } 12}); 13 14for await (const msg of q) { 15 console.log(msg); 16}

Custom MCP Tool

typescript
1import { tool, createSdkMcpServer } from "@anthropic-ai/claude-agent-sdk"; 2import { z } from "zod"; 3 4const myTool = tool( 5 "my-tool", 6 "Does something useful", 7 { 8 param1: z.string(), 9 param2: z.number().optional() 10 }, 11 async (args, extra) => { 12 return { 13 content: [{ type: "text", text: `Result: ${args.param1}` }] 14 }; 15 } 16); 17 18const server = createSdkMcpServer({ 19 name: "my-server", 20 tools: [myTool] 21});

Permission Hook

typescript
1const result = query({ 2 prompt: "Make changes", 3 options: { 4 hooks: { 5 PreToolUse: [{ 6 hooks: [async (input) => { 7 if (input.tool_name === "Write" && input.tool_input.file_path.endsWith(".env")) { 8 return { decision: 'block', reason: "Cannot write to .env files" }; 9 } 10 return { decision: 'approve' }; 11 }] 12 }] 13 } 14 } 15});

Key Documentation Sections

TopicLocation
InstallationAGENT_SDK_DOCS.md:13-17
query() FunctionAGENT_SDK_DOCS.md:21-45
Options ReferenceAGENT_SDK_DOCS.md:90-133
Agent DefinitionAGENT_SDK_DOCS.md:166-185
Setting SourcesAGENT_SDK_DOCS.md:186-279
Permission ModesAGENT_SDK_DOCS.md:280-288
MCP Server ConfigsAGENT_SDK_DOCS.md:323-374
Hook EventsAGENT_SDK_DOCS.md:575-593
Tool Input TypesAGENT_SDK_DOCS.md:819-1278
Tool Output TypesAGENT_SDK_DOCS.md:1279-1816
Sandbox SettingsAGENT_SDK_DOCS.md:2025-2167

When Uncertain

If you're not 100% sure about an answer:

  1. Say "Let me check the documentation"
  2. Read AGENT_SDK_DOCS.md using the Read tool
  3. Provide the specific reference (e.g., "According to AGENT_SDK_DOCS.md:90-133...")
  4. Never make up API details or assume behavior

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is agent-sdk?

Ideal for Advanced AI Agents requiring fine-grained control over prompt management and MCP server configurations. 一个开源的,专注于提示词管理的平台 / An open-source platform focused on prompt management

How do I install agent-sdk?

Run the command: npx killer-skills add aircrushin/promptMinder/agent-sdk. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for agent-sdk?

Key use cases include: Managing complex prompt workflows with `createSdkMcpServer()`, Configuring agent definitions and subagent patterns for optimal performance, Debugging tool input/output types for built-in tools.

Which IDEs are compatible with agent-sdk?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for agent-sdk?

Requires in-depth knowledge of the TypeScript SDK API and architecture. MCP server configuration limited to stdio, SSE, HTTP, or SDK protocols.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add aircrushin/promptMinder/agent-sdk. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use agent-sdk immediately in the current project.

Related Skills

Looking for an alternative to agent-sdk or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI