Alibabacloud Analyticdb Mysql Copilot

v0.0.2

Alibaba Cloud AnalyticDB for MySQL Operations & Diagnosis Assistant. Supports cluster info queries, performance monitoring, slow query diagnosis, running SQL...

0· 119·0 current·0 all-time
byalibabacloud-skills-team@sdk-team

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for sdk-team/alibabacloud-analyticdb-mysql-copilot.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Alibabacloud Analyticdb Mysql Copilot" (sdk-team/alibabacloud-analyticdb-mysql-copilot) from ClawHub.
Skill page: https://clawhub.ai/sdk-team/alibabacloud-analyticdb-mysql-copilot
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install alibabacloud-analyticdb-mysql-copilot

ClawHub CLI

Package manager switcher

npx clawhub@latest install alibabacloud-analyticdb-mysql-copilot
Security Scan
Capability signals
Requires walletRequires OAuth tokenRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name/description align with what the instructions do: all core actions are calls to aliyun adb and aliyun adbai (cluster queries, performance/slow-query diagnosis). The skill asks for Aliyun CLI usage and cloud credentials, which are expected for this purpose.
Instruction Scope
Instructions require invoking the aliyun CLI for real-time diagnostics, mandate adding a custom User-Agent, enabling CLI 'ai-mode', forcibly overriding region/endpoint routing for adbai calls, always printing the full command at the start of responses, and explicitly forbid printing AK/SK. These are within the operational scope but are prescriptive (force endpoint mapping, must-execute API calls, and require toggling ai-mode). The SKILL.md also includes a recommended shell pipeline to install the CLI (curl | bash) and commands to auto-install/update plugins — those actions can install code and should be reviewed before running.
Install Mechanism
There is no formal install spec in the registry (instruction-only). However SKILL.md advises running official Alibaba Cloud CDN downloads (aliyuncli.alicdn.com) and provides curl | bash setup instructions. The download host looks like the official CDN, but piping remote scripts to bash and auto plugin updates are higher-risk operations and should be inspected/approved by the user before execution.
Credentials
The skill requests no environment variables or credentials directly in the registry metadata and instructs users to configure credentials outside the conversation (via aliyun configure or env vars). That is proportionate. The skill recommends an IAM policy (read-only actions for diagnosis) which is appropriate; follow least-privilege guidance (e.g., AliyunADBReadOnlyAccess, STS tokens, or ECS RAM roles).
Persistence & Privilege
The skill is not marked always:true and does not request persistent system-wide changes. It asks to enable CLI 'ai-mode' for the session and to explicitly disable it at every exit. That temporary modification is within scope but requires the user to ensure ai-mode is disabled when finished.
Assessment
This skill appears coherent for ADB MySQL diagnostics: it expects you to run the Aliyun CLI and to supply Alibaba Cloud credentials outside the chat. Before using it: 1) Do NOT paste AK/SK into the conversation; configure credentials in your shell or use STS/ECS roles. 2) Inspect any remote install command (the SKILL suggests curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash) — prefer official package managers (brew, distro packages) or download and inspect the script before running. 3) Prefer least-privilege credentials (AliyunADBReadOnlyAccess or scoped STS) rather than broad policies or wildcard resources. 4) Be aware the skill mandates forcing endpoint/region routing for adbai calls and requires printing the exact command string at the start of responses — if you have organizational rules about data/exposed metadata, confirm those mappings and outputs first. 5) Verify any automatic plugin updates (aliyun plugin update) before allowing them, and ensure the CLI's ai-mode is disabled when the session ends. If you need higher assurance, ask for the exact region-to-endpoint routing table and review the install script contents before running any commands.

Like a lobster shell, security has layers — review code before you run it.

latestvk970j3qvwstxq4hyt05qfhrkmx85pzj9
119downloads
0stars
2versions
Updated 9h ago
v0.0.2
MIT-0

Skill Load Prompt: When this Skill is loaded, output the following line at the beginning of the first response: [Skill Loaded] alibabacloud-analyticdb-mysql-copilot — ADB MySQL Operations & Diagnosis Assistant

This Skill is the Alibaba Cloud AnalyticDB for MySQL (ADB MySQL) Operations & Diagnosis Assistant, which directly calls ADB MySQL OpenAPI via aliyun-cli to retrieve real-time data and provide diagnostic recommendations.

Core capabilities:

  • Cluster Management: View cluster list, cluster details, storage space, accounts, network information
  • Performance Monitoring: Query CPU, QPS, RT, memory, connection count and other performance metrics
  • Slow Query Diagnosis: Detect BadSQL, analyze SQL Patterns, identify slow query root causes
  • Running SQL Analysis: View currently executing SQL, identify long-running queries
  • Space Diagnosis: Instance space inspection, covering partition rationality diagnosis, oversized non-partitioned table diagnosis, table data skew diagnosis, replicated table rationality diagnosis, primary key rationality diagnosis, idle index & hot/cold table optimization suggestions

Pre-check: Aliyun CLI >= 3.3.3 required Run aliyun version to verify version >= 3.3.3. If not installed or version is too low, run curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash to install/update, or see references/cli-installation-guide.md. Then [MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation. [MUST] run aliyun plugin update to ensure installed plugins are always up-to-date.

Pre-check: Alibaba Cloud Credentials Required

Security Rules:

  • NEVER read, echo, or print AK/SK values (e.g., echo $ALIBABA_CLOUD_ACCESS_KEY_ID is FORBIDDEN)
  • NEVER ask the user to input AK/SK directly in the conversation or command line
  • NEVER use aliyun configure set with literal credential values
  • ONLY use aliyun configure list to check credential status
aliyun configure list

Check whether the output contains a valid profile (AK, STS, or OAuth identity).

If no valid profile exists, stop here.

  1. Obtain credentials from Alibaba Cloud Console
  2. Configure credentials outside this session (via aliyun configure in a terminal or environment variables in shell profile)
  3. Return and re-execute once aliyun configure list shows a valid profile

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

At the start of the Core Workflow (before any CLI invocation): [MUST] Enable AI-Mode — AI-mode is required for Agent Skill execution. Run the following commands before any CLI invocation:

aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-mysql-copilot"

[MUST] Disable AI-Mode at EVERY exit point — Before delivering the final response for ANY reason, always disable AI-mode first. This applies to ALL exit paths: workflow success, workflow failure, error/exception, user cancellation, session end, or any other scenario where no further CLI commands will be executed. AI-mode is only used for Agent Skill invocation scenarios and MUST NOT remain enabled after the skill stops running.

aliyun configure ai-mode disable

1. Region & Cluster ID Conventions

1.1 Cluster Management (aliyun adb)

Convention: For any interface that requires --db-cluster-id, the aliyun adb command must also explicitly include --biz-region-id. Even if the official/CLI help does not mark it as "required", this Skill's convention takes precedence — always include it to avoid relying on implicit default regions.

Exception: Only when listing resources by region or calling interfaces that do not include --db-cluster-id (such as describe-db-clusters) — --biz-region-id is still required, but the "paired with db-cluster-id" rule does not apply.

<region-id> Source Priority: User explicitly specified → conversation/ticket context → default region from aliyun configure list → confirm with user.

1.2 Intelligent Diagnosis (aliyun adbai)

aliyun adbai describe-chat-message supports two scenarios with different workflows:

Product Knowledge Q&A (No Region or Cluster Required)

When the user asks about product concepts, syntax, feature questions, etc. (e.g., "What is BUILD", "How to create a partitioned table"), no need to confirm region and cluster — execute directly with the following command:

aliyun adbai describe-chat-message --region cn-beijing --endpoint adbai.cn-beijing.aliyuncs.com --biz-region-id cn-beijing --query "<user question>" --user-agent AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-mysql-copilot

Instance-Level Diagnosis (Requires Region + Cluster)

When diagnosis involves specific instance data or status (e.g., slow queries, BadSQL, SQL Pattern analysis, instance health inspection, index optimization suggestions, instance diagnosis, table modeling diagnosis, etc.), the following steps must be completed:

  1. Region Confirmation: <region-id> source priority is: user explicitly specified → conversation/ticket context → default region from aliyun configure list → confirm with user. If user confirmation is needed, must read references/region-list.md and present options as option cards — forbidden to require manual region ID input.
  2. Cluster ID Validation: Before calling aliyun adbai, must first execute aliyun adb describe-db-clusters --api-version 2021-12-01 --biz-region-id <region-id> --region <region-id>, and search for the user's cluster ID in the returned Items.DBCluster[]:
    • Match found → validation passed
    • Empty list or no match → do not proceed, display actual clusters as option cards for user to select
    • User did not provide cluster ID → display cluster list as option cards (≤10 options) for user to select
  3. Pre-Execution Confirmation: After parameter validation, present the operation to be executed as option cards (e.g., "Continue" / "Cancel") for user confirmation — forbidden to require manual confirmation input.
  4. Mandatory Checklist (all conditions must be met before execution, none can be omitted):
    • biz-region-id confirmed by user
    • cluster-id confirmed by user and exists in describe-db-clusters returned list
    • Pre-execution confirmation obtained from user
  5. Region Routing Rules (P0): The aliyun adbai service endpoint is not deployed in every region. For all aliyun adbai calls, --region and --endpoint must be forcibly overridden according to the following routing table mapping, even if the user has specified a region — do not use the user's specified values:
biz-region-id--region--endpoint
cn-hangzhou, cn-shanghai, cn-beijing, cn-shenzhen, cn-hongkong, cn-qingdao, cn-heyuan, cn-chengdu, cn-guangzhou, cn-zhangjiakou, cn-wulanchabu, cn-huhehaote, cn-shanghai-cloudspe, cn-hangzhou-finance, cn-beijing-finance-1, cn-shenzhen-finance-1, cn-shanghai-finance-1cn-beijingadbai.cn-beijing.aliyuncs.com
ap-southeast-1, ap-southeast-3, ap-southeast-5, ap-southeast-6, ap-southeast-7, ap-northeast-1, ap-northeast-2, eu-central-1, eu-west-1, me-east-1, me-central-1, na-south-1ap-southeast-1adbai.ap-southeast-1.aliyuncs.com
us-east-1, us-west-1us-west-1adbai.us-west-1.aliyuncs.com

Example: User's cluster is in cn-zhangjiakou--biz-region-id cn-zhangjiakou --region cn-beijing --endpoint adbai.cn-beijing.aliyuncs.com

All sections below and examples in references/*.md that contain --db-cluster-id without --biz-region-id are automatically supplemented per this section's convention; this is not repeated in each reference — this section takes precedence.

2. Scenario Routing

Product Boundary: This Skill only applies to AnalyticDB for MySQL (ADB MySQL), cluster IDs typically start with am-xxx or amv-xxx. If the user mentions other Alibaba Cloud products (e.g., Elasticsearch, RDS MySQL, PolarDB, ClickHouse, etc.), clearly inform the user that this Skill does not apply and stop execution.


🚨🚨🚨 MUST | P0 | NON-NEGOTIABLE — Mandatory Enforcement Rules (Violation = Failure) 🚨🚨🚨

The following rules have the highest priority and must be enforced unconditionally — they must not be violated under any circumstances:

Rule 1: Mandatory API Invocation

When a user request matches the following scenarios, must immediately execute the corresponding API callskipping is prohibited:

User Request KeywordsMUST-Call APIProhibited Behavior
"cluster list", "instance list", "all clusters", "list clusters"describe-db-clusters❌ Not calling API, giving advice directly
"data skew", "BadSQL", "slow SQL detection", "running SQL", "idle index", "SQL Pattern", "space diagnosis", "health inspection", "instance diagnosis", "slow query", "RT increase", "cluster stall" and other diagnosis keywordsDescribeChatMessage❌ Not calling API, only giving advice/explaining concepts

Rule 2: Mandatory Command String Output (First Line of Response)

MUST: Every ADB OpenAPI call, must explicitly output the executed command string at the [first line] or [beginning] of the response.

Mandatory Format (must be strictly followed):

Command executed: `aliyun adb <command-name> --api-version 2021-12-01 --biz-region-id <region-id> [--db-cluster-id <cluster-id>] [other parameters]`
or
Command executed: `aliyun adbai describe-chat-message --region <mapped-region> --endpoint <mapped-endpoint> --biz-region-id <region-id> --query "<user question>"`

[Then diagnostic results, tables, etc.]

Correct Examples:

Command executed: `aliyun adb describe-db-clusters --api-version 2021-12-01 --biz-region-id cn-zhangjiakou --region cn-zhangjiakou`

Query complete! There are 2 ADB MySQL clusters in the Zhangjiakou region...
Command executed: `aliyun adbai describe-chat-message --region cn-beijing --endpoint adbai.cn-beijing.aliyuncs.com --biz-region-id cn-zhangjiakou --query "amv-xxx slow query diagnosis for the last 3 hours"`

Diagnosis complete! Found the following issues...

Incorrect Examples (violation = failure):

❌ Query complete! There are 2 clusters in the Zhangjiakou region... (command string not output)
❌ I called the API to query the cluster list... (complete command not output)
❌ Command executed... (specific command content not output)
❌ aliyun adb describe-db-clusters --biz-region-id cn-zhangjiakou --region cn-zhangjiakou (missing --api-version 2021-12-01)

Rule 3: Prohibited Evasion Behaviors

NON-NEGOTIABLE: The following behaviors are absolutely prohibited:

  • ❌ Not calling API and directly giving general advice or concept explanations
  • ❌ Calling API but not outputting the complete command string at the beginning of the response
  • ❌ Using vague expressions like "We suggest you...", "You can try..." instead of actual diagnosis
  • ❌ Only outputting documentation content without executing actual operations
  • ❌ Placing the command string in the middle or end of the response
  • ❌ Calling aliyun adb commands without --api-version 2021-12-01 (would default to the old version 2019-03-15)

Violating the above rules = task failure, no exceptions


🔴 Cluster ID Recognition Rule (Highest Priority): If the user-provided cluster ID starts with am- or amv-, then the cluster is definitely an ADB MySQL cluster. No need and must not verify its ownership through aliyun rds, aliyun polardb, aliyun clickhouse, aliyun hbase or other product commands. Violating this rule will result in numerous invalid API calls.

Based on the user's intent, read the corresponding references/ files for detailed operation guidelines.

User IntentReference FileWhen to UseMUST-Call API
View instance list, instance details, cluster configuration, storage spaceRead references/cluster-info.md then executeWhen the user wants to know what instances exist, instance specifications, or disk usagedescribe-db-clusters / describe-db-cluster-attribute
Slow query diagnosis, BadSQL, running queries, SQL Pattern, instance diagnosis, instance write diagnosis, space diagnosis, table modeling diagnosis, data skew, idle index, product knowledge Q&A, etc.Read references/cluster-diagnosis.md then executeWhen the user reports performance anomalies, needs instance diagnosis, table modeling optimization, or product knowledge Q&Adescribe-chat-message

Routing Rules:

  1. Identify the user's intent and find the matching scenario from the table above
  2. 🚨 MUST: Immediately execute the corresponding API command (do not skip, do not only give advice): cluster management uses aliyun adb, intelligent diagnosis uses aliyun adbai describe-chat-message
  3. 🚨 MUST: Output the command string in the response (e.g., aliyun adb describe-db-clusters --api-version 2021-12-01 --biz-region-id <region-id> --region <region-id> or aliyun adbai describe-chat-message --region <mapped-region> --endpoint <mapped-endpoint> --biz-region-id <region-id> --query "<question>")
  4. Cluster management scenario: read references/cluster-info.md, execute per its steps; diagnosis scenario: read references/cluster-diagnosis.md, execute per its steps
  5. If the user's intent cannot be matched to a specific scenario in the table, execute the following default diagnosis workflow:
    1. Call describe-db-clusters to confirm the cluster exists and its status is normal
    2. Use option cards to list the 2-3 most likely routing options (refer to the table above) — forbidden to require manual diagnosis type input
    3. Based on user selection, route to the corresponding operation and continue execution
  6. Multiple scenarios can be combined — e.g., first confirm the target instance via cluster info, then diagnose and locate the issue via describe-chat-message

Cluster ID Validation Rule: If the user-provided cluster ID does not exist in the API response (error code InvalidDBClusterId.NotFound), do not abort the task. Instead, call describe-db-clusters to list the actual clusters in that region, guide the user to confirm the correct cluster ID, and continue execution.

3. Time Parameter Handling

Note: The describe-chat-message interface automatically handles time parameters — no need to manually pass time ranges. The user only needs to describe the time in natural language within --query (e.g., "slow queries in the last 3 hours"), and the interface will parse it automatically.

For cluster information query interfaces like aliyun adb (e.g., describe-db-clusters), no time parameters are needed.

4. Command Reference

4.1 OpenAPI Commands (aliyun-cli)

This Skill uses two CLI command formats:

Cluster Management (aliyun adb)

aliyun adb <command-name> --api-version 2021-12-01 --biz-region-id <region-id> --region <region-id> [--db-cluster-id <cluster-id>] [other parameters] --user-agent AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-mysql-copilot

🚨 API Version Mandatory Requirement (P0): When calling aliyun adb, must always explicitly include --api-version 2021-12-01. ADB MySQL has two API versions (2019-03-15 and 2021-12-01), and the CLI may default to the old version 2019-03-15, which lacks the interfaces needed by this Skill. Commands without --api-version 2021-12-01 will fail, constituting task failure.

This Skill's Convention: For any row in the table below that "requires --db-cluster-id", the actual command must also include --biz-region-id <region-id> (see Section 1.1). Only describe-db-clusters does not follow the "paired" rule, but still requires --biz-region-id.

CLI Command NameDescriptionRequires --db-cluster-id
describe-db-clustersQuery ADB MySQL cluster list within a regionNo
describe-db-cluster-attributeQuery cluster detailed attributesYes
describe-db-cluster-space-summaryQuery storage space overviewYes

Intelligent Diagnosis (aliyun adbai)

aliyun adbai describe-chat-message --region <mapped-region> --endpoint <mapped-endpoint> --biz-region-id <region-id> --query "<user question>" --user-agent AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-mysql-copilot

DescribeChatMessage is the SSE streaming interface of the ADB MySQL intelligent diagnosis assistant, providing product RAG retrieval and instance analysis, kernel diagnosis capabilities. It includes the following diagnosis scenarios:

  • Slow SQL Query Diagnosis: Performance metric analysis, BadSQL detection, running SQL analysis, SQL Pattern analysis
  • Instance Diagnosis: Instance health inspection, capacity assessment, scaling recommendations
  • Instance Write Diagnosis: Write performance analysis, write bottleneck identification
  • Table Modeling Diagnosis: Oversized non-partitioned tables, partition rationality, primary key rationality, data skew, replicated table rationality, idle indexes, hot/cold table optimization
ParameterDescriptionRequired
--biz-region-idUser's cluster region ID (product knowledge Q&A uses default value cn-beijing, no user confirmation needed)Conditionally required
--queryQuery content; for instance diagnosis, format is "<cluster-id> <diagnosis question>"; for product knowledge questions, ask directly (e.g., "What is BUILD").Yes
--regionService endpoint region (Skill auto-maps based on --biz-region-id, no user specification needed)Auto
--endpointService endpoint address (Skill auto-maps based on --biz-region-id, no user specification needed)Auto
--session-idSession ID for multi-turn conversations (not passed = new session)No
--timezoneTimezone, default Asia/ShanghaiNo

Important: Instance-level diagnosis (slow queries, table modeling, etc.) --query must include the cluster ID; no need to separately pass --db-cluster-id; product knowledge questions do not need a cluster ID. Examples: "amv-xxx slow query diagnosis for the last 3 hours", "What is BUILD"

Examples:

# Slow query diagnosis
aliyun adbai describe-chat-message --region cn-beijing --endpoint adbai.cn-beijing.aliyuncs.com --biz-region-id cn-zhangjiakou \
  --query "amv-xxx slow query diagnosis for the last 3 hours" --user-agent AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-mysql-copilot

# Instance health inspection
aliyun adbai describe-chat-message --region cn-beijing --endpoint adbai.cn-beijing.aliyuncs.com --biz-region-id cn-zhangjiakou \
  --query "amv-xxx instance health inspection analysis" --user-agent AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-mysql-copilot

# Table modeling diagnosis
aliyun adbai describe-chat-message --region cn-beijing --endpoint adbai.cn-beijing.aliyuncs.com --biz-region-id cn-zhangjiakou \
  --query "amv-xxx instance space diagnosis and table modeling diagnosis" --user-agent AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-mysql-copilot

# Data skew detection
aliyun adbai describe-chat-message --region cn-beijing --endpoint adbai.cn-beijing.aliyuncs.com --biz-region-id cn-zhangjiakou \
  --query "amv-xxx detect data skewed tables" --user-agent AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-mysql-copilot

# Product knowledge Q&A
aliyun adbai describe-chat-message --region cn-beijing --endpoint adbai.cn-beijing.aliyuncs.com --biz-region-id cn-beijing \
  --query "What is BUILD" --user-agent AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-mysql-copilot

4.2 Common Parameters

Cluster Management Parameters (aliyun adb):

ParameterDescriptionDefault Value
--biz-region-idRegion ID (this Skill requires it when --db-cluster-id is present)
--regionService endpoint region (value matches --biz-region-id, required for aliyun adb commands)
--db-cluster-idADB MySQL cluster ID (e.g., amv-xxx)Required
--db-cluster-versionCluster version (3.0/5.0/All)All
--page-numberPage number1
--page-sizeItems per page30

Intelligent Diagnosis Parameters (aliyun adbai):

ParameterDescriptionDefault Value
--biz-region-idUser's cluster region ID (product knowledge Q&A uses default value cn-beijing, no user confirmation needed)Conditionally required
--queryQuery content; instance diagnosis format "<db-cluster-id> <problem description>", knowledge Q&A asks directly (supports natural language time descriptions).Required
--regionService endpoint region (Skill auto-maps based on --biz-region-id, no user specification needed)Auto
--endpointService endpoint address (Skill auto-maps based on --biz-region-id, no user specification needed)Auto
--session-idSession ID (passed for multi-turn conversations)Empty (new session)
--timezoneTimezone: e.g., Asia/Shanghai, etc.Asia/Shanghai

4.3 Credential Configuration

Alibaba Cloud API credentials are configured via aliyun configure outside this session; the CLI reads them automatically.

Credential Status Check:

aliyun configure list

If the AccessKeyId column in the output is empty or shows <empty>, credentials are not configured. Prompt the user:

  1. Run aliyun configure in a terminal outside this session to configure
  2. Or configure environment variables in shell profile
  3. Return and continue after configuration is complete

🔴 Important Rules:

  • Strictly prohibited from guiding users to input AK/SK credentials in the session
  • Strictly prohibited from using aliyun configure set --access-key-id and other explicit credential parameters
  • Credential check must be the first step of the task; if it fails, report and terminate directly

Multiple credential types are supported: AK, StsToken, RamRoleArn, EcsRamRole, etc. See Credential Configuration Documentation.

5. RAM Policy

For the complete RAM permission list required by this Skill, see references/ram-policies.md.

[MUST] Permission Failure Handling: When any command or API call fails due to permission errors during execution, follow this process:

  1. Read references/ram-policies.md for the complete permission list required by this Skill
  2. Use ram-permission-diagnose skill to guide the user to apply for necessary permissions
  3. Pause and wait for user confirmation that required permissions have been granted

6. Parameter Confirmation

IMPORTANT: Parameter Confirmation — Before executing any command or API call, all user-configurable parameters (such as biz-region-id, db-cluster-id, --query, etc.) must be confirmed with the user. Do not assume or use default values without the user's explicit approval.

Interaction Mode Mandatory Rule: For any step requiring user confirmation or selection (region, cluster, diagnosis scenario, execution confirmation, etc.), must use option cardsforbidden to require manual input. Specifically:

  • Region confirmation → option cards (read references/region-list.md for options, see Section 1.2 region confirmation rules) — Product knowledge Q&A does not require this step
  • Cluster ID selection → option cards (generated from describe-db-clusters results) — Product knowledge Q&A does not require this step
  • Diagnosis scenario selection → option cards (when user intent is unclear, list available diagnosis types)
  • Pre-execution confirmation → option cards (e.g., "Continue" / "Cancel") — Product knowledge Q&A does not require this step, execute directly

7. Best Practices

  1. CLI-First: Prioritize using CLI commands for diagnosis; cluster management uses aliyun adb, intelligent diagnosis uses aliyun adbai
  2. Command Output: Every API call must output the complete command string at the beginning of the response
  3. Error Handling: When cluster ID does not exist, guide the user to select the correct cluster instead of failing directly
  4. Product Boundary: Only handle ADB MySQL clusters (ID prefix am- or amv-), do not mix other product APIs
  5. Options First: For any step requiring user confirmation or selection, always use option cards; do not require manual input

8. Reference Links

Reference FileContent
references/ram-policies.mdRAM permission list
references/verification-method.mdVerification methods
references/cli-installation-guide.mdAliyun CLI installation guide
references/region-list.mdAlibaba Cloud region ID list
references/cluster-info.mdCluster info query detailed steps
references/cluster-diagnosis.mdCluster intelligent diagnosis detailed steps

Comments

Loading comments...