AgentSkillsCN

spoon-agent-development

适用于常见Web3应用场景的现成智能体应用模板。当您需要使用SpoonOS框架构建交易机器人、NFT铸造器、DAO助理、投资组合经理,或研究智能体时,可使用此功能。

SKILL.md
--- frontmatter
name: spoon-agent-development
description: Build AI agents with SpoonReactMCP. Use when creating custom agents, configuring tool chains, designing system prompts, or implementing concurrent agent patterns.

Agent Development

Build AI agents using the Spoon AI ReAct framework.

Agent Hierarchy

code
SpoonReactSkill  → Skills + x402 Payments
    ↓
SpoonReactMCP   → MCP Tool Integration
    ↓
SpoonReactAI    → Base ReAct + Tool Calling
    ↓
ToolCallAgent   → Tool Execution
    ↓
BaseAgent       → Pydantic Foundation

Quick Start

python
from spoon_ai.agents import SpoonReactMCP
from spoon_ai.chat import ChatBot
from spoon_ai.tools import ToolManager
from spoon_ai.tools.mcp_tool import MCPTool

# Create agent with MCP tool
agent = SpoonReactMCP(
    name="my_agent",
    llm=ChatBot(model_name="gpt-4o"),
    tools=ToolManager([MCPTool(...)]),
    max_steps=15
)

await agent.initialize()
result = await agent.run("Your query here")

Scripts

ScriptPurpose
basic_agent.pySimple SpoonReactAI agent
mcp_agent.pyMCP-enabled agent
custom_tool.pyCustom BaseTool implementation
concurrent_agents.pyMulti-agent parallel execution

References

ReferenceContent
prompts.mdSystem prompt templates
mcp_config.mdMCP configuration options

Configuration

ParameterTypeDefaultDescription
namestr"spoon_react"Agent identifier
max_stepsint10Max ReAct iterations
tool_choicestr"required""auto", "required", "none"
system_promptstrNoneCustom system prompt

Best Practices

  1. Pre-load MCP tool parameters before use
  2. Use concurrent execution for independent tools
  3. Implement retry with exponential backoff
  4. Keep system prompts focused and specific
  5. Never hardcode API keys