/manage-row-level-permission
管理 Dataphin 行级权限的查询、创建、更新、删除、按表查询、按用户查询和授权账号查询。 当用户要按字段值控制表数据行可见范围,维护行级权限规则、管控列、关联表、规则授权账号,或排查某张表/某个用户拥有哪些行级权限时进入。 触发词:行级权限、行权限、row permission、row-level permission、按行过滤、管控规则、规则授权账号、受影响账号、数据行可见范围。 关键限制:create 返回 true 不返回 ID,需 list 反查;复杂数组参数每个元素传 JSON 对象字符串;update 需完整回填
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill manage-row-level-permission --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-row-level-permission
Context preview
The summary Claude sees to decide when to auto-load this skill.
管理 Dataphin 行级权限的查询、创建、更新、删除、按表查询、按用户查询和授权账号查询。 当用户要按字段值控制表数据行可见范围,维护行级权限规则、管控列、关联表、规则授权账号,或排查某张表/某个用户拥有哪些行级权限时进入。 触发词:行级权限、行权限、row permission、row-level permission、按行过滤、管控规则、规则授权账号、受影响账号、数据行可见范围。 关键限制:create 返回 true 不返回 ID,需 list 反查;复杂数组参数每个元素传 JSON 对象字符串;update 需完整回填
SKILL.md
manage-row-level-permission.SKILL.mdname: manage-row-level-permission
description: |-
管理 Dataphin 行级权限的查询、创建、更新、删除、按表查询、按用户查询和授权账号查询。
当用户要按字段值控制表数据行可见范围,维护行级权限规则、管控列、关联表、规则授权账号,或排查某张表/某个用户拥有哪些行级权限时进入。
触发词:行级权限、行权限、row permission、row-level permission、按行过滤、管控规则、规则授权账号、受影响账号、数据行可见范围。
关键限制:create 返回 true 不返回 ID,需 list 反查;复杂数组参数每个元素传 JSON 对象字符串;update 需完整回填 mappingColumns/rules/tables;写操作需 HITL 确认。
行级权限管理 Skill
1. Scenario Description
在 Dataphin 平台管理 / 数据权限中对「行级权限(Row-Level Permission)」做生命周期管理。行级权限用于根据表字段值控制数据行可见范围,例如只允许某些用户查看 `region='华东'` 的订单,或只允许生产账号读取满足特定管控规则的数据行。
本 Skill 覆盖 `dataphin-public` 已开放的行级权限 OpenAPI:创建、更新、删除、分页查询、按表 GUID 查询、按用户查询,以及按行级权限 ID 查询授权账号。行级权限本身不单独提供“发布/上线/下线”命令;权限生效通常与规则配置、授权申请、审批和缓存同步相关。
**Architecture**:`Dataphin Tenant → Project / DataSource / Physical Table → Mapping Columns → Row Permission Rules → User/Produce Account Authorization → Query/DataService/Task Runtime Filtering`
涉及 Dataphin OpenAPI
- `CreateRowPermission` — 创建行级权限
- `UpdateRowPermission` — 更新行级权限与规则
- `DeleteRowPermission` — 删除行级权限
- `ListRowPermission` — 分页查询行级权限
- `GetRowPermissionByTableGuids` — 按表 GUID 查询行级权限
- `GetAccountByRowPermissionId` — 查询某个行级权限规则下的授权账号
- `ListRowPermissionByUserId` — 查询指定用户拥有的行级权限
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-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.
执行任何写操作(create / update / delete)前必须向用户确认以下参数,禁止静默提交:
| 参数 | 必填 | 描述 | 默认值 | |---|---|---|---| | `--tenant-id` | 是 | 租户 ID(大整数,**字符串传**) | — | | `--row-permission-id` | update/delete/get-account 必填 | 行级权限 ID;create 返回 true 后需 list 反查 | — | | `--row-permission-name` | create/update 必填 | 行级权限名称 | — | | `--row-permission-desc` | 可选 | 行级权限描述 | — | | `--mapping-columns` | create/update 必填 | 管控/映射字段列表;每个元素传一个 JSON 对象字符串 | — | | `--rules` | create/update 可选 | 行级权限规则列表;每个元素传一个 JSON 对象字符串 | — | | `--tables` | create/update 可选 | 关联表列表;每个元素传一个 JSON 对象字符串 | — | | `--keyword` | list 可选 | 分页查询关键字 | — | | `--page-num` | list/list-by-user 必填 | 分页页码 | `1` | | `--page-size` | list/list-by-user 必填 | 分页大小 | `10` | | `--table-guids` | get-by-table 必填 | 表 GUID 列表,CLI list 参数用空格分隔多个值 | — | | `--rule-ids` | get-account 必填 | 行级权限规则 ID 列表,CLI list 参数用空格分隔多个值 | — | | `--operator` | list-by-user 必填 | 指定操作人/用户 ID 或账号 | — |
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-row-level-permission/{session-id}Example (assuming session-id is `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6`):
aliyun dataphin-public list-row-permission --tenant-id "1234567890123456789" \
--page-num 1 --page-size 10 \
--user-agent AlibabaCloud-Agent-Skills/manage-row-level-permission/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-row-level-permission/$SESSION_ID"
# 0) 前置:确认目标物理表、表 GUID、管控字段、项目、业务板块、数据源等元数据已存在。
# 行级权限 create/update 不是只传表名即可,tables 需要完整资源元数据。
# 1) 分页查询行级权限(创建前查重,创建后反查 ID)
aliyun dataphin-public list-row-permission --tenant-id "$TENANT_ID" \
--keyword
Read more
name: manage-row-level-permission description: |- 管理 Dataphin 行级权限的查询、创建、更新、删除、按表查询、按用户查询和授权账号查询。 当用户要按字段值控制表数据行可见范围,维护行级权限规则、管控列、关联表、规则授权账号,或排查某张表/某个用户拥有哪些行级权限时进入。 触发词:行级权限、行权限、row permission、row-level permission、按行过滤、管控规则、规则授权账号、受影响账号、数据行可见范围。 关键限制:create 返回 true 不返回 ID,需 list 反查;复杂数组参数每个元素传 JSON 对象字符串;update 需完整回填 mappingColumns/rules/tables;写操作需 HITL 确认。
行级权限管理 Skill
1. Scenario Description
在 Dataphin 平台管理 / 数据权限中对「行级权限(Row-Level Permission)」做生命周期管理。行级权限用于根据表字段值控制数据行可见范围,例如只允许某些用户查看 `region='华东'` 的订单,或只允许生产账号读取满足特定管控规则的数据行。
本 Skill 覆盖 `dataphin-public` 已开放的行级权限 OpenAPI:创建、更新、删除、分页查询、按表 GUID 查询、按用户查询,以及按行级权限 ID 查询授权账号。行级权限本身不单独提供“发布/上线/下线”命令;权限生效通常与规则配置、授权申请、审批和缓存同步相关。
**Architecture**:`Dataphin Tenant → Project / DataSource / Physical Table → Mapping Columns → Row Permission Rules → User/Produce Account Authorization → Query/DataService/Task Runtime Filtering`
涉及 Dataphin OpenAPI
- `CreateRowPermission` — 创建行级权限
- `UpdateRowPermission` — 更新行级权限与规则
- `DeleteRowPermission` — 删除行级权限
- `ListRowPermission` — 分页查询行级权限
- `GetRowPermissionByTableGuids` — 按表 GUID 查询行级权限
- `GetAccountByRowPermissionId` — 查询某个行级权限规则下的授权账号
- `ListRowPermissionByUserId` — 查询指定用户拥有的行级权限
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-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.
执行任何写操作(create / update / delete)前必须向用户确认以下参数,禁止静默提交:
| 参数 | 必填 | 描述 | 默认值 | |---|---|---|---| | `--tenant-id` | 是 | 租户 ID(大整数,**字符串传**) | — | | `--row-permission-id` | update/delete/get-account 必填 | 行级权限 ID;create 返回 true 后需 list 反查 | — | | `--row-permission-name` | create/update 必填 | 行级权限名称 | — | | `--row-permission-desc` | 可选 | 行级权限描述 | — | | `--mapping-columns` | create/update 必填 | 管控/映射字段列表;每个元素传一个 JSON 对象字符串 | — | | `--rules` | create/update 可选 | 行级权限规则列表;每个元素传一个 JSON 对象字符串 | — | | `--tables` | create/update 可选 | 关联表列表;每个元素传一个 JSON 对象字符串 | — | | `--keyword` | list 可选 | 分页查询关键字 | — | | `--page-num` | list/list-by-user 必填 | 分页页码 | `1` | | `--page-size` | list/list-by-user 必填 | 分页大小 | `10` | | `--table-guids` | get-by-table 必填 | 表 GUID 列表,CLI list 参数用空格分隔多个值 | — | | `--rule-ids` | get-account 必填 | 行级权限规则 ID 列表,CLI list 参数用空格分隔多个值 | — | | `--operator` | list-by-user 必填 | 指定操作人/用户 ID 或账号 | — |
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-row-level-permission/{session-id}Example (assuming session-id is `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6`):
aliyun dataphin-public list-row-permission --tenant-id "1234567890123456789" \ --page-num 1 --page-size 10 \ --user-agent AlibabaCloud-Agent-Skills/manage-row-level-permission/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-row-level-permission/$SESSION_ID" # 0) 前置:确认目标物理表、表 GUID、管控字段、项目、业务板块、数据源等元数据已存在。 # 行级权限 create/update 不是只传表名即可,tables 需要完整资源元数据。 # 1) 分页查询行级权限(创建前查重,创建后反查 ID) aliyun dataphin-public list-row-permission --tenant-id "$TENANT_ID" \ --keyword
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

