/alibabacloud-dms-data-agent-platform-setup
Create an agent platform instance in DMS via Alibaba Cloud OpenAPI. Supports Simple Mode and Advanced Mode. Use this skill when the user wants to provision, deploy, or set up a new Dify instance on Alibaba Cloud DMS.
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-dms-data-agent-platform-setup --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-dms-data-agent-platform-setup
Context preview
The summary Claude sees to decide when to auto-load this skill.
Create an agent platform instance in DMS via Alibaba Cloud OpenAPI. Supports Simple Mode and Advanced Mode. Use this skill when the user wants to provision, deploy, or set up a new Dify instance on Alibaba Cloud DMS.
SKILL.md
alibabacloud-dms-data-agent-platform-setup.SKILL.mdname: alibabacloud-dms-data-agent-platform-setup
description: Create an agent platform instance in DMS via Alibaba Cloud OpenAPI. Supports Simple Mode and Advanced Mode. Use this skill when the user wants to provision, deploy, or set up a new Dify instance on Alibaba Cloud DMS.
Create Dify Instance
Provision a Dify instance automatically via Alibaba Cloud OpenAPI. Supports **Simple Mode** (create all resources from scratch) and **Advanced Mode** (fine-grained control over each component).
Prerequisites
1. Check Aliyun CLI
> **[REQUIRED] Verify Aliyun CLI version >= 3.3.1 before proceeding.**
aliyun version
If the command is not found or the version is below 3.3.1, install or upgrade:
**macOS (Homebrew, recommended)**
brew install aliyun-cli
# Upgrade if already installed
brew upgrade aliyun-cli
After installation, enable automatic plugin installation:
aliyun configure set --auto-plugin-install true
2. Observability — Session ID & User-Agent
> **[REQUIRED] Generate a session-id at the start of every skill session. Use it consistently across ALL CLI commands and Python SDK calls.**
Session-ID Generation Rule
- Generate **once per session**, reuse throughout the entire workflow
- Format: **32-character lowercase hex string** (e.g., `openssl rand -hex 16`)
- Must be consistent across CLI / SDK / Terraform within the same session
export SKILL_SESSION_ID=$(openssl rand -hex 16)
User-Agent Template
AlibabaCloud-Agent-Skills/alibabacloud-dms-data-agent-platform-setup/{session-id}- **Python scripts** (`detect_dify_instance.py`, `openAPI_call.py`): read `SKILL_SESSION_ID` from environment automatically
- **Aliyun CLI commands**: inject via `--user-agent` flag on each command:
aliyun dms-enterprise <action> \
--endpoint dms-enterprise.aliyuncs.com \
--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-dms-data-agent-platform-setup/${SKILL_SESSION_ID}"> **Do NOT use `aliyun configure ai-mode set-user-agent` (deprecated). Always use per-command `--user-agent` injection.**
3. Configure Alibaba Cloud Credentials
> **[REQUIRED] Both credential sets must be configured — Aliyun CLI credentials AND Python SDK credentials. Neither can be omitted.** > **NEVER read, echo, or print AK/SK values.**
This skill performs two types of operations, each using a different credential method:
- **Query instance list** (`aliyun dms-enterprise list-instances`): uses Aliyun CLI credentials
- **Provision Dify instance** (`openAPI_call.py`): uses the Alibaba Cloud default credential chain
3a. Configure Aliyun CLI Credentials
aliyun configure list
Confirm that a valid profile exists in the output (AK, STS, or OAuth).
**If no valid profile exists, stop and prompt the user to:** 1. Obtain an AccessKey from the [Alibaba Cloud Console](https://ram.console.aliyun.com/manage/ak) 2. Configure credentials outside of this session to avoid exposing secrets:
aliyun configure set \
--mode AK \
--access-key-id <your-access-key-id> \
--access-key-secret <your-access-key-secret> \
--region cn-hangzhou3. Re-run `aliyun configure list` to confirm the profile is active
3b. Configure Python Script Credentials
`openAPI_call.py` uses the Alibaba Cloud default credential chain — no environment variables need to be set manually. The SDK automatically resolves credentials in the following order: environment variables, credentials file, instance RAM role, etc.
Configure your credentials by following the official guide: [Alibaba Cloud Python SDK v2 — Manage Access Credentials](https://help.aliyun.com/zh/sdk/developer-reference/v2-manage-python-access-credentials#3ca299f04bw3c)
> **NEVER hardcode AK/SK values in code or pass them as command-line arguments.**
4. Python Environment
It is recommended to use [uv](https://docs.astral.sh/uv/) to create an isolated virtual environment with pinned dependencies:
uv venv .venv
uv pip install --python .venv/bin/python -r scripts/requirements.txt
`requirements.txt` is provided in `./scripts/`.
Script Location
- `./scripts/detect_dify_instance.py` — Check whether the DMS Dify service is available in the target region
- `./scripts/openAPI_call.py` — Provision a Dify instance
> Run commands from the directory containing this `SKILL.md` file.
---
Pre-check: Verify DMS Service Availability
> **[REQUIRED] Before running `openAPI_call.py`, run `detect_dify_instance.py` to verify that the DMS service is accessible in the target region.**
.venv/bin/python ./scripts/detect_dify_instance.py <region-id>
Example:
.venv/bin/python ./scripts/detect_dify_instance.py cn-shanghai
- If the API returns an empty list (`[]`), that is normal — it means no Dify instances exist yet, but the service is available.
- If the API returns an error, prompt the user to enable the DMS service in the [Alibaba Cloud Console](https://dms.aliyun.com) before proceeding.
---
Simple Mode
All components (Workspace, database, KV store, vector database) are newly created.
Parameters to Collect from User
| Parameter | Description | |-----------|-------------| | `VpcId` | VPC ID | | `VSwitchId` | VSwitch ID | | `BackupVSwitchId` | Backup VSwitch ID | | `SecurityGroupId` | Security Group ID | | `ZoneId` | Availability Zone ID | | `DataRegion` | Data region | | `WorkspaceName` | Name for the new Workspace | | Account | Database account (used for DbInstanceAccount, KvStoreAccount, VectordbAccount; default: `dify_user`) | | Password | Database password (used for DbInstancePassword, KvStorePassword, VectordbPassword) | | `DryRun` | Recommended: set to `true` for a dry run first, then `false` to provision |
Execution Command
.venv/bin/python ./scripts/openAPI_call.py '{
"VpcId": "<VpcId>",
"VSwitchId": "<VSwitchId>",
"BackupVSwitchId": "<BackupVSwitchId>",
"SecurityGRead more
name: alibabacloud-dms-data-agent-platform-setup description: Create an agent platform instance in DMS via Alibaba Cloud OpenAPI. Supports Simple Mode and Advanced Mode. Use this skill when the user wants to provision, deploy, or set up a new Dify instance on Alibaba Cloud DMS.
Create Dify Instance
Provision a Dify instance automatically via Alibaba Cloud OpenAPI. Supports **Simple Mode** (create all resources from scratch) and **Advanced Mode** (fine-grained control over each component).
Prerequisites
1. Check Aliyun CLI
> **[REQUIRED] Verify Aliyun CLI version >= 3.3.1 before proceeding.**
aliyun version
If the command is not found or the version is below 3.3.1, install or upgrade:
**macOS (Homebrew, recommended)**
brew install aliyun-cli # Upgrade if already installed brew upgrade aliyun-cli
After installation, enable automatic plugin installation:
aliyun configure set --auto-plugin-install true
2. Observability — Session ID & User-Agent
> **[REQUIRED] Generate a session-id at the start of every skill session. Use it consistently across ALL CLI commands and Python SDK calls.**
Session-ID Generation Rule
- Generate **once per session**, reuse throughout the entire workflow
- Format: **32-character lowercase hex string** (e.g., `openssl rand -hex 16`)
- Must be consistent across CLI / SDK / Terraform within the same session
export SKILL_SESSION_ID=$(openssl rand -hex 16)
User-Agent Template
AlibabaCloud-Agent-Skills/alibabacloud-dms-data-agent-platform-setup/{session-id}- **Python scripts** (`detect_dify_instance.py`, `openAPI_call.py`): read `SKILL_SESSION_ID` from environment automatically
- **Aliyun CLI commands**: inject via `--user-agent` flag on each command:
aliyun dms-enterprise <action> \
--endpoint dms-enterprise.aliyuncs.com \
--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-dms-data-agent-platform-setup/${SKILL_SESSION_ID}"> **Do NOT use `aliyun configure ai-mode set-user-agent` (deprecated). Always use per-command `--user-agent` injection.**
3. Configure Alibaba Cloud Credentials
> **[REQUIRED] Both credential sets must be configured — Aliyun CLI credentials AND Python SDK credentials. Neither can be omitted.** > **NEVER read, echo, or print AK/SK values.**
This skill performs two types of operations, each using a different credential method:
- **Query instance list** (`aliyun dms-enterprise list-instances`): uses Aliyun CLI credentials
- **Provision Dify instance** (`openAPI_call.py`): uses the Alibaba Cloud default credential chain
3a. Configure Aliyun CLI Credentials
aliyun configure list
Confirm that a valid profile exists in the output (AK, STS, or OAuth).
**If no valid profile exists, stop and prompt the user to:** 1. Obtain an AccessKey from the [Alibaba Cloud Console](https://ram.console.aliyun.com/manage/ak) 2. Configure credentials outside of this session to avoid exposing secrets:
aliyun configure set \
--mode AK \
--access-key-id <your-access-key-id> \
--access-key-secret <your-access-key-secret> \
--region cn-hangzhou3. Re-run `aliyun configure list` to confirm the profile is active
3b. Configure Python Script Credentials
`openAPI_call.py` uses the Alibaba Cloud default credential chain — no environment variables need to be set manually. The SDK automatically resolves credentials in the following order: environment variables, credentials file, instance RAM role, etc.
Configure your credentials by following the official guide: [Alibaba Cloud Python SDK v2 — Manage Access Credentials](https://help.aliyun.com/zh/sdk/developer-reference/v2-manage-python-access-credentials#3ca299f04bw3c)
> **NEVER hardcode AK/SK values in code or pass them as command-line arguments.**
4. Python Environment
It is recommended to use [uv](https://docs.astral.sh/uv/) to create an isolated virtual environment with pinned dependencies:
uv venv .venv uv pip install --python .venv/bin/python -r scripts/requirements.txt
`requirements.txt` is provided in `./scripts/`.
Script Location
- `./scripts/detect_dify_instance.py` — Check whether the DMS Dify service is available in the target region
- `./scripts/openAPI_call.py` — Provision a Dify instance
> Run commands from the directory containing this `SKILL.md` file.
---
Pre-check: Verify DMS Service Availability
> **[REQUIRED] Before running `openAPI_call.py`, run `detect_dify_instance.py` to verify that the DMS service is accessible in the target region.**
.venv/bin/python ./scripts/detect_dify_instance.py <region-id>
Example:
.venv/bin/python ./scripts/detect_dify_instance.py cn-shanghai
- If the API returns an empty list (`[]`), that is normal — it means no Dify instances exist yet, but the service is available.
- If the API returns an error, prompt the user to enable the DMS service in the [Alibaba Cloud Console](https://dms.aliyun.com) before proceeding.
---
Simple Mode
All components (Workspace, database, KV store, vector database) are newly created.
Parameters to Collect from User
| Parameter | Description | |-----------|-------------| | `VpcId` | VPC ID | | `VSwitchId` | VSwitch ID | | `BackupVSwitchId` | Backup VSwitch ID | | `SecurityGroupId` | Security Group ID | | `ZoneId` | Availability Zone ID | | `DataRegion` | Data region | | `WorkspaceName` | Name for the new Workspace | | Account | Database account (used for DbInstanceAccount, KvStoreAccount, VectordbAccount; default: `dify_user`) | | Password | Database password (used for DbInstancePassword, KvStorePassword, VectordbPassword) | | `DryRun` | Recommended: set to `true` for a dry run first, then `false` to provision |
Execution Command
.venv/bin/python ./scripts/openAPI_call.py '{
"VpcId": "<VpcId>",
"VSwitchId": "<VSwitchId>",
"BackupVSwitchId": "<BackupVSwitchId>",
"SecurityGOfficial 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

