aliyun-cosyvoice-voice…
Use when creating cloned voices with Alibaba Cloud Model Studio CosyVoice customization models, especially cosyvoice-v3.5-plus or…
Use when managing Alibaba Cloud Elastic Compute Service (ECS) via OpenAPI/SDK, including listing or creating instances, starting/stopping/rebooting, managing disks/snapshots/images/security groups/key pairs/ENIs, querying status, and troubleshooting workflows for this product.
$ npx -y skills add cinience/alicloud-skills --skill aliyun-ecs-manage --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/aliyun-ecs-manageContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when managing Alibaba Cloud Elastic Compute Service (ECS) via OpenAPI/SDK, including listing or creating instances, starting/stopping/rebooting, managing disks/snapshots/images/security groups/key pairs/ENIs, querying status, and troubleshooting workflows for this product.
name: aliyun-ecs-manage description: Use when managing Alibaba Cloud Elastic Compute Service (ECS) via OpenAPI/SDK, including listing or creating instances, starting/stopping/rebooting, managing disks/snapshots/images/security groups/key pairs/ENIs, querying status, and troubleshooting workflows for this product. version: 1.0.0
Category: service
mkdir -p output/aliyun-ecs-manage python -m py_compile skills/compute/ecs/aliyun-ecs-manage/scripts/list_instances_all_regions.py python -m py_compile skills/compute/ecs/aliyun-ecs-manage/scripts/query_instance_usage.py python -m py_compile skills/compute/ecs/aliyun-ecs-manage/scripts/run_remote_command.py echo "py_compile_ok" > output/aliyun-ecs-manage/validate.txt
Pass criteria: command exits 0 and `output/aliyun-ecs-manage/validate.txt` is generated.
Use Alibaba Cloud OpenAPI (RPC) with official SDKs or OpenAPI Explorer to manage ECS resources. Prefer the Python SDK for all examples and execution.
1) Confirm region, resource identifiers, and desired action. 2) Find API group and exact operation name in `references/api_overview.md`. 3) Call API with Python SDK (preferred) or OpenAPI Explorer. 4) Verify results with describe/list APIs. 5) If you need repeatable inventory or summaries, use `scripts/` and write outputs under `output/aliyun-ecs-manage/`.
1) Python SDK (preferred) 2) OpenAPI Explorer 3) Other SDKs (only if Python is not feasible)
Virtual environment is recommended (avoid PEP 668 system install restrictions).
python3 -m venv .venv . .venv/bin/activate python -m pip install alibabacloud_ecs20140526 alibabacloud_tea_openapi alibabacloud_credentials
from alibabacloud_ecs20140526.client import Client as Ecs20140526Client
from alibabacloud_ecs20140526 import models as ecs_models
from alibabacloud_tea_openapi import models as open_api_models
def create_client(region_id: str) -> Ecs20140526Client:
config = open_api_models.Config(
# Use env vars or shared config files per AccessKey priority.
region_id=region_id,
endpoint=f"ecs.{region_id}.aliyuncs.com",
)
return Ecs20140526Client(config)
def list_instances(region_id: str):
client = create_client(region_id)
resp = client.describe_instances(ecs_models.DescribeInstancesRequest(
region_id=region_id,
page_number=1,
page_size=50,
))
for inst in resp.body.instances.instance:
print(inst.instance_id, inst.instance_name, inst.instance_type, inst.status)
if __name__ == "__main__":
list_instances("cn-hangzhou")Install dependencies (add CMS SDK):
python -m pip install alibabacloud_ecs20140526 alibabacloud_cms20190101 alibabacloud_tea_openapi alibabacloud_credentials
Example (last 1 hour, 5-minute period):
python skills/compute/ecs/aliyun-ecs-manage/scripts/query_instance_usage.py \ --instance-id i-xxxxxxxxxxxxxxxxx \ --region-id cn-shanghai \ --hours 1 \ --period 300 \ --summary-only \ --output output/aliyun-ecs-manage/ecs-usage-i-xxxxxxxxxxxxxxxxx-1h.json
Recommended default metrics:
Example (`ps -ef`):
python skills/compute/ecs/aliyun-ecs-manage/scripts/run_remote_command.py \ --instance-id i-xxxxxxxxxxxxxxxxx \ --region-id cn-shanghai \ --command 'ps -ef' \ --output output/aliyun-ecs-manage/runcommand-i-xxxxxxxxxxxxxxxxx-ps-ef.json
Behavior:
from alibabacloud_ecs20140526.client import Client as Ecs20140526Client from alibabacloud_ecs20140526 import models as ecs_models from alibabacloud_tea_openapi import models as open_api_models def create_client(region_id: str) -> Ecs201405
Use when creating cloned voices with Alibaba Cloud Model Studio CosyVoice customization models, especially cosyvoice-v3.5-plus or…
Use when designing custom voices with Alibaba Cloud Model Studio CosyVoice customization models, especially cosyvoice-v3.5-plus…
Use when low-latency realtime speech recognition is needed with Alibaba Cloud Model Studio Qwen ASR Realtime models, including…
Use when transcribing non-realtime speech with Alibaba Cloud Model Studio Qwen ASR models (`qwen3-asr-flash`, `qwen-audio-asr`,…
Use when live speech translation is needed with Alibaba Cloud Model Studio Qwen LiveTranslate models, including bilingual…
Use when real-time speech synthesis is needed with Alibaba Cloud Model Studio Qwen TTS Realtime models. Use when low-latency…