alibabacloud-bailian-m…
Version v20261015 (date-based release, YYYYMMDD). Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian…
Design partition schemes, select partition keys, create GSI, and write SQL for PolarDB-X 2.0 Enterprise Edition AUTO mode databases, handling PolarDB-X vs MySQL differences (partitioned tables, GSI, CCI, Sequence, table groups, TTL, pagination, etc.). Use when designing
Claude Code
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-polardbx-sql --agent claude-code
Codex
$ npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-polardbx-sql -a codex -y
Cursor
$ npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-polardbx-sql -a cursor -y
Gemini CLI
$ npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-polardbx-sql -a gemini-cli -y
GitHub Copilot
$ npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-polardbx-sql -a github-copilot -y
OpenCode
$ npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-polardbx-sql -a opencode -y
Windsurf
$ npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-polardbx-sql -a windsurf -y
name: alibabacloud-polardbx-sql description: | Design partition schemes, select partition keys, create GSI, and write SQL for PolarDB-X 2.0 Enterprise Edition AUTO mode databases, handling PolarDB-X vs MySQL differences (partitioned tables, GSI, CCI, Sequence, table groups, TTL, pagination, etc.). Use when designing partition schemes, selecting partition keys, converting single tables to partitioned tables, creating GSI/CCI indexes, writing or migrating SQL for PolarDB-X, or diagnosing slow queries on PolarDB-X. Triggers: "PolarDB-X SQL", "PolarDB-X create table", "partitioned table", "partition design", "partition scheme", "partition key", "GSI", "CCI", "Sequence", "MySQL migrate to PolarDB-X", "PolarDB-X compatibility", "single table to partitioned table", "convert to partitioned table", "large table", "table sharding", "distributed table", "AUTO mode", "pagination query", "Keyset pagination", "Range partition", "auto add partition", "PolarDB-X slow query", "full-shard scan" metadata: version: 0.3.1
Write, review, and adapt SQL for PolarDB-X 2.0 Enterprise Edition (Distributed Edition) AUTO mode databases, avoiding the "runs on MySQL but fails on PolarDB-X" problem.
**Architecture**: PolarDB-X 2.0 Enterprise Edition (CN compute nodes + DN storage nodes + GMS metadata service + CDC log nodes) + AUTO mode database
**Scope**:
Not applicable to:
Key difference between AUTO mode and DRDS mode: AUTO mode uses MySQL-compatible `PARTITION BY` syntax to define partitions, while DRDS mode uses the legacy `dbpartition/tbpartition` syntax. Verify the database mode with:
SHOW CREATE DATABASE db_name; -- Output containing MODE = 'auto' indicates AUTO mode
Connect to a PolarDB-X instance via a MySQL-compatible client:
mysql -h <host> -P <port> -u <user> -p<password> -D <database>
Supported clients: MySQL CLI, MySQL Workbench, DBeaver, Navicat, or any MySQL-compatible client.
> **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.
Configurable parameters for this skill:
| Parameter Name | Required/Optional | Description | Default Value | |---------------|-------------------|-------------|---------------| | host | Required | PolarDB-X instance connection address | None | | port | Required | PolarDB-X instance port | 3306 | | user | Required | Database username | None | | password | Required | Database password | None | | database | Required | Target database name | None |
1. Confirm the target engine and version:
2. Determine the table type:
3. Partition scheme design (for partitioned tables):
Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.
Version v20261015 (date-based release, YYYYMMDD). Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian…
Alibaba Cloud Parse-X intelligent document parsing and extraction tool. Supports two capabilities: (1) Parse — convert documents,…
Execute code in a secure cloud sandbox via AgentBay SDK. Use this skill whenever users request to run, execute, or evaluate code…
Operate Alibaba Cloud AgentLoop Dataset resources with aliyun CLI and the AgentLoop API version 2026-05-20. Use when requests…
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews, saved evaluator and evaluator-skill…
Proactively use AgentLoop Recall to retrieve prior Alibaba Cloud AgentLoop experience through the bundled SearchContext CLI…
Use when running, building, or managing Linux containers on macOS, or when a task involves Docker, docker compose, Lima, Colima,…
Operate FrontendExtension (FE) resources in frontend-forge: create, update, rebuild, inspect package artifacts, download…
Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one…
Build, debug, or review Cloudflare Agents SDK applications using the agents package.