nocobase-app-plugin-notification-in-app
Что он делает
Этот скилл настраивает встроенный список уведомлений в приложении NocoBase 3. Каждый пользователь видит только свои уведомления, а список обновляется в реальном времени. Он нужен разработчикам, которые хотят видеть уведомления внутри приложения.
Когда использовать
- ✓Когда вы хотите, чтобы пользователи видели уведомления в списке внутри приложения.
- ✓Когда список должен обновляться в реальном времени после сохранения уведомления.
- ✓Когда элементы списка пропадают или показываются не тому пользователю, и нужна диагностика.
Ссылка на скилл
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-in-app/skills/nocobase-app-plugin-notification-in-app/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Добавьте в моё приложение NocoBase список уведомлений, который обновляется сразу, когда задача назначается пользователю.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
ИИ регистрирует клиентскую и серверную части плагина, размещает компоненты списка на странице, которой владеет приложение, и подключает тему живого обновления. Сохраненные уведомления остаются главным источником.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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
Частые вопросы
Являются ли живые обновления настоящими уведомлениями?
Нет. Живые события — это только подсказки, а сохраненный список является единственной достоверной записью.
Добавляет ли плагин страницу списка?
Нет. Маршрут принадлежит приложению, и оно само размещает страницу.
Может ли временное всплывающее окно заменить список?
Нет. Скилл указывает, что постоянные уведомления нельзя заменять временными всплывающими сообщениями в браузере.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 25k
- Место в рейтинге
- #10101
- Лицензия
- —
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
nocobase-app-development
25kПомогает агенту создать страницы, маршруты, данные, права доступа и тесты для полного бизнес-приложения на NocoBase 3.
shadcn
25kПомогает агенту находить, добавлять, исправлять и оформлять компоненты shadcn/ui в веб-проекте по их официальной документации и реестрам.
nocobase-app-plugin-development
25kПомогает агенту создавать и поддерживать плагины NocoBase 3 внутри существующего приложения: серверную и клиентскую часть, базу данных и регистрацию.
nocobase-app-upgrade
25kПомогает агенту обновить приложение NocoBase до более новой версии шаблона, перенося изменения шаблона и сохраняя вашу собственную работу.
Похожие скиллы
api-connector-builder
280kАгент создаёт новые подключения к API по существующему шаблону. Используйте, когда нужна ещё одна интеграция без нового способа делать то же самое.
api-design
280kПомогает агенту проектировать REST API по лучшим практикам: как API общаются, как показываются ошибки и как организовать данные.
backend-patterns
280kПомогает агенту с архитектурными паттернами серверной части и оптимизацией баз данных. Полезен при создании и проверке серверного кода.