Saltar al contenido
Skillpedia
Seguridad25 mil · #10090

nocobase-app-plugin-authorization

Qué hace

Esta skill guía el diseño de permisos de negocio en una aplicación NocoBase 3, para que distintos usuarios vean distintas páginas y registros. Es para desarrolladores de sistemas en los que las personas tienen accesos diferentes.

Cuándo usarla

  • ✓Cuando creas un sistema en el que distintas personas deben tener distintos accesos.
  • ✓Cuando necesitas limitar qué registros o campos puede ver o cambiar un rol.
  • ✓Cuando quieres revisar o gestionar los permisos ya configurados en una aplicación.

Link de la skill

https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-authorization/skills/nocobase-app-plugin-authorization/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-authorization/skills/nocobase-app-plugin-authorization/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Ayúdame a configurar mi aplicación NocoBase para que el personal de ventas vea solo sus propios clientes y los responsables los vean todos.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La IA determina qué roles necesitan qué páginas, acciones y ámbitos de registros. Después configura los conjuntos de permisos y se asegura de que las reglas se apliquen en el servidor.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Authorization development

Use the application's existing authorization service. Resolve authorizationToken from @nocobase/app-plugin-authorization/server in a provider or route factory. Read the application's AGENTS.md and inspect registered plugins and server/config/authorization.ts first. Application-owned features stay in the application's providers/routes/services; create a reusable plugin only when requested.

Identify model and configuration changes

Inspect existing declarations, enforcement, permission sets and installed capability Skills. Classify each requested change by its content, whether the feature is new or already exists. A request can require both model development and configuration.

Requested change Work required
Add or change supported operations, field/relation capabilities, scope resolver logic, inheritance resolution or server enforcement Develop the permission model and its execution path, then configure the affected business permissions
Change who holds an existing action, select an existing record-access strategy or its supported parameters, or adjust assignments and supported rules Update permission configuration through the management HTTP API or authorized services
Existing declarations have the right names but different behavior from the requirement Correct the model; matching names alone do not establish that configuration is sufficient

For permission development, deliver both the implemented model and usable initial configuration based on the responsibility matrix: permission sets, pages/actions, selected scopes, applicable rules and intended user/team assignments. Do not stop at registration and leave configuration to the user unless they explicitly requested model-only work. If recipient identities or access decisions are missing, ask for those specifics while completing independent work; do not guess assignments. Keep configuration editable in the backend and preserve unrelated administrator choices.

Choose delivery by installation state: use seeds for fresh-install defaults and authorized runtime services or a controlled data-change workflow for an existing installation. These are ways to apply configuration, not alternatives to model development. Reuse current management pages and editors. When the App owns a role editor, build it from the UI Library's permission-editor component (yes n | pnpm exec shadcn add @nocobase/permission-editor; its example is @nocobase/permission-editor-demo), selecting the actual application capabilities that administrators need to configure and composing its sections and rows in application-owned code. Registry provides no fixed business catalog. Preserve actual action names, descriptions and independent data scopes; do not copy a full options response or demo catalog into the form. Do not generate a default System and tools category or expose unused optional rule editors. The controlled checkboxes edit a draft saved by the host form. Read the relevant references as needed, beginning with the business workflow for model changes and the service/configuration references for configuration changes.

Map independently assignable business operations to their actual UI entries, server requests, affected fields and scopes. Keep permission titles aligned with operation labels; do not hide independent approval, rejection or repair steps behind a generic Manage action. A shared operation on multiple pages uses the same permission. The server enforces the operation and scopes separately from lifecycle eligibility. When splitting existing actions, migrate stored grants and default, sharing and restriction rules without widening ranges. See the client development reference for the Registry composition and verification contract.

Start from business responsibili

Preguntas frecuentes

¿Es lo mismo que el inicio de sesión?

No. El inicio de sesión lo gestiona la skill de autenticación.

¿Las reglas solo se ocultan en la página?

No. La skill indica que las reglas se aplican en el servidor.

¿Se puede conceder acceso por equipo?

Sí. La skill cubre la herencia de permisos por equipo.

Detalles

Descripción original del autor

Design and implement NocoBase 3 business permissions: job responsibilities, pages, business actions, fields, record scopes, relations, team inheritance, permission assignments, administration and inspection. Use when building a system or feature whose users have different access.

repo: nocobase/nocobase

Popularidad

Estrellas en GitHub
25 mil
Posición en el ranking
#10090
Licencia
—
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas