skill/alibabacloud-rds-copilot/SKILL.md
使用阿里云 RDS Copilot API,帮助用户完成 RDS 相关的智能问答、SQL 优化、实例运维和故障排查, 可直接调用 uv run ./scripts/call_rds_ai.py 脚本获取实时结果。
npx skillsauth add aliyun/alibabacloud-rds-openapi-mcp-server alibabacloud-rds-copilotInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
本 Skill 用于在对话中充当 阿里云 RDS Copilot 的智能代理:
scripts/call_rds_ai.py 实时查询 RDS Copilot 并获取结果;工作模式:
scripts/call_rds_ai.py 脚本直接获取 RDS Copilot 的实时响应确认任务类型与参数
--region:地域 ID(默认 cn-hangzhou)--language:语言(默认 zh-CN)--timezone:时区(默认 Asia/Shanghai)--custom-agent-id:专属 Agent ID(可选)--conversation-id:会话 ID,用于多轮对话(可选)构造查询并调用脚本
- 示例:
```bash
# 基础查询
uv run ./scripts/call_rds_ai.py "查询杭州地域的 RDS MySQL 实例列表"
# 指定地域
uv run ./scripts/call_rds_ai.py "优化这条SQL" --region cn-beijing
# 多轮对话
uv run ./scripts/call_rds_ai.py "继续分析" --conversation-id "<上次返回的会话ID>"
解析结果并后续处理
DELETE / UPDATE / 结构变更);conversation_id 用于下一轮查询。| 参数 | 说明 | 默认值 |
|------|------|--------|
| query | 查询内容(必需),使用 - 从标准输入读取 | - |
| --region / --region-id | 阿里云地域 ID | cn-hangzhou |
| --language / --lang | 语言 | zh-CN |
| --timezone / --tz | 时区 | Asia/Shanghai |
| --custom-agent-id | 专属 Agent ID | 无 |
| --conversation-id / --conv-id | 会话 ID(多轮对话) | 无 |
| --endpoint | API 端点 | rdsai.aliyuncs.com |
| --no-stream | 禁用流式输出 | False(默认启用流式) |
脚本会将查询信息输出到 stderr,将 RDS Copilot 的回答输出到 stdout,便于分离日志和结果:
[查询] 查询杭州地域实例列表
[地域] cn-hangzhou | [语言] zh-CN
============================================================
[RDS Copilot 回答]
<实际回答内容>
[会话ID] conv-xxxx-xxxx-xxxx
tools
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.
tools
Generate or refine agent-usable CLIs for existing software/codebases using the CLI-Anything methodology. Use when the user wants to turn a GUI app, desktop tool, repository, SDK, or web/API surface into a structured CLI for agents; when adapting CLI-Anything into OpenClaw workflows; or when packaging a generated harness as an OpenClaw-compatible skill.
tools
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
tools
DuckDB CLI specialist for SQL analysis, data processing and file conversion. Use for SQL queries, CSV/Parquet/JSON analysis, database queries, or data conversion. Triggers on "duckdb", "sql", "query", "data analysis", "parquet", "convert data".