nocobase-app-plugin-notification-in-app
Qué hace
Esta skill configura la bandeja de notificaciones dentro de una aplicación NocoBase 3. Cada usuario ve solo sus notificaciones, y la bandeja se actualiza en vivo. Es para desarrolladores que quieren una bandeja dentro de la aplicación.
Cuándo usarla
- ✓Cuando quieres que los usuarios vean notificaciones en una bandeja dentro de la aplicación.
- ✓Cuando necesitas que la bandeja se actualice en vivo después de guardar una notificación.
- ✓Cuando faltan elementos en la bandeja o aparecen para el usuario equivocado, y necesitas diagnosticarlo.
Link de la skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-in-app/skills/nocobase-app-plugin-notification-in-app/SKILL.mdCó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
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes añadir a mi aplicación NocoBase una bandeja de notificaciones que se actualice en vivo cuando se asigne una tarea a un usuario?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA registra las entradas de plugin del cliente y del servidor, coloca los componentes de la bandeja en una página que es propia de la aplicación y conecta el tema de actualización en vivo. Las notificaciones guardadas siguen siendo la fuente de verdad.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Goal
Integrate and maintain the authenticated, user-isolated in-app inbox while keeping durable HTTP state authoritative and realtime events limited to invalidation.
Ownership and Placement
This Skill is published with @nocobase/app-plugin-notification-in-app. The plugin owns its Server runtime, persistence, APIs, realtime contract, and Client inbox components. The target application owns whether both Client and Server entries are registered.
Scope
- Register the Client and Server plugin entries and the core notification dependency.
- Render the exported inbox components in an application-owned page.
- Consume the public realtime topic and event types from the
/realtimepackage entry. - Verify or diagnose inbox HTTP access, mutations, user isolation, and reconnect refresh.
Non-Goals
- Do not replace durable notifications with transient browser toasts.
- Do not edit inbox tables directly or publish forged realtime events as notification state.
- Do not expect the plugin to contribute an inbox page; the application owns the route.
Input Contract
| Input | Required | Default | Validation | Clarification Question |
|---|---|---|---|---|
action |
yes | verify for existing code; register for a new target |
register/verify/diagnose |
"Should I register, verify, or diagnose the inbox?" |
application |
yes | infer from one unambiguous workspace application | application root with Server and Client configuration | "Which application should register the inbox plugin?" |
apiConfig |
no | the target application's injected ApiClient and RealtimeClient |
authenticated client with the intended baseURL/realtimeURL |
"Should this application use its default or a custom API host?" |
Rules:
- Resolve package versions and enabled plugins from the target application before changing source.
- Register the package's public
/clientand/serverentries; do not import implementation files. - If the target application is ambiguous, stop mutation and ask.
Mandatory Clarification Gate
- Max clarification rounds:
2. - Max questions per round:
3. - Read-only inspection and diagnosis may proceed when the application is unambiguous.
- Missing required input blocks mutation; report the missing contract instead of guessing.
Workflow
- Read Inbox Integration Contract for package requirements, public surfaces, and runtime semantics.
- Inspect the target application's Server plugin list, Client composition, authentication setup,
api.baseURL,api.realtimeURL, and installed package versions. - Register
@nocobase/app-plugin-notificationbefore@nocobase/app-plugin-notification-in-app/serverwhen the application needs thein-appChannel contribution. - Register
@nocobase/app-plugin-notification-in-app/clientin the Client composition root. The plugin contributes no pages: renderNotificationInAppInboxinsideNotificationInAppProviderin a page the application declares among its own routes. - In React components and custom Hooks, use
useApiClient()from@nocobase/app-clientfor inbox reads and mutations, anduseService(realtimeClientToken)for subscriptions. Outside React, resolve the corresponding tokens from the application's services or receive the clients explicitly. Do not reconstruct/apifrom the browser location or Portal base. - Keep HTTP state authoritative. On a validated
inbox.changedevent, realtime connection open, or window focus, trigger a bounded HTTP refetch. - Use the public
@nocobase/app-plugin-notification-in-app/realtimeentry for shared topic or event types; do not import Server internals. - Test allowed and denied users, mutations without a CSRF token, cross-site cookie writes rejected with
INVALID_CSRF_ORIGIN, pagination, custom API hosts, realtime invalidation, and reconnect recovery. - Run lint, typecheck, tests, and build for the plugin and affected application.
Reference Loading Map
| Reference
Preguntas frecuentes
¿Los eventos en vivo son las notificaciones reales?
No. Los eventos en vivo son solo avisos, y la bandeja guardada es el registro autoritativo.
¿El plugin añade la página de la bandeja?
No. La aplicación es dueña de la ruta y coloca la página.
¿Pueden los avisos emergentes temporales sustituir a la bandeja?
No. La skill indica que las notificaciones duraderas no deben sustituirse por avisos temporales del navegador.
Detalles
Descripción original del autor
Use when agents need to register, verify, or diagnose the NocoBase durable in-app inbox, its development-only Client page, or realtime refresh behavior.
repo: nocobase/nocobase
Popularidad
- Estrellas en GitHub
- 25 mil
- Posición en el ranking
- #10101
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
nocobase-app-development
25 milAyuda a tu agente a crear páginas, rutas, datos, permisos y pruebas para una aplicación de negocio completa en NocoBase 3.
shadcn
25 milAyuda a tu agente a encontrar, añadir, arreglar y dar estilo a componentes de shadcn/ui en un proyecto web, usando su documentación oficial y sus registros.
nocobase-app-plugin-development
25 milAyuda a tu agente a crear y mantener plugins de NocoBase 3 dentro de una app existente, incluidas las partes de servidor, cliente, base de datos y registro.
nocobase-app-upgrade
25 milAyuda a tu agente a actualizar una app de NocoBase a una versión más nueva de la plantilla, incorporando sus cambios sin perder tu trabajo.
Skills parecidas
api-connector-builder
280 milHace que tu agente cree nuevas conexiones de API siguiendo el patrón existente. Úsalo para añadir una integración más sin inventar otra forma de hacer las cosas.
api-design
280 milAyuda a tu agente a diseñar APIs REST según las buenas prácticas. Es útil para definir cómo se comunican las APIs, cómo se muestran los errores y cómo organizar los datos.
backend-patterns
280 milAyuda a tu agente con patrones de arquitectura del lado del servidor y optimización de bases de datos. Es útil para crear o revisar código que se ejecuta en el servidor.