PolarDB-X Distributed Database AI Assistant
This skill provides intelligent O&M capabilities for Alibaba Cloud PolarDB-X distributed database, powered by the DAS (Database Autonomy Service) get-yao-chi-agent API via the aliyun CLI DAS plugin.
Architecture: Aliyun CLI -> DAS Plugin (Signature V3) -> get-yao-chi-agent API -> PolarDB-X Intelligent Diagnostics
Supported Capabilities
| Capability |
Description |
| Instance Information |
Instance details, cluster configuration, version info |
| Topology Inspection |
CN/DN node distribution, shard topology, data node status |
| Storage Information |
Disk usage, storage capacity, space growth trends |
| SQL Optimization |
Slow SQL analysis, distributed execution plan interpretation, index suggestions, cross-shard query optimization |
| Cluster Performance Monitoring |
QPS/TPS/connections/throughput and other core metrics analysis |
| Connection & Session Analysis |
Connection count monitoring, session troubleshooting, connection pool optimization |
| Security Audit |
Whitelist, SSL, security policy audit |
| Backup Status Check |
Backup completeness, retention policy, point-in-time recovery |
| Instance Health Check |
Instance health status, running state verification |
| Log Diagnostics |
Error log analysis, slow log troubleshooting |
| Data Distribution Analysis |
Shard data skew detection, hotspot shard diagnostics |
| Elastic Scaling Diagnostics |
Scale-out/in status, data migration progress, node load balancing |
| Parameter Tuning |
Kernel parameter interpretation, change impact assessment, configuration recommendations |
| High Availability & DR |
HA configuration assessment, disaster recovery architecture diagnostics, primary-standby status |
| Expiring Instance Query |
Subscription instance expiration reminders, renewal status |
Installation
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 install/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 on your local machine are always up-to-date.
[MUST] CLI User-Agent — Every aliyun CLI command invocation must include:
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-polardbx-ai-assistant
[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-polardbx-ai-assistant"
[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
# Install aliyun CLI
curl -fsSL https://aliyuncli.alicdn.com/install.sh | bash
aliyun version # Verify >= 3.3.3
# Enable automatic plugin installation
aliyun configure set --auto-plugin-install true
# Install DAS plugin (get-yao-chi-agent requires plugin for Signature V3 support)
aliyun plugin install --names aliyun-cli-das
# Install jq (for JSON response parsing)
# macOS:
brew install jq
# Ubuntu/Debian:
# sudo apt-get install jq
Environment Variables
No additional environment variables are required. This skill relies entirely on the aliyun CLI's existing credential configuration.
Authentication
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 the output for a valid profile (AK, STS, or OAuth identity).
If no valid profile exists, STOP here.
- Obtain credentials from Alibaba Cloud Console
- Configure credentials outside of this session (via
aliyun configure in terminal or environment variables in shell profile)
- Return and re-run after
aliyun configure list shows a valid profile
Credentials are managed through aliyun CLI configuration — no additional AK/SK setup is needed:
# Recommended: OAuth mode
aliyun configure --mode OAuth
# Alternative: AK mode (configure outside of agent session)
aliyun configure set \
--mode AK \
--access-key-id <your-access-key-id> \
--access-key-secret <your-access-key-secret> \
--region cn-hangzhou
# Cross-account access: RamRoleArn mode
aliyun configure set \
--mode RamRoleArn \
--access-key-id <your-access-key-id> \
--access-key-secret <your-access-key-secret> \
--ram-role-arn acs:ram::<account-id>:role/<role-name> \
--role-session-name yaochi-agent-session \
--region cn-hangzhou
RAM Policy
See references/ram-policies.md for the full list of required permissions.
[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:
- Read
references/ram-policies.md to get the full list of permissions required by this SKILL
- Use
ram-permission-diagnose skill to guide the user through requesting the necessary permissions
- Pause and wait until the user confirms that the required permissions have been granted
Parameter Confirmation
IMPORTANT: Parameter Confirmation — Before executing any command or API call,
ALL user-customizable parameters (e.g., RegionId, instance names, CIDR blocks,
passwords, domain names, resource specifications, etc.) MUST be confirmed with the
user. Do NOT assume or use default values without explicit user approval.
| Parameter |
Required/Optional |
Description |
Default Value |
query |
Required |
Natural language query content (including region, instance info, etc.) |
- |
--session-id |
Optional |
Session ID for multi-turn conversation context |
- |
--profile |
Optional |
aliyun CLI profile name |
default |
Core Workflow
All intelligent O&M operations MUST be invoked through scripts/call_yaochi_agent.sh, which wraps the aliyun das get-yao-chi-agent (DAS plugin kebab-case command, supporting Signature V3) with streaming response parsing.
⚠️ CRITICAL RESTRICTION:
- DO NOT use direct
aliyun polardbx or aliyun rds CLI commands for diagnostics, topology, or security audits.
- DO NOT attempt to query instance details using
DescribeDBInstances or similar APIs directly.
- ONLY use the DAS plugin command:
aliyun das get-yao-chi-agent (wrapped by call_yaochi_agent.sh).
- If the script fails, check permissions via
ram-permission-diagnose skill, DO NOT fallback to other product APIs.
# Cluster Management
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "List PolarDB-X instances in Hangzhou region"
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show detailed configuration of instance pxc-xxx"
# Topology Inspection
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show CN/DN node distribution of instance pxc-xxx"
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show shard topology of instance pxc-xxx"
# Performance Diagnostics
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Analyze performance of instance pxc-xxx in the last hour"
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show slow SQL of instance pxc-xxx"
# SQL Optimization
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Optimize execution plan of this SQL on instance pxc-xxx"
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Which cross-shard queries on instance pxc-xxx need optimization"
# Data Distribution
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Check whether data distribution of instance pxc-xxx is even"
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Are there any hotspot shards on instance pxc-xxx"
# Elastic Scaling
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show scale-out status of instance pxc-xxx"
# Parameter Tuning
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "How to tune CONN_POOL_MAX_POOL_SIZE parameter on instance pxc-xxx"
# Connection & Session
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "How to troubleshoot high connection count on instance pxc-xxx"
# Backup & Restore
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show backup status of instance pxc-xxx"
# Security Audit
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Check security configuration of instance pxc-xxx"
# High Availability & DR
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show HA configuration of instance pxc-xxx"
# Multi-turn Conversation (use session ID returned from previous call)
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Continue analysis" --session-id "<session-id>"
# Specify profile
bash $SKILL_DIR/scripts/call_yaochi_agent.sh "List instances" --profile myprofile
# Read from stdin
echo "List instances" | bash $SKILL_DIR/scripts/call_yaochi_agent.sh -
Typical Query Examples
| Scenario |
Example Query |
| Cluster Management |
Show node list of instance pxc-xxx |
| Topology |
How many CN and DN nodes does instance pxc-xxx have |
| Performance Diagnostics |
How to troubleshoot high CPU usage on instance pxc-xxx |
| Slow SQL Analysis |
Show slow SQL of instance pxc-xxx in the last hour |
| SQL Optimization |
Why is this SELECT statement slow on instance pxc-xxx |
| Data Distribution |
Is there data skew in shards of instance pxc-xxx |
| Elastic Scaling |
What is the scale-out progress of instance pxc-xxx |
| Parameter Tuning |
How to optimize connection pool parameters on instance pxc-xxx |
| Backup & Restore |
When was the latest backup of instance pxc-xxx |
| Storage Optimization |
What to do about rapid storage growth on instance pxc-xxx |
| Connection Troubleshooting |
Instance pxc-xxx connection count is maxed out |
| Security Audit |
Check security configuration of instance pxc-xxx |
| High Availability |
Is the DR architecture of instance pxc-xxx reasonable |
| Expiration Reminder |
Which PolarDB-X instances are about to expire |
Success Verification
See references/verification-method.md for detailed verification steps.
Cleanup
This skill focuses on query and diagnostics capabilities only. It does not create any resources, so no cleanup is needed.
The following operations are out of scope for this skill:
- Creating/deleting PolarDB-X instances
- Changing instance specifications
- Purchasing/renewing instances
Command Tables
See references/related-apis.md for the full list of APIs and CLI commands.
Best Practices
- Instance ID Format: PolarDB-X instance IDs start with
pxc-. Always include the full instance ID in queries.
- Region Specification: Explicitly specify the region in natural language queries (e.g., "Hangzhou region", "Beijing region") to improve query accuracy.
- Multi-turn Conversation: Use
--session-id to maintain context continuity in complex diagnostic scenarios.
- Concurrency Limit: Maximum 2 concurrent sessions per account. Avoid launching multiple parallel calls.
- Distributed Characteristics: When troubleshooting issues, distinguish between CN (Compute Node) and DN (Data Node) layers.
- Throttling Handling: If you encounter a
Throttling.UserConcurrentLimit error, wait for the previous query to complete before retrying.
- Credential Security: Use
aliyun configure to manage credentials. Never hardcode AK/SK in scripts.
Reference Links
| Reference |
Description |
| references/cli-installation-guide.md |
Aliyun CLI installation and configuration guide |
| references/related-apis.md |
Related APIs and CLI command list |
| references/ram-policies.md |
RAM permission policy list |
| references/verification-method.md |
Success verification methods |
| references/acceptance-criteria.md |
Acceptance criteria |
1---2name: alibabacloud-polardbx-ai-assistant3description: Alibaba Cloud PolarDB-X Distributed Database AI Assistant. Use for PolarDB-X cluster management, topology inspection, performance diagnostics, SQL optimization, data distribution analysis, elastic scaling diagnostics, connection/session analysis, security audit, backup/restore, parameter tuning, and other O&M operations. Triggers: "PolarDB-X", "distributed database", "pxc-", "DN/CN nodes", "data sharding", "PolarDB-X diagnostics", "PolarDB-X performance", "PolarDB-X slow SQL", "YaoChi Agent", "PolarDB-X topology", "PolarDB-X backup", "PolarDB-X security audit", "PolarDB-X scaling"4---5
6# PolarDB-X Distributed Database AI Assistant
7
8This skill provides intelligent O&M capabilities for **Alibaba Cloud PolarDB-X distributed database**, powered by the DAS (Database Autonomy Service) `get-yao-chi-agent` API via the aliyun CLI DAS plugin.
9
10**Architecture**: `Aliyun CLI` -> `DAS Plugin (Signature V3)` -> `get-yao-chi-agent API` -> PolarDB-X Intelligent Diagnostics
11
12### Supported Capabilities
13
14| Capability | Description |
15|------------|-------------|
16| Instance Information | Instance details, cluster configuration, version info |
17| Topology Inspection | CN/DN node distribution, shard topology, data node status |
18| Storage Information | Disk usage, storage capacity, space growth trends |
19| SQL Optimization | Slow SQL analysis, distributed execution plan interpretation, index suggestions, cross-shard query optimization |
20| Cluster Performance Monitoring | QPS/TPS/connections/throughput and other core metrics analysis |
21| Connection & Session Analysis | Connection count monitoring, session troubleshooting, connection pool optimization |
22| Security Audit | Whitelist, SSL, security policy audit |
23| Backup Status Check | Backup completeness, retention policy, point-in-time recovery |
24| Instance Health Check | Instance health status, running state verification |
25| Log Diagnostics | Error log analysis, slow log troubleshooting |
26| Data Distribution Analysis | Shard data skew detection, hotspot shard diagnostics |
27| Elastic Scaling Diagnostics | Scale-out/in status, data migration progress, node load balancing |
28| Parameter Tuning | Kernel parameter interpretation, change impact assessment, configuration recommendations |
29| High Availability & DR | HA configuration assessment, disaster recovery architecture diagnostics, primary-standby status |
30| Expiring Instance Query | Subscription instance expiration reminders, renewal status |
31
32## Installation
33
34> **Pre-check: Aliyun CLI >= 3.3.3 required**
35> Run `aliyun version` to verify >= 3.3.3. If not installed or version too low,
36> run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` to install/update,
37> or see [references/cli-installation-guide.md](references/cli-installation-guide.md) for installation instructions.
38
39> **Pre-check: Aliyun CLI plugin update required**
40> **[MUST]** run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation.
41> **[MUST]** run `aliyun plugin update` to ensure that any existing plugins on your local machine are always up-to-date.
42
43> **[MUST] CLI User-Agent** — Every `aliyun` CLI command invocation must include:
44> `--user-agent AlibabaCloud-Agent-Skills/alibabacloud-polardbx-ai-assistant`
45
46> **[MUST] Enable AI-Mode** — AI-mode is required for Agent Skill execution.
47> Run the following commands before any CLI invocation:
48> ```bash
49> aliyun configure ai-mode enable
50> aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-polardbx-ai-assistant"
51> ```
52
53> **[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.
54> AI-mode is only used for Agent Skill invocation scenarios and MUST NOT remain enabled after the skill stops running.
55> ```bash
56> aliyun configure ai-mode disable
57> ```
58
59```bash
60# Install aliyun CLI
61curl -fsSL https://aliyuncli.alicdn.com/install.sh | bash
62aliyun version # Verify >= 3.3.3
63
64# Enable automatic plugin installation
65aliyun configure set --auto-plugin-install true
66
67# Install DAS plugin (get-yao-chi-agent requires plugin for Signature V3 support)
68aliyun plugin install --names aliyun-cli-das
69
70# Install jq (for JSON response parsing)
71# macOS:
72brew install jq
73# Ubuntu/Debian:
74# sudo apt-get install jq
75```
76
77## Environment Variables
78
79No additional environment variables are required. This skill relies entirely on the aliyun CLI's existing credential configuration.
80
81## Authentication
82
83> **Pre-check: Alibaba Cloud Credentials Required**
84>
85> **Security Rules:**
86> - **NEVER** read, echo, or print AK/SK values (e.g., `echo $ALIBABA_CLOUD_ACCESS_KEY_ID` is FORBIDDEN)
87> - **NEVER** ask the user to input AK/SK directly in the conversation or command line
88> - **NEVER** use `aliyun configure set` with literal credential values
89> - **ONLY** use `aliyun configure list` to check credential status
90>
91> ```bash
92> aliyun configure list
93> ```
94> Check the output for a valid profile (AK, STS, or OAuth identity).
95>
96> **If no valid profile exists, STOP here.**
97> 1. Obtain credentials from [Alibaba Cloud Console](https://ram.console.aliyun.com/manage/ak)
98> 2. Configure credentials **outside of this session** (via `aliyun configure` in terminal or environment variables in shell profile)
99> 3. Return and re-run after `aliyun configure list` shows a valid profile
100
101Credentials are managed through aliyun CLI configuration — **no additional AK/SK setup is needed**:
102
103```bash
104# Recommended: OAuth mode
105aliyun configure --mode OAuth
106
107# Alternative: AK mode (configure outside of agent session)
108aliyun configure set \
109 --mode AK \
110 --access-key-id <your-access-key-id> \
111 --access-key-secret <your-access-key-secret> \
112 --region cn-hangzhou
113
114# Cross-account access: RamRoleArn mode
115aliyun configure set \
116 --mode RamRoleArn \
117 --access-key-id <your-access-key-id> \
118 --access-key-secret <your-access-key-secret> \
119 --ram-role-arn acs:ram::<account-id>:role/<role-name> \
120 --role-session-name yaochi-agent-session \
121 --region cn-hangzhou
122```
123
124## RAM Policy
125
126See [references/ram-policies.md](references/ram-policies.md) for the full list of required permissions.
127
128> **[MUST] Permission Failure Handling:** When any command or API call fails due to permission errors at any point during execution, follow this process:
129> 1. Read `references/ram-policies.md` to get the full list of permissions required by this SKILL
130> 2. Use `ram-permission-diagnose` skill to guide the user through requesting the necessary permissions
131> 3. Pause and wait until the user confirms that the required permissions have been granted
132
133## Parameter Confirmation
134
135> **IMPORTANT: Parameter Confirmation** — Before executing any command or API call,
136> ALL user-customizable parameters (e.g., RegionId, instance names, CIDR blocks,
137> passwords, domain names, resource specifications, etc.) MUST be confirmed with the
138> user. Do NOT assume or use default values without explicit user approval.
139
140| Parameter | Required/Optional | Description | Default Value |
141|-----------|-------------------|-------------|---------------|
142| `query` | Required | Natural language query content (including region, instance info, etc.) | - |
143| `--session-id` | Optional | Session ID for multi-turn conversation context | - |
144| `--profile` | Optional | aliyun CLI profile name | default |
145
146## Core Workflow
147
148All intelligent O&M operations **MUST** be invoked through `scripts/call_yaochi_agent.sh`, which wraps the `aliyun das get-yao-chi-agent` (DAS plugin kebab-case command, supporting Signature V3) with streaming response parsing.
149
150> **⚠️ CRITICAL RESTRICTION:**
151> - **DO NOT** use direct `aliyun polardbx` or `aliyun rds` CLI commands for diagnostics, topology, or security audits.
152> - **DO NOT** attempt to query instance details using `DescribeDBInstances` or similar APIs directly.
153> - **ONLY** use the DAS plugin command: `aliyun das get-yao-chi-agent` (wrapped by `call_yaochi_agent.sh`).
154> - If the script fails, check permissions via `ram-permission-diagnose` skill, **DO NOT** fallback to other product APIs.
155
156```bash
157# Cluster Management
158bash $SKILL_DIR/scripts/call_yaochi_agent.sh "List PolarDB-X instances in Hangzhou region"
159bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show detailed configuration of instance pxc-xxx"
160
161# Topology Inspection
162bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show CN/DN node distribution of instance pxc-xxx"
163bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show shard topology of instance pxc-xxx"
164
165# Performance Diagnostics
166bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Analyze performance of instance pxc-xxx in the last hour"
167bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show slow SQL of instance pxc-xxx"
168
169# SQL Optimization
170bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Optimize execution plan of this SQL on instance pxc-xxx"
171bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Which cross-shard queries on instance pxc-xxx need optimization"
172
173# Data Distribution
174bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Check whether data distribution of instance pxc-xxx is even"
175bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Are there any hotspot shards on instance pxc-xxx"
176
177# Elastic Scaling
178bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show scale-out status of instance pxc-xxx"
179
180# Parameter Tuning
181bash $SKILL_DIR/scripts/call_yaochi_agent.sh "How to tune CONN_POOL_MAX_POOL_SIZE parameter on instance pxc-xxx"
182
183# Connection & Session
184bash $SKILL_DIR/scripts/call_yaochi_agent.sh "How to troubleshoot high connection count on instance pxc-xxx"
185
186# Backup & Restore
187bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show backup status of instance pxc-xxx"
188
189# Security Audit
190bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Check security configuration of instance pxc-xxx"
191
192# High Availability & DR
193bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show HA configuration of instance pxc-xxx"
194
195# Multi-turn Conversation (use session ID returned from previous call)
196bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Continue analysis" --session-id "<session-id>"
197
198# Specify profile
199bash $SKILL_DIR/scripts/call_yaochi_agent.sh "List instances" --profile myprofile
200
201# Read from stdin
202echo "List instances" | bash $SKILL_DIR/scripts/call_yaochi_agent.sh -
203```
204
205### Typical Query Examples
206
207| Scenario | Example Query |
208|----------|---------------|
209| Cluster Management | Show node list of instance pxc-xxx |
210| Topology | How many CN and DN nodes does instance pxc-xxx have |
211| Performance Diagnostics | How to troubleshoot high CPU usage on instance pxc-xxx |
212| Slow SQL Analysis | Show slow SQL of instance pxc-xxx in the last hour |
213| SQL Optimization | Why is this SELECT statement slow on instance pxc-xxx |
214| Data Distribution | Is there data skew in shards of instance pxc-xxx |
215| Elastic Scaling | What is the scale-out progress of instance pxc-xxx |
216| Parameter Tuning | How to optimize connection pool parameters on instance pxc-xxx |
217| Backup & Restore | When was the latest backup of instance pxc-xxx |
218| Storage Optimization | What to do about rapid storage growth on instance pxc-xxx |
219| Connection Troubleshooting | Instance pxc-xxx connection count is maxed out |
220| Security Audit | Check security configuration of instance pxc-xxx |
221| High Availability | Is the DR architecture of instance pxc-xxx reasonable |
222| Expiration Reminder | Which PolarDB-X instances are about to expire |
223
224## Success Verification
225
226See [references/verification-method.md](references/verification-method.md) for detailed verification steps.
227
228## Cleanup
229
230This skill focuses on **query and diagnostics** capabilities only. It does not create any resources, so no cleanup is needed.
231
232The following operations are **out of scope** for this skill:
233- Creating/deleting PolarDB-X instances
234- Changing instance specifications
235- Purchasing/renewing instances
236
237## Command Tables
238
239See [references/related-apis.md](references/related-apis.md) for the full list of APIs and CLI commands.
240
241## Best Practices
242
2431. **Instance ID Format**: PolarDB-X instance IDs start with `pxc-`. Always include the full instance ID in queries.
2442. **Region Specification**: Explicitly specify the region in natural language queries (e.g., "Hangzhou region", "Beijing region") to improve query accuracy.
2453. **Multi-turn Conversation**: Use `--session-id` to maintain context continuity in complex diagnostic scenarios.
2464. **Concurrency Limit**: Maximum 2 concurrent sessions per account. Avoid launching multiple parallel calls.
2475. **Distributed Characteristics**: When troubleshooting issues, distinguish between CN (Compute Node) and DN (Data Node) layers.
2486. **Throttling Handling**: If you encounter a `Throttling.UserConcurrentLimit` error, wait for the previous query to complete before retrying.
2497. **Credential Security**: Use `aliyun configure` to manage credentials. Never hardcode AK/SK in scripts.
250
251## Reference Links
252
253| Reference | Description |
254|-----------|-------------|
255| [references/cli-installation-guide.md](references/cli-installation-guide.md) | Aliyun CLI installation and configuration guide |
256| [references/related-apis.md](references/related-apis.md) | Related APIs and CLI command list |
257| [references/ram-policies.md](references/ram-policies.md) | RAM permission policy list |
258| [references/verification-method.md](references/verification-method.md) | Success verification methods |
259| [references/acceptance-criteria.md](references/acceptance-criteria.md) | Acceptance criteria |