Install
openclaw skills install @sdk-team/alibabacloud-mongodb-health-inspectRun a read-only health inspection on Alibaba Cloud MongoDB (DDS) instances and produce a standardized report. Supports Sharding and ReplicaSet architectures across single-instance, multi-instance, and whole-account scopes. Use this skill when the user asks for a MongoDB health check, DDS inspection, resource usage review, slow query analysis, current session snapshot, alert review, or configuration risk assessment. Triggers: MongoDB 巡检, MongoDB 健康检查, DDS 巡检, 实例巡检, MongoDB health check, MongoDB inspection, 资源使用率, 慢日志, 慢查询, 当前会话, 报警历史, 配置检查, 风险评估, 数据库健康报告, 性能巡检, 巡检报告.
openclaw skills install @sdk-team/alibabacloud-mongodb-health-inspectEverything in this skill is done by running one single command. You do NOT call any aliyun CLI commands yourself. You do NOT generate any report files yourself. You ONLY run this:
SKILL_SESSION_ID={session-id} bash scripts/run-inspect.sh {INSTANCE_ARGS} {OPTIONS}
The script handles ALL of the following internally — you do NOT do any of these yourself:
~/Downloads/ by default{INSTANCE_ARGS} (required)| User intent | {INSTANCE_ARGS} |
|---|---|
| Gives one instance ID | dds-xxx |
| Gives multiple instance IDs | dds-xxx dds-yyy (space-separated, ONE command) |
| "all instances" / full account scan | --all |
| All instances in a specific region | --all --region cn-hangzhou |
--days (optional)| User intent | Option |
|---|---|
| "last 3 days" / recent N days | --days 3 |
| "last week" / no mention | omit (default: 7) |
| Custom N days | --days N |
--item (optional, can repeat)| User mentions | Option |
|---|---|
| CPU / memory / resource usage / connections / IOPS | --item resource |
| slow log / slow query | --item slowlog |
| alarm / alert | --item alert |
| config check / risk assessment / version / expiry | --item config |
| space / disk / collection size | --item space |
| session / currentOp | --item session |
| Multiple areas | combine: --item slowlog --item alert |
| Full inspection / nothing specific | omit (default: all items) |
Present the report file path from the script output to the user. Do NOT add any extra content, sections, or summaries.
# User: "inspect instance dds-bp1acbc74a1f9e04"
SKILL_SESSION_ID={session-id} bash scripts/run-inspect.sh dds-bp1acbc74a1f9e04
# User: "inspect dds-xxx and dds-yyy, combined report"
SKILL_SESSION_ID={session-id} bash scripts/run-inspect.sh dds-bp15195cbe597cd4 dds-bp1f4501681c0454
# User: "inspect all instances, last 1 day"
SKILL_SESSION_ID={session-id} bash scripts/run-inspect.sh --all --days 1
# User: "all instances in cn-hangzhou, last 3 days"
SKILL_SESSION_ID={session-id} bash scripts/run-inspect.sh --all --region cn-hangzhou --days 3
# User: "analyze slow logs for dds-xxx"
SKILL_SESSION_ID={session-id} bash scripts/run-inspect.sh dds-bp15195cbe597cd4 --item slowlog
# User: "check CPU and memory for dds-xxx, last 7 days"
SKILL_SESSION_ID={session-id} bash scripts/run-inspect.sh dds-bp1f4501681c0454 --item resource
# User: "check slow logs and alerts for two instances"
SKILL_SESSION_ID={session-id} bash scripts/run-inspect.sh dds-bp1f4501681c0454 dds-m5e14a05531b3dc4 --item slowlog --item alert
You MUST NOT do any of the following. Each is an immediate failure:
aliyun CLI to collect data — no aliyun dds, aliyun cms, aliyun das, or any API commands. The ONLY allowed aliyun commands are: aliyun configure list, aliyun version, aliyun configure set, aliyun pluginDescribeDBInstances. Use --all-o — unless the user explicitly requests a custom output path-f markdown or -f text — unless the user explicitly requests non-HTML formatRuntime:
Pre-check: Aliyun CLI >= 3.3.3 required
Run
aliyun versionto verify >= 3.3.3. If not installed or version too low, runcurl -fsSL https://aliyuncli.alicdn.com/setup.sh | bashto install/update, or seereferences/cli-installation-guide.mdfor installation instructions. Then [MUST] runaliyun configure set --auto-plugin-install trueto enable automatic plugin installation. Then [MUST] runaliyun plugin updateto ensure that any existing plugins are always up-to-date.
Upon loading this skill, generate a random session ID (32-char lowercase hex string) once for the entire session. Use it as {session-id} in the command template above.
Rule: Every aliyun CLI command that calls a cloud API MUST include the --user-agent flag.
Local utility commands (e.g. configure, plugin, version) do not support this flag and should be excluded.
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-mongodb-health-inspect/{session-id}
Note: The script reads
SKILL_SESSION_IDfrom environment and appends user-agent internally. Do NOT pass--user-agentwhen running the script.
Pre-check: Alibaba Cloud Credentials Required
Security Rules:
- NEVER read, echo, or print AK/SK values
- NEVER ask the user to input AK/SK directly in the conversation or command line
- ONLY use
aliyun configure listto check credential statusIf no valid profile exists, STOP here. Guide the user to configure credentials outside of this session.
For the full permission policy and descriptions, see references/ram-policies.md.
[MUST] Permission Failure Handling: When the script fails due to permission errors:
- Read
references/ram-policies.mdto get the full list of permissions required- Use
ram-permission-diagnoseskill to guide the user through requesting the necessary permissions- Pause and wait until the user confirms that the required permissions have been granted
This skill is read-only: