alibabacloud-rds-copilot
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"
What this skill does
# 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 ```bash # 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 ```bash # 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 ```bash aliyun version ``` --- ## Credential Configuration ### Option 1: Interactive Configuration (Recommended) ```bash 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 ```bash aliyun configure set \ --profile rdsai \ --mode AK \ --access-key-id <yourAccessKeyID> \ --access-key-secret <yourAccessKeySecret> \ --region cn-hangzhou ``` --- ## Command Format ### Basic Command Structure ```bash aliyun rdsai chat-messages \ --query '<query content>' \ --inputs RegionId=<region ID> Language=<language> Timezone=<timezone> [CustomAgentId=<custom agent ID>] \ --event-mode separate \ --endpoint rdsai.aliyuncs.com \ --user-agent 'AlibabaCloud-Agent-Skills/alibabacloud-rds-copilot' \ [--conversation-id '<conversation 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](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: ```bash # [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 ```bash # 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 '<ConversationId 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 - Only when the response or user-pasted error contains `No valid order found`, stop normal result analysis and directly return this guidance to the user: - The current call did not find a valid RDS AI Assistant Professional Edition order. Enable RDS AI Assistant Professional Edition for the current Alibaba Cloud account, then retry the failed call. - Activation page: https://rdsnext.console.aliyun.com/rdsCopilotProfessiona
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.