AU

auth-module-architecture

Provides architectural patterns for implementing permissions, RBAC, and IAM integrations in complex systems.

Install

mkdir -p .claude/skills/auth-module-architecture && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4185" && unzip -o skill.zip -d .claude/skills/auth-module-architecture && rm skill.zip

Installs to .claude/skills/auth-module-architecture

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 Auth 模块时使用,例如 RBAC 权限校验、用户组与资源管理、IAM 集成、授权迁移和 OAuth2 认证。当用户要改权限平台实现而不是单次权限模型变更时优先使用。
93 charsno explicit “when” trigger
Advanced

Key capabilities

  • Modify RBAC permission validation logic
  • Manage user groups, members, and resource relationships
  • Adjust IAM integration and synchronization logic
  • Handle permission migration and OAuth2 authentication
  • Address issues with authorization callbacks
  • Configure graded administrators

How it works

This skill provides guidance for modifying the underlying implementation of the authentication module, covering RBAC, IAM integration, user group management, and OAuth2.

Inputs & outputs

You give it
A request to modify the permission platform's implementation
You get back
An updated authentication and authorization system

When to use auth-module-architecture

  • Designing RBAC models
  • Integrating IAM services
  • Implementing OAuth2 workflows

About this skill

Auth 模块架构

适用场景

  • 修改 RBAC 权限校验和资源授权逻辑
  • 处理用户组、成员、资源与权限关系
  • 修改 IAM 集成、回调和同步逻辑
  • 处理权限迁移、分级管理员或 OAuth2 认证

不适用场景

  • 只是新增一种权限资源类型或动作模型
  • 只是给用户授权、加成员、查权限
  • 只是修改其他业务模块里的权限调用点
  • 只是处理普通登录页面或前端鉴权展示

快速指导

  1. 这个 skill 关注的是“权限平台本身如何实现和协作”,不是单次资源接入手册。
  2. Auth 既包含 RBAC 资源授权,也包含 IAM 对接、用户组、OAuth2 等平台能力。
  3. 先按问题类型进入对应参考文档:
    • 模块结构与核心对象:reference/1-auth-foundation.md
    • RBAC、用户组与授权链路:reference/2-rbac-group-authorization.md
    • IAM 集成、OAuth2 与排查:reference/3-iam-oauth-debug.md
  4. 如果你在设计新的资源类型、动作列表或初始化流程,切到 permission-model-change-guide
  5. 如果你在处理业务模块里某个权限调用失败,先判断是 Auth 平台问题还是业务侧传参问题。

高信号规则

  • Auth 的核心是资源、动作、用户组、成员和授权关系
  • IAM 集成和本地 RBAC 数据是一条完整权限链,不应分开孤立看
  • 用户组配置、权限校验和资源同步往往会一起影响结果
  • 权限平台改动要优先考虑兼容性、缓存刷新和历史数据

关键陷阱

  • 把权限模型变更和 Auth 平台实现混为一谈
  • 只改校验逻辑,不看用户组、资源数据和同步链路
  • OAuth2、回调、权限校验共用上下文时,忽略边界差异
  • 权限问题排查只看接口返回,不看组、资源和动作三元关系

延伸阅读

  • 模块结构与核心对象:reference/1-auth-foundation.md
  • RBAC、用户组与授权链路:reference/2-rbac-group-authorization.md
  • IAM 集成、OAuth2 与排查:reference/3-iam-oauth-debug.md
  • 如果你在做权限模型接入:再看 permission-model-change-guide

When not to use it

  • Adding a new permission resource type or action model
  • Granting user authorization or adding members
  • Modifying permission call points in other business modules

Limitations

  • Not for adding new permission resource types
  • Not for simple user authorization or membership changes
  • Not for modifying permission call points in other business modules

How it compares

This skill focuses on the implementation and collaboration of the permission platform itself, rather than single resource access or routine permission changes.

Compared to similar skills

auth-module-architecture side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
auth-module-architecture (this skill)13moNo flagsAdvanced
supabase-developer957moReviewIntermediate
supabase-mcp-integration138moReviewAdvanced
better-auth-best-practices186moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by TencentBlueKing

View all by TencentBlueKing

project-module-architecture

TencentBlueKing

Project 项目管理模块架构指南,涵盖项目 CRUD、成员管理、项目配置、标签管理、项目迁移。当用户开发项目管理功能、处理项目成员、配置项目属性或实现项目相关逻辑时使用。

612

artifactory-module-architecture

TencentBlueKing

Artifactory 制品库模块架构指南,涵盖制品上传下载、存储后端适配、制品元数据、清理策略、权限控制。当用户开发制品库功能、处理制品存储、配置清理策略或实现制品管理时使用。

419

microservice-infrastructure

TencentBlueKing

微服务基础设施指南,涵盖条件配置、事件驱动架构、服务间通信、国际化与日志等微服务架构的核心基础设施。当用户实现服务间调用、配置多环境、实现异步通信、处理国际化或规范日志输出时使用。

411

frontend-vue-development

TencentBlueKing

前端 Vue 开发规范,涵盖 Vue 2/3 组件开发、Vuex 状态管理、路由配置、组件通信、样式规范、国际化。当用户进行前端开发、编写 Vue 组件、处理状态管理或实现页面交互时使用。

38

unit-testing

TencentBlueKing

单元测试编写指南,涵盖 JUnit5/MockK 使用、测试命名规范、Mock 技巧、测试覆盖率要求、TDD 实践。当用户编写单元测试、Mock 依赖、提高测试覆盖率或进行测试驱动开发时使用。

319

worker-module-architecture

TencentBlueKing

Worker 构建执行器模块架构指南,涵盖插件执行引擎、任务分发、日志上报、制品上传、Worker 生命周期。当用户开发 Worker 功能、实现插件执行、处理任务分发或优化执行器性能时使用。

37

Search skills

Search the agent skills registry