manage-project-member
БесплатноБез исполняемых скриптовНе проверен管理 Dataphin 项目成员(添加 / 移除 / 更新角色 / 查询列表)。 当用户场景涉及项目成员变更、角色分配、权限调整时进入。 触发场景: - 需要给项目添加开发者或运维人员 - 需要调整成员角色(如从访客改为开发者) - 需要批量移除项目成员 - 查询项目当前成员列表…
от aliyun★ 303 звезды на GitHubОб этом скилле
项目成员管理 skill
1. Scenario Description
管理 Dataphin 项目的成员与角色,支持:添加成员并分配角色、移除成员、更新成员角色、查询成员列表。
Architecture:Dataphin Tenant → Project → ProjectMember(User + Role + Env)
2. Installation
aliyun plugin install aliyun-cli-dataphin-public
(详见 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 read, echo, or print AK/SK values to terminal or logs
- NEVER ask the user to input AK/SK directly in the conversation or command line
- NEVER use
aliyun configure setwith literal credential values- ONLY use
aliyun configure listto check credential statusaliyun configure listCheck the output for a valid profile (AK, STS, or OAuth identity).
If no valid profile exists, STOP here.
- Obtain credentials from Alibaba Cloud Console
- Configure credentials outside of this session (via
aliyun configurein terminal or environment variables in shell profile)- Return and re-run after
aliyun configure listshows a valid profile
Pre-check: Aliyun CLI >= 3.4.8 required
Run
aliyun versionto verify >= 3.4.8. If not installed or version too low, runcurl -fsSL https://aliyuncli.alicdn.com/setup.sh | bashto install/update, or seereferences/cli-installation-guide.mdfor installation instructions.
Pre-check: Aliyun CLI plugin update required
[MUST] run
aliyun configure set --auto-plugin-install trueto enable automatic plugin installation. [MUST] runaliyun plugin updateto ensure that any existing plugins are always up-to-date.
5. RAM Policy
最小权限策略详见 ../../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:
- Read
../../ram-policies.mdto get the full list of permissions required by this SKILL- Use
ram-permission-diagnoseskill to guide the user through requesting the necessary permissions- 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(19 位 snowflake,字符串传) | — |
--id |
是 | 项目 ID(19 位 snowflake) | — |
Env |
否 | 环境标识:DEV 或 PROD;DEV_PROD 模式项目需指定 |
— |
UserId |
是 | 目标用户 ID(字符串) | — |
RoleList |
是(添加/更新时) | 角色码数组 | — |
角色码枚举
| 码值 | 角色 |
|---|---|
| 1 | 项目管理员 |
| 2 | 开发者 |
| 3 | 访客 |
| 4 | 分析师 |
| 5 | 运维 |
7. Observability (MUST follow for every aliyun command)
版本 {version}(Shell 变量 SKILL_VERSION)来自套件 references/manifest.json 的 version 字段,与 session-id 一同继承父技能 §7。直接加载本子技能时先完成父层初始化;所有 CLI / SDK 调用使用父技能名称与同一版本,跨 Shell 调用须重新注入这些值。
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/alibabacloud-dataphin-skills/{session-id} skill-version/{version}"
8. Core Workflow
TENANT_ID="<your-tenant-id>" # 19 位字符串
PROJECT_ID="<your-project-id>" # 19 位字符串
SESSION_ID="<inherited from alibabacloud-dataphin-skills>"
8.1 添加项目成员
aliyun dataphin-public add-project-member \
--op-tenant-id "$TENANT_ID" \
--id "$PROJECT_ID" \
--add-command '{
"Env": "DEV",
"UserList": [
{
"UserId": "<target-user-id>",
"RoleList": [2]
}
]
}' \
--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-dataphin-skills/$SESSION_ID skill-version/$SKILL_VERSION"
8.2 更新成员角色
aliyun dataphin-public update-project-member \
--op-tenant-id "$TENANT_ID" \
--id "$PROJECT_ID" \
--update-command '{
"Env": "DEV",
"UserList": [
{
"UserId": "<target-user-id>",
"RoleList": [1, 2]
}
]
}' \
--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-dataphin-skills/$SESSION_ID skill-version/$SKILL_VERSION"
8.3 移除项目成员
aliyun dataphin-public remove-project-member \
--op-tenant-id "$TENANT_ID" \
--id "$PROJECT_ID" \
--remove-command '{
"Env": "DEV
Установить manage-project-member в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл manage-project-member?
管理 Dataphin 项目成员(添加 / 移除 / 更新角色 / 查询列表)。 当用户场景涉及项目成员变更、角色分配、权限调整时进入。 触发场景: - 需要给项目添加开发者或运维人员 - 需要调整成员角色(如从访客改为开发者) - 需要批量移除项目成员 - 查询项目当前成员列表 触发词:项目成员、添加成员、移除成员、更新角色、成员管理、add-project-member、remove-project-member、update-project-member。 关键限制:角色码为整数枚举(1-5);DEV_PROD 模式项目需指定 Env(DEV/PROD);19 位 ID 必须字符串呈现。
Как установить скилл manage-project-member?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл manage-project-member запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic