Loading...
Loading...
Compare original and translation side by side
get-yao-chi-agentAliyun CLIDAS Plugin (Signature V3)get-yao-chi-agent APIget-yao-chi-agentAliyun CLIDAS Plugin (Signature V3)get-yao-chi-agent API| 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 |
| 功能 | 说明 |
|---|---|
| 实例信息 | 实例详情、集群配置、版本信息 |
| 拓扑巡检 | CN/DN节点分布、分片拓扑、数据节点状态 |
| 存储信息 | 磁盘使用率、存储容量、空间增长趋势 |
| SQL优化 | 慢SQL分析、分布式执行计划解读、索引建议、跨分片查询优化 |
| 集群性能监控 | QPS/TPS/连接数/吞吐量等核心指标分析 |
| 连接与会话分析 | 连接数监控、会话问题排查、连接池优化 |
| 安全审计 | 白名单、SSL、安全策略审计 |
| 备份状态检查 | 备份完整性、保留策略、时点恢复 |
| 实例健康检查 | 实例健康状态、运行状态验证 |
| 日志诊断 | 错误日志分析、慢日志问题排查 |
| 数据分布分析 | 分片数据倾斜检测、热点分片诊断 |
| 弹性扩缩容诊断 | 扩缩容状态、数据迁移进度、节点负载均衡 |
| 参数调优 | 内核参数解读、变更影响评估、配置建议 |
| 高可用与容灾 | HA配置评估、容灾架构诊断、主备状态 |
| 到期实例查询 | 包年包月实例到期提醒、续费状态 |
Pre-check: Aliyun CLI >= 3.3.3 required Runto verify >= 3.3.3. If not installed or version too low, runaliyun versionto install/update, or see references/cli-installation-guide.md for installation instructions.curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash
Pre-check: Aliyun CLI plugin update required [MUST] runto enable automatic plugin installation. [MUST] runaliyun configure set --auto-plugin-install trueto ensure that any existing plugins on your local machine are always up-to-date.aliyun plugin update
[MUST] CLI User-Agent — EveryCLI command invocation must include:aliyun--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:bashaliyun 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.bashaliyun configure ai-mode disable
undefined预检查:需Aliyun CLI >= 3.3.3 运行验证版本是否>=3.3.3。若未安装或版本过低, 运行aliyun version进行安装/更新, 或查看references/cli-installation-guide.md获取安装说明。curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash
预检查:需更新Aliyun CLI插件 [必须] 运行启用自动插件安装。 [必须] 运行aliyun configure set --auto-plugin-install true确保本地现有插件始终保持最新。aliyun plugin update
[必须] CLI User-Agent — 每次调用CLI命令时必须包含:aliyun--user-agent AlibabaCloud-Agent-Skills/alibabacloud-polardbx-ai-assistant
[必须] 启用AI模式 — 执行Agent技能需要AI模式。 在调用任何CLI命令前运行以下命令:bashaliyun configure ai-mode enable aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-polardbx-ai-assistant"
[必须] 在所有退出点禁用AI模式 — 无论因何种原因返回最终响应前,务必先禁用AI模式。这适用于所有退出路径:工作流成功、工作流失败、错误/异常、用户取消、会话结束或任何其他不再执行CLI命令的场景。 AI模式仅用于Agent技能调用场景,技能停止运行后必须禁用。bashaliyun configure ai-mode disable
undefinedundefinedundefinedPre-check: Alibaba Cloud Credentials RequiredSecurity Rules:
- NEVER read, echo, or print AK/SK values (e.g.,
is FORBIDDEN)echo $ALIBABA_CLOUD_ACCESS_KEY_ID- NEVER ask the user to input AK/SK directly in the conversation or command line
- NEVER use
with literal credential valuesaliyun configure set- ONLY use
to check credential statusaliyun configure listbashaliyun configure listCheck 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
in terminal or environment variables in shell profile)aliyun configure- Return and re-run after
shows a valid profilealiyun configure list
undefined预检查:需阿里云凭证安全规则:
- 禁止读取、回显或打印AK/SK值(例如
是禁止操作)echo $ALIBABA_CLOUD_ACCESS_KEY_ID- 禁止要求用户在对话或命令行中直接输入AK/SK
- 禁止使用带明文凭证值的
命令aliyun configure set- 仅允许使用
检查凭证状态aliyun configure listbashaliyun configure list检查输出是否包含有效的配置文件(AK、STS或OAuth身份)。如果没有有效配置文件,请在此处停止操作。
- 从阿里云控制台获取凭证
- 在本会话外配置凭证(通过终端的
命令或shell配置文件中的环境变量)aliyun configure- 当
显示有效配置文件后,返回并重新运行aliyun configure list
undefinedundefinedundefined[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:
- Read
to get the full list of permissions required by this SKILLreferences/ram-policies.md- Use
skill to guide the user through requesting the necessary permissionsram-permission-diagnose- Pause and wait until the user confirms that the required permissions have been granted
[必须] 权限失败处理: 执行过程中任何命令或API调用因权限错误失败时,请遵循以下流程:
- 阅读
获取本技能所需的完整权限列表references/ram-policies.md- 使用
技能引导用户申请必要权限ram-permission-diagnose- 暂停操作,等待用户确认已授予所需权限
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 |
|---|---|---|---|
| Required | Natural language query content (including region, instance info, etc.) | - |
| Optional | Session ID for multi-turn conversation context | - |
| Optional | aliyun CLI profile name | default |
重要:参数确认 — 在执行任何命令或API调用前, 所有用户可自定义的参数(例如RegionId、实例名称、CIDR块、 密码、域名、资源规格等)必须与用户确认。未经用户明确批准,不得假设或使用默认值。
| 参数 | 必填/可选 | 说明 | 默认值 |
|---|---|---|---|
| 必填 | 自然语言查询内容(包含地域、实例信息等) | - |
| 可选 | 多轮对话上下文的会话ID | - |
| 可选 | Aliyun CLI配置文件名称 | default |
scripts/call_yaochi_agent.shaliyun das get-yao-chi-agent⚠️ CRITICAL RESTRICTION:
- DO NOT use direct
oraliyun polardbxCLI commands for diagnostics, topology, or security audits.aliyun rds- DO NOT attempt to query instance details using
or similar APIs directly.DescribeDBInstances- ONLY use the DAS plugin command:
(wrapped byaliyun das get-yao-chi-agent).call_yaochi_agent.sh- If the script fails, check permissions via
skill, DO NOT fallback to other product APIs.ram-permission-diagnose
undefinedscripts/call_yaochi_agent.shaliyun das get-yao-chi-agent⚠️ 关键限制:
- 禁止使用直接的
或aliyun polardbxCLI命令进行诊断、拓扑或安全审计。aliyun rds- 禁止尝试直接使用
或类似API查询实例详情。DescribeDBInstances- 仅允许使用DAS插件命令:
(由aliyun das get-yao-chi-agent封装)。call_yaochi_agent.sh- 如果脚本失败,通过
技能检查权限,禁止 fallback到其他产品API。ram-permission-diagnose
undefinedundefinedundefined| 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 |
| 场景 | 示例查询 |
|---|---|
| 集群管理 | 显示实例pxc-xxx的节点列表 |
| 拓扑 | 实例pxc-xxx有多少个CN和DN节点 |
| 性能诊断 | 如何排查实例pxc-xxx的CPU使用率过高问题 |
| 慢SQL分析 | 显示实例pxc-xxx过去一小时的慢SQL |
| SQL优化 | 为什么这条SELECT语句在实例pxc-xxx上运行缓慢 |
| 数据分布 | 实例pxc-xxx的分片是否存在数据倾斜 |
| 弹性扩缩容 | 实例pxc-xxx的扩容进度如何 |
| 参数调优 | 如何优化实例pxc-xxx的连接池参数 |
| 备份恢复 | 实例pxc-xxx的最新备份是什么时候 |
| 存储优化 | 实例pxc-xxx存储快速增长该怎么办 |
| 连接问题排查 | 实例pxc-xxx的连接数已达上限 |
| 安全审计 | 检查实例pxc-xxx的安全配置 |
| 高可用 | 实例pxc-xxx的容灾架构是否合理 |
| 到期提醒 | 哪些PolarDB-X实例即将到期 |
pxc---session-idThrottling.UserConcurrentLimitaliyun configurepxc---session-idThrottling.UserConcurrentLimitaliyun configure| 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 |
| 参考文档 | 说明 |
|---|---|
| references/cli-installation-guide.md | Aliyun CLI安装与配置指南 |
| references/related-apis.md | 相关API和CLI命令列表 |
| references/ram-policies.md | RAM权限策略列表 |
| references/verification-method.md | 成功验证方法 |
| references/acceptance-criteria.md | 验收标准 |