Xpersona
A

alibabacloud-rds-copilot

CLAWHUB · Unverified

Alibaba Cloud RDS Copilot intelligent operations assistant skill. Used for RDS-related intelligent Q&A, SQL optimization, instance operations, and troubleshooting. Calls RdsAi OpenAPI through Alibaba Cloud CLI to get real-time RDS Copilot responses. Triggers: "RDS Copilot", "RDS Assistant", "SQL optimization", "RDS troubleshooting", "RDS operations", "database diagnosis"

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/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 s173swjet2yrebzqrp6hjkvmy583mxef:alibabacloud-rds-copilot
  1. Install using `clawhub skill install s173swjet2yrebzqrp6hjkvmy583mxef:alibabacloud-rds-copilot` 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/sdk-team/alibabacloud-rds-copilot before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sdk-team-alibabacloud-rds-copilot/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

145,338 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: alibabacloud-rds-copilot
description: |
  Alibaba Cloud RDS Copilot intelligent operations assistant skill. Used for RDS-related intelligent Q&A, SQL optimization, instance operations, and troubleshooting.
  Calls RdsAi OpenAPI through Alibaba Cloud CLI to get real-time RDS Copilot responses.
  Triggers: "RDS Copilot", "RDS Assistant", "SQL optimization", "RDS troubleshooting", "RDS operations", "database diagnosis"
---

# Alibaba Cloud RDS Copilot Intelligent Operations Assistant

This skill serves as an **intelligent agent for Alibaba Cloud RDS Copilot** in conversations, helping users with RDS-related intelligent Q&A, SQL optimization, instance operations, and troubleshooting.

## Scenario Description

**Architecture**: `Alibaba Cloud CLI + RdsAi OpenAPI`

Main features:
- **Understand user's natural language requests** (Chinese or English), identify if related to RDS Copilot
- **Directly call Alibaba Cloud CLI** to execute `aliyun rdsai chat-messages` command for real-time RDS Copilot queries
- When receiving results or user-pasted error messages, **further explain, diagnose, and provide recommendations**

---

## Agent Execution Contract

Before calling RDS Copilot, the agent must make the local environment ready by itself whenever command execution is available. Do not ask the user to install CLI or plugins first if the agent can install or upgrade them directly.
If install or upgrade needs network access, sudo, or tool approval, request that approval with the concrete command and continue after approval.

**Hard gate**: Do not execute `aliyun rdsai chat-messages` until all readiness checks pass:

1. Alibaba Cloud CLI exists and `aliyun version` is >= `3.3.3`.
2. Plugin auto-install is enabled and the `rdsai` product plugin/command is available.
3. Alibaba Cloud CLI credentials are configured and the selected profile is valid.

If any gate fails:

- Missing or old CLI: install or upgrade Alibaba Cloud CLI, then re-run `aliyun version`.
- Missing `rdsai` plugin: enable plugin auto-install and install or trigger installation of `rdsai`, then re-check the command.
- Missing/invalid credentials: stop before the RDS Copilot API call and guide the user to configure credentials. If the user asks the agent to configure them, request only the required fields, then configure through `aliyun configure`; never ask the user to paste secrets into environment variables.

**Default region**: If the user does not explicitly provide a region, always use `cn-hangzhou`. Natural language "Hangzhou" maps to `cn-hangzhou`. Keep this default in both `--inputs RegionId=cn-hangzhou` and any credential setup guidance unless the user specifies another region.

---

## Installation

> **Agent preflight: Alibaba Cloud CLI must be installed or installed by the agent**
>
> This skill uses Alibaba Cloud CLI to call RdsAi OpenAPI. The agent must first check whether the CLI is present and usable. If the CLI is missing and command execution is available, install it 

_meta.json

{
  "ownerId": "kn74p5w8ywv6prh40g0s82gmqh83nw54",
  "slug": "alibabacloud-rds-copilot",
  "version": "0.0.5",
  "publishedAt": 1787540966480
}

references/acceptance-criteria.md

# Acceptance Criteria: alibabacloud-rds-copilot

**Scenario**: RDS Copilot Intelligent Operations Assistant
**Purpose**: Skill Test Acceptance Criteria

---

## 0. Environment Readiness Gate

### ✅ CORRECT - Preflight Before RDS Copilot API Calls

```bash
command -v aliyun
aliyun version
aliyun configure set --auto-plugin-install true
aliyun plugin list
aliyun plugin search rdsai
# Run only if the previous checks do not show the rdsai plugin/command.
aliyun plugin install --names rdsai
aliyun rdsai --help
aliyun configure list
```

Expected handling:
- If Alibaba Cloud CLI is missing or lower than `3.3.3`, install or upgrade it first.
- If `aliyun plugin` is unavailable, treat it as an old CLI and upgrade before plugin operations.
- If the `rdsai` plugin/command is missing, install it or trigger auto-install before calling ChatMessages.
- If CLI credentials are missing or invalid, stop before `aliyun rdsai chat-messages` and guide credential setup.
- If the user does not specify a region, use `cn-hangzhou`.
- System commands in this preflight must not use `--user-agent`; only `aliyun rdsai chat-messages` business API commands use per-command `--user-agent`.

### ❌ INCORRECT - Calling ChatMessages Before Preflight

```bash
# Wrong: skips CLI/plugin/credential readiness checks
aliyun rdsai chat-messages \
  --query 'List RDS instances' \
  --inputs RegionId=cn-hangzhou Language=zh-CN Timezone=Asia/Shanghai \
  --event-mode separate \
  --endpoint rdsai.aliyuncs.com \
  --user-agent 'AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot/{session-id}'
```

---

## 1. Environment Configuration Verification

### ✅ CORRECT - Using Alibaba Cloud CLI to Configure Credentials

```bash
# Correct: Use aliyun configure to configure credentials (relies on default credential chain)
aliyun configure --mode AK --profile rdsai
```

### ❌ INCORRECT - Hardcoded Credentials

```bash
# Wrong: Explicitly setting AK/SK environment variables
export ALIBABA_CLOUD_ACCESS_KEY_ID="LTAI5txxxxxxxxxx"  # Do not set explicitly
export ALIBABA_CLOUD_ACCESS_KEY_SECRET="xxxxxxxxxxxxxxxx"  # Do not set explicitly
```

---

## 2. CLI Command Verification

### ✅ CORRECT - Using Alibaba Cloud CLI

```bash
# Correct: Use aliyun CLI to call RDS AI API
aliyun rdsai chat-messages \
  --query 'List RDS instances' \
  --inputs RegionId=cn-hangzhou Language=zh-CN Timezone=Asia/Shanghai \
  --event-mode separate \
  --endpoint rdsai.aliyuncs.com \
  --user-agent 'AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot/{session-id}'
```

### ❌ INCORRECT - Missing Required Parameters

```bash
# Wrong: Missing endpoint or user-agent
aliyun rdsai chat-messages \
  --query 'List RDS instances'
```

---

## 3. CLI Command Format Verification

### ✅ CORRECT - Contains Required Parameters

```bash
aliyun rdsai chat-messages \
  --query 'List RDS instances' \
  --inputs RegionId=cn-hangzhou Language=zh-CN Timezone=Asia/Shanghai \
  --event-mode separate \
  --endpoint rdsai.aliyuncs.com \
  --user-agent 'Alibab

references/ram-policies.md

# RAM Policies - RDS Copilot

## Required Permissions

Using the RDS Copilot skill requires the following RAM permissions:

| Action | Resource | Description |
|--------|----------|-------------|
| `rdsai:ChatMessages` | `*` | Call RDS AI Assistant dialogue API |
| `rdsai:GetChatModel` | `*` | Query models available for ChatMessages |

## Custom Policy

Create a custom RAM policy to grant RDS Copilot access:

```json
{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "rdsai:ChatMessages",
        "rdsai:GetChatModel"
      ],
      "Resource": "*"
    }
  ]
}
```

## Policy Description

### Least Privilege Principle

The above policy contains only the minimum permissions required to call the RDS AI Assistant API. If recommendations returned by RDS Copilot require executing other operations (such as querying instances, modifying parameters, etc.), additional RDS permissions need to be granted.

### Extended Permissions (Optional)

If you need RDS Copilot to execute RDS operations mentioned in query recommendations, you can add the following permissions:

```json
{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "rdsai:ChatMessages",
        "rdsai:GetChatModel"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "rds:DescribeDBInstances",
        "rds:DescribeDBInstanceAttribute",
        "rds:DescribeDBInstancePerformance",
        "rds:DescribeSlowLogRecords",
        "rds:DescribeParameters"
      ],
      "Resource": "*",
      "Condition": {}
    }
  ]
}
```

## Credential Configuration

This skill uses Alibaba Cloud CLI for authentication. Please ensure:

1. The RAM user or role associated with the AccessKey has been granted the above permissions
2. Configure credentials via `aliyun configure` (relies on default credential chain):
   ```bash
   aliyun configure --profile rdsai
   ```

## Security Recommendations

1. **Use RAM User**: Avoid using root account AccessKey, recommend creating a dedicated RAM user
2. **Least Privilege**: Only grant necessary permissions
3. **Regular Rotation**: Regularly rotate AccessKey
4. **Use CLI Configuration**: Configure credentials via `aliyun configure`, rely on default credential chain

references/related-apis.md

# Related APIs - RDS Copilot

## API List

| Product | API Version | API Action | CLI Command | Description |
|---------|-------------|------------|-------------|-------------|
| RdsAi | 2025-05-07 | ChatMessages | `aliyun rdsai chat-messages` | RDS AI Assistant dialogue API |
| RdsAi | 2025-05-07 | GetChatModel | `aliyun rdsai get-chat-model` | Auxiliary: query models available for ChatMessages |

## API Details

### ChatMessages

- **Product**: rdsai
- **API Version**: 2025-05-07
- **Endpoint**: rdsai.aliyuncs.com
- **CLI Command**: `aliyun rdsai chat-messages`
- **Description**: Call RDS AI Assistant for dialogue, returns streaming response

**CLI Parameters**:

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `--query` | String | Yes | User query content |
| `--inputs` | Key=Value | No | Input parameters, multiple parameters separated by space |
| `--event-mode` | String | No | Event mode, options: `separate` |
| `--conversation-id` | String | No | Conversation ID for multi-turn dialogue |
| `--endpoint` | String | Yes | API endpoint: `rdsai.aliyuncs.com` |
| `--user-agent` | String | Yes | Custom User-Agent: `AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot/{session-id}` |

**--inputs Supported Parameters**:

| Parameter | Description | Default |
|-----------|-------------|---------|
| `RegionId` | Region ID | `cn-hangzhou` |
| `Language` | Language | `zh-CN` |
| `Timezone` | Timezone | `Asia/Shanghai` |
| `CustomAgentId` | Custom Agent ID | None |
| `EnableThinking` | Deep thinking mode switch: `true` (enabled) or `false` (disabled) | None |
| `ThinkEffort` | Thinking depth: `default` (auto), `high` (deeper reasoning), `low` (faster responses) | None |
| `ModelId` | Model ID for the response model. The supported list is dynamic: query it via `aliyun rdsai get-chat-model` (see GetChatModel below) and verify EVERY user-specified model ID before use (including well-known ones such as `qwen3.8-max`) | None |

**Response Fields**:

| Field | Type | Description |
|-------|------|-------------|
| ConversationId | String | Conversation ID |
| MessageId | String | Message ID |
| Answer | String | AI assistant's response content |
| Event | String | Event type |

### GetChatModel

- **Product**: rdsai
- **API Version**: 2025-05-07
- **Endpoint**: rdsai.aliyuncs.com
- **CLI Command**: `aliyun rdsai get-chat-model`
- **Description**: Auxiliary API that queries the models available for ChatMessages. Supports GET/POST over HTTPS and takes no input parameters. Not part of the main call flow — ChatMessages works without calling it.
- **Usage**: Invoke only when the user explicitly sets a `ModelId` (to verify it is supported), asks which models are available, or checks a model's supported `ThinkEffort` values; calls that omit `ModelId` need no lookup.

**CLI Parameters**:

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `--endpoint` | String | Yes | API endpoint: `r

Sponsored

Ads related to alibabacloud-rds-copilot and adjacent AI workflows.