alibabacloud-polardb-ai-assistant
Alibaba Cloud PolarDB Database AI Assistant. For PolarDB MySQL/PostgreSQL cluster management, performance diagnostics, parameter tuning, slow SQL analysis, backup recovery, connection session analysis, primary-standby switchover diagnostics, security configuration audit, and other O&M operations. Use when user questions involve PolarDB, cluster IDs starting with pc-, kernel parameters, primary-standby switchover, IMCI columnar storage, etc.
What this skill does
# PolarDB Database AI Assistant This Skill focuses on **Alibaba Cloud PolarDB MySQL/PostgreSQL database** intelligent O&M, invoking the get-yao-chi-agent API through the aliyun CLI DAS plugin for diagnostics and analysis. **Architecture**: `Aliyun CLI` → `DAS Plugin (Signature V3)` → `get-yao-chi-agent API` → PolarDB Intelligent Diagnostics ### Supported Capabilities | Capability | Description | |------------|-------------| | PolarDB Primary-Standby Switchover Analysis | Failover cause investigation, switchover log analysis, unexpected Failover diagnostics | | PolarDB Kernel Parameter Change Assessment | Impact assessment before parameter modification, change risk analysis | | PolarDB Kernel Parameter Explanation | Parameter meaning explanation, configuration suggestions, performance impact analysis | | PolarDB Kernel Parameter Explanation (IMCI) | IMCI columnar engine related parameter explanation | | PolarDB Kernel Version Proxy Diagnostics | Proxy layer troubleshooting, version compatibility diagnostics | | PolarDB Kernel Version Instance Diagnostics | Instance layer version issue diagnostics, upgrade suggestions | | Instance Query Filter | PolarDB instance search and filtering | | Proxy Performance Monitoring | Proxy layer performance metrics analysis, connection routing diagnostics | | Serverless Configuration | Serverless instance parameters and elastic scaling configuration | | SQL Optimization Analysis | Slow SQL analysis, index suggestions, execution plan interpretation | | Expiring Instance Query | Subscription instance expiration reminder | | Backup Status Check | Backup completion, retention policy, recovery point in time | | Storage Usage Diagnostics | Storage consumption analysis, growth trends, space optimization suggestions | | Security Configuration Audit | Whitelist, SSL, security policy audit | | Instance Status Check | Instance health status, running status verification | | Log Diagnostics | Error log analysis, slow log troubleshooting | | Auto-Increment ID Overflow Detection | Auto-increment ID exhaustion risk detection, primary key overflow warning | | Connection and Session Analysis | Connection count monitoring, session issue troubleshooting, connection pool optimization | | Cluster Performance Monitoring | QPS/TPS/connections/throughput and other core metrics analysis | | High Availability and Disaster Recovery | HA configuration assessment, disaster recovery architecture diagnostics | ## 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 update, > or see [references/cli-installation-guide.md](references/cli-installation-guide.md) for installation instructions. > Then **[MUST]** run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation. > Then **[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-polardb-ai-assistant` **[MUST] Enable AI-Mode** — AI-mode is required for Agent Skill execution. Run the following commands before any CLI invocation: ```bash aliyun configure ai-mode enable aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-polardb-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. ```bash aliyun configure ai-mode disable ``` ```bash # Install aliyun CLI curl -fsSL https://aliyuncli.alicdn.com/setup.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 ``` ## 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 | |-----------|-------------------|-------------|---------| | `query` | Required | Natural language query content (including region, cluster info) | - | | `--session-id` | Optional | Session ID for multi-turn conversation | - | | `--profile` | Optional | aliyun CLI profile name | default | ## Authentication Credentials use existing aliyun CLI configuration, **no additional AK/SK setup required**: ```bash # Recommended: OAuth mode aliyun configure --mode OAuth # Or: AK mode 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](references/ram-policies.md) ## Core Workflow All intelligent O&M operations are invoked through `scripts/call_yaochi_agent.sh`, which wraps `aliyun das get-yao-chi-agent` (DAS plugin kebab-case command, supports Signature V3) with streaming response parsing. ```bash # Cluster management bash $SKILL_DIR/scripts/call_yaochi_agent.sh "List PolarDB clusters in Hangzhou region" bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show detailed configuration of cluster pc-xxx" # Performance diagnostics bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Analyze cluster pc-xxx performance in the last hour" bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show slow SQL of cluster pc-xxx" # Parameter tuning bash $SKILL_DIR/scripts/call_yaochi_agent.sh "How to tune innodb_buffer_pool_size for cluster pc-xxx" bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Explain loose_polar_log_bin parameter" # Primary-standby switchover diagnostics bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Analyze recent primary-standby switchover cause for cluster pc-xxx" # Connection and session bash $SKILL_DIR/scripts/call_yaochi_agent.sh "How to troubleshoot high connection count in cluster pc-xxx" # Backup recovery bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show backup status of cluster pc-xxx" # Multi-turn conversation (use session ID from previous response) 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 clusters" --profile myprofile # Read from stdin echo "List clusters" | bash $SKILL_DIR/scripts/call_yaochi_agent.sh - ``` ### Example Questions | Scenario | Example Question | |----------|------------------| | Cluster Management | List nodes of cluster pc-xxx | | Performance Diagnostics | How to troubleshoot high CPU usage in cluster pc-xxx | | Slow SQL Analysis | Show slow SQL in cluster pc-xxx in the last hour | | Parameter Tuning | What does loose_polar_log_bin parameter mean | | IMCI Parameters | How to configure IMCI related parameters for cluster pc-xxx | | Primary-Standby | How to handle high primary-standby delay in cluster pc-xxx | | Backup Recovery | When was the
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.