home / skills / microck / ordinary-claude-skills / analyzing-agentscope-library

analyzing-agentscope-library skill

/skills_all/analyzing-agentscope-library

This skill helps you retrieve and analyze information from the AgentScope library for quick guidance and decision support.

npx playbooks add skill microck/ordinary-claude-skills --skill analyzing-agentscope-library

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
3.2 KB
---
name: Analyzing AgentScope Library
description: This skill provides a way to retrieve information from the AgentScope library for analysis and decision-making.
---

# Analyzing AgentScope Library

## Overview

This guide covers the essential operations for retrieving and answering questions about the AgentScope library.
If you need to answer questions regarding the AgentScope library, or look up specific information, functions/classes,
examples or guidance, this skill will help you achieve that.

## Quick Start

The skill provides the following key scripts:

- Search for guidance in the AgentScope tutorial.
- Search for official examples and recommended implementations provided by AgentScope.
- A quick interface to view AgentScope's Python library by given a module name (e.g. agentscope), and return the module's submodules, classes, and functions.

When being asked an AgentScope-related question, you can follow the steps below to find the relevant information:

First decide which of the three scripts to use based on the user's question.
- If user asks for "how to use" types of questions, use the "Search for Guidance" script to find the relevant tutorial
- If user asks for "how to implement/build" types of questions, first search for relevant examples. If not found, then
  consider what functions are needed and search in the guide/tutorial
- If user asks for "how to initialize" types of questions, first search for relevant tutorials. If not found, then
  consider to search for the corresponding modules, classes, or functions in the library.


### Search for Examples

First ask for the user's permission to clone the agentscope GitHub repository if you haven't done so:

```bash
git clone -b main https://github.com/agentscope-ai/agentscope
```

In this repo, the `examples` folder contains various examples demonstrating how to use different features of the
AgentScope library.
They are organized in a tree structure by different functionalities. You should use shell command like `ls` or `cat` to
navigate and view the examples. Avoid using `find` command to search for examples, as the name of the example
files may not directly relate to the functionality being searched for.

### Search for Guidance

Similarly, first ensure you have cloned the agentscope GitHub repository.

The source agentscope tutorial is located in the `docs/tutorials` folder of the agentscope GitHub repository. It's
organized by the different sections. To search for guidance, go to the `docs/tutorials` folder and view the tutorial
files by shell command like `ls` or `cat`.


### Search for Targeted Modules

First, ensure you have installed the agentscope library in your environment:

```bash
pip list | grep agentscope
```

If not installed, ask the user for permission to install it by command:

```bash
pip install agentscope
```

Then, run the following script to search for specific modules, classes, or functions. It's suggested to start with
`agentscope` as the root module name, and then specify the submodule name you want to search for.

```bash
python view_agentscope_module.py --module agentscope
```

About detailed usage, please refer to the `./view_agentscope_module.py` script (located in the same folder as this
SKILL.md file).

Overview

This skill provides a focused interface to retrieve and analyze content from the AgentScope library for decision-making and developer support. It helps locate tutorials, examples, and specific Python modules, classes, and functions within AgentScope. Use it to answer how-to, implementation, and initialization questions by pointing to authoritative code and docs. The skill streamlines discovery so you spend less time searching and more time building.

How this skill works

The skill offers three primary modes: search tutorials for guidance, search example code for implementations, and inspect installed modules to list submodules, classes, and functions. For examples and tutorials it navigates the repository tree and surfaces relevant files and snippets. For API inspection it can run a module viewer script against a specified root module (for example, agentscope) to enumerate available symbols. It asks permission before cloning or installing packages when needed.

When to use it

  • You need step-by-step guidance or tutorial excerpts from AgentScope.
  • You want concrete example implementations to adapt or extend.
  • You must locate classes, functions, or submodules inside the AgentScope Python package.
  • You are preparing integration or initialization code and need the proper constructors or configuration options.
  • You want to verify recommended usage patterns from AgentScope examples.

Best practices

  • Ask whether you prefer tutorial guidance, example code, or API inspection before starting the search.
  • Grant explicit permission before the skill clones the repository or installs the package in your environment.
  • When requesting code examples, provide the target feature or high-level goal to narrow results.
  • If an example isn’t found, request a module/class search to locate relevant functions for a custom implementation.
  • Use the module inspection output to confirm exact parameter names and available methods before coding.

Example use cases

  • Find the AgentScope tutorial section for building a new agent and extract the initialization steps.
  • Retrieve example implementations for a particular feature (routing, tools, or evaluation) to adapt into a project.
  • Inspect the agentscope module to list available submodules and methods for a compatibility check.
  • Locate a specific class or function to confirm constructor arguments and recommended usage.
  • Collect relevant tutorial snippets to prepare documentation or onboarding materials.

FAQ

Will you clone the AgentScope repository automatically?

No. I will ask for your permission before cloning the repository or downloading files.

Do you install packages without asking?

No. I will request permission before running any pip install in your environment.