← 返回 Skills 市场
sdk-team

Alibabacloud Dataworks Data Ops

作者 alibabacloud-skills-team · GitHub ↗ · v0.0.2 · MIT-0
cross-platform ⚠ suspicious
96
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install alibabacloud-dataworks-data-ops
功能描述
DataWorks Operations Center assistant for task and workflow operations, alert rule creation and management. Covers troubleshooting, failure recovery, baselin...
使用说明 (SKILL.md)

DataWorks Data Operations

DataWorks Operations Center assistant for task and workflow operations, alert rule creation and management. Supports periodic, manual, and triggered tasks/workflows (excludes real-time/streaming tasks).

Installation

Pre-check: Aliyun CLI >= 3.3.3 required Run aliyun version to verify >= 3.3.3. If not installed or version too low, run curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash to update, or 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] CLI AI-Mode & User-Agent — Before executing any business CLI command:

aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops"
aliyun plugin update

After the workflow is complete:

aliyun configure ai-mode disable

Environment Variables

The aliyun CLI default timeout may cause indefinite hangs. You [MUST] set the following environment variables before executing any API command:

Variable Description Default
ALIBABA_CLOUD_CONNECT_TIMEOUT Connection timeout in milliseconds 10000
ALIBABA_CLOUD_READ_TIMEOUT Read timeout in milliseconds 30000

For large-volume queries (e.g., paginated task instance lists with 500+ results), ALIBABA_CLOUD_READ_TIMEOUT may be increased to 60000 ms.

If an API call times out, [MUST] retry once with a doubled read timeout value. If the second attempt also fails, report the timeout to the user and suggest checking network connectivity, project ID validity, or RAM permissions.

No other special environment variable requirements.

Authentication

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

RAM Permissions

This skill requires the following RAM permissions:

Task Management

API Permission Action Description
GetTask dataworks:GetTask Get task details
ListTasks dataworks:ListTasks Query task list
ListUpstreamTasks dataworks:ListUpstreamTasks Query upstream task list
ListDownstreamTasks dataworks:ListDownstreamTasks Query downstream task list
ListTaskOperationLogs dataworks:ListTaskOperationLogs Query task operation logs

Task Instance Management

API Permission Action Description
ListTaskInstances dataworks:ListTaskInstances Query task instance list
GetTaskInstance dataworks:GetTaskInstance Get task instance details
GetTaskInstanceLog dataworks:GetTaskInstanceLog Get task instance logs
ListUpstreamTaskInstances dataworks:ListUpstreamTaskInstances Query upstream task instances
ListDownstreamTaskInstances dataworks:ListDownstreamTaskInstances Query downstream task instances
ListTaskInstanceOperationLogs dataworks:ListTaskInstanceOperationLogs Query task instance operation logs

Workflow (Operations Center, read-only)

API Permission Action Description
GetWorkflow dataworks:GetWorkflow Get workflow details
ListWorkflows dataworks:ListWorkflows Query workflow list

Workflow Instance (Operations Center, read-only)

API Permission Action Description
ListWorkflowInstances dataworks:ListWorkflowInstances Query workflow instance list
GetWorkflowInstance dataworks:GetWorkflowInstance Get workflow instance details

Alert Rules (Custom Monitoring, read-only)

API Permission Action Description
ListAlertRules dataworks:ListAlertRules Query alert rule list
GetAlertRule dataworks:GetAlertRule Get alert rule details

[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

Parameter Confirmation

IMPORTANT: Parameter Confirmation — Before executing any command or API call, ALL user-customizable parameters (e.g., ProjectId, RegionId, bizdate, instance IDs, etc.) MUST be confirmed with the user. Do NOT assume or use default values without explicit user approval.

Parameter Required/Optional Description Default
Region Required Target region None
ProjectId Required DataWorks Workspace ID None
Bizdate Required (instance-related) Business date (millisecond timestamp) Today's business date

Instance status enum values (used for --status parameter):

  • NotRun - Not Run
  • Running - Running
  • Failure - Failed
  • Success - Success
  • WaitTime - Waiting for Time
  • WaitResource - Waiting for Resources

Workflow instance type enum values (used for --type parameter):

  • Normal - Normal Scheduling
  • Manual - Manual Run
  • SmokeTest - Smoke Test
  • SupplementData - Backfill Data
  • ManualWorkflow - Manual Workflow
  • TriggerWorkflow - Trigger Workflow

Core Workflows

0. Confirm Target Region

Confirm the target region with the user. Common regions:

  • cn-hangzhou - East China 1 (Hangzhou)
  • cn-shanghai - East China 2 (Shanghai)
  • cn-beijing - North China 2 (Beijing)
  • cn-shenzhen - South China 1 (Shenzhen)

Task Management

# Query task list
aliyun dataworks-public list-tasks \
  --region \x3CREGION> \
  --project-id \x3CPROJECT_ID> \
  [--name \x3CTASK_NAME>] \
  [--page-size \x3CSIZE>] \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

# Get task details
aliyun dataworks-public get-task \
  --region \x3CREGION> \
  --id \x3CTASK_ID> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

For more command parameters and the full command list, see references/related-commands.md


Task Instance Management

# Query task instance list (filter by status)
aliyun dataworks-public list-task-instances \
  --region \x3CREGION> \
  --project-id \x3CPROJECT_ID> \
  --bizdate \x3CBIZDATE_TIMESTAMP> \
  [--status NotRun|Running|Failure|Success|WaitTime|WaitResource] \
  [--task-name \x3CTASK_NAME>] \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

# Get task instance details (use instance ID from list above)
aliyun dataworks-public get-task-instance \
  --region \x3CREGION> \
  --id \x3CTASK_INSTANCE_ID> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

# Get task instance log
aliyun dataworks-public get-task-instance-log \
  --region \x3CREGION> \
  --id \x3CTASK_INSTANCE_ID> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

For more commands (instance details, upstream/downstream instances, operation logs, etc.) see references/related-commands.md


Workflow (Operations Center, read-only)

# Query workflow list
aliyun dataworks-public list-workflows \
  --region \x3CREGION> \
  --project-id \x3CPROJECT_ID> \
  [--name \x3CWORKFLOW_NAME>] \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

# Get workflow details
aliyun dataworks-public get-workflow \
  --region \x3CREGION> \
  --id \x3CWORKFLOW_ID> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

Workflow Instance (Operations Center, read-only)

# Query workflow instance list
aliyun dataworks-public list-workflow-instances \
  --region \x3CREGION> \
  --project-id \x3CPROJECT_ID> \
  --biz-date \x3CBIZDATE_TIMESTAMP> \
  [--type Normal|Manual|SmokeTest|SupplementData|ManualWorkflow|TriggerWorkflow] \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

# Get workflow instance details
aliyun dataworks-public get-workflow-instance \
  --region \x3CREGION> \
  --id \x3CWORKFLOW_INSTANCE_ID> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

Alert Rules (Custom Monitoring, read-only)

# Query alert rule list
aliyun dataworks-public list-alert-rules \
  --region \x3CREGION> \
  --page-number \x3CPAGE_NUMBER> \
  --page-size \x3CPAGE_SIZE> \
  [--name \x3CRULE_NAME>] \
  [--owner \x3COWNER_UID>] \
  [--receiver \x3CRECEIVER_UID>] \
  [--task-ids \x3CID1> \x3CID2> ...] \
  [--types \x3CTYPE1> \x3CTYPE2> ...] \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

# Get alert rule details
aliyun dataworks-public get-alert-rule \
  --region \x3CREGION> \
  --id \x3CALERT_RULE_ID> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

Command Examples

# Step 1: Query failed task instances
aliyun dataworks-public list-task-instances \
  --region cn-hangzhou \
  --project-id 240863 \
  --bizdate 1775404800000 \
  --status Failure \
  --page-size 100 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

# Step 2: View instance log
aliyun dataworks-public get-task-instance-log \
  --region cn-hangzhou \
  --id \x3CINSTANCE_ID> \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-dataworks-data-ops

Success Verification

  1. Query Verification: ListTaskInstances returns a TaskInstances list, containing instance ID, status, task name, and other information
  2. Log Verification: GetTaskInstanceLog returns a TaskInstanceLog field containing log content

For detailed verification steps, see references/verification-method.md

Cleanup

This skill does not create resources. No cleanup required.

Best Practices

  1. Business Date Calculation: Bizdate is typically the millisecond timestamp for 00:00:00 the day before the scheduling date
  2. Paginated Queries: Use --page-number and --page-size for pagination, maximum 500 per page
  3. Pre-operation Check: It is recommended to check instance logs first to confirm the status and avoid repeated failures

References

Document Description
references/ram-policies.md RAM permission policies
references/related-commands.md CLI command quick reference
references/verification-method.md Success verification methods
related_apis.yaml Full API list
安全使用建议
What to consider before installing/using this skill: - The SKILL.md requires Alibaba Cloud credentials (AK/SK, STS, or other modes) and specific ALIBABA_CLOUD_* env vars, but the registry metadata does not declare these — assume you must configure credentials outside the agent before use. - The instructions ask you to run remote installation scripts (curl|bash) and enable `--auto-plugin-install`/`ai-mode`. Those steps can cause the CLI to fetch and execute code from the network. Only run them from a secure, controlled environment after inspecting the script or obtaining the CLI via your distro's package manager/official channel. - Principle of least privilege: create a RAM user with only the listed DataWorks permissions (or scope Resource to the workspace) rather than using broad or root credentials. - Do NOT paste AK/SK into chat or run commands that echo secrets. Configure credentials locally (environment variables, ~/.aliyun/config.json, or instance roles) as the SKILL.md recommends. - Consider disabling auto-plugin-install and manually installing any required plugins after vetting them. If you must enable it, monitor network activity and plugin sources. - If you need higher confidence: ask the publisher for a verified homepage/source, an explicit manifest declaring required env/credential fields, or a signed/hosted installer; or run the commands in an isolated test account/VM with minimal permissions. Confidence note: medium — the skill appears to be what it claims (DataWorks operations) but the metadata/instructions mismatch and instructions that enable remote plugin installs raise non-trivial risks that prevent a 'benign' verdict.
能力标签
requires-walletrequires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The SKILL.md describes a DataWorks operations assistant and all CLI commands and RAM permissions are consistent with that purpose. However, the registry metadata declares no required credentials/env while the instructions clearly require Alibaba Cloud credentials and specific ALIBABA_CLOUD_* timeouts.
Instruction Scope
Runtime instructions ask the operator to run remote install commands (curl|bash) and to enable `--auto-plugin-install` / `ai-mode`. They also mandate setting ALIBABA_CLOUD_CONNECT_TIMEOUT/READ_TIMEOUT and contain strict rules about not echoing AK/SK. Enabling auto plugin install increases the chance of remote code being fetched at runtime; the skill's instructions do not fully explain the provenance or vetting of those plugins.
Install Mechanism
Although there is no registry install spec, the SKILL.md instructs users to run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` and to download aliyun CLI binaries from aliyuncli.alicdn.com. The URLs point to Alibaba's CDN (expected for aliyun CLI), but piping remote scripts to a shell and enabling auto-plugin-install are higher-risk practices and should be run only from a trusted environment after inspection.
Credentials
The skill requires Alibaba Cloud credentials and specific ALIBABA_CLOUD_* env vars at runtime, but the registry metadata lists no required env vars or a primary credential. This mismatch between declared metadata and actual instructions is a red flag. The RAM permissions requested are limited to DataWorks read/list/log and are proportionate to the described functionality.
Persistence & Privilege
The skill is instruction-only, has no install-time persistence in the registry, and `always` is false. It does not request system-wide modifications or permanent presence beyond recommending CLI configuration and plugin behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install alibabacloud-dataworks-data-ops
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /alibabacloud-dataworks-data-ops 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.2
alibabacloud-dataworks-data-ops v0.0.2 - Increased minimum required version of Aliyun CLI to 3.3.3 and updated installation instructions. - Added mandatory steps for enabling and disabling Aliyun CLI AI-mode and setting a custom User-Agent before and after execution. - Updated command usage examples to use the correct custom User-Agent string. - Clarified environment setup steps, including plugin update requirements. - Documentation improvements for installation, environment variables, and workflow steps.
v0.0.1
Initial release of DataWorks Operations Center assistant for Alibaba Cloud DataWorks task and workflow operations. - Supports querying and managing tasks, task instances, workflows, workflow instances, and alert rules (excluding real-time/streaming tasks). - Provides workflows for troubleshooting, failure recovery, baseline assurance, monitoring, and alerting. - Uses aliyun CLI with dataworks-public OpenAPI (2024-05-18). - Strict security, authentication, and RAM permissions handling defined. - Requires environment variable and parameter confirmations for safe operation. - Does not support data source management, resource group configuration, data development, or data quality features.
元数据
Slug alibabacloud-dataworks-data-ops
版本 0.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Alibabacloud Dataworks Data Ops 是什么?

DataWorks Operations Center assistant for task and workflow operations, alert rule creation and management. Covers troubleshooting, failure recovery, baselin... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 96 次。

如何安装 Alibabacloud Dataworks Data Ops?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install alibabacloud-dataworks-data-ops」即可一键安装,无需额外配置。

Alibabacloud Dataworks Data Ops 是免费的吗?

是的,Alibabacloud Dataworks Data Ops 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Alibabacloud Dataworks Data Ops 支持哪些平台?

Alibabacloud Dataworks Data Ops 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Alibabacloud Dataworks Data Ops?

由 alibabacloud-skills-team(@sdk-team)开发并维护,当前版本 v0.0.2。

💬 留言讨论