alibabacloud-bailian-m…
Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian Managed Agent…
Invoke 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
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-data-agent-skill --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/alibabacloud-data-agent-skillContext preview
The summary Claude sees to decide when to auto-load this skill.
Invoke 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
name: alibabacloud-data-agent-skill description: | Invoke 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". compatibility: | Requires Python 3.10+ (macOS system Python is typically too old — use brew or pyenv to install); Requires valid Alibaba Cloud credentials (default credential chain or API_KEY); Requires dependencies in requirements.txt to be installed inside a venv; Data sources must be managed in Alibaba Cloud Apsara Database or DMS. domain: AIOps
metadata: author: DataAgent Team version: "1.8.5" ---
---
---
> **🚨 Hard Requirement: Python ≥ 3.10** > > The macOS system `/usr/bin/python3` is typically 3.8 or 3.9 and **cannot run this project** (it relies on `match/case`, `TypeAlias`, `|` union syntax, and other 3.10+ features). > > Verify your version first: `python3 --version`. If below 3.10, install via Homebrew or pyenv: > ```bash > # Homebrew > brew install python@3.12 > # Or pyenv > pyenv install 3.12.4 && pyenv local 3.12.4 > ```
> **⚠️ You MUST use a venv virtual environment. Never install dependencies globally.** Running `pip install` against the system Python pollutes the environment and may fail due to permission issues.
The project ships a pre-built `venv/` directory (all dependencies pre-installed). Use it whenever possible:
cd alibabacloud-data-agent-skill # Option A (recommended): activate the venv source venv/bin/activate python3 scripts/data_agent_cli.py ls # Option B: invoke the venv interpreter directly (no activation needed) venv/bin/python3 scripts/data_agent_cli.py ls
If `venv/` is missing or dependencies are corrupted, recreate with a **3.10+** Python:
python3.12 -m venv venv # explicitly use a 3.10+ interpreter source venv/bin/activate pip install -r scripts/requirements.txt
> **Tip**: All examples in this document write `python3 scripts/data_agent_cli.py ...`. When venv is activated, `python3` resolves to the venv interpreter automatically; otherwise prefix with `venv/bin/python3`.
This Skill uses Alibaba Cloud default credential chain (recommended) or API_KEY authentication.
The Skill uses Alibaba Cloud SDK's default credential chain to automatically obtain credentials, supporting environment variables, configuration files, instance roles, etc.
See [Alibaba Cloud Credential Chain Documentation](https://help.aliyun.com/document_detail/378659.html)
export DATA_AGENT_API_KEY=your-api-key export DATA_AGENT_REGION=cn-hangzhou
Get API_KEY: [Data Agent Console](https://agent.dms.aliyun.com/cn-hangzhou/api-key)
RAM users need `AliyunDMSFullAccess` or `AliyunDMSDataAgentFullAccess` permissions. See [RAM-POLICIES.md](references/RAM-POLICIES.md) for detailed permission information.
DATA_AGENT_DEBUG_API=1 python3 scripts/data_agent_cli.py file example.csv -q "analyze"
`scripts/data_agent_cli.py` helps users complete the full workflow from **discover data → initiate analysis → track progress → get results**.
> **⚠️ Key Prerequisite**: Data Agent can only analyze databases that have been **imported into Data Agent Data Center**. > > - **Data Center**: Data Agent's data center, only
Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.
Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian Managed Agent…
Alibaba Cloud Parse-X intelligent document parsing and extraction tool. Supports two…
Execute code in a secure cloud sandbox via AgentBay SDK. Use this skill whenever users…
Operate Alibaba Cloud AgentLoop Dataset resources with aliyun CLI and the AgentLoop API…
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews,…
Proactively use AgentLoop Recall to retrieve prior Alibaba Cloud AgentLoop experience through…