AgentScope Builder
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
modelandformattertogether; for OpenAI-compatible endpoints, useOpenAIChatModelwithclient_kwargs. - Tool layer: register functions through
Toolkit, and usecreate_tool_group()only when a capability domain needs explicit groups. - Memory layer: start with
InMemoryMemory(), then add persistent memory andmemory-searchtools when cross-session context is required. - Planning and orchestration: use
PlanNotebookfor decomposable tasks and officialpipelinefor multi-agent flow instead of custom schedulers. - Skill layer: encode repeatable rules in
SKILL.mdand attach them withregister_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.
Related Skills
Local workflow memory with matching and SOP updates.
An OpenClaw live streaming executor that initializes TRTC streaming, starts a real-time dashboard, generates viewer URLs, and continuously reports live events.
Breaks down physical supply chains for super-trends to identify second- and third-layer bottlenecks, runs valuation and reverse checks, and maintains trackable reports.
A token-saving compression mode for Chinese LLMs with lite, full, ultra, and classical tiers, preserving code and technical terms while handling edge cases.