alibabacloud-bailian-m…
Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian Managed Agent…
创建数据标准(包括元数据监控 METADATA 和质量监控 QUALITY)。 触发场景:创建数据标准 / 新建质量规则 / 添加元数据监控 / create-standard / StandardMonitorConfigList。 监控类型 Type(METADATA / QUALITY)决定 StandardMonitorConfigList 子元素字段组合;QUALITY 需 RuleSubType / QualityRuleTemplate / RuleConfigList / RuleValidateConfigList。
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill create-standard --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/create-standardContext preview
The summary Claude sees to decide when to auto-load this skill.
创建数据标准(包括元数据监控 METADATA 和质量监控 QUALITY)。 触发场景:创建数据标准 / 新建质量规则 / 添加元数据监控 / create-standard / StandardMonitorConfigList。 监控类型 Type(METADATA / QUALITY)决定 StandardMonitorConfigList 子元素字段组合;QUALITY 需 RuleSubType / QualityRuleTemplate / RuleConfigList / RuleValidateConfigList。
name: create-standard description: |- 创建数据标准(包括元数据监控 METADATA 和质量监控 QUALITY)。 触发场景:创建数据标准 / 新建质量规则 / 添加元数据监控 / create-standard / StandardMonitorConfigList。 监控类型 Type(METADATA / QUALITY)决定 StandardMonitorConfigList 子元素字段组合;QUALITY 需 RuleSubType / QualityRuleTemplate / RuleConfigList / RuleValidateConfigList。 触发词:创建数据标准、新建质量规则、元数据监控、create-standard、StandardMonitorConfigList、METADATA、QUALITY。
场景:在标准模板(StandardTemplate)+ 标准集(StandardSet)下新增一条数据标准,并为其挂载「元数据监控(METADATA)」或「数据质量监控(QUALITY)」。
用户请求 → 确认参数 → 选择监控类型 Type → METADATA:只校验元数据(描述/命名/属性),不查表数据 → QUALITY:对实际表数据做指标统计 + 阈值告警 → create-standard 提交 → get-standard / list-standards 验证
# 安装 aliyun CLI(>= 3.4.8) # 各操作系统一键安装脚本见 ./references/cli-installation-guide.md # 安装 dataphin-public 插件 aliyun plugin install --names aliyun-cli-dataphin-public # 验证 aliyun dataphin-public --help
详见 [CLI 安装指南](./references/cli-installation-guide.md)。
> 凭证与环境变量由父 skill `alibabacloud-dataphin-skills` 统一声明并预检(父 §3 + §4 Authentication + §8 Step 0,先于路由到本 skill 执行);本 skill 仅额外要求下列变量:
| 变量 | 说明 | 必须 | |------|------|------| | `DATAPHIN_INSECURE` | 独立部署自签证书时设为 `true` 跳过 TLS 校验 | 独立部署必须 |
> **独立部署(非公共云)注意**: > - 凭证 profile 必须带正确的 `--endpoint`(如 `dataphin-openapi.<your-domain>`),否则请求会打到公共云 `dataphin-public.<region>.aliyuncs.com` 报 `InvalidAccessKeyId.NotFound`。 > - 自签证书环境需 `export DATAPHIN_INSECURE=true`(推荐),或在命令**末尾**追加 `--insecure`(`--insecure` 非解析 flag,放在参数中间会吞掉下一个参数值)。
> **Security Rules:** > - **NEVER** 读取、回显或打印凭证环境变量(禁止对 AccessKey ID / Secret 做任何输出或日志) > - **NEVER** 要求用户在本会话或命令行直接输入 AK/SK > - **NEVER** 使用 `aliyun configure set` 写入字面量凭证 > - **ONLY** 使用 `aliyun configure list` 检查凭证状态 > > ```bash > aliyun configure list > ``` > 检查输出中是否存在有效 profile(AK、STS 或 OAuth 身份)。 > > **如果没有有效 profile,请在此停止。** > 1. 从 [Alibaba Cloud Console](https://ram.console.aliyun.com/manage/ak) 获取凭证 > 2. 在会话外配置(终端执行 `aliyun configure`,或在 shell profile 中设置环境变量) > 3. 重新运行 `aliyun configure list` 确认有效后再继续
> [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. > > 执行前确认 CLI 与插件版本: > ```bash > aliyun version > aliyun plugin list > ```
> **[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
本 skill 最小权限见 [../../ram-policies.md](../../ram-policies.md)。
执行 `create-standard` 前必须向用户确认以下参数,禁止静默提交:
| 参数 | 说明 | |------|------| | `--tenant-id` | 租户 ID(`--op-tenant-id` 的别名,profile 已配置时可省) | | `--standard-template-reference` | 引用的标准模板 **+ 标准属性值** `{"Id":<模板 Id>,"AttributeValueList":[{"AttributeId":<属性 Id>,"Value":"<值>"}]}` | | 标准编码 / 标准名称 / 数据类型等**属性值** | 逐项确认,**写在上一行的 `AttributeValueList` 里**(不是监控配置里,见 §7 步骤 0) | | `--standard-set-reference` | 所属标准集 `{"Id":<标准集 Id>}` | | 监控类型 `Type` | `METADATA`(只校验元数据)或 `QUALITY`(校验表数据) | | `--standard-general-monitor-config` | 监控配置 JSON(**只放监控规则,不放属性值**;类型分支核心,见 §7) |
标准的「标准编码 / 标准名称 / 数据类型 / 是否唯一 / 是否可空」等**属性值**,通过 `--standard-template-reference` 的 `AttributeValueList` 传入,元素为 `{"AttributeId":<属性 Id>,"Value":"<值>"}`——**AttributeId 是模板里属性的 Id,必须先查模板拿到**,不能凭属性编码(如 `code`/`name`)猜。
# 取模板属性清单:Id / Code / Name / Required(--cli-query 裁剪,避免整模板上万字符进上下文)
aliyun dataphin-public get-standard-template --tenant-id <tenant-id> \
--standard-template-id <模板 Id> --nullable false \
--cli-query 'TemplateInfo.AttributesConfig.AttributeList[].{Id:Id,Code:Code,Name:Name,Required:Required}' \
--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-dataphin-skills/{session-id} skill-version/{version}" --format json返回形如(Id 为 19 位以内大整数,JSON 里按数值传,展示时按字符串保留精度):
[
{ "Id": 1011, "Code": "code", "Name": "标准编码", "Required": true },
{ "Id": 1012, "Code": "name", "Name": "标准名称", "Required": true },
{ "Id": 1013, "Code": "data_type", "Name": "数据类型", "Required": true }
]把它转成 `Code → Id` 映射后,按业务值组装:
--standard-template-reference '{
"Id": 11,
"AttributeValueList": [
{ "AttributeId": 1011, "Value": "CUSTOMER_CODE" },
{ "AttributeId": 1012, "Value": "客户编码标准" },
{ "AttributeId": 1013, "Value": "STRING" }
]
}'> **Required=true 的属性一个都不能漏**,否则报 `DPN.DataStandard.Standard.RequiredAttributeValueIsBlank: 必填属性:[标准编码] 的值 为空`(见 §9 坑 1)。 > 若希望标准编码由平台按编码规则自动生成,加 `--need-generate-standard-code true`,此时 `AttributeValueList` 里填的标准编码会被忽略。 > 属性值受模板的 `ValueConfig` 约束(`SINGLE_ENUM` / `LOOKUP_TABLE` / `RANGE` 等只能取合法值),组装前先看步骤 0 返回里的 `ValueConfig`。
--tenant-id <int> 必填 | 租户 ID(--op-tenant-id 别名) --standard-template-reference <JSON> 必填 | 引用的标准模板 + AttributeValueList(★ 标准属性值在此) --standard-set-reference <JSON> 必填 | 所属标准集 --effective-time-config <JSON> 可选 | 生效时间配置 --description <string> 可选 | 描述 --owner <string> 可选 | 负责人 ID(不传为当前用户) --standard-general-monitor-config <JSON> 可选 | 标准监控配置 ★ 类型分支核心 --need-generate-standard-code 可选 | 是否基于规则重新生成标准编码
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…