AI Agent Hub
Back to skills
AgentScope Builder icon

AgentScope Builder

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @user_ea778c49/agentscope-builder into your AI assistant.

About this skill

Problem to Solve

When building agents with AgentScope, a common failure mode is mixing APIs, directories, and prompts: the initialization order for ReActAgent, Toolkit, memory, and PlanNotebook is unclear; model and formatter are mismatched; tools lack docstring; skill documents contain descriptions but no usage rules. Such code may pass a demo but is hard to extend into multi-agent systems, persistent memory, or reusable skills.

How the Skill Works

The skill first classifies the request as a single agent, tool-driven agent, research agent, workflow agent, or skill-document need, then selects the smallest official abstraction set:

  • Model layer: define model and formatter together; for OpenAI-compatible endpoints, use OpenAIChatModel with client_kwargs.
  • Tool layer: register functions through Toolkit, and use create_tool_group() only when a capability domain needs explicit groups.
  • Memory layer: start with InMemoryMemory(), then add persistent memory and memory-search tools when cross-session context is required.
  • Planning and orchestration: use PlanNotebook for decomposable tasks and official pipeline for multi-agent flow instead of custom schedulers.
  • Skill layer: encode repeatable rules in SKILL.md and attach them with register_agent_skill().

It also borrows CoPaw engineering patterns: a custom agent class wrapping ReActAgent, prompt files such as AGENTS.md, SOUL.md, and PROFILE.md, and runtime hooks for context checks or compression.

Boundaries and Notes

It fits engineering tasks that need runnable skeletons, directory layouts, and extension paths. It is not for conceptual overviews or frameworks outside the AgentScope API surface. The default output favors Python 3.10+ and async style; synchronous scripts, non-Python stacks, or arbitrary DAG scheduling require additional adaptation.

Use Cases

  • Split retrieval, summarization, and output into three agents using the official `pipeline` flow.
  • Add file and shell tools to a single agent and register reusable functions through `Toolkit`.
  • Add `PlanNotebook` to a research agent to break report generation into planned steps.
  • Turn a code-review standard into `SKILL.md` and attach it via `register_agent_skill()`.

Best For

  • Python engineers building a runnable `ReActAgent` skeleton with `AgentScope`.
  • Application developers separating tools, memory, and prompts into clear layers.
  • Agent platform maintainers codifying repeatable task rules in `SKILL.md`.
  • Tech leads planning to move from a single agent to an official `pipeline` workflow.