Skip to content

Commit 6089fd1

Browse files
author
wenfeng.wf
committed
Support moltbot(clawdbot) Skill
1 parent bd1e96b commit 6089fd1

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

skill/alibabacloud-rds-copilot/SKILL.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: alibabacloud-rds-copilot
3-
description: 使用阿里云 RDS Copilot API,帮助用户完成 RDS 相关的智能问答、SQL 优化、实例运维和故障排查, 可直接调用 scripts/call_rds_ai.py 脚本获取实时结果。
4-
metadata: {"moltbot":{"emoji":"🗄️","homepage":"https://www.aliyun.com/product/rds","requires":{"bins":["python3"],"env":["ALIBABA_CLOUD_ACCESS_KEY_ID","ALIBABA_CLOUD_ACCESS_KEY_SECRET"]},"os":["darwin","linux"]}}
3+
description: 使用阿里云 RDS Copilot API,帮助用户完成 RDS 相关的智能问答、SQL 优化、实例运维和故障排查, 可直接调用 uv run ./scripts/call_rds_ai.py 脚本获取实时结果。
4+
metadata: {"clawdbot":{"emoji":"🗄️","homepage":"https://www.aliyun.com/product/rds","requires":{"bins":["uv"],"env":["ALIBABA_CLOUD_ACCESS_KEY_ID","ALIBABA_CLOUD_ACCESS_KEY_SECRET"]},"os":["darwin","linux"]},"moltbot":{"emoji":"🗄️","homepage":"https://www.aliyun.com/product/rds","requires":{"bins":["uv"],"env":["ALIBABA_CLOUD_ACCESS_KEY_ID","ALIBABA_CLOUD_ACCESS_KEY_SECRET"]},"os":["darwin","linux"]}}
55
---
66

77
## Skill 概览
@@ -30,13 +30,13 @@ metadata: {"moltbot":{"emoji":"🗄️","homepage":"https://www.aliyun.com/produ
3030
- 示例:
3131
```bash
3232
# 基础查询
33-
python3 .claude/skills/alibabacloud-rds-copilot/scripts/call_rds_ai.py "查询杭州地域的 RDS MySQL 实例列表"
33+
uv run ./scripts/call_rds_ai.py "查询杭州地域的 RDS MySQL 实例列表"
3434
3535
# 指定地域
36-
python3 .claude/skills/alibabacloud-rds-copilot/scripts/call_rds_ai.py "优化这条SQL" --region cn-beijing
36+
uv run ./scripts/call_rds_ai.py "优化这条SQL" --region cn-beijing
3737
3838
# 多轮对话
39-
python3 .claude/skills/alibabacloud-rds-copilot/scripts/call_rds_ai.py "继续分析" --conversation-id "<上次返回的会话ID>"
39+
uv run ./scripts/call_rds_ai.py "继续分析" --conversation-id "<上次返回的会话ID>"
4040
```
4141
4242
3. **解析结果并后续处理**

skill/alibabacloud-rds-copilot/scripts/call_rds_ai.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env -S uv run
2+
# /// script
3+
# requires-python = ">=3.7"
4+
# dependencies = [
5+
# "alibabacloud_rdsai20250507>=1.0.0",
6+
# "alibabacloud_tea_openapi>=0.3.0",
7+
# "alibabacloud_tea_util>=0.3.0",
8+
# ]
9+
# ///
210
# -*- coding: utf-8 -*-
311
"""
412
阿里云 RDS AI 助手调用脚本

skill/skill_readme.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,12 @@ cd alibabacloud-rds-openapi-mcp-server/skill
3030

3131
### 2. Install Dependencies
3232

33-
Install required Alibaba Cloud SDKs using `pip3`:
33+
Install uv:
3434

3535
```bash
36-
pip3 install -r alibabacloud-rds-copilot/requirements.txt
36+
curl -LsSf https://astral.sh/uv/install.sh | sh
3737
```
3838

39-
Dependency list:
40-
- `alibabacloud_rdsai20250507>=1.0.0` - Alibaba Cloud RDS AI SDK
41-
- `alibabacloud_tea_openapi>=0.3.0` - Alibaba Cloud OpenAPI Core Library
42-
- `alibabacloud_tea_util>=0.3.0` - Alibaba Cloud Utility Library
43-
4439
### 3. Configure Environment Variables
4540

4641
Set up Alibaba Cloud access credentials (required):

skill/skill_readme_cn.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,12 @@ cd alibabacloud-rds-openapi-mcp-server/skill
3131

3232
### 2. 安装依赖
3333

34-
使用 `pip3` 安装所需的阿里云 SDK
34+
安装uv
3535

3636
```bash
37-
pip3 install -r alibabacloud-rds-copilot/requirements.txt
37+
curl -LsSf https://astral.sh/uv/install.sh | sh
3838
```
3939

40-
依赖包列表:
41-
- `alibabacloud_rdsai20250507>=1.0.0` - 阿里云 RDS AI SDK
42-
- `alibabacloud_tea_openapi>=0.3.0` - 阿里云 OpenAPI 核心库
43-
- `alibabacloud_tea_util>=0.3.0` - 阿里云工具库
44-
4540
### 3. 配置环境变量
4641

4742
设置阿里云访问凭证(必需):

0 commit comments

Comments
 (0)