This skill helps you implement robust notification systems in React and Next.js, covering panels, delivery channels, and user preferences.
npx playbooks add skill velt-js/agent-skills --skill velt-notifications-best-practices
Comprehensive implementation guide for Velt's notification system in React and Next.js applications. Contains 21 rules across 10 categories, prioritized by impact to guide automated code generation and integration patterns.
Reference these guidelines when:
enableUserScopedNotificationsNotificationDataProvideraccessDeniedUsers)| Priority | Category | Impact | Prefix |
|----------|----------|--------|--------|
| 1 | Core Setup | CRITICAL | core- |
| 2 | Panel Configuration | HIGH | panel- |
| 3 | Data Access | HIGH | data- |
| 4 | Settings Management | MEDIUM-HIGH | settings- |
| 5 | Configuration | MEDIUM | config- |
| 6 | Notification Triggers | MEDIUM | triggers- |
| 7 | Delivery Channels | MEDIUM | delivery- |
| 8 | UI Customization | MEDIUM | ui- |
| 9 | Wireframe Variables | MEDIUM | wireframe-variables- |
| 10 | Debugging & Testing | LOW-MEDIUM | debug- |
core-setup — Enable notifications in the Console, add VeltNotificationsTool, component props and shared-service flagspanel-tabs — Configure notification panel tabs (forYou, documents, all) and primitive listTypepanel-display — Control panel open mode (popover vs sidebar), embedded panel, pageSizepanel-current-document-only — Restrict notifications to the current document; primitive documentId scopingdata-hooks — Use React hooks to access notification datadata-rest-api — Use REST APIs for server-side get, update, and delete (visibility-filtered reads)data-notification-data-provider — Self-host custom notification content with a NotificationDataProvider (function or endpoint based); applies only to notificationSource === 'custom'data-notification-actions — Mark notifications as read and handle click eventssettings-channels — Configure notification delivery channels and settings UIsettings-config-rest-api — Read (userId) and write (userIds) per-user notification config at document or org level via REST APIconfig-cross-organization — Cross-organization notifications: enableCrossOrganization/disableCrossOrganization, CrossOrganizationConfig, getCrossOrganizationConfig$()config-user-scoped-notifications — enableUserScopedNotifications/disableUserScopedNotifications, UserScopedNotificationsConfig limit, For You and unread count outside the recently-active-documents windowtriggers-custom — Create custom notifications via REST API (notifyAll defaults to true; resolver-eligible writes)triggers-self-notifications — Enable or disable notifications for the user's own actionsdelivery-email — Set up email notifications with SendGriddelivery-webhooks — Forward basic/advanced webhook payloads, honor per-user preferences, drop accessDeniedUsers for private commentsdelivery-delay-batching — Configure opt-in server-side delay and batching pipeline (Console or workspace REST)ui-wireframes — Customize notification components with wireframeswireframe-variables-notifications-panel — Bind Notifications Panel wireframe slots using template variables (tabs, settings, per-row unread, empty-state)wireframe-variables-notifications-tool — Bind Notifications Tool wireframe slots using template variables (bell icon swap, unread badge, panel-open active state)debug-common-issues — Common issues and solutionsRead individual rule files for detailed explanations and code examples:
rules/shared/core/core-setup.md
rules/shared/panel/panel-tabs.md
Each rule file contains:
AGENTS.md — Compressed index of all rules with file paths (start here)AGENTS.full.md — Full verbose guide with all rules expanded inlineWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.