Xpersona
A

Agentscope Skill

CLAWHUB · Unverified

This guide covers the design philosophy, core concepts, and practical usage of the AgentScope framework. Use this skill whenever the user wants to do anythin...

62
Rank
84
Safety
989
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 989 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1786zfcxbf10b6n2wd3qwga5s83hyfc:agentscope-skill
  1. Install using `clawhub skill install s1786zfcxbf10b6n2wd3qwga5s83hyfc:agentscope-skill` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/wxf8126275/agentscope-skill before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-wxf8126275-agentscope-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

42,271 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

agentscope/examples/agent/a2ui_agent/samples/general_agent/skills/A2UI_response_generator/SKILL.md

---
name: A2UI_response_generator
description: A skill that can retrieve A2UI UI JSON schematics and UI templates that best show the response. This skill is essential and must be used before generating A2UI (Agent to UI) JSON responses.
---

# A2UI response generation Skill

## Overview

This skill is **essential and must be used before generating A2UI (Agent to UI) JSON responses**. It enables agents to retrieve A2UI UI JSON schematics and UI templates that best show the response, allowing for the generation of rich, interactive UI responses using the A2UI protocol.

Instead of loading the entire A2UI schema and all examples at once, this skill allows agents to **retrieve** only the relevant UI templates and schematics based on the response content. The A2UI protocol defines a JSON-based format for dynamically constructing and updating user interfaces. By breaking down the examples into modular templates, agents can:

1. Retrieve the appropriate A2UI UI JSON schematics for validation and structure reference
2. Select UI templates that best match and display the response content
3. Reduce prompt token usage by loading only necessary templates
4. Easily extend with new UI templates for different domains

### File Structure

```
A2UI_response_generator/
├── SKILL.md                          # This file - main skill documentation
├── view_a2ui_schema.py               # Tool to view the complete A2UI schema (schema included in file)
├── view_a2ui_examples.py             # Tool to view UI template examples (templates included in file)
├── __init__.py                       # Package initialization
├── schema/                           # A2UI schema definitions
│   ├── __init__.py
│   └── base_schema.py                # Base A2UI schema
└── UI_templete_examples/             # UI template examples
    ├── __init__.py
    ├── booking_form.py               # Booking form template
    ├── contact_form.py               # Contact form template
    ├── email_compose_form.py         # Email compose form template
    ├── error_message.py              # Error message template
    ├── info_message.py               # Info message template
    ├── item_detail_card_with_image.py # Item detail card with image template
    ├── profile_view.py               # Profile view template
    ├── search_filter_form.py         # Search filter form template
    ├── simple_column_list_without_image.py # Simple list template
    ├── single_column_list.py         # Single column list template
    ├── success_confirmation_with_image.py # Success confirmation template
    └── two_column_list.py            # Two column list template
```

## Quick Start

When it is required to generate UI JSON, follow these steps:

Important: Please use the `execute_shell_command` tool to execute Python command.

### Step 1: Load the A2UI Schema

Run the following script to load the complete A2UI schema.

Currently available `schema_category` is `BASE_SCHEMA`.

**Use the `execute_shell_command` tool to 

agentscope/examples/functionality/agent_skill/skill/analyzing-agentscope-library/SKILL.md

---
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, 

agentscope/examples/agent/a2a_agent/README.md

# Agent-to-Agent Protocol Example

The `A2AAgent` in AgentScope is an A2A client that connects to an external agent server via the Agent-to-Agent (A2A) protocol.
This example demonstrates how to set up and use the `A2AAgent` to interact with an agent hosted on an A2A server.

Note the A2A feature is experimental and subject to change, and due to the limitations of A2A protocol, the `A2AAgent`
currently

1. only supports chatbot scenarios, where only a user and an agent are involved
2. does not support realtime steering/interruption during the conversation
3. does not support agentic structured outputs
4. stores the observed messages locally and send them together with the input message(s) of the `reply` function

## Files

The example contains the following files:

```
examples/agent/a2a_agent
├── main.py                  # The main script to run the A2A agent example
├── setup_a2a_server.py      # The script to set up a simple A2A server
├── agent_card.py            # The agent card definition for the A2A agent
└── README.md                # This README file
```

## Setup

This example provides a simple setup to demonstrate how to use the `A2AAgent` in AgentScope.
First you need to install the required dependencies:

```bash
uv pip install a2a-sdk[http-server] agentscope[a2a]
#  or
pip install a2a-sdk[http-server] agentscope[a2a]
```

Then we first set up a simple A2A server that hosts a ReAct agent:
```bash
uvicorn setup_a2a_server:app --host 0.0.0.0 --port 8000
```
This will start an A2A server locally on port 8000.

After that, you can run the A2A agent example to run a chatbot conversation with the agent hosted on the A2A server:
```bash
python main.py
```

agentscope/examples/agent/a2ui_agent/README.md

# A2UI in AgentScope

[A2UI (Agent-to-Agent UI)](https://github.com/google/A2UI) is a protocol for agents to send
streaming, interactive user interfaces to clients. It enables LLMs to generate platform-agnostic,
declarative UI definitions that clients can render progressively using native widget sets.

In this example, we demonstrate how to integrate A2UI into a ReAct agent in AgentScope. This
implementation is based on the official A2UI agent samples, adapted to use AgentScope's agent
framework.

Specifically, we have:

1. **Reimplemented the agent with AgentScope**: The agent part of the official A2UI samples has
   been reimplemented using AgentScope's `ReActAgent`, providing a more familiar and integrated
   development experience for AgentScope users.

2. **Progressive schema and template exposure via skills**: To help the agent learn and generate
   A2UI-compliant interfaces, we use AgentScope's skill system to progressively expose the A2UI
   schema and UI templates. The agent can dynamically load these resources through the
   `A2UI_response_generator` skill, enabling it to understand component definitions and learn from
   example UI structures.

## Note on External Dependencies

The following directories in this example contain content sourced from the [Google A2UI repository](https://github.com/google/A2UI):

- **`samples/client/`**: A2UI client sample applications

**NPM Package Status**: As of now, the A2UI client libraries (`@a2ui/lit` and `@a2ui/angular`) are **not yet published to NPM**. According to the [official A2UI client setup guide](https://a2ui.org/guides/client-setup/#renderers): "The Lit client library is not yet published to NPM. Check back in the coming days."

Therefore, these dependencies are currently included in this example repository using local file paths (e.g., `"@a2ui/lit": "file:../../../../renderers/lit"` in `package.json` files). This mirrors the approach used in the [official A2UI repository](https://github.com/google/A2UI), where the renderers and samples also use local file paths to reference each other. Additionally, the `copy-spec` task in `renderers/lit/package.json` copies files from the local `specification/` directory during the build process.

**Future Plans**: Once those libraries are published to NPM, we plan to gradually migrate to using the official NPM packages and remove these locally included directories.

## Quick Start

Download the a2ui and agentscope package to the same directory

```bash
git clone https://github.com/google/A2UI.git
git clone -b main https://github.com/agentscope-ai/agentscope.git
# copy the renders and specification directory to AgentScope/examples/agent/a2ui_agent
cp -r A2UI/renderers AgentScope/examples/agent/a2ui_agent
cp -r A2UI/specification AgentScope/examples/agent/a2ui_agent
```


Then, navigate to the client directory and run the restaurant finder demo:

```bash
cd AgentScope/examples/agent/a2ui_agent/samples/client/lit
npm run demo:restaurant
```

This command

agentscope/examples/agent/a2ui_agent/samples/client/lit/contact/README.md

# A2UI Generator

This is a UI to generate and visualize A2UI responses.

## Prerequisites

1. [nodejs](https://nodejs.org/en)

## Running

This sample depends on the Lit renderer. Before running this sample, you need to build the renderer.

1. **Build the renderer:**
   ```bash
   cd ../../../renderers/lit
   npm install
   npm run build
   ```

2. **Run this sample:**
   ```bash
   cd - # back to the sample directory
   npm install
   ```

3. **Run the servers:**
   - Run the [A2A server](../../../agent/adk/contact_lookup/)
   - Run the dev server: `npm run dev`

After starting the dev server, you can open http://localhost:5173/ to view the sample.

Sponsored

Ads related to Agentscope Skill and adjacent AI workflows.