Skip to content
Cloud & Infrastructure
Skill

/update-unstructured-workflow

更新指定的 Dataphin 非结构化工作流:get-pipeline-by-id 回读现有配置 → 局部修改算子/连线/提示词/模型参数 → update-pipeline 提交(PipelineType=14)→ 回读验证。 当用户场景涉及修改已存在的非结构化工作流(调整提示词 / 换模型 / 增删算子 / 调整连线 / 切换数据集版本 / 改资源规格 / 改调度)时进入。 触发词:更新工作流、修改工作流、update-pipeline、调整算子、改提示词、换模型、加一个算子、 删除算子、修改非结构化工作流、update unstructured

From plugin
alibabacloud-aiops-skills
213200 skills
Install
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill update-unstructured-workflow --agent claude-code

How 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/update-unstructured-workflow

Context preview

The summary Claude sees to decide when to auto-load this skill.

更新指定的 Dataphin 非结构化工作流:get-pipeline-by-id 回读现有配置 → 局部修改算子/连线/提示词/模型参数 → update-pipeline 提交(PipelineType=14)→ 回读验证。 当用户场景涉及修改已存在的非结构化工作流(调整提示词 / 换模型 / 增删算子 / 调整连线 / 切换数据集版本 / 改资源规格 / 改调度)时进入。 触发词:更新工作流、修改工作流、update-pipeline、调整算子、改提示词、换模型、加一个算子、 删除算子、修改非结构化工作流、update unstructured

SKILL.md

update-unstructured-workflow.SKILL.md
name: update-unstructured-workflow
description: |-
  更新指定的 Dataphin 非结构化工作流:get-pipeline-by-id 回读现有配置 → 局部修改算子/连线/提示词/模型参数 →
  update-pipeline 提交(PipelineType=14)→ 回读验证。
  当用户场景涉及修改已存在的非结构化工作流(调整提示词 / 换模型 / 增删算子 / 调整连线 / 切换数据集版本 / 改资源规格 / 改调度)时进入。

  触发词:更新工作流、修改工作流、update-pipeline、调整算子、改提示词、换模型、加一个算子、
  删除算子、修改非结构化工作流、update unstructured workflow。

  关键限制:必须先 get-pipeline-by-id 回读、在回读结果上就地修改,禁止凭记忆重建整个 JSON;
  update-pipeline 是全量覆盖式更新(提交什么就变成什么);已有 step 的 UUID/stepId 不可改;
  写操作前必须 HITL 确认。

更新指定 Dataphin 非结构化工作流(回读 → 局部修改 → 提交 → 验证)

1. Scenario Description

用户对**已存在**的非结构化工作流提出修改诉求(例:"把要素提取那步的提示词换成新版""在解析后面加一个去重算子""向量化换成另一个模型"),本 skill 自动完成:

1. 定位目标工作流(PipelineId / FileId / NodeId 任一); 2. `get-pipeline-by-id` 回读现有全量配置(steps + hops + 调度配置),保存为基线; 3. 变更设计(输出变更摘要 diff,**暂停等用户确认**); 4. 在回读 JSON 上**就地局部修改**(未变更部分原样保留)+ 结构自检; 5. `update-pipeline` 提交(`--pipeline-type 14`,默认 `--submit false`); 6. 回读 diff 验证 + 界面回显指引。

**Architecture**:`Dataphin Tenant + BASIC Project + 已存在的非结构化工作流(算子 DAG) + 数据集 + 模型实例`。

> 创建新工作流请走兄弟 skill `create-unstructured-workflow`(经套件入口路由加载);本 skill 只负责**更新已存在**的工作流。

2. Installation

aliyun plugin install --names aliyun-cli-dataphin-public

(详见 [`references/cli-installation-guide.md`](references/cli-installation-guide.md))

3. Environment Variables

**认证信息统一使用阿里云 CLI 配置(profile):凭证预先通过 `aliyun configure --profile <name>` 配置,本 skill 不直接读取 AK/SK 环境变量或任何本地文件。**

| 配置项 | 必填 | 说明 | |---|---|---| | CLI profile | 是 | `aliyun configure list` 中的有效 profile(AK / STS / RamRoleArn 均可);执行命令时用 `--profile <name>` 指定,缺省用默认 profile | | endpoint | 独立部署时必填 | 公共云用默认 endpoint;独立部署/POC 环境由父 skill Step 0 配置专用 profile(含 endpoint)并统一透传 | | `DATAPHIN_PROFILE` | 否 | 多租户场景下的 dataphin 本地 profile 名(`--dataphin-profile`) |

4. Authentication

> **Pre-check: Alibaba Cloud Credentials Required** > > **Security Rules:** > - **NEVER** read, echo, or print AK/SK values > - **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

**Pre-check: Aliyun CLI >= 3.4.8 required** > Run `aliyun version` to verify >= 3.4.8. 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.

5. RAM Policy

最小权限策略详见 [`../../ram-policies.md`](../../ram-policies.md)。

> **[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 `../../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

6. Parameter Confirmation

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

| 参数 | 必填 | 描述 | 默认值 | |---|---|---|---| | `--op-tenant-id` | 是 | 租户 ID(大整数,shell 变量传递) | — | | ProjectId | 是 | 工作流所属 BASIC 模式项目 ID | — | | 定位键 | 是 | `PipelineId` / `FileId` / `NodeId` 至少一个(创建回执或界面 URL 可取) | — | | 变更内容描述 | 是 | 要改什么(提示词/模型/算子增删/连线/数据集版本/资源规格/调度) | — | | `--submit` | 否 | 是否提交生效(**不传时 API 默认提交**,本 skill 默认显式传 `false` 存草稿) | `false` | | `--comment` | 否 | 本次变更备注(建议写变更摘要) | — |

7. Observability (MUST follow for every aliyun command)

**session-id 由父 skill `alibabacloud-dataphin-skills` 在套件入口加载时生成(32-char 小写 hex),本子 skill 加载时直接继承同一 session-id,不再重新生成。**

**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/update-unstructured-workflow/{session-id}

Example (assuming session-id is `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6`):

aliyun dataphin-public get-pipeline-by-id --op-tenant-id "$TENANT_ID" --project-id "$PROJECT_ID" \
  --context Env=PROD ProjectId="$PROJECT_ID" --pipeline-id "$PIPELINE_ID" \
  --user-agent AlibabaCloud-Agent-Skills/update-unstructured-workflow/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6

Do not skip, alter the format, or omit `--user-agent` on any `aliyun` API command invocation.

8. Core Workflow(五步流程)

TENANT_ID="30001011"        # 租户 ID
PROJECT_ID="789"            # 工作流所属 BASIC 模式项目 ID
PIPELINE_ID="12345"         # 目标工作流 PipelineId(或改用 --file-id / --node-id)
PROFILE="<aliyun configure list 中的有效 profile 名>"
SESSION_ID="<inherited from alibabacloud-dataphin-skills>"
UA="AlibabaCloud-Agent-Skills/update-unstructured-workflow/$SESSION_ID"

**本 skill 所有 `aliyun` API 命令统一携带 `--profile "$PROFILE"`;独立部署模式下按父 skill Step 0 约定另追加 `--skip-secure-verify`。**

**铁律:`update-pipeline` 是全量覆盖式更新——提交的 pipelineConfig 就是更新后的完整 DAG。所有修改必须建立在 `get-pipeline-by-id` 回读结果之上做局部编辑,禁止凭记忆重建整个 JSON;未变更的 step/hop/字段原样保留。**

Step 1 定位目标工作流(只读)

用户提供 `PipelineId` / `FileId` / `NodeId` 任一即可(三选一)。

**标准动作 [人工注入]**:产品

Read more
Ships withalibabacloud-aiops-skills

Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.

Get the whole plugin

Other skills on alibabacloud-aiops-skills.