alibabacloud-bailian-m…
Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian Managed Agent…
Install Alibaba Cloud Agent Toolkit end-to-end: verify and set up prerequisites (uv, Alibaba Cloud CLI, authentication, CLI plugins, MCP Server Core, bearer token exchange), then install the toolkit via the current client's supported plugin mechanism. Use when: alibabacloud
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-agent-toolkit-install --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/alibabacloud-agent-toolkit-installContext preview
The summary Claude sees to decide when to auto-load this skill.
Install Alibaba Cloud Agent Toolkit end-to-end: verify and set up prerequisites (uv, Alibaba Cloud CLI, authentication, CLI plugins, MCP Server Core, bearer token exchange), then install the toolkit via the current client's supported plugin mechanism. Use when: alibabacloud
name: alibabacloud-agent-toolkit-install description: > Install Alibaba Cloud Agent Toolkit end-to-end: verify and set up prerequisites (uv, Alibaba Cloud CLI, authentication, CLI plugins, MCP Server Core, bearer token exchange), then install the toolkit via the current client's supported plugin mechanism. Use when: alibabacloud agent toolkit install, environment check, prerequisite check, setup alibabacloud, plugin install, toolkit setup, mcp core setup, aliyun CLI setup. license: Apache-2.0 metadata: domain: environment-setup owner: sdk-team
This skill sets up all prerequisites and installs the Alibaba Cloud Agent Toolkit. Execute each step **in order** — later steps depend on earlier ones.
Each step is classified by risk level. Follow these rules strictly:
| Classification | Agent behavior | |----------------|----------------| | **Auto** (read-only check) | Execute without asking. | | **Confirm** (local install / CLI plugin install) | Show the user the exact command, explain what it does, and **wait for explicit approval** before executing. Never pipe-to-shell silently. | | **User-only** (interactive / browser-based) | Display instructions for the user to run in a **separate terminal**. Do not attempt to execute. | | **Confirm-cloud** (cloud-side write) | Explain the cloud resource that will be created, then **wait for explicit approval** before executing. |
---
**Pre-check: Aliyun CLI >= 3.3.3 required** > Run `aliyun version` to verify >= 3.3.3. If not installed or version too low, run > `/bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/setup.sh)"` to install or update.
Before any cloud API invocation, read `references/manifest.json` from this skill's root and use only its top-level non-empty string `version` as `{skill-version}`. If missing or invalid, STOP. NEVER invent, guess, or reuse a version from another skill.
Bind version and session to the current skill name and skill root. Before this skill's first cloud API invocation in a conversation, generate a fresh random 32-character lowercase hexadecimal session ID. Reuse that session ID for this skill throughout the conversation; each skill MUST use a distinct session ID. NEVER copy one from documentation, examples, another skill, or a previous conversation, and NEVER send the literal `{session-id}` placeholder. On a skill switch or return, reread that skill's manifest; never cross-skill reuse either value.
**Rule: Every `aliyun` CLI command that calls a cloud API MUST include the `--user-agent` flag.**
Markdown examples may omit the flag for brevity. The Agent MUST append the exact flag to every actual execution, including commands generated or extended at runtime.
Local utility commands (e.g. `configure`, `plugin`, `version`) do not support this flag and should be excluded.
--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-agent-toolkit-install/{session-id} skill-version/{skill-version}"---
Run through these steps sequentially. **Skip any step whose check already passes.**
1. [Check / Install `uv`](#step-1-uv) — Confirm 2. [Check / Install Alibaba Cloud CLI (`aliyun`)](#step-2-aliyun-cli) — Confirm 3. [Check CLI authentication](#step-3-cli-authentication) — Auto (check) / User-only (login) 4. [Check / Install CLI plugins](#step-4-cli-plugins) — Confirm 5. [Check / Create MCP Server Core](#step-5-mcp-server-core) — Auto (check) / Confirm-cloud (create) 6. [Check Bearer token exchange](#step-6-bearer-token-exchange) — Auto (check) 7. [Install Alibaba Cloud Agent Toolkit](#step-7-install-toolkit) — Confirm
`uv` is the Python package manager required to start MCP servers.
uv --version
Present the appropriate command to the user and **wait for approval**:
| Platform | Command | |-----------------|---------| | macOS / Linux | `curl -LsSf https://astral.sh/uv/install.sh \| sh` | | Windows (PowerShell) | `powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 \| iex"` |
> **Security note:** These are pipe-to-shell commands. Show the command to the user > and let them decide whether to run it. Do not execute without explicit consent.
After installation, verify with `uv --version`. If the shell cannot find `uv`, instruct the user to restart their terminal or source their shell profile (`source ~/.bashrc`, `source ~/.zshrc`, etc.) so the PATH update takes effect.
---
aliyun version
Present the appropriate command to the user and **wait for approval**:
/bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/install.sh)"
> **Security note:** This is a pipe-to-shell command. Show the command and let the > user decide. Do not execute without explicit consent.
The installer script is located at [`scripts/install-aliyun-cli-windows.ps1`](scripts/install-aliyun-cli-windows.ps1).
Instruct the user to download or copy the script, then run:
powershell.exe -ExecutionPolicy Bypass -File .\install-aliyun-cli-windows.ps1
After installation, verify with `aliyun version`. If the command is not found, instruct the user to open a new terminal session so the updated PATH takes effect.
---
aliyun sts get-caller-iden
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…