Agent skill

Agentscope Skill

by agentscope-ai in agentscope-ai/skills

Build and debug Python applications using AgentScope 2.x. An agent skill from agentscope-ai/skills.

Apache-2.0Auto-check passedAgent Workflows

Install Agentscope Skill

skills CLI
$ npx skills add agentscope-ai/skills --skill agentscope-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agentscope-ai/skills agentscope-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agentscope-ai/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/agentscope-skill .claude/skills/agentscope-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agentscope-skill
GitHub stars
130
Token cost
~2.5k tokens
SKILL.md length
700 words
Files
5 (incl. scripts, references)
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Build and debug Python applications using AgentScope 2.x. An agent skill from agentscope-ai/skills.

  • Tasks that involve Multi-agent orchestration
  • SKILL.md covers Installation, Core Concepts and Basic Example, Working with the Repository and Resources
  • Runs Python and Shell scripts from its folder; calls python, git and pip; reaches github.com; needs DASHSCOPE_API_KEY

What it does

Agentscope Skill is an agent skill from agentscope-ai/skills. Build and debug Python applications using AgentScope 2.x. Consult this skill for AgentScope APIs, agent tools, multi-agent orchestration, and agent service deployment.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/deployment_guide.md`, `references/multi_agent_orchestration.md` and `scripts/view_module_signature.py`).

It sits in Agent Workflows, covering Multi-agent orchestration. It works with Python. The repository describes itself as: A curated collection of skills around AgentScope ecosystem and CoPaw applications. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Multi-agent orchestration

Example prompts

  • “/agentscope-skill”

Requirements

  • Python 3
  • A Bash shell
  • A credential in DASHSCOPE_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit b533664. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • git
    • pip
    • uv
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    Also links to:

    • docs.agentscope.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • DASHSCOPE_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agentscope Skill loads about 2.5k tokens when it runs, and up to ~5k if it reads all its reference files. Until then it costs about 46 tokens; SKILL.md has 700 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from agentscope-ai/skills at commit b533664, republished under its Apache-2.0 licence (© agentscope-ai). 700 words, ~2,506 tokens.

Download SKILL.mdSave it as .claude/skills/agentscope-skill/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
agentscope-skill
description
Build and debug Python applications using AgentScope 2.x. Consult this skill for AgentScope APIs, agent tools, multi-agent orchestration, and agent service deployment.
metadata.version
0.2.0

AgentScope 2.0

AgentScope is an open-source framework for building and serving LLM-powered agent applications, from a single tool-using agent to coordinated multi-agent systems. It provides application orchestration and service infrastructure; model inference comes from configured providers, and tools execute through configured local or sandbox backends. It consists of two layers:

  • Agent SDK: Building blocks for agent applications, including agents, models, messages, tools, context and state management, middleware, memory, RAG, multi-agent orchestration, and workspaces.
  • Service: A service layer built on the SDK, providing APIs for agent and session management, persistence, teams, scheduling, channels, and resource management, with a Web UI example.

This skill supports AgentScope 2.x and is based on 2.0.8. API signatures and behavior should follow the SDK version actually installed in the user's environment. agentscope-runtime and agentscope-studio are not compatible with 2.x; use the built-in service and workspace capabilities instead.

Installation

Python 3.11 or newer is required.

bash
pip install agentscope
# or
uv pip install agentscope

Core Concepts and Basic Example

  • Agent owns the reasoning/acting loop. Use reply() for a final Msg, or reply_stream() for events. launch_console() handles terminal interaction, tool confirmation, and interruption.
  • Construct provider models with a credential object and model=.... Formatters still exist, but are configured on the model; providers select a default formatter. They are not passed to Agent.
  • Toolkit accepts tool objects, MCP clients, and skill paths/loaders. Wrap a Python function with FunctionTool; use ToolBase for custom tool classes.
  • Msg contains typed content blocks. UserMsg, AssistantMsg, and SystemMsg are convenience factories that also accept text strings. Binary media uses DataBlock with URLSource or Base64Source, including media_type.
  • Event: Typed events expose agent execution to the application: reply and model-call lifecycle, streamed content, tool calls/results, and requests for confirmation or external execution. Consume them through reply_stream(); send interaction result events back to resume the agent. Msg represents conversation content, while events describe execution and interaction.
  • AgentState holds conversation and execution state. Agent configuration uses ContextConfig, InjectionConfig, ModelConfig, and ReActConfig. Middleware adds memory, RAG, tracing, and other hooks.

The following example shows how to compose an agent with a model and a Python function tool:

python
import asyncio
import os

from agentscope.agent import Agent
from agentscope.console import launch_console
from agentscope.credential import DashScopeCredential
from agentscope.model import DashScopeChatModel
from agentscope.tool import FunctionTool, Toolkit


def add(a: int, b: int) -> str:
    """Add two integers.

    Args:
        a: First integer.
        b: Second integer.
    """
    return str(a + b)


async def main() -> None:
    agent = Agent(
        name="Friday",
        system_prompt="You are a helpful assistant named Friday.",
        model=DashScopeChatModel(
            credential=DashScopeCredential(
                api_key=os.environ["DASHSCOPE_API_KEY"],
            ),
            model=os.environ.get("DASHSCOPE_MODEL", "qwen3.6-plus"),
        ),
        toolkit=Toolkit(tools=[FunctionTool(add)]),
    )
    await launch_console(agent)


if __name__ == "__main__":
    asyncio.run(main())

For programmatic interaction, use the following inside an async function with an existing agent:

python
from agentscope.message import UserMsg

result = await agent.reply(UserMsg(name="user", content="Hello!"))
print(result.get_text_content())

reply() consumes stream events. If a tool needs confirmation or external execution, a custom UI should consume reply_stream() and feed the appropriate UserConfirmResultEvent or ExternalExecutionResultEvent back to resume. The stream may end while waiting for that input; do not treat every stream end as successful completion. Use the console implementation and event schemas as the reference for this lifecycle. FunctionTool requests permission by default.

For multimodal input, use a model that supports the supplied media type:

python
from agentscope.message import DataBlock, TextBlock, URLSource, UserMsg

message = UserMsg(
    name="user",
    content=[
        TextBlock(text="Describe this image."),
        DataBlock(
            source=URLSource(
                url="https://example.com/image.png",
                media_type="image/png",
            ),
        ),
    ],
)
Show full SKILL.md (271 more words)Show less

Working with the Repository

Reuse an existing AgentScope checkout or clone the repository to inspect its examples and implementations before writing application code:

bash
git clone --branch main https://github.com/agentscope-ai/agentscope.git
# Inspect local changes before updating an existing checkout.
git -C agentscope status --short
git -C agentscope pull --ff-only origin main
Repository Structure
text
agentscope/
├── src/agentscope/
│   ├── agent/          # Agents and their configuration
│   ├── model/          # Chat model providers
│   ├── credential/     # Provider credentials
│   ├── console/        # Terminal interaction and event rendering
│   ├── formatter/      # Provider-specific message formatting
│   ├── message/        # Messages and typed content blocks
│   ├── tool/           # Toolkit, adapters, and built-in tools
│   ├── mcp/            # MCP clients and configuration
│   ├── skill/          # Skill loading
│   ├── state/          # Agent conversation and execution state
│   ├── middleware/     # Hooks, memory, RAG, tracing, and budgets
│   ├── event/          # Streaming and interaction events
│   ├── permission/     # Tool permissions and human confirmation
│   ├── pipeline/       # Multi-agent workflow abstractions
│   ├── workspace/      # Local and sandboxed execution backends
│   ├── rag/            # Retrieval building blocks
│   ├── embedding/      # Embedding model providers
│   ├── realtime/       # Realtime model interfaces
│   ├── tts/            # Text-to-speech models
│   └── app/            # Service APIs, storage, teams, channels, and hubs
├── examples/
│   ├── console/        # Terminal agent composition
│   ├── agent_service/  # Service configuration
│   ├── web_ui/         # Service frontend
│   ├── pipeline/       # Executor/verifier workflow
│   ├── a2a/            # Remote agent communication
│   ├── long_term_memory/
│   ├── rag/
│   ├── realtime/
│   └── workspace/
├── docs/               # News, roadmap, and changelog
└── tests/              # SDK and service behavior tests

Confirm the actual directory layout when browsing a checkout. Start with the example category matching the task, read its README and code, then follow its imports into src/agentscope/. Search within those directories for the needed classes or features. Prefer existing framework capabilities over recreating them; check base classes and inherited methods before adding custom behavior.

Resources

Official Documentation
GitHub Resources
References

Read these local references when the task needs more detail:

Scripts
  • view_module_signature.py: Inspect modules, classes, and methods in the active Python environment, including inherited APIs and source locations.
  • view_pypi_latest_version.sh: Query the latest published AgentScope version.

Example queries:

bash
python /path/to/agentscope-skill/scripts/view_module_signature.py --module agentscope
python /path/to/agentscope-skill/scripts/view_module_signature.py --module agentscope.agent.Agent
python /path/to/agentscope-skill/scripts/view_module_signature.py --module agentscope.agent.Agent.reply_stream
python /path/to/agentscope-skill/scripts/view_module_signature.py --module agentscope.app.storage
bash /path/to/agentscope-skill/scripts/view_pypi_latest_version.sh

Module discovery does not import all optional integrations. Missing optional imports are reported; install only extras needed for the task, using the target pyproject.toml (for example service, model-gemini, or model-ollama). The PyPI helper reports release metadata only, not the installed version.

Before delivering code, check public exports, constructor/method signatures, inherited methods, and cleanup requirements. Validate examples with the target version; use a fake model for offline behavior checks and distinguish those checks from actual provider, Redis, container, or deployment runs.

© agentscope-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in skills/agentscope-skill of agentscope-ai/skills.

  • SKILL.md
  • references/deployment_guide.md
  • references/multi_agent_orchestration.md
  • scripts/view_module_signature.py
  • scripts/view_pypi_latest_version.sh

Open the folder on GitHubat commit b533664

Compare with similar skills

Agentscope Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agentscope Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agentscope Skill this skillagentscope-ai/skills130—~2.5kAutomated safety check: PassApache-2.0
Adk Agent Buildergoogle/adk-python22k—~879Automated safety check: PassApache-2.0
Analyze Codebasedivar-ir/ai-doc-gen767—~899Automated safety check: PassMIT
Team Swarmcatlog22/maestro-flow564—~2kAutomated safety check: NotesNone
Cao Pluginawslabs/cli-agent-orchestrator1.4k—~3.1kAutomated safety check: NotesApache-2.0
agystack Runtime Setupjtaroreh/agystack109—~1.7kAutomated safety check: PassMIT

Similar skills

  • Adk Agent Builder

    google/adk-python

    Official

    Builds ADK (Agent Development Kit) Python agents: LLM agents with tools, graph workflows of function and agent nodes, conditional routing, fan-out and join, schema-validated delegation between…

    22k GitHub stars~879 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Analyze Codebase

    divar-ir/ai-doc-gen

    Run a multi-agent deep analysis of a codebase, producing AI-readable analysis documents in .ai/docs/ covering structure, dependencies, data flow, request flow, and APIs.

    767 GitHub stars~899 tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Team Swarm

    catlog22/maestro-flow

    Swarm intelligence team skill — ACO-driven multi-agent exploration with hybrid LLM coordinator + Python optimization controller.

    564 GitHub stars~2k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes
  • Cao Plugin

    awslabs/cli-agent-orchestrator

    Official

    Create a new CAO (CLI Agent Orchestrator) plugin. An agent skill from awslabs/cli-agent-orchestrator.

    1.4k GitHub stars~3.1k tokensUpdated today
    Agent WorkflowsAuto-check: notes
  • agystack Runtime Setup

    jtaroreh/agystack

    Configures agystack's model tiers per role and its execution runtime, choosing between local subagents and Cloud Run jobs for large parallel swarms.

    109 GitHub stars~1.7k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • Subagent-Driven Development

    HoangNguyen0403/agent-skills-standard

    Runs a multi-task implementation plan by sending each task to a fresh implementer subagent, reviewing it independently, then reviewing the whole branch.

    571 GitHub stars~1.3k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from agentscope-ai/skills

  • Himalaya

    agentscope-ai/skills

    通过 IMAP/SMTP 管理邮件的命令行工具。使用 himalaya 可以在终端中列出、阅读、撰写、回复、转发、搜索和整理邮件。支持多账户和使用 MML(MIME Meta Language)撰写邮件。

    130 GitHub stars~1.4k tokensUpdated 29 days ago
    Auto-check passed
  • News

    agentscope-ai/skills

    为用户从指定新闻网站查找最新新闻。提供政治、财经、社会、国际、科技、体育和娱乐类别的权威 URL。使用 browseruse 打开每个 URL 并通过 snapshot 获取内容,然后为用户总结。

    130 GitHub stars~366 tokensUpdated 29 days ago
    Auto-check passed
  • Nano Memory

    agentscope-ai/skills

    Guidelines and workflows for the agent to maintain persistent memory using native file tools (readfile, writefile, editfile) and standard OS commands for searching.

    130 GitHub stars~1.2k tokensUpdated 29 days ago
    Auto-check passed

Works with

Categories

Questions about Agentscope Skill

What does Agentscope Skill do?

Build and debug Python applications using AgentScope 2.x. An agent skill from agentscope-ai/skills. Agentscope Skill is an agent skill from agentscope-ai/skills.x.

When should I use Agentscope Skill?

Agentscope Skill fits situations like: tasks that involve Multi-agent orchestration.

How do I install Agentscope Skill in Claude Code?

Run `npx skills add agentscope-ai/skills --skill agentscope-skill -a claude-code`. Or copy the skill folder (skills/agentscope-skill in agentscope-ai/skills) into .claude/skills/agentscope-skill in your project. Claude Code loads it when a task matches its description.

How do I install Agentscope Skill in Codex?

Run `npx skills add agentscope-ai/skills --skill agentscope-skill -a codex`. Or copy the skill folder (skills/agentscope-skill in agentscope-ai/skills) into .agents/skills/agentscope-skill in your project. Codex loads it when a task matches its description.

Can I use Agentscope Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agentscope-ai/skills --skill agentscope-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agentscope-skill, .gemini/skills/agentscope-skill, .github/skills/agentscope-skill and .opencode/skills/agentscope-skill in your project.

What does Agentscope Skill need to run?

Going by SKILL.md and its folder, Agentscope Skill needs Python and a shell for the scripts in its folder, the command-line tools its instructions call (python, git, pip, uv and bash) and credentials named DASHSCOPE_API_KEY. Our summary lists: Python 3; A Bash shell; A credential in DASHSCOPE_API_KEY.

Does Agentscope Skill access the network?

SKILL.md names 2 domains. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. As links in the text: docs.agentscope.io. This is read from the text; nothing was executed.

Is Agentscope Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Agentscope Skill use?

Agentscope Skill is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agentscope Skill use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.5k tokens, read only when the agent opens those files.

What are the alternatives to Agentscope Skill?

Skills that share tags, products or a category with Agentscope Skill: Adk Agent Builder (google/adk-python, 22k stars), Analyze Codebase (divar-ir/ai-doc-gen, 767 stars), Team Swarm (catlog22/maestro-flow, 564 stars) and Cao Plugin (awslabs/cli-agent-orchestrator, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agentscope Skill?

agentscope-ai (a GitHub organization) maintains it in agentscope-ai/skills, which has 130 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 10, 2026.

Source: agentscope-ai/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.