permission-model-change-guide
Provides a structured guide for modifying IAM RBAC permission models in complex systems.
Install
mkdir -p .claude/skills/permission-model-change-guide && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4077" && unzip -o skill.zip -d .claude/skills/permission-model-change-guide && rm skill.zipInstalls to .claude/skills/permission-model-change-guide
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
修改 BK-CI IAM RBAC 权限模型时使用,例如新增资源类型、设计操作列表、配置 IAM 资源、补迁移数据和验证回调链路。当用户要变更权限模型而不是普通权限调用时优先使用。Key capabilities
- →Add a new IAM resource type
- →Design or adjust the operation list for a resource type
- →Modify IAM RBAC configuration, instance selectors, or callback data
- →Supplement permission migration, initialization scripts, or online change processes
- →Troubleshoot incomplete resource type access issues
How it works
This skill guides users through modifying the BK-CI IAM RBAC permission model by addressing resource definition, operation definition, data initialization, and verification layers.
Inputs & outputs
When to use permission-model-change-guide
- →Add new IAM resource type
- →Design operation permission list
- →Configure IAM callback validation
- →Run permission migration scripts
About this skill
权限模型变更指南
适用场景
- 新增一种 IAM 资源类型
- 为资源类型设计或调整操作列表
- 修改 IAM RBAC 配置、实例选择器或回调数据
- 补权限迁移、初始化脚本或线上变更流程
- 排查资源类型接入不完整的问题
不适用场景
- 只是调用现有权限校验接口
- 只是处理用户授权、加成员、移成员
- 只是修改 Auth 模块普通业务逻辑
- 只是做 OAuth2 或登录认证
快速指导
- 这个 skill 关注的是“权限模型本身如何变更”,不是“现有权限怎么调用”。
- 一次变更通常至少覆盖四层:资源定义、操作定义、数据初始化、校验验证。
- 先按问题类型进入对应参考文档:
- 资源类型与操作设计:
reference/1-resource-action-design.md - IAM 配置、迁移与初始化:
reference/2-iam-config-migration.md - 回调、验证与常见坑:
reference/3-callback-validation.md
- 资源类型与操作设计:
create一类动作往往是权限模型里最容易配错的特殊项,要先确认关联资源是否还是父级资源。- 任何模型变更都要同步考虑国际化、初始化脚本、历史数据兼容和线上落地方式。
- 如果你改的是 Auth 模块内部 RBAC 服务实现,而不是资源模型本身,切到
auth-module-architecture。
高信号规则
- 权限模型变更本质上是契约变更,不只是加几个枚举或 JSON
- 资源类型、操作列表、实例选择器、回调链路必须一起看
- 线上接入时要优先考虑初始化与兼容,而不是只让本地跑通
- API 方式和脚本方式都要明确边界,避免重复写入或状态不一致
关键陷阱
- 只加资源枚举,不补 IAM 配置和初始化链路
create、list、manage等动作的关联资源设计错误- 只改配置,不做国际化、回调和验证
- 把权限模型问题误判成普通 Auth 业务问题
延伸阅读
- 资源类型与操作设计:
reference/1-resource-action-design.md - IAM 配置、迁移与初始化:
reference/2-iam-config-migration.md - 回调、验证与常见坑:
reference/3-callback-validation.md - 如果你在改 Auth 内部实现:再看
auth-module-architecture
When not to use it
- →Only calling existing permission verification interfaces
- →Only handling user authorization, adding members, or removing members
- →Only modifying general business logic of the Auth module
Limitations
- →Does not apply to only calling existing permission verification interfaces
- →Does not apply to only handling user authorization, adding members, or removing members
- →Does not apply to only modifying general business logic of the Auth module
How it compares
This skill focuses on changing the permission model itself, rather than just calling existing permission interfaces or managing user authorizations.
Compared to similar skills
permission-model-change-guide side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| permission-model-change-guide (this skill) | 1 | 3mo | No flags | Advanced |
| backend-security-coder | 24 | 4mo | No flags | Intermediate |
| xss-testing | 1 | 7mo | Review | Advanced |
| aptos-scanner | 0 | 5mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by TencentBlueKing
View all by TencentBlueKing →You might also like
backend-security-coder
sickn33
Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.
xss-testing
Ed1s0nZ
XSS跨站脚本攻击测试的专业技能
aptos-scanner
0x-Shashi
>-
api-patterns
ngannk-fptu
Security patterns for APIs (REST, GraphQL, tRPC). Broken Object Level Authorization (BOLA), Rate Limiting, Injection, and Mass Assignment.
devisland-approval-proxy
nangchang
Change DevIsland Approval Proxy behavior, IPC framing, policy evaluation, SQLite persistence, pending approval queues, replay logs, PTY transcript handling, fallback policy, or approval-related plugin observation events. Use for AppState, ApprovalProxyController, ApprovalPolicyEngine, SQLiteApproval
blockchain-developer
sickn33
Build production-ready Web3 applications, smart contracts, and decentralized systems. Implements DeFi protocols, NFT platforms, DAOs, and enterprise blockchain integrations. Use PROACTIVELY for smart contracts, Web3 apps, DeFi protocols, or blockchain infrastructure.