/manage-biz-metric
管理 Dataphin 业务指标定义的创建、更新、查询和删除。 当用户要定义 GMV、DAU、订单转化率等可复用业务口径,或维护业务指标名称、展示名、口径、目录、负责人、可见范围、相关指标、关联技术指标时进入。 触发词:业务指标、业务口径、指标定义、biz metric、GMV、DAU、转化率、指标关系图、业务指标口径。 关键限制:OpenAPI 仅覆盖业务指标定义 CRUD;发布/上架/下架属于资产上架链路,需另走资产管理能力;写操作需 HITL 确认。
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill manage-biz-metric --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
/manage-biz-metric
Context preview
The summary Claude sees to decide when to auto-load this skill.
管理 Dataphin 业务指标定义的创建、更新、查询和删除。 当用户要定义 GMV、DAU、订单转化率等可复用业务口径,或维护业务指标名称、展示名、口径、目录、负责人、可见范围、相关指标、关联技术指标时进入。 触发词:业务指标、业务口径、指标定义、biz metric、GMV、DAU、转化率、指标关系图、业务指标口径。 关键限制:OpenAPI 仅覆盖业务指标定义 CRUD;发布/上架/下架属于资产上架链路,需另走资产管理能力;写操作需 HITL 确认。
SKILL.md
manage-biz-metric.SKILL.mdname: manage-biz-metric
description: |-
管理 Dataphin 业务指标定义的创建、更新、查询和删除。
当用户要定义 GMV、DAU、订单转化率等可复用业务口径,或维护业务指标名称、展示名、口径、目录、负责人、可见范围、相关指标、关联技术指标时进入。
触发词:业务指标、业务口径、指标定义、biz metric、GMV、DAU、转化率、指标关系图、业务指标口径。
关键限制:OpenAPI 仅覆盖业务指标定义 CRUD;发布/上架/下架属于资产上架链路,需另走资产管理能力;写操作需 HITL 确认。
业务指标管理 Skill
1. Scenario Description
在 Dataphin 资产治理 / 指标管理中对「业务指标(Biz Metric)」做定义级管理。业务指标用于把 GMV、DAU、转化率、支付订单数等业务度量沉淀为统一口径,供数据团队、业务团队和下游应用复用。
本 Skill 覆盖 `dataphin-public` 已开放的业务指标 OpenAPI:创建、更新、按名称查询、删除。它解决的是「业务指标定义」本身的维护,包括名称、展示名、指标口径、目录归属、业务负责人、标签、可见范围、相关业务指标、关联技术指标和指标关系图等。
**重要边界**:业务指标在资产目录中的发布/上架/下架不由 `create-biz-metric` / `update-biz-metric` 直接完成。发布/上架能力属于资产上架管理链路,当前 `dataphin-public` 业务指标命令仅开放定义 CRUD;如用户要求“发布指标”“上架指标”“下架指标”,必须先说明该边界,再路由到资产上架相关能力或请求人工确认替代方案。
**Architecture**:`Dataphin Tenant → Catalog(指标目录)→ BizMetric(业务指标定义)→ 相关业务指标 / 技术指标 / 指标关系图 → 资产上架链路`
涉及 Dataphin OpenAPI
- `CreateBizMetric` — 创建业务指标定义
- `UpdateBizMetric` — 更新业务指标定义
- `GetBizMetricByName` — 按名称查询草稿态或已发布业务指标详情
- `DeleteBizMetric` — 删除业务指标定义
2. Installation
aliyun plugin install --names aliyun-cli-dataphin-public
各操作系统一键安装脚本与版本要求详见 [references/cli-installation-guide.md](references/cli-installation-guide.md)。
3. Environment Variables
> 凭证与环境变量由父 skill `alibabacloud-dataphin-skills` 统一声明并预检(父 §3 + §4 Authentication + §8 Step 0,先于路由到本 skill 执行);本 skill 不重复声明。
4. Authentication
> **Pre-check: Alibaba Cloud Credentials Required** > > **Security Rules:** > - **NEVER** 读取、回显或打印凭证环境变量(禁止对 AccessKey ID / Secret 做任何输出或日志) > - **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, install/update from https://aliyuncli.alicdn.com (see [references/cli-installation-guide.md](references/cli-installation-guide.md) for the OS-specific script).
**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 策略](../../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.
执行任何写操作(create / update / delete)前必须向用户确认以下参数,禁止静默提交:
| 参数 | 必填 | 描述 | 默认值 | |---|---|---|---| | `--tenant-id` | 是 | 租户 ID(大整数,**字符串传**) | — | | `--biz-metric-name` | 是 | 业务指标英文名/编码;租户内唯一 | — | | `--new-name` | update 可选 | 更新后的业务指标名称 | — | | `--display-name` | 建议 | 展示名,便于业务用户理解 | — | | `--metric-definition` | 建议 | 指标口径;引用其他业务指标时用半角中括号包裹,如 `[GMV] / [订单数]` | — | | `--catalog-ids` | 建议 | 归属目录 ID 列表;需确认目录已存在,CLI list 参数用空格分隔多个值 | — | | `--biz-owner-name` | 可选 | 业务负责人账号用户名,非展示昵称 | — | | `--labels` | 可选 | 资产标签列表,CLI list 参数用空格分隔多个值 | — | | `--related-biz-metrics` | 可选 | 相关业务指标列表;开启关系图前至少要有相关指标 | — | | `--associated-tech-metric-full-names` | 可选 | 关联技术指标全名列表,格式为“所属表全名.指标名称” | — | | `--metric-relation-diagram-switch-open` | 可选 | 是否开启指标关系图;没有相关指标时会自动关闭 | `false` | | `--view-scope` | 可选 | 可见范围对象 | — | | `--custom-attribute` | 可选 | 自定义属性数组 | — | | `--draft` | get 必填 | 查询草稿态或已发布详情:`true` 草稿态,`false` 已发布 | — |
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/manage-biz-metric/{session-id}Example (assuming session-id is `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6`):
aliyun dataphin-public get-biz-metric-by-name --tenant-id "1234567890123456789" \
--biz-metric-name "gmv" --draft true \
--user-agent AlibabaCloud-Agent-Skills/manage-biz-metric/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6
Do not skip, alter the format, or omit `--user-agent` on any `aliyun` API command invocation.
8. Core Workflow
TENANT_ID="<大整数租户 ID,字符串>"
SESSION_ID="<inherited from alibabacloud-dataphin-skills>"
UA="AlibabaCloud-Agent-Skills/manage-biz-metric/$SESSION_ID"
# 0) 前置:确认这是“业务指标定义 CRUD”需求。
# 若用户要求发布/上架/下架业务指标,先说明当前 OpenAPI 边界:业务指标命令不含 publish/online/offline。
# 1) 查询业务指标是否已存在(创建前防重、更新/删除前定位)
aliyun dataphin-public get-biz-metric-by-name --tenant-id "$TENANT_ID" \
--biz-metric-name "<业务指标名称>" \
--draft true \
--user-agent "$UA" --format json
# 2) 创建业务指标定义
aliyun dataphin-public create-biz-metric --tenant-id "$TENANT_ID" \
--biz-metric-name "<业务指标名称>" \
--dis
Read more
name: manage-biz-metric description: |- 管理 Dataphin 业务指标定义的创建、更新、查询和删除。 当用户要定义 GMV、DAU、订单转化率等可复用业务口径,或维护业务指标名称、展示名、口径、目录、负责人、可见范围、相关指标、关联技术指标时进入。 触发词:业务指标、业务口径、指标定义、biz metric、GMV、DAU、转化率、指标关系图、业务指标口径。 关键限制:OpenAPI 仅覆盖业务指标定义 CRUD;发布/上架/下架属于资产上架链路,需另走资产管理能力;写操作需 HITL 确认。
业务指标管理 Skill
1. Scenario Description
在 Dataphin 资产治理 / 指标管理中对「业务指标(Biz Metric)」做定义级管理。业务指标用于把 GMV、DAU、转化率、支付订单数等业务度量沉淀为统一口径,供数据团队、业务团队和下游应用复用。
本 Skill 覆盖 `dataphin-public` 已开放的业务指标 OpenAPI:创建、更新、按名称查询、删除。它解决的是「业务指标定义」本身的维护,包括名称、展示名、指标口径、目录归属、业务负责人、标签、可见范围、相关业务指标、关联技术指标和指标关系图等。
**重要边界**:业务指标在资产目录中的发布/上架/下架不由 `create-biz-metric` / `update-biz-metric` 直接完成。发布/上架能力属于资产上架管理链路,当前 `dataphin-public` 业务指标命令仅开放定义 CRUD;如用户要求“发布指标”“上架指标”“下架指标”,必须先说明该边界,再路由到资产上架相关能力或请求人工确认替代方案。
**Architecture**:`Dataphin Tenant → Catalog(指标目录)→ BizMetric(业务指标定义)→ 相关业务指标 / 技术指标 / 指标关系图 → 资产上架链路`
涉及 Dataphin OpenAPI
- `CreateBizMetric` — 创建业务指标定义
- `UpdateBizMetric` — 更新业务指标定义
- `GetBizMetricByName` — 按名称查询草稿态或已发布业务指标详情
- `DeleteBizMetric` — 删除业务指标定义
2. Installation
aliyun plugin install --names aliyun-cli-dataphin-public
各操作系统一键安装脚本与版本要求详见 [references/cli-installation-guide.md](references/cli-installation-guide.md)。
3. Environment Variables
> 凭证与环境变量由父 skill `alibabacloud-dataphin-skills` 统一声明并预检(父 §3 + §4 Authentication + §8 Step 0,先于路由到本 skill 执行);本 skill 不重复声明。
4. Authentication
> **Pre-check: Alibaba Cloud Credentials Required** > > **Security Rules:** > - **NEVER** 读取、回显或打印凭证环境变量(禁止对 AccessKey ID / Secret 做任何输出或日志) > - **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, install/update from https://aliyuncli.alicdn.com (see [references/cli-installation-guide.md](references/cli-installation-guide.md) for the OS-specific script).
**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 策略](../../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.
执行任何写操作(create / update / delete)前必须向用户确认以下参数,禁止静默提交:
| 参数 | 必填 | 描述 | 默认值 | |---|---|---|---| | `--tenant-id` | 是 | 租户 ID(大整数,**字符串传**) | — | | `--biz-metric-name` | 是 | 业务指标英文名/编码;租户内唯一 | — | | `--new-name` | update 可选 | 更新后的业务指标名称 | — | | `--display-name` | 建议 | 展示名,便于业务用户理解 | — | | `--metric-definition` | 建议 | 指标口径;引用其他业务指标时用半角中括号包裹,如 `[GMV] / [订单数]` | — | | `--catalog-ids` | 建议 | 归属目录 ID 列表;需确认目录已存在,CLI list 参数用空格分隔多个值 | — | | `--biz-owner-name` | 可选 | 业务负责人账号用户名,非展示昵称 | — | | `--labels` | 可选 | 资产标签列表,CLI list 参数用空格分隔多个值 | — | | `--related-biz-metrics` | 可选 | 相关业务指标列表;开启关系图前至少要有相关指标 | — | | `--associated-tech-metric-full-names` | 可选 | 关联技术指标全名列表,格式为“所属表全名.指标名称” | — | | `--metric-relation-diagram-switch-open` | 可选 | 是否开启指标关系图;没有相关指标时会自动关闭 | `false` | | `--view-scope` | 可选 | 可见范围对象 | — | | `--custom-attribute` | 可选 | 自定义属性数组 | — | | `--draft` | get 必填 | 查询草稿态或已发布详情:`true` 草稿态,`false` 已发布 | — |
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/manage-biz-metric/{session-id}Example (assuming session-id is `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6`):
aliyun dataphin-public get-biz-metric-by-name --tenant-id "1234567890123456789" \ --biz-metric-name "gmv" --draft true \ --user-agent AlibabaCloud-Agent-Skills/manage-biz-metric/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6
Do not skip, alter the format, or omit `--user-agent` on any `aliyun` API command invocation.
8. Core Workflow
TENANT_ID="<大整数租户 ID,字符串>" SESSION_ID="<inherited from alibabacloud-dataphin-skills>" UA="AlibabaCloud-Agent-Skills/manage-biz-metric/$SESSION_ID" # 0) 前置:确认这是“业务指标定义 CRUD”需求。 # 若用户要求发布/上架/下架业务指标,先说明当前 OpenAPI 边界:业务指标命令不含 publish/online/offline。 # 1) 查询业务指标是否已存在(创建前防重、更新/删除前定位) aliyun dataphin-public get-biz-metric-by-name --tenant-id "$TENANT_ID" \ --biz-metric-name "<业务指标名称>" \ --draft true \ --user-agent "$UA" --format json # 2) 创建业务指标定义 aliyun dataphin-public create-biz-metric --tenant-id "$TENANT_ID" \ --biz-metric-name "<业务指标名称>" \ --dis
Official 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

