# alibabacloud-dts-task-query

alibabacloud-dts-task-query polls the Alibaba Cloud CLI for DTS job state in every region, then prints a Chinese report grouped by type with filters for instance or job name.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 174 installs · ★ 300 repo stars
- Author: aliyun
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/others/devopsimpl/alibabacloud-dts-task-query/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/alibabacloud-dts-task-query

## What it does

The skill walks all 27 regions and pulls DTS jobs of three kinds: migration, sync, subscribe. Output is Chinese. A summary of regions, statuses and job types comes first, then per-group tables listing job ID, instance ID, creation time and expiry date. Within a group rows are ordered newest first by CreateTime.

A Python script, `scripts/query_dts_tasks.py`, does the querying. It takes `--region`, `--instance-id`, `--job-name` and `--workers`. Threads default to 8; the docs suggest 12-16 on a fast link and note that past 16 you run into API rate limits. Failed calls are retried up to 3 times with a 10s timeout and backoff of 0.2s then 0.4s. Overseas regions need `--endpoint` added, otherwise the request fails.

Setup comes first: `aliyun configure ai-mode enable`, then `aliyun plugin update --all`. Plugin-mode commands such as `aliyun dts describe-dts-jobs` do nothing without AI-Mode, because the skill reaches the API through CLI plugins. RAM permissions for DTS are required as well, and the policy file lives at `references/ram-policies.md`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-dts-task-query -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/alibabacloud-dts-task-query/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/alibabacloud-dts-task-query/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-dts-task-query -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/alibabacloud-dts-task-query/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-dts-task-query -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/alibabacloud-dts-task-query/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aliyun/alibabacloud-aiops-skills skills/others/devopsimpl/alibabacloud-dts-task-query
```

2. **Manually: put the files in place**
- File: `.github/skills/alibabacloud-dts-task-query/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-dts-task-query -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aliyun/alibabacloud-aiops-skills --path skills/others/devopsimpl/alibabacloud-dts-task-query
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/alibabacloud-dts-task-query/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-dts-task-query -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/others/devopsimpl/alibabacloud-dts-task-query/SKILL.md

## When to use it
- list DTS jobs running in every region at once
- locate a migration or sync by job name
- get a stable task count across repeated runs
- keep only PrePaid and PostPaid instances in the report
- see expiry dates next to each job ID

## Example prompts
- List every DTS job across all regions
- Find migration jobs matching `order-sync`
- Check sync jobs in `cn-shanghai` with `--workers 16`

## Similar
- [jetson-optimize-memory](https://affpapa.org/en/nevibecode/skills/jetson-optimize-memory.md) — skill · 1200 installs
- [doca-dts](https://affpapa.org/en/nevibecode/skills/doca-dts.md) — skill · ★ 4106 repo stars
- [bailian-managed-agent](https://affpapa.org/en/nevibecode/skills/bailian-managed-agent.md) — skill · 9400 installs
- [bailian-sandbox](https://affpapa.org/en/nevibecode/skills/bailian-sandbox.md) — skill · 1100 installs
- [azure-database-migration](https://affpapa.org/en/nevibecode/skills/azure-database-migration.md) — skill · 177 installs
- [qwencloud-deploy](https://affpapa.org/en/nevibecode/skills/qwencloud-deploy.md) — skill · 877 installs

From the same set: [aliyun/alibabacloud-aiops-skills](https://affpapa.org/en/nevibecode/by/aliyun/alibabacloud-aiops-skills.md) — 66 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
