Command Palette

Search for a command to run...

Назад к скиллам
скилл № 77608

nocobase-acl-manage

NocoBase 2 only; never use in a NocoBase 3 project. Task-driven ACL governance through nb CLI for role lifecycle, global role mode, permission policy, Portal…

БесплатноБез исполняемых скриптов
nocobaseот nocobase★ 54 звезды на GitHub6 установок в других каталогах

Установить nocobase-acl-manage в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Goal

Turn ACL and permission governance into a task-driven workflow so users can ask for business outcomes while the skill handles:

  • CLI command selection and argument shaping
  • capability checks and safety guards
  • write confirmation and readback evidence
  • risk-oriented explanation for high-impact changes

Scope

  • This skill is CLI-first for reads and writes.
  • Tasks are grouped into five domains:
  • role
  • global role mode
  • permission, including Portal entry access
  • user
  • risk assessment
  • Every write task follows plan -> confirm -> apply -> readback.
  • global role mode is treated as a global system policy, not a per-role field.

Non-Goals

  • Do not bypass CLI by calling direct REST endpoints.
  • Do not mutate ACL through ad-hoc database operations.
  • Do not create temporary script files to execute ACL writes.
  • Do not invoke other skills for env/plugin bootstrap; use direct nb commands in this skill.
  • Do not hide high-impact blast radius (global mode, broad snippets, broad strategy actions).
  • Do not claim one-click coverage for workflows that require governance review.

Canonical Task Model

A) Role Domain

Task User Outcome Required Inputs Optional Inputs
role.audit-all list all roles with comparable policy summary none data_source_key, output
role.create-blank create a role with default read-only baseline (single creation mode) role_name role_title, description, hidden, allow_configure, allow_new_menu, portal_uid or portal_hint when creating it for a resolved Portal
role.compare explain differences between roles role_names[] data_source_key, output

B) Global Role-Mode Domain

Task User Outcome Required Inputs Optional Inputs
global.role-mode.get read current global role mode none output
global.role-mode.set switch global role mode role_mode strict_mode

role_mode enum mapping:

  • default: independent role usage (no union mode)
  • allow-use-union: union mode available, role switching still allowed
  • only-use-union: force union mode for multi-role users

C) Permission Domain

Task User Outcome Required Inputs Optional Inputs
permission.system-snippets.set set role-level system snippets role_name, (snippet_preset or snippets) none
permission.route.desktop.set set desktop route permissions for a role role_name, route_ids[] set_mode (set or add or remove)
permission.portal.access.set grant or revoke one role's access to an existing Portal role_name, (portal_uid or portal_hint), access none
permission.data-source.global.set set global strategy actions for all tables in one data source role_name, global_actions[] data_source_key
permission.data-source.resource.set set independent actions for one or more collections role_name, (collection_hint or collection_hints[]), actions[] data_source_key, fields_map, scope_map, resource_scope (all by default)
permission.scope.manage create/update/list reusable scopes scope_task data_source_key, scope_id, scope_payload

D) User Domain

Task User Outcome Required Inputs Optional Inputs
user.assign-role assign one role to one or many users role_name, (user_ids[] or user_filter) allow_generic_association_write
user.unassign-role remove one role from one or many users role_name, (user_ids[] or user_filter) allow_generic_association_write
user.audit-role-membership inspect users bound to roles (role_name or user_id) output

E) Risk Domain

Task User Outcome Required Inputs Optional Inputs
risk.assess-role risk score and rationale for one role role_name data_source_key, output
risk.assess-user risk score based on user-role-permission relationship user_id data_source_key, output
risk.assess-system system-level ACL governance risk summary none data_source_key, output

Role creation interaction policy:

  • always create with the same default read-only baseline (role.create-blank)
  • role_name must use NocoBase role uid format with r_ prefix
  • if user input has no r_ prefix, normalize to r_<normalized_name> and show normalized value in confirmation/readback
  • do not ask users to choose role archetypes (for example, "employee/auditor/manager/custom")
  • if role_name is provided, execute creation directly
  • when the request includes the current resolved Portal, resolve it before confirmation; after role creation, immediately grant that role explicit entry to the Portal through permission.portal.access.set, then read back both the role and exact Portal association
  • treat a failed Portal grant as partial completion and do not claim the new role is ready for that Porta
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01shell
  2. 02local file reads

Вложенные файлы

  • references/_archive/field-permissions.md
  • references/_archive/global-table-permissions.md
  • references/_archive/route-permissions.md
  • references/_archive/safety-and-debug.md
  • references/_archive/scopes.md
  • references/_archive/system-permissions.md
  • references/configuration.md
  • references/execution-guard-template.md
  • references/independent-permissions.md
  • references/intent-presets-v1.md
  • references/intent-to-tool-map-v1.md
  • references/portal-access.md
  • references/refactor-plan-v2.md
  • references/result-format-v1.md

FAQ

Что делает скилл nocobase-acl-manage?

NocoBase 2 only; never use in a NocoBase 3 project. Task-driven ACL governance through nb CLI for role lifecycle, global role mode, permission policy, Portal entry access, user-role membership, and risk assessment. Use when users describe business permission outcomes instead of raw command arguments, including which roles may enter a Portal.

Как установить скилл nocobase-acl-manage?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nocobase-acl-manage запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nocobase-acl-manage с