← Back to Skills Marketplace
sdk-team

Alibabacloud Rds Copilot

by alibabacloud-skills-team · GitHub ↗ · v0.0.2 · MIT-0
cross-platform ⚠ suspicious
156
Downloads
1
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install alibabacloud-rds-copilot
Description
Alibaba Cloud RDS Copilot intelligent operations assistant skill. Used for RDS-related intelligent Q&A, SQL optimization, instance operations, and troublesho...
README (SKILL.md)

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

Installation

Pre-check: Alibaba Cloud CLI must be installed

This skill uses Alibaba Cloud CLI to call RdsAi OpenAPI. You need to install and configure Alibaba Cloud CLI first.

Pre-check: Aliyun CLI >= 3.3.3 required

Run aliyun version to verify >= 3.3.3. If not installed or version too low, run curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash to update, or see references/cli-installation-guide.md for installation instructions.

Pre-check: Aliyun CLI plugin update required

[MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation. [MUST] run aliyun plugin update to ensure that any existing plugins are always up-to-date.

[MUST] CLI User-Agent — Every aliyun CLI command invocation must include: --user-agent AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot

macOS Installation

# Option 1: Install via Homebrew (recommended)
brew install aliyun-cli

# Option 2: Install via PKG package
curl -O https://aliyuncli.alicdn.com/aliyun-cli-latest.pkg
sudo installer -pkg aliyun-cli-latest.pkg -target /

# Option 3: Install via one-click script
/bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/install.sh)"

Linux Installation

# Install via one-click script
/bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/install.sh)"

# Or download TGZ package for manual installation
curl https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz -o aliyun-cli.tgz
tar xzvf aliyun-cli.tgz
sudo mv aliyun /usr/local/bin/

Verify Installation

aliyun version

Credential Configuration

Option 1: Interactive Configuration (Recommended)

aliyun configure --profile rdsai

Follow the prompts to enter:

  • Access Key Id: Your AccessKey ID
  • Access Key Secret: Your AccessKey Secret
  • Default Region Id: cn-hangzhou (or other regions)

Option 2: Non-interactive Configuration

aliyun configure set \
  --profile rdsai \
  --mode AK \
  --access-key-id \x3CyourAccessKeyID> \
  --access-key-secret \x3CyourAccessKeySecret> \
  --region cn-hangzhou

Command Format

Basic Command Structure

aliyun rdsai chat-messages \
  --query '\x3Cquery content>' \
  --inputs RegionId=\x3Cregion ID> Language=\x3Clanguage> Timezone=\x3Ctimezone> [CustomAgentId=\x3Ccustom agent ID>] \
  --event-mode separate \
  --endpoint rdsai.aliyuncs.com \
  --user-agent 'AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot' \
  [--conversation-id '\x3Cconversation ID>']

Parameter Description

IMPORTANT: Parameter Confirmation — Before executing any command, Determine user intent: SQL writing/optimization, SQL diagnosis, instance parameter tuning, troubleshooting, performance analysis, query instance list, etc. Collect necessary parameters (use default values if not specified).

Parameter Required/Optional Description Default
--query Required User query content -
--inputs RegionId= Optional Alibaba Cloud region ID cn-hangzhou
--inputs Language= Optional Language zh-CN
--inputs Timezone= Optional Timezone Asia/Shanghai
--inputs CustomAgentId= Optional Custom Agent ID None
--event-mode Optional Event mode separate
--endpoint Required API endpoint rdsai.aliyuncs.com
--conversation-id Optional Conversation ID for multi-turn dialogue None
--region Optional Region for API call Credential default region
--profile Optional Specify credential profile name Default profile
--user-agent Required Custom User-Agent AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot

RAM Permissions

This skill requires the following RAM permissions. See references/ram-policies.md for details.

Permission Description
rdsai:ChatMessages Call RDS AI Assistant API

Core Workflow

0. Enable AI-Mode (Before Executing Any CLI Command)

Before executing any aliyun CLI command, you must enable AI-Mode and set the User-Agent:

# [MUST] Enable AI-Mode before any CLI command execution
aliyun configure ai-mode enable

# [MUST] Set User-Agent for AI-Mode
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot"

1. Confirm Task Type and Parameters

Determine user intent: SQL writing/optimization, SQL diagnosis, instance parameter tuning, troubleshooting, performance analysis, query instance list, etc.

Collect necessary parameters (use default values if not specified):

  • RegionId: Region ID (default cn-hangzhou)
  • Language: Language (default zh-CN)
  • Timezone: Timezone (default Asia/Shanghai)
  • CustomAgentId: Custom Agent ID (optional)
  • --conversation-id: Conversation ID for multi-turn dialogue (optional)

2. Construct Command and Call CLI

# Basic query
aliyun rdsai chat-messages \
  --query 'List RDS MySQL instances in Hangzhou region' \
  --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'

# Troubleshooting example
aliyun rdsai chat-messages \
  --query 'RDS instance rm-bp1xxx connection timeout, error Too many connections, please help troubleshoot. Instance is in Hangzhou region.' \
  --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'

# Query with Beijing region
aliyun rdsai chat-messages \
  --query 'Optimize this SQL: SELECT * FROM users WHERE name LIKE "%test%"' \
  --inputs RegionId=cn-beijing Language=zh-CN Timezone=Asia/Shanghai \
  --event-mode separate \
  --endpoint rdsai.aliyuncs.com \
  --user-agent 'AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot'

# Multi-turn dialogue (using ConversationId from previous response)
aliyun rdsai chat-messages \
  --query 'Continue analyzing the above issue' \
  --conversation-id '\x3CConversationId from previous response>' \
  --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'

# Using custom Agent
aliyun rdsai chat-messages \
  --query 'Analyze database performance' \
  --inputs RegionId=cn-hangzhou Language=zh-CN Timezone=Asia/Shanghai CustomAgentId=your-custom-agent-id \
  --event-mode separate \
  --endpoint rdsai.aliyuncs.com \
  --user-agent 'AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot'

3. Parse Results and Follow-up Processing

  • Explain RDS Copilot's response to the user in natural language
  • If the response contains SQL or operational steps, assess risks and warn:
    • Avoid executing high-risk statements directly in production (e.g., large table DELETE / UPDATE / schema changes)
    • Recommend validating in test environment or adding backup/condition restrictions
  • If continuing the conversation, record the ConversationId from the response for the next query

4. Disable AI-Mode (After Workflow Ends)

After the workflow is complete, you must disable AI-Mode:

# [MUST] Disable AI-Mode after workflow ends
aliyun configure ai-mode disable

Output Format

Alibaba Cloud CLI returns JSON format responses (streaming multiple JSON events):

{"data":{"ConversationId":"8227be22-xxxx-xxxx-xxxx-xxxxxxxxxxxx","Event":"workflow_started","MessageId":"a79c881c-xxxx-xxxx-xxxx-xxxxxxxxxxxx",...}}
{"data":{"Answer":"\x3Cpartial answer content>","Event":"message",...}}
{"data":{"Event":"workflow_finished",...}}

Key fields:

  • ConversationId: Conversation ID (for multi-turn dialogue)
  • Answer: AI assistant's response content
  • Event: Event type (workflow_started, message, workflow_finished)

Success Verification

  1. CLI installation successful: aliyun version shows version number
  2. Credential configured correctly: aliyun configure list shows configured credentials
  3. API call successful: Response contains ConversationId and Answer in JSON format
  4. Response content valid: Answer is relevant to the query content

See references/verification-method.md for detailed verification steps.


Cleanup

This skill only performs read-only query operations, does not create any cloud resources, no cleanup required.


API and Command List

See references/related-apis.md for details.

Product API Action CLI Command Description
RdsAi ChatMessages aliyun rdsai chat-messages RDS AI Assistant dialogue API

Best Practices

  1. Use multi-turn dialogue: For complex issues, use --conversation-id for context-aware multi-turn conversations
  2. Specify correct region: Set RegionId parameter based on the RDS instance's region
  3. Be cautious in production: SQL recommendations from RDS Copilot should be validated in test environment first
  4. Save conversation ID: Save the returned ConversationId if you need to follow up or continue analysis
  5. Use configuration file: Recommend using aliyun configure to configure credentials, avoid exposing sensitive information in command line
  6. Use --profile: You can configure multiple credential profiles and switch between accounts using --profile

Reference Links

Reference Document Description
Alibaba Cloud CLI Documentation Alibaba Cloud CLI User Guide
references/related-apis.md API and Command List
references/ram-policies.md RAM Policy Configuration
references/verification-method.md Verification Methods
references/acceptance-criteria.md Acceptance Criteria
Usage Guidance
This skill is a documentation-only adapter for Alibaba Cloud's RDS AI via the Alibaba Cloud CLI. It legitimately requires installing the aliyun CLI and configuring an Alibaba Cloud RAM user (AccessKey) with the rdsai:ChatMessages permission. Before installing or running commands: 1) verify the install URLs (aliyuncli.alicdn.com) and only run installers you trust; 2) use a dedicated RAM user with least privilege (do not use root keys); 3) avoid pasting secrets into chat/conversation logs; 4) be aware the skill instructs enabling AI-mode and automatic plugin install in the CLI — enabling automatic plugin installs increases network-based changes to your local CLI, so review that setting if you want tight control. If you need higher assurance, inspect network traffic or install the CLI from your organization’s approved package source rather than running remote install scripts directly.
Capability Analysis
Type: OpenClaw Skill Name: alibabacloud-rds-copilot Version: 0.0.2 The skill facilitates interaction with Alibaba Cloud RDS Copilot but is classified as suspicious due to high-risk instructions in SKILL.md and verification-method.md. It directs the AI agent to execute remote shell scripts via 'curl | bash' for installation and to enable automatic plugin installation ('--auto-plugin-install true') within the Alibaba Cloud CLI. While these actions are plausibly necessary for the skill's functionality and utilize official Alibaba domains (aliyuncli.alicdn.com), they constitute meaningful high-risk behaviors in an automated environment without clear evidence of malicious intent.
Capability Assessment
Purpose & Capability
Name/description (RDS Copilot) align with instructions: all runtime actions are calls to the Alibaba Cloud CLI 'aliyun rdsai chat-messages'. Required permissions (rdsai:ChatMessages) and credential configuration instructions match the stated functionality.
Instruction Scope
SKILL.md instructs only to install/configure the Alibaba Cloud CLI, enable AI-mode, set a User-Agent, and run rdsai chat-messages with appropriate parameters. It does not request unrelated files, credentials outside the Alibaba Cloud credential flow, or external endpoints beyond Alibaba's rdsai.aliyuncs.com.
Install Mechanism
The skill is instruction-only (no install script in metadata). Installation guidance in SKILL.md recommends curl|bash installers and downloads from aliyuncli.alicdn.com and Homebrew. These are official Alibaba distribution endpoints, but curl | bash and binary downloads are higher-risk operations in general — users should verify the URLs and trust the source before executing install scripts.
Credentials
The skill does not declare any unrelated environment variables and only requires Alibaba Cloud credentials for the CLI (AccessKey/RAM user or configured profile). The README emphasizes least-privilege RAM policies and recommends using a dedicated RAM user, which is appropriate and proportional.
Persistence & Privilege
The skill does not request always: true, does not modify other skills, and only asks the user to enable AI-mode in the Alibaba CLI (a local CLI configuration). No elevated or persistent platform-wide privileges are requested by the skill itself.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install alibabacloud-rds-copilot
  3. After installation, invoke the skill by name or use /alibabacloud-rds-copilot
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.0.2
alibabacloud-rds-copilot v0.0.2 - Added mandatory pre-check for Aliyun CLI version (>= 3.3.3) and plugin update requirements in installation instructions. - Enforced required AI-Mode enablement and User-Agent setting before running any CLI commands. - Updated all CLI command samples to use the specific User-Agent: AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot. - Clarified plugin auto-installation and updating steps for reliable operation. - Improved documentation for setup and pre-checks to reduce user errors.
v0.0.1
Initial release of Alibaba Cloud RDS Copilot skill. - Provides intelligent Q&A, SQL optimization, instance operations, and troubleshooting for Alibaba Cloud RDS. - Integrates with Alibaba Cloud CLI to call RdsAi OpenAPI for real-time Copilot responses. - Supports both Chinese and English natural language queries related to RDS tasks. - Includes detailed setup instructions for CLI installation and credential configuration. - Offers guidance on safe usage, parameter handling, and interpreting Copilot responses.
Metadata
Slug alibabacloud-rds-copilot
Version 0.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Alibabacloud Rds Copilot?

Alibaba Cloud RDS Copilot intelligent operations assistant skill. Used for RDS-related intelligent Q&A, SQL optimization, instance operations, and troublesho... It is an AI Agent Skill for Claude Code / OpenClaw, with 156 downloads so far.

How do I install Alibabacloud Rds Copilot?

Run "/install alibabacloud-rds-copilot" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Alibabacloud Rds Copilot free?

Yes, Alibabacloud Rds Copilot is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Alibabacloud Rds Copilot support?

Alibabacloud Rds Copilot is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Alibabacloud Rds Copilot?

It is built and maintained by alibabacloud-skills-team (@sdk-team); the current version is v0.0.2.

💬 Comments