alibabacloud-bailian-m…
Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian Managed Agent…
Alibaba Cloud DataHub full-lifecycle resource management skill. Use for creating, querying, updating, and deleting DataHub Projects, Topics, and Subscriptions via Aliyun CLI. Triggers: "datahub", "datahub project", "datahub topic", "datahub subscription", "datahub resource
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-datahub-manage --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/alibabacloud-datahub-manageContext preview
The summary Claude sees to decide when to auto-load this skill.
Alibaba Cloud DataHub full-lifecycle resource management skill. Use for creating, querying, updating, and deleting DataHub Projects, Topics, and Subscriptions via Aliyun CLI. Triggers: "datahub", "datahub project", "datahub topic", "datahub subscription", "datahub resource
name: alibabacloud-datahub-manage description: | Alibaba Cloud DataHub full-lifecycle resource management skill. Use for creating, querying, updating, and deleting DataHub Projects, Topics, and Subscriptions via Aliyun CLI. Triggers: "datahub", "datahub project", "datahub topic", "datahub subscription", "datahub resource management", "streaming data management".
Manage the full lifecycle of Alibaba Cloud DataHub resources (Project → Topic → Subscription) using the Aliyun CLI plugin mode.
**Architecture**: `Region → Project → Topic → Subscription`
---
**Pre-check: Aliyun CLI >= 3.3.3 required** > Run `aliyun version` to verify >= 3.3.3. If not installed or version too low, > see `references/cli-installation-guide.md` for installation instructions.
**Pre-check: Aliyun CLI plugin update required** > [MUST] run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation. > [MUST] run `aliyun plugin update` to ensure that any existing plugins are always up-to-date.
---
> **Pre-check: Alibaba Cloud Credentials Required** > > **Security Rules:** > - **NEVER** read, echo, or print AK/SK values (e.g., `echo $ALIBABA_CLOUD_ACCESS_KEY_ID` is FORBIDDEN) > - **NEVER** ask the user to input AK/SK directly in the conversation or command line > - **NEVER** use `aliyun configure set` with literal credential values > - **ONLY** use `aliyun configure list` to check credential status > > ```bash > aliyun configure list > ``` > Check the output for a valid profile (AK, STS, or OAuth identity). > > **If no valid profile exists, STOP here.** > 1. Obtain credentials from [Alibaba Cloud Console](https://ram.console.aliyun.com/manage/ak) > 2. Configure credentials **outside of this session** (via `aliyun configure` in terminal or environment variables in shell profile) > 3. Return and re-run after `aliyun configure list` shows a valid profile
---
This skill requires DataHub permissions. See `references/ram-policies.md` for the full policy document.
Required actions: `dhs:ListProjects`, `dhs:CreateProject`, `dhs:GetProject`, `dhs:UpdateProject`, `dhs:DeleteProject`, `dhs:ListTopics`, `dhs:CreateTopic`, `dhs:GetTopic`, `dhs:UpdateTopic`, `dhs:DeleteTopic`, `dhs:ListSubscriptions`, `dhs:CreateSubscription`, `dhs:GetSubscription`, `dhs:DeleteSubscription`.
> **[MUST] Permission Failure Handling:** When any command or API call fails due to permission errors at any point during execution, follow this process: > 1. Read `references/ram-policies.md` to get the full list of permissions required by this SKILL > 2. Use `ram-permission-diagnose` skill to guide the user through requesting the necessary permissions > 3. Pause and wait until the user confirms that the required permissions have been granted
---
> **IMPORTANT: Parameter Confirmation** — Before executing any command or API call, > ALL user-customizable parameters (e.g., RegionId, instance names, CIDR blocks, > passwords, domain names, resource specifications, etc.) MUST be confirmed with the > user. Do NOT assume or use default values without explicit user approval.
| Parameter | Required | Description | Default | |-----------|----------|-------------|---------| | `region` | Yes | Target region for DataHub resources | — (must confirm) | | `project-name` | Yes | DataHub project name (3-32 chars, letter start, alphanumeric + underscore) | — | | `topic-name` | Yes (for Topic ops) | Topic name (3-128 chars) | — | | `record-type` | Yes (for create-topic) | BLOB or TUPLE | — | | `shard-count` | Yes (for create-topic) | Number of shards | — | | `lifecycle` | Yes (for create-topic) | Data retention in days | — | | `record-schema` | Conditional | Required when record-type is TUPLE | — | | `application` | Yes (for create-subscription) | Application description (max 256 chars) | — | | `subscription-id` | Optional | Manual subscription ID (4-40 chars, lowercase) | Auto-generated |
---
Upon loading this skill, generate a random session ID (32-char lowercase hex string) once for the entire session. Use it as `{session-id}` below.
**Rule: Every `aliyun` CLI command that calls a cloud API MUST include the `--user-agent` flag.** Local utility commands (e.g. `configure`, `plugin`, `version`) do not support this flag and should be excluded.
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-datahub-manage/{session-id}Example (assuming session-id is `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6`):
aliyun datahub list-projects --region cn-hangzhou --user-agent AlibabaCloud-Agent-Skills/alibabacloud-datahub-manage/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6
Do not skip, alter the format, or omit `--user-agent` on any `aliyun` API command invocation.
---
Region
└── Project
└── Topic (BLOB / TUPLE)
└── Subscription**Creation order**: Project → Topic → Subscription **Deletion order** (reverse): Subscription → Topic → Project
---
# 1.1 List existing projects to check name conflicts
aliyun datahub list-projects \
--region <region> \
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-datahub-manage/{session-id}
# 1.2 Create project
aliyun datahub create-project \
--region <region> \
--project-name <project-name> \
--comment "<project-description>" \
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-datahub-manage/{session-id}
# 1.3 Verify creation
aliyun datahub get-project \
--region <region> \
--project-name <project-name> \
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-datahub-manage/{session-id}---
aliyun datahub create-topic \ --region <region> \ --project-name <project-name> \ --topic-name <blob-topic-name> \ --comment "<topic-
Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.
Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian Managed Agent…
Alibaba Cloud Parse-X intelligent document parsing and extraction tool. Supports two…
Execute code in a secure cloud sandbox via AgentBay SDK. Use this skill whenever users…
Operate Alibaba Cloud AgentLoop Dataset resources with aliyun CLI and the AgentLoop API…
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews,…
Proactively use AgentLoop Recall to retrieve prior Alibaba Cloud AgentLoop experience through…