Alibabacloud Ecs Disk Ops logo

Alibabacloud Ecs Disk Ops

Organization
aliyun
alibabacloud-ecs-disk-ops

Alibaba Cloud ECS disk and snapshot operations. Use for managing cloud disks (attach, detach, expand, create data disk), snapshots (create, restore, delete, policy), and disk category management. Covers system disk and data disk lifecycle. Triggers: "ecs disk", "cloud disk", "attach disk", "detach disk", "expand disk", "data disk", "snapshot", "create snapshot", "restore snapshot", "disk resize", "disk capacity", "auto snapshot policy".

Overview

Publisheraliyun
Repositoryalibabacloud-agent-toolkit
Skill namealibabacloud-ecs-disk-ops
Stars
29
Forks
13
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by aliyun on GitHub. Read the source before you install it.

Installation

Install the Alibabacloud Ecs Disk Ops AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/aliyun/alibabacloud-agent-toolkit/tree/main/plugins/alibabacloud-ecs-ops/skills/alibabacloud-ecs-disk-ops
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aliyun/alibabacloud-agent-toolkit.git /tmp/alibabacloud-agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/alibabacloud-agent-toolkit/plugins/alibabacloud-ecs-ops/skills/alibabacloud-ecs-disk-ops .claude/skills/alibabacloud-ecs-disk-ops
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Alibabacloud Ecs Disk Ops in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Alibabacloud Ecs Disk Ops on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Alibabacloud Ecs Disk Ops is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

ECS Disk and Snapshot Operations

Manage cloud disks and snapshots for Alibaba Cloud ECS instances: create, attach, detach, expand disks; create, restore, and manage snapshots.

Pre-check: Alibaba Cloud CLI must be installed and at least version 3.3.3.

bash
aliyun version   # must be >= 3.3.3

Pre-check: Alibaba Cloud Credentials Required

bash
aliyun configure list

If no valid profile exists, STOP and guide user to configure credentials.

Pre-check: Aliyun CLI plugin update required

bash
aliyun configure set --auto-plugin-install true
aliyun plugin update

Observability (MUST follow for every aliyun command)

Upon loading this skill, generate a random session ID (32-char lowercase hex string) once for the entire session.

--user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

Cost Estimation (MUST before chargeable operations)

Before executing any chargeable disk operation (create-disk, resize-disk, create-snapshot, create-image), you MUST follow the alibabacloud-cli-cost-estimation skill to evaluate the cost impact at the user task level:

  1. Single operation — Append --estimate-cost to the exact command before execution, present the quoted amount, and wait for user confirmation.
  2. Multi-step task (e.g. create disk + attach + expand) — Quote all chargeable steps up front using --estimate-cost and --estimate-cost-context as needed, present one consolidated cost plan, then ask for a single confirmation of the whole task before executing step 1.
  3. Never silently execute a chargeable disk operation when a cost quote was obtainable. --estimate-cost only quotes, never executes.

The cost evaluation output must include a clearly labelled cost summary section so the user can identify it before confirming.

See the alibabacloud-cli-cost-estimation SKILL.md for the full cost plan format, quote JSON parsing, and multi-step workflow quoting rules.

Core Workflow

IMPORTANT: Parameter Confirmation — Before executing any command or API call, ALL user-customizable parameters MUST be confirmed with the user.

1. Query Disks

bash
# List all disks in a region
aliyun ecs describe-disks --biz-region-id <RegionId> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

# Query disks attached to a specific instance
aliyun ecs describe-disks --biz-region-id <RegionId> \
  --instance-id <InstanceId> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

# Query specific disk by ID
aliyun ecs describe-disks --biz-region-id <RegionId> \
  --disk-ids '["<DiskId>"]' \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

2. Create and Attach Data Disk

[MUST] Cost estimation is a REQUIRED step before create-disk. You MUST execute the --estimate-cost command first, present the cost quote to the user, and obtain explicit confirmation before proceeding to the actual create.

Step 2a. Estimate cost (MUST execute before create)
bash
# REQUIRED: Get cost quote for the new disk BEFORE creating it
aliyun ecs create-disk --biz-region-id <RegionId> \
  --zone-id <ZoneId> \
  --disk-category cloud_essd \
  --size <SizeGB> \
  --disk-name "<DiskName>" \
  --estimate-cost \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

Present the quoted cost to the user (e.g. "Estimated cost for this disk: ¥X/month. Proceed?"). Do NOT proceed to Step 2b until the user explicitly confirms.

Step 2b. Create and attach (only after cost confirmation)
bash
# Create a new data disk (only after user confirmed the cost estimate)
aliyun ecs create-disk --biz-region-id <RegionId> \
  --zone-id <ZoneId> \
  --disk-category cloud_essd \
  --size <SizeGB> \
  --disk-name "<DiskName>" \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

# Attach disk to instance
aliyun ecs attach-disk --instance-id <InstanceId> \
  --disk-id <DiskId> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

# Detach disk from instance
aliyun ecs detach-disk --instance-id <InstanceId> \
  --disk-id <DiskId> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

3. Expand Disk (Online Resize)

[MUST] Cost estimation is a REQUIRED step before resize-disk. You MUST execute the --estimate-cost command first, present the cost quote to the user, and obtain explicit confirmation before proceeding to the actual resize. Skipping cost estimation is a critical workflow violation.

Step 3a. Estimate cost (MUST execute before resize)
bash
# REQUIRED: Get cost quote for the resize operation BEFORE executing it
aliyun ecs resize-disk --disk-id <DiskId> \
  --new-size <NewSizeGB> \
  --type online \
  --estimate-cost \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

Present the quoted cost to the user (e.g. "Estimated resize cost: ¥X. Proceed?"). Do NOT proceed to Step 3b until the user explicitly confirms.

Step 3b. Execute resize (only after cost confirmation)
bash
# Execute the actual resize (only after user confirmed the cost estimate)
aliyun ecs resize-disk --disk-id <DiskId> \
  --new-size <NewSizeGB> \
  --type online \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

IMPORTANT: After expanding the cloud disk, the OS partition must also be resized. For Linux: use growpart and resize2fs/xfs_growfs via Cloud Assistant. For Windows: use Disk Management to extend the volume.

bash
# Linux: extend partition after online resize (via Cloud Assistant)
aliyun ecs run-command \
  --biz-region-id <RegionId> \
  --type RunShellScript \
  --command-content "$(echo 'growpart /dev/vda 1 && resize2fs /dev/vda1' | base64)" \
  --content-encoding Base64 \
  --instance-id.1 <InstanceId> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

4. Snapshot Management

bash
# Create snapshot for a disk
aliyun ecs create-snapshot --disk-id <DiskId> \
  --snapshot-name "<SnapshotName>" \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

# Verify snapshot is available (check Available field only)
aliyun ecs describe-snapshots --biz-region-id <RegionId> \
  --snapshot-ids '["<SnapshotId>"]' \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}
# Check: Available == true

# Restore disk from snapshot (rollback)
aliyun ecs reset-disk --disk-id <DiskId> \
  --snapshot-id <SnapshotId> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

# Delete snapshot
aliyun ecs delete-snapshot --snapshot-id <SnapshotId> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

# Create image from snapshot (for backup/migration)
aliyun ecs create-image --biz-region-id <RegionId> \
  --snapshot-id <SnapshotId> \
  --image-name "<ImageName>" \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

5. Auto Snapshot Policy

bash
# Create auto snapshot policy
aliyun ecs create-auto-snapshot-policy --biz-region-id <RegionId> \
  --time-point.1 2 \
  --time-point.2 14 \
  --repeat-weekday.1 1 \
  --repeat-weekday.2 3 \
  --repeat-weekday.3 5 \
  --retention-days 30 \
  --auto-snapshot-policy-name "<PolicyName>" \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

# Apply policy to disk
aliyun ecs apply-auto-snapshot-policy --biz-region-id <RegionId> \
  --auto-snapshot-policy-id <PolicyId> \
  --disk-id.1 <DiskId> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}

RAM Policy

ActionResource
ecs:DescribeDisks*
ecs:CreateDisk*
ecs:AttachDiskacs:ecs:*:*:instance/<InstanceId>
ecs:DetachDiskacs:ecs:*:*:instance/<InstanceId>
ecs:ResizeDiskacs:ecs:*:*:disk/<DiskId>
ecs:CreateSnapshotacs:ecs:*:*:disk/<DiskId>
ecs:DescribeSnapshots*
ecs:ResetDiskacs:ecs:*:*:disk/<DiskId>
ecs:DeleteSnapshotacs:ecs:*:*:snapshot/<SnapshotId>
ecs:CreateImage*
ecs:CreateAutoSnapshotPolicy*
ecs:ApplyAutoSnapshotPolicy*
ecs:RunCommandacs:ecs:*:*:instance/<InstanceId>

[MUST] Permission Failure Handling: When any command fails due to permission errors, read references/ram-policies.md, use ram-permission-diagnose skill, and pause until permissions are granted.

Success Verification

bash
# Verify disk status after operations
aliyun ecs describe-disks --biz-region-id <RegionId> \
  --disk-ids '["<DiskId>"]' \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-disk-ops/{session-id}
# Check Status: In_use, Available; Size field matches expected value

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Alibabacloud Ecs Disk Ops AI skill do?

Alibaba Cloud ECS disk and snapshot operations. Use for managing cloud disks (attach, detach, expand, create data disk), snapshots (create, restore, delete, policy), and disk category management. Covers system disk and data disk lifecycle. Triggers: "ecs disk", "cloud disk", "attach disk", "detach disk", "expand disk", "data disk", "snapshot", "create snapshot", "restore snapshot", "disk resize", "disk capacity", "auto snapshot policy".

Why use Alibabacloud Ecs Disk Ops on TypingMind?

Because you install it once and use it with any model. Alibabacloud Ecs Disk Ops is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Alibabacloud Ecs Disk Ops in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/aliyun/alibabacloud-agent-toolkit/tree/main/plugins/alibabacloud-ecs-ops/skills/alibabacloud-ecs-disk-ops. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Alibabacloud Ecs Disk Ops?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Alibabacloud Ecs Disk Ops?

As many as you like. As long as a model supports skills, you can use Alibabacloud Ecs Disk Ops with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Alibabacloud Ecs Disk Ops AI skill free?

Yes. It is published on GitHub by aliyun under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇