/alibabacloud-das-agent
Diagnose and manage Alibaba Cloud databases through natural language. Use when users need to troubleshoot database performance issues (high CPU, slow queries, abnormal connections, lock waits), check instance status, analyze disk space, optimize SQL, run health inspections, or
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-das-agent --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/alibabacloud-das-agent
Context preview
The summary Claude sees to decide when to auto-load this skill.
Diagnose and manage Alibaba Cloud databases through natural language. Use when users need to troubleshoot database performance issues (high CPU, slow queries, abnormal connections, lock waits), check instance status, analyze disk space, optimize SQL, run health inspections, or
SKILL.md
alibabacloud-das-agent.SKILL.mdname: alibabacloud-das-agent
description: >
Diagnose and manage Alibaba Cloud databases through natural language. Use when
users need to troubleshoot database performance issues (high CPU, slow queries,
abnormal connections, lock waits), check instance status, analyze disk space,
optimize SQL, run health inspections, or detect security baseline violations.
Supports RDS (MySQL/PostgreSQL/SQL Server), PolarDB, MongoDB, Redis (Tair),
and Lindorm. Trigger this skill even for casual descriptions like "my database
is slow", "can't connect to the database", "help me check this SQL", or
"database disk is almost full". Also suitable for consulting Alibaba Cloud-specific
database features (e.g., PolarDB Serverless, DAS autonomy capabilities) and
comparing product differences (RDS vs PolarDB). Do NOT use this skill for
general SQL tutorials, non-Alibaba Cloud databases, or local database administration.
license: Apache-2.0
compatibility: >
Requires uv (Python package manager) and HTTPS access to das.cn-shanghai.aliyuncs.com.
Requires Alibaba Cloud credentials to be available through the default credential chain
(AliyunHDMFullAccess permission). DAS Agent ID is optional.
metadata:
async: true
timeout: 1800
required_permissions:
- "das:Chat"DAS Agent Chat
Send natural language questions to the Alibaba Cloud DAS (Database Autonomy Service) Agent and receive diagnostic results.
Pricing and Free Tier
**This is a paid service with a free tier for trial usage.**
- **Free Tier**: When `ALIBABA_CLOUD_DAS_AGENT_ID` is not set, the script omits the `AgentId` parameter and the API will use a **default Agent ID** which comes with a limited free quota for trial purposes.
- **Paid Usage**: For production workloads or higher usage volumes, purchase a DAS Agent subscription and set your own `ALIBABA_CLOUD_DAS_AGENT_ID` to bind your dedicated agent and quota.
> **Recommendation**: Start with the free tier (default Agent ID) to evaluate the service. Once you decide to adopt it for production, purchase a subscription and configure your own Agent ID.
Environment Variables
The script requires Alibaba Cloud credentials resolvable via the [default credential chain](https://www.alibabacloud.com/help/en/sdk/developer-reference/v2-manage-python-access-credentials). The DAS Agent ID is **optional** — if not provided, the `AgentId` parameter will be omitted and the API will use a default Agent ID with limited free quota.
# Optional: Set your own Agent ID after purchasing DAS Agent service
export ALIBABA_CLOUD_DAS_AGENT_ID="<agent_id>" # Obtain from DAS console (optional)
The Alibaba Cloud Credentials SDK automatically resolves credentials from multiple sources (environment variables, configuration files, ECS RAM roles, etc.). Refer to the [official credential configuration documentation](https://www.alibabacloud.com/help/en/sdk/developer-reference/v2-manage-python-access-credentials) for setup instructions.
If you have purchased a DAS Agent subscription, create and manage your Agent ID at: https://das.console.aliyun.com/
Troubleshooting
Credential Resolution Failed
If the script exits with a credential-related error, it means the Alibaba Cloud Credentials SDK could not resolve a usable credential from its default provider chain.
Supported credential sources:
- Environment variables (see [official documentation](https://www.alibabacloud.com/help/en/sdk/developer-reference/v2-manage-python-access-credentials))
- Local profile files: `~/.aliyun/config.json` or `~/.alibabacloud/credentials.ini`
- ECS RAM Role metadata when running on an Alibaba Cloud ECS instance
Common cases:
- Credential environment variables are empty or missing — configure them according to the official documentation.
- Errors mentioning `~/.aliyun/config.json` or `~/.alibabacloud/credentials.ini`
The SDK attempted local profile-based credentials, but the files were missing or invalid. Create/fix the default profile if you want to use local profiles.
- Errors mentioning `100.100.100.200`
The SDK attempted ECS metadata. This is expected on ECS, but usually a local-machine misconfiguration elsewhere.
For local development, if you are not using ECS RAM Role credentials, you can explicitly disable ECS metadata lookup:
export ALIBABA_CLOUD_ECS_METADATA_DISABLED=true
This avoids confusing `100.100.100.200` metadata connection errors on non-ECS machines and makes missing-credential failures easier to read.
Invocation
Run from the `scripts/` directory of this skill:
cd scripts
# Pipe mode (RECOMMENDED for agents) — clean output: progress to stderr, answer clearly delimited on stdout
uv run call_das_agent.py --question "<user's question>" --pipe
# Default mode (CLI chat UI) — real-time streaming with tool details
uv run call_das_agent.py --question "<user's question>"
# JSON mode — machine-readable JSONL, one JSON object per line on stdout
uv run call_das_agent.py --question "<user's question>" --json
# Multi-turn conversation — reuse the server-assigned session ID to maintain context
uv run call_das_agent.py --question "List my instances" --pipe # Returns session_id on first line
# Extract session_id (line starting with "SESSION:"), then reuse it:
uv run call_das_agent.py --question "Check the first one" --session "<session_id_from_above>" --pipe
**Always use `--pipe` when invoking as an agent.** It routes all progress/tool-call noise to stderr and writes only the DAS answer to stdout, wrapped in clear delimiters — making the real response impossible to miss.
Prefer `--json` when you need to parse the response programmatically. For JSON event types and output mode details, see [references/api-reference.md](references/api-reference.md).
Behavioral Notes
DAS Agent internally orchestrates multiple API calls and tool invocations to answer a single question. This has important implications:
1. **Long-running tasks**: Co
Read more
name: alibabacloud-das-agent
description: >
Diagnose and manage Alibaba Cloud databases through natural language. Use when
users need to troubleshoot database performance issues (high CPU, slow queries,
abnormal connections, lock waits), check instance status, analyze disk space,
optimize SQL, run health inspections, or detect security baseline violations.
Supports RDS (MySQL/PostgreSQL/SQL Server), PolarDB, MongoDB, Redis (Tair),
and Lindorm. Trigger this skill even for casual descriptions like "my database
is slow", "can't connect to the database", "help me check this SQL", or
"database disk is almost full". Also suitable for consulting Alibaba Cloud-specific
database features (e.g., PolarDB Serverless, DAS autonomy capabilities) and
comparing product differences (RDS vs PolarDB). Do NOT use this skill for
general SQL tutorials, non-Alibaba Cloud databases, or local database administration.
license: Apache-2.0
compatibility: >
Requires uv (Python package manager) and HTTPS access to das.cn-shanghai.aliyuncs.com.
Requires Alibaba Cloud credentials to be available through the default credential chain
(AliyunHDMFullAccess permission). DAS Agent ID is optional.
metadata:
async: true
timeout: 1800
required_permissions:
- "das:Chat"DAS Agent Chat
Send natural language questions to the Alibaba Cloud DAS (Database Autonomy Service) Agent and receive diagnostic results.
Pricing and Free Tier
**This is a paid service with a free tier for trial usage.**
- **Free Tier**: When `ALIBABA_CLOUD_DAS_AGENT_ID` is not set, the script omits the `AgentId` parameter and the API will use a **default Agent ID** which comes with a limited free quota for trial purposes.
- **Paid Usage**: For production workloads or higher usage volumes, purchase a DAS Agent subscription and set your own `ALIBABA_CLOUD_DAS_AGENT_ID` to bind your dedicated agent and quota.
> **Recommendation**: Start with the free tier (default Agent ID) to evaluate the service. Once you decide to adopt it for production, purchase a subscription and configure your own Agent ID.
Environment Variables
The script requires Alibaba Cloud credentials resolvable via the [default credential chain](https://www.alibabacloud.com/help/en/sdk/developer-reference/v2-manage-python-access-credentials). The DAS Agent ID is **optional** — if not provided, the `AgentId` parameter will be omitted and the API will use a default Agent ID with limited free quota.
# Optional: Set your own Agent ID after purchasing DAS Agent service export ALIBABA_CLOUD_DAS_AGENT_ID="<agent_id>" # Obtain from DAS console (optional)
The Alibaba Cloud Credentials SDK automatically resolves credentials from multiple sources (environment variables, configuration files, ECS RAM roles, etc.). Refer to the [official credential configuration documentation](https://www.alibabacloud.com/help/en/sdk/developer-reference/v2-manage-python-access-credentials) for setup instructions.
If you have purchased a DAS Agent subscription, create and manage your Agent ID at: https://das.console.aliyun.com/
Troubleshooting
Credential Resolution Failed
If the script exits with a credential-related error, it means the Alibaba Cloud Credentials SDK could not resolve a usable credential from its default provider chain.
Supported credential sources:
- Environment variables (see [official documentation](https://www.alibabacloud.com/help/en/sdk/developer-reference/v2-manage-python-access-credentials))
- Local profile files: `~/.aliyun/config.json` or `~/.alibabacloud/credentials.ini`
- ECS RAM Role metadata when running on an Alibaba Cloud ECS instance
Common cases:
- Credential environment variables are empty or missing — configure them according to the official documentation.
- Errors mentioning `~/.aliyun/config.json` or `~/.alibabacloud/credentials.ini`
The SDK attempted local profile-based credentials, but the files were missing or invalid. Create/fix the default profile if you want to use local profiles.
- Errors mentioning `100.100.100.200`
The SDK attempted ECS metadata. This is expected on ECS, but usually a local-machine misconfiguration elsewhere.
For local development, if you are not using ECS RAM Role credentials, you can explicitly disable ECS metadata lookup:
export ALIBABA_CLOUD_ECS_METADATA_DISABLED=true
This avoids confusing `100.100.100.200` metadata connection errors on non-ECS machines and makes missing-credential failures easier to read.
Invocation
Run from the `scripts/` directory of this skill:
cd scripts # Pipe mode (RECOMMENDED for agents) — clean output: progress to stderr, answer clearly delimited on stdout uv run call_das_agent.py --question "<user's question>" --pipe # Default mode (CLI chat UI) — real-time streaming with tool details uv run call_das_agent.py --question "<user's question>" # JSON mode — machine-readable JSONL, one JSON object per line on stdout uv run call_das_agent.py --question "<user's question>" --json # Multi-turn conversation — reuse the server-assigned session ID to maintain context uv run call_das_agent.py --question "List my instances" --pipe # Returns session_id on first line # Extract session_id (line starting with "SESSION:"), then reuse it: uv run call_das_agent.py --question "Check the first one" --session "<session_id_from_above>" --pipe
**Always use `--pipe` when invoking as an agent.** It routes all progress/tool-call noise to stderr and writes only the DAS answer to stdout, wrapped in clear delimiters — making the real response impossible to miss.
Prefer `--json` when you need to parse the response programmatically. For JSON event types and output mode details, see [references/api-reference.md](references/api-reference.md).
Behavioral Notes
DAS Agent internally orchestrates multiple API calls and tool invocations to answer a single question. This has important implications:
1. **Long-running tasks**: Co
Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.
Other skills on alibabacloud-aiops-skills.
- /alibabacloud-agentbay-aio-skills
Execute code in a secure cloud sandbox via AgentBay SDK. Use this skill whenever users request to run, execute, or evaluate code (Python, JavaScript, R, Java), including plotting charts, running scripts, or viewing code output. Covers requests like "run this code", "execute
Open skill - /alibabacloud-agentloop-dataset
Operate Alibaba Cloud AgentLoop Dataset resources with aliyun CLI and the AgentLoop API version 2026-05-20. Use when requests concern AgentLoop datasets, data rows, Dataset schemas, embedding fields, semantic search, ExecuteQuery, AgentSpace data, 数据集, 数据写入, 数据查询, 语义检索, or ask
Open skill - /alibabacloud-agentloop-evaluation
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews, saved evaluator and evaluator-skill management, one-shot sample tests, trace or dataset batch runs, polling, and result inspection. Analyze evaluation quality and low-score cases from
Open skill - /alibabacloud-agentloop-experience
Proactively use AgentLoop Recall to retrieve prior Alibaba Cloud AgentLoop experience through the bundled SearchContext CLI whenever the user asks or implies that prior work may help. Trigger for requests to check, search, recall, retrieve, look up, review, consult, reference,
Open skill - /alibabacloud-agentloop-management
AgentLoop APM接入 / AI可观测接入 / 应用监控接入 / 自研探针 / 探针安装. Use for Python aliyun-bootstrap (aliyun-instrument), Java AliyunJavaAgent, Golang instgo, Node.js cms_node_sdk, PHP/.NET OpenTelemetry, ack-onepilot, LicenseKey, AgentLoop workspace agentloop-*. Also for LangChain, Dify,
Open skill - /alibabacloud-avatar-video
Use Alibaba Cloud DashScope API and LingMou to generate AI video and speech. Seven capabilities — (1) LivePortrait talking-head (image + audio → video, two-step), (2) EMO talking-head, (3) AA/AnimateAnyone full-body animation (three-step), (4) T2I text-to-image (Wan 2.x, default
Open skill

