Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aliyun avatar

Alibabacloud Dms Data Agent Platform Setup

  • 52 installs
  • 208 repo stars
  • Updated August 4, 2026
  • aliyun/alibabacloud-aiops-skills

alibabacloud-dms-data-agent-platform-setup is a Claude skill that provisions a Dify agent-platform instance on Alibaba Cloud DMS via OpenAPI in Simple or Advanced mode.

About

This skill provisions a Dify instance on Alibaba Cloud DMS via the OpenAPI. Simple Mode creates all resources (Workspace, database, KV store, vector database) from scratch, while Advanced Mode gives fine-grained control over each component. A developer uses it to deploy or set up a new Dify agent platform on Alibaba Cloud.

  • Provisions a Dify instance on Alibaba Cloud DMS via OpenAPI
  • Supports Simple Mode (create all resources) and Advanced Mode (fine-grained control)
  • Creates Workspace, database, KV store, and vector database resources

Alibabacloud Dms Data Agent Platform Setup by the numbers

  • 52 all-time installs (skills.sh)
  • +7 installs in the week ending Jun 23, 2026 (Skillselion tracking)
  • Ranked #716 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

alibabacloud-dms-data-agent-platform-setup capabilities & compatibility

Requires Alibaba Cloud credentials; provisioning DMS/Dify instances incurs cloud charges

Capabilities
devops · database
Works with
aws
Use cases
devops · database
Runs
Runs locally
Pricing
Bring your own API key
From the docs

What alibabacloud-dms-data-agent-platform-setup says it does

Create an agent platform instance in DMS via Alibaba Cloud OpenAPI. Supports Simple Mode and Advanced Mode.
SKILL.md
All components (Workspace, database, KV store, vector database) are newly created.
SKILL.md
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-dms-data-agent-platform-setup

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs52
repo stars208
Last updatedAugust 4, 2026
Repositoryaliyun/alibabacloud-aiops-skills

What it does

Provision a Dify agent-platform instance and its resources on Alibaba Cloud DMS via OpenAPI.

Who is it for?

Standing up a new Dify instance and its supporting database/KV/vector resources on Alibaba Cloud DMS

Skip if: Managing Dify content or non-DMS Alibaba Cloud products

When should I use this skill?

A developer wants to provision or deploy a Dify instance on Alibaba Cloud DMS

What you get

Provisions a running Dify instance with its Workspace, database, KV store, and vector database on Alibaba Cloud DMS.

  • Provisioned Dify instance
  • New or reused Workspace, database, KV store, and vector database

By the numbers

  • default account dify_user
  • MajorVersion 1.13.x default in the example

Files

SKILL.mdMarkdownGitHub ↗

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. Enable Aliyun CLI AI-Mode

Before executing any CLI commands in this skill, run the following to enable AI-Mode, set the User-Agent, and update plugins:

aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-dms-data-agent-platform-setup"
aliyun plugin update
[REQUIRED] Run `aliyun configure ai-mode disable` after the workflow is complete.

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 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-hangzhou

3. 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

NEVER hardcode AK/SK values in code or pass them as command-line arguments.

4. Python Environment

It is recommended to use 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/openAPI_call.py

Run commands from the directory containing this skill.md file.

---

Simple Mode

All components (Workspace, database, KV store, vector database) are newly created.

Parameters to Collect from User

ParameterDescription
VpcIdVPC ID
VSwitchIdVSwitch ID
BackupVSwitchIdBackup VSwitch ID
SecurityGroupIdSecurity Group ID
ZoneIdAvailability Zone ID
DataRegionData region
WorkspaceNameName for the new Workspace
AccountDatabase account (used for DbInstanceAccount, KvStoreAccount, VectordbAccount; default: dify_user)
PasswordDatabase password (used for DbInstancePassword, KvStorePassword, VectordbPassword)
DryRunRecommended: 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>",
    "SecurityGroupId": "<SecurityGroupId>",
    "ZoneId": "<ZoneId>",
    "DataRegion": "<DataRegion>",
    "ResourceQuota": "12CU",
    "WorkspaceOption": "CreateNewInstance",
    "WorkspaceName": "<WorkspaceName>",
    "DatabaseOption": "CreateNewInstance",
    "DbInstanceAccount": "<account>",
    "DbInstancePassword": "<password>",
    "KvStoreOption": "CreateNewInstance",
    "KvStoreAccount": "<account>",
    "KvStorePassword": "<password>",
    "VectordbOption": "CreateNewInstance",
    "VectordbAccount": "<account>",
    "VectordbPassword": "<password>",
    "StorageType": "cloud_essd",
    "NatGatewayOption": "NoNeed",
    "MajorVersion": "1.13.x",
    "Edition": "OpenCommunity",
    "DryRun": true
}'

---

Advanced Mode

Allows fine-grained control over all parameters, including using existing Workspace, database, KV store, and vector database instances.

Step 1: Collect Base Network Parameters

Ask the user for the following:

ParameterDescription
VpcIdVPC ID
VSwitchIdVSwitch ID
BackupVSwitchIdBackup VSwitch ID
SecurityGroupIdSecurity Group ID
ZoneIdAvailability Zone ID
DataRegionData region

Step 2: Confirm WorkspaceOption

Ask the user: use an existing Workspace or create a new one?

  • UseExistingInstance: user must provide WorkspaceId (string)
  • CreateNewInstance: user must provide WorkspaceName
  • Note: WorkspaceId and WorkspaceName are mutually exclusive. If both are provided, prompt the user to correct the input.

Step 3: Confirm Each Sub-Service Option Individually

Ask the user to choose for each of the following independently:

DatabaseOption
  • CreateNewInstance: no additional parameters needed; uses default configuration
  • UseExistingInstance:
  • Ask the user if they know the DbResourceId (integer)
  • If not, run the following command and find the InstanceId from InstanceList.Instance:
    aliyun dms-enterprise list-instances --endpoint dms-enterprise.aliyuncs.com
KvStoreOption
  • CreateNewInstance: no additional parameters needed
  • UseExistingInstance:
  • Ask the user if they know the KvStoreResourceId (integer)
  • If not, run:
    aliyun dms-enterprise list-instances --endpoint dms-enterprise.aliyuncs.com
VectordbOption
  • CreateNewInstance: no additional parameters needed
  • UseExistingInstance:
  • Ask the user if they know the VectordbResourceId (integer)
  • If not, run:
    aliyun dms-enterprise list-instances --endpoint dms-enterprise.aliyuncs.com

Step 4: Collect Account and Password

Ask the user for account name and password, and fill in:

  • DbInstanceAccount / DbInstancePassword
  • KvStoreAccount / KvStorePassword
  • VectordbAccount / VectordbPassword

Step 5: Confirm Other Advanced Parameters

The following parameters have default values. Ask the user if any need to be changed:

ParameterDefaultAllowed Values
ResourceQuota12CUCustom string
Replicas1Integer
NatGatewayOptionNoNeedNoNeed, Enable
PayTypePrePaidPrePaid, PostPaid
PayPeriodTypeMonthMonth, Year
PayPeriod1Integer
MajorVersion1.13.xCustom string
EditionOpenCommunityOpenCommunity, Community, Enterprise
EnableExtraEndpointtruetrue, false
OnlyIntranetfalsetrue, false
DryRuntrueRecommended: true for dry run first, then false to provision

Step 6: Dry Run and Final Provisioning

1. Construct the full JSON with DryRun=true and run the script 2. After confirming no errors, set DryRun to false and run again to provision

---

Notes

  • The Python script uses the Alibaba Cloud default credential chain; configure credentials per the official guide before running the script
  • WorkspaceId (use existing Workspace) and WorkspaceName (create new Workspace) are mutually exclusive
  • DbResourceId, KvStoreResourceId, and VectordbResourceId are all integer types
  • Always perform a dry run with DryRun=true before final provisioning
  • After the workflow is complete, run aliyun configure ai-mode disable to disable AI-Mode

Related skills

FAQ

What is the difference between Simple and Advanced mode?

Simple Mode creates all components (Workspace, database, KV store, vector database) new, while Advanced Mode allows fine-grained control including using existing instances.

Should I test before provisioning?

Yes. The docs recommend setting DryRun to true for a dry run first, then false to provision.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.