agent-sdk — AIエージェント开发 agent-sdk, ProrisePromptMinder, community, AIエージェント开发, ide skills, 提示词管理, AI模型集成, 版本回溯, 历史记录查看, 智能生成优质提示词, Claude Code

v1.0.0

关于此技能

适合需要高级提示管理和版本跟踪功能的AI Agent开发人员,使用agent-sdk agent-sdk是一个用于管理和优化提示词的开发工具

功能特性

核心SDK函数:query()、tool()、createSdkMcpServer()
配置选项和用例
Agent定义和子代理模式
工具输入/输出类型
MCP服务器配置:stdio、SSE、HTTP、SDK

# 核心主题

Prorise-cool Prorise-cool
[1]
[0]
更新于: 1/8/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 8/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
8/11
Quality Score
45
Canonical Locale
en
Detected Body Locale
en

适合需要高级提示管理和版本跟踪功能的AI Agent开发人员,使用agent-sdk agent-sdk是一个用于管理和优化提示词的开发工具

核心价值

赋予代理管理和优化其性能的能力,使用`query()`, `tool()`, 和`createSdkMcpServer()`函数,支持配置选项,代理定义和MCP服务器配置,使用stdio, SSE, HTTP和SDK协议

适用 Agent 类型

适合需要高级提示管理和版本跟踪功能的AI Agent开发人员,使用agent-sdk

赋予的主要能力 · agent-sdk

使用版本跟踪和历史记录查看来管理和优化AI代理性能
创建和配置代理定义和子代理模式以实现自定义AI工作流
使用工具输入/输出类型和MCP服务器配置来调试和排除AI代理问题

! 使用限制与门槛

  • 需要TypeScript SDK API和架构的知识
  • 依赖于AGENT_SDK_DOCS.md的配置选项和工具输入/输出类型
  • 仅限于具有agent-sdk专业知识的AI代理开发人员

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

实验室 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

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

agent-sdk 是什么?

适合需要高级提示管理和版本跟踪功能的AI Agent开发人员,使用agent-sdk agent-sdk是一个用于管理和优化提示词的开发工具

如何安装 agent-sdk?

运行命令:npx killer-skills add Prorise-cool/ProrisePromptMinder/agent-sdk。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

agent-sdk 适用于哪些场景?

典型场景包括:使用版本跟踪和历史记录查看来管理和优化AI代理性能、创建和配置代理定义和子代理模式以实现自定义AI工作流、使用工具输入/输出类型和MCP服务器配置来调试和排除AI代理问题。

agent-sdk 支持哪些 IDE 或 Agent?

该技能兼容 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。可使用 Killer-Skills CLI 一条命令通用安装。

agent-sdk 有哪些限制?

需要TypeScript SDK API和架构的知识;依赖于AGENT_SDK_DOCS.md的配置选项和工具输入/输出类型;仅限于具有agent-sdk专业知识的AI代理开发人员。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add Prorise-cool/ProrisePromptMinder/agent-sdk。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    agent-sdk 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Imported Repository Instructions

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Supporting Evidence

agent-sdk

安装 agent-sdk,这是一款面向AI agent workflows and automation的 AI Agent Skill。支持 Claude Code、Cursor、Windsurf,一键安装。

SKILL.md
Readonly
Imported Repository Instructions
The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.
Supporting Evidence

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

相关技能

寻找 agent-sdk 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具