nocobase-app-plugin-notification-in-app
What it does
This skill sets up the in-app notification inbox in a NocoBase 3 app. Each user sees only their own notifications, and the inbox refreshes live. It is for developers who want an inbox inside the app.
When to use it
- ✓When you want users to see notifications in an inbox inside the app.
- ✓When you need the inbox to refresh live after a notification is saved.
- ✓When inbox items are missing or appear for the wrong user, and you need to diagnose it.
Skill link
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-in-app/skills/nocobase-app-plugin-notification-in-app/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you add an in-app notification inbox to my NocoBase app that refreshes live when a task is assigned to a user?”
5 new skills a week. 1 minute to read.
How it works
The AI registers the client and server plugin entries, places the inbox components on a page the app owns, and connects the live update topic. Saved notifications remain the source of truth.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Are the live updates the real notifications?
No. Live events are only hints, and the saved inbox is the authoritative record.
Does the plugin add the inbox page?
No. The application owns the route and places the page.
Can temporary pop-up toasts replace the inbox?
No. The skill says durable notifications must not be replaced by temporary browser toasts.
Details
Original description by the author
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
Popularity
- GitHub stars
- 25k
- Ranking position
- #10101
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
nocobase-app-development
25kHelps your agent build pages, routes, data, permissions, and tests for a complete NocoBase 3 business application.
shadcn
25kHelps your agent find, add, fix, and style shadcn/ui components in a web project, using their official docs and registries.
nocobase-app-plugin-development
25kHelps your agent create and maintain NocoBase 3 plugins inside an existing app, including server, client, database, and registration parts.
nocobase-app-upgrade
25kHelps your agent upgrade a NocoBase app to a newer template release, bringing in template changes while keeping your own work.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.