/alibabacloud-workbench-cli
Agent-native CLI for managing ECS instances without public IPs, primarily for single-instance operations. It supports millisecond-level remote command execution, large file transfers up to 1GB, and TCP port forwarding. It offers four authentication modes: AK, RamRoleArn,
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-workbench-cli --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-workbench-cli
Context preview
The summary Claude sees to decide when to auto-load this skill.
Agent-native CLI for managing ECS instances without public IPs, primarily for single-instance operations. It supports millisecond-level remote command execution, large file transfers up to 1GB, and TCP port forwarding. It offers four authentication modes: AK, RamRoleArn,
SKILL.md
alibabacloud-workbench-cli.SKILL.mdname: alibabacloud-workbench-cli
description: |
Agent-native CLI for managing ECS instances without public IPs, primarily for single-instance operations. It supports millisecond-level remote command execution, large file transfers up to 1GB, and TCP port forwarding. It offers four authentication modes: AK, RamRoleArn, CredentialsCmd, and CredentialsURI. Use it to run commands, deploy code, view logs, check processes, transfer files, set up port forwarding, or query and filter ECS instance lists.
license: Apache-2.0
metadata:
domain: cloud-infrastructure
compatibility: Requires workbench CLI binary installed. Cross-platform Linux/macOS (amd64/arm64), Windows (amd64). Network access to *.aliyuncs.com and Workbench backend WebSocket endpoints required.
allowed-tools: Bash
Workbench CLI Expert
Help users operate Alibaba Cloud ECS instances — especially those **without public IP addresses** — using the `workbench` command-line tool. Core capabilities for Agent workflows: millisecond-level remote command execution (`exec`), file transfer up to 1GB (`upload`/`download`), and port forwarding. This skill covers: install → configure credentials → exec/transfer/forward → manage sessions → troubleshoot errors.
Instructions
1. Install the Workbench CLI
**Pre-check:**
workbench version # Should print version, commit, build date
**Linux / macOS:**
curl -fsSL https://workbench-cli.oss-cn-hangzhou.aliyuncs.com/install.sh | bash
**Windows (PowerShell):**
irm https://workbench-cli.oss-cn-hangzhou.aliyuncs.com/install.ps1 | iex
**Upgrade:**
workbench upgrade # Upgrade to latest
workbench upgrade --version 0.2.0 # Upgrade to specific version
2. Configure credentials
Credentials are stored in `~/.workbench/config.json` with `0600` permissions. As an Agent, write this file directly instead of using the interactive `workbench config` command.
# Create config directory
mkdir -p ~/.workbench
# Write config file (example: AK mode)
cat > ~/.workbench/config.json << 'EOF'
{
"current": "default",
"profiles": {
"default": {
"mode": "AK",
"access_key_id": "<AccessKeyID>",
"access_key_secret": "<AccessKeySecret>"
}
}
}
EOF
# Set secure permissions
chmod 600 ~/.workbench/config.json**Config file schema by mode:**
AK mode:
{
"current": "default",
"profiles": {
"default": {
"mode": "AK",
"access_key_id": "LTAI...",
"access_key_secret": "..."
}
}
}RamRoleArn mode (auto-refreshes STS tokens):
{
"current": "default",
"profiles": {
"default": {
"mode": "RamRoleArn",
"access_key_id": "LTAI...",
"access_key_secret": "...",
"ram_role_arn": "acs:ram::123456789:role/WorkbenchRole",
"role_session_name": "workbench-session"
}
}
}CredentialsURI mode (HTTP endpoint returns credentials):
{
"current": "default",
"profiles": {
"default": {
"mode": "CredentialsURI",
"credentials_uri": "http://localhost:8080/credentials"
}
}
}| Mode | When to use | | --- | --- | | **AK** (default) | Development, long-lived credentials | | **StsToken** | Temporary security credentials (AccessKey + STS Token) | | **RamRoleArn** | Production, cross-account, least-privilege via STS role assumption (auto-refreshes tokens) | | **CredentialsCmd** | Zero-trust / Vault integration — external command outputs credential JSON | | **CredentialsURI** | Metadata service / sidecar — HTTP endpoint returns credential JSON |
**Profile management (non-interactive):**
workbench config list # List all profiles (* marks active)
workbench config switch --profile prod # Switch active profile
workbench config get # Show current profile details (JSON)
workbench config get --profile prod # Show specific profile details
workbench config delete --profile old # Delete a profile (cannot delete active)
3. Command reference
workbench
├── exec # Execute remote command (non-interactive, millisecond-level)
├── upload # Upload local file to instance (up to 1GB, via OSS relay)
├── download # Download file from instance (up to 1GB, via OSS relay)
├── list # List ECS instances
├── session # Session management (list / close)
├── daemon # Daemon lifecycle (start / status / stop)
├── config # Credential configuration & profile management
│ ├── set # Set a single config field
│ ├── list # List all profiles
│ ├── switch # Switch active profile
│ ├── get # Show profile details
│ └── delete # Delete a profile
├── upgrade # Self-update
└── version # Print version info
**Global flags:**
| Flag | Purpose | Default | | --- | --- | --- | | `--output` / `-o` | Output format: `text|json` | `text` | | `--region` / `-r` | Alibaba Cloud region (e.g., `cn-hangzhou`) | auto-inferred from instance ID prefix | | `--profile` / `-P` | Use a specific profile (overrides active profile) | current active profile |
4. List instances
workbench list ecs --region cn-hangzhou
workbench list ecs --region cn-hangzhou --status Running
workbench list ecs --region cn-hangzhou --tag env=prod --tag team=infra
workbench list ecs --region cn-hangzhou --instance-type ecs.g7.large
workbench list ecs --region cn-hangzhou --instance-name my-instance
workbench list ecs --region cn-hangzhou --image-id ubuntu_22_04_x64_20G_alibase_20230907.vhd
workbench list ecs --region cn-hangzhou --output json
`--region` is **required** for `list ecs`. Filters: `--status` (Running|Stopped|Starting|Stopping), `--tag` (key=value or key, repeatable, AND logic), `--instance-type` (e.g. ecs.g7.large), `--instance-name` (supports wildcards `*`), `--image-id`, `--vpc-id`, `--zone-id`, `--vswitch-id`, `--private-ip`
Read more
name: alibabacloud-workbench-cli description: | Agent-native CLI for managing ECS instances without public IPs, primarily for single-instance operations. It supports millisecond-level remote command execution, large file transfers up to 1GB, and TCP port forwarding. It offers four authentication modes: AK, RamRoleArn, CredentialsCmd, and CredentialsURI. Use it to run commands, deploy code, view logs, check processes, transfer files, set up port forwarding, or query and filter ECS instance lists. license: Apache-2.0 metadata: domain: cloud-infrastructure compatibility: Requires workbench CLI binary installed. Cross-platform Linux/macOS (amd64/arm64), Windows (amd64). Network access to *.aliyuncs.com and Workbench backend WebSocket endpoints required. allowed-tools: Bash
Workbench CLI Expert
Help users operate Alibaba Cloud ECS instances — especially those **without public IP addresses** — using the `workbench` command-line tool. Core capabilities for Agent workflows: millisecond-level remote command execution (`exec`), file transfer up to 1GB (`upload`/`download`), and port forwarding. This skill covers: install → configure credentials → exec/transfer/forward → manage sessions → troubleshoot errors.
Instructions
1. Install the Workbench CLI
**Pre-check:**
workbench version # Should print version, commit, build date
**Linux / macOS:**
curl -fsSL https://workbench-cli.oss-cn-hangzhou.aliyuncs.com/install.sh | bash
**Windows (PowerShell):**
irm https://workbench-cli.oss-cn-hangzhou.aliyuncs.com/install.ps1 | iex
**Upgrade:**
workbench upgrade # Upgrade to latest workbench upgrade --version 0.2.0 # Upgrade to specific version
2. Configure credentials
Credentials are stored in `~/.workbench/config.json` with `0600` permissions. As an Agent, write this file directly instead of using the interactive `workbench config` command.
# Create config directory
mkdir -p ~/.workbench
# Write config file (example: AK mode)
cat > ~/.workbench/config.json << 'EOF'
{
"current": "default",
"profiles": {
"default": {
"mode": "AK",
"access_key_id": "<AccessKeyID>",
"access_key_secret": "<AccessKeySecret>"
}
}
}
EOF
# Set secure permissions
chmod 600 ~/.workbench/config.json**Config file schema by mode:**
AK mode:
{
"current": "default",
"profiles": {
"default": {
"mode": "AK",
"access_key_id": "LTAI...",
"access_key_secret": "..."
}
}
}RamRoleArn mode (auto-refreshes STS tokens):
{
"current": "default",
"profiles": {
"default": {
"mode": "RamRoleArn",
"access_key_id": "LTAI...",
"access_key_secret": "...",
"ram_role_arn": "acs:ram::123456789:role/WorkbenchRole",
"role_session_name": "workbench-session"
}
}
}CredentialsURI mode (HTTP endpoint returns credentials):
{
"current": "default",
"profiles": {
"default": {
"mode": "CredentialsURI",
"credentials_uri": "http://localhost:8080/credentials"
}
}
}| Mode | When to use | | --- | --- | | **AK** (default) | Development, long-lived credentials | | **StsToken** | Temporary security credentials (AccessKey + STS Token) | | **RamRoleArn** | Production, cross-account, least-privilege via STS role assumption (auto-refreshes tokens) | | **CredentialsCmd** | Zero-trust / Vault integration — external command outputs credential JSON | | **CredentialsURI** | Metadata service / sidecar — HTTP endpoint returns credential JSON |
**Profile management (non-interactive):**
workbench config list # List all profiles (* marks active) workbench config switch --profile prod # Switch active profile workbench config get # Show current profile details (JSON) workbench config get --profile prod # Show specific profile details workbench config delete --profile old # Delete a profile (cannot delete active)
3. Command reference
workbench ├── exec # Execute remote command (non-interactive, millisecond-level) ├── upload # Upload local file to instance (up to 1GB, via OSS relay) ├── download # Download file from instance (up to 1GB, via OSS relay) ├── list # List ECS instances ├── session # Session management (list / close) ├── daemon # Daemon lifecycle (start / status / stop) ├── config # Credential configuration & profile management │ ├── set # Set a single config field │ ├── list # List all profiles │ ├── switch # Switch active profile │ ├── get # Show profile details │ └── delete # Delete a profile ├── upgrade # Self-update └── version # Print version info
**Global flags:**
| Flag | Purpose | Default | | --- | --- | --- | | `--output` / `-o` | Output format: `text|json` | `text` | | `--region` / `-r` | Alibaba Cloud region (e.g., `cn-hangzhou`) | auto-inferred from instance ID prefix | | `--profile` / `-P` | Use a specific profile (overrides active profile) | current active profile |
4. List instances
workbench list ecs --region cn-hangzhou workbench list ecs --region cn-hangzhou --status Running workbench list ecs --region cn-hangzhou --tag env=prod --tag team=infra workbench list ecs --region cn-hangzhou --instance-type ecs.g7.large workbench list ecs --region cn-hangzhou --instance-name my-instance workbench list ecs --region cn-hangzhou --image-id ubuntu_22_04_x64_20G_alibase_20230907.vhd workbench list ecs --region cn-hangzhou --output json
`--region` is **required** for `list ecs`. Filters: `--status` (Running|Stopped|Starting|Stopping), `--tag` (key=value or key, repeatable, AND logic), `--instance-type` (e.g. ecs.g7.large), `--instance-name` (supports wildcards `*`), `--image-id`, `--vpc-id`, `--zone-id`, `--vswitch-id`, `--private-ip`
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

