mcpField
V
velt-notifications-best-practices

velt-notifications-best-practices

github.com/velt-jsDevelopment147 installsUpdated 4w ago
Repository

About velt-notifications-best-practices

A rule-based implementation guide for Velt notifications in React and Next.js. It organizes guidance on setup, data access, delivery, customization, and debugging into prioritized rules.

Key features

  1. 0118 rules across 10 categories
  2. 02Configure notification panels and tabs
  3. 03Access data with hooks or REST APIs
  4. 04Manage preferences and delivery channels
  5. 05Set up email, webhooks, and batching
  6. 06Customize notification UI and debug issues

Use cases

  1. 01Add in-app notifications to a React app
  2. 02Manage per-user notification settings
  3. 03Send email notifications through SendGrid
  4. 04Connect notification events to external services

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/velt-js/agent-skills --skill velt-notifications-best-practices

After installing, type/velt-notifications-best-practicesin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.full.md
AGENTS.md
metadata.json
README.md
rules/react/data/
data-hooks.md
rules/react/debug/
debug-common-issues.md
rules/react/settings/
settings-channels.md
rules/shared/
_sections.md
_template.md
rules/shared/config/
config-cross-organization.md
rules/shared/core/
core-setup.md
rules/shared/data/
data-notification-actions.md
data-notification-data-provider.md
data-rest-api.md
rules/shared/delivery/
delivery-delay-batching.md
delivery-email.md
delivery-webhooks.md
rules/shared/panel/
panel-current-document-only.md
panel-display.md
panel-tabs.md
rules/shared/settings/
settings-config-rest-api.md
rules/shared/triggers/
triggers-custom.md
triggers-self-notifications.md
rules/shared/ui/
ui-wireframes.md
rules/shared/wireframe-variables/
wireframe-variables-notifications-panel.md
wireframe-variables-notifications-tool.md

Details

From the project README

Velt Notifications Best Practices

Comprehensive implementation guide for Velt's notification system in React and Next.js applications. Contains 18 rules across 10 categories, prioritized by impact to guide automated code generation and integration patterns.

When to Apply

Reference these guidelines when:

  • Adding in-app notifications to a React/Next.js application
  • Setting up the VeltNotificationsTool and VeltNotificationsPanel
  • Configuring notification tabs (For You, All, Documents, People)
  • Accessing notification data via hooks or REST APIs
  • Managing user notification preferences and channels
  • Reading or writing per-user notification config via REST API (document-level or org-level)
  • Setting up email notifications with SendGrid
  • Creating custom notifications via REST API
  • Integrating with external services via webhooks
  • Configuring notification delay and batching to reduce noise

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Core SetupCRITICALcore-
2Panel ConfigurationHIGHpanel-
3Data AccessHIGHdata-
4Settings ManagementMEDIUM-HIGHsettings-
5ConfigurationMEDIUMconfig-
6Notification TriggersMEDIUMtriggers-
7Delivery ChannelsMEDIUMdelivery-
8UI CustomizationMEDIUMui-
9Wireframe VariablesMEDIUMwireframe-variables-
10Debugging & TestingLOW-MEDIUMdebug-

Quick Reference

1. Core Setup (CRITICAL)
  • core-setup — Enable notifications and add VeltNotificationsTool
2. Panel Configuration (HIGH)
  • panel-tabs — Configure notification panel tabs (forYou, all, documents, people)
  • panel-display — Control panel open mode (popover vs sidebar)
3. Data Access (HIGH)
  • data-hooks — Use React hooks to access notification data
  • data-rest-api — Use REST APIs for server-side notification management
  • data-notification-data-provider — Register NotificationDataProvider to route custom notification fetch and delete through your own backend; applies only to notificationSource === 'custom' notifications; pipeline order is notification → user → comment
4. Settings Management (MEDIUM-HIGH)
  • settings-channels — Configure notification delivery channels
  • settings-config-rest-api — Read and write per-user notification config at document or org level via REST API
5. Configuration (MEDIUM)
  • config-cross-organization — Cross-organization notifications: enableCrossOrganization/disableCrossOrganization, CrossOrganizationConfig (organizationIds, excludeOrganizationIds), "For You" feed merging, getCrossOrganizationConfig$() subscription
6. Notification Triggers (MEDIUM)
  • triggers-custom — Create custom notifications via REST API
7. Delivery Channels (MEDIUM)
  • delivery-email — Set up email notifications with SendGrid
  • delivery-webhooks — Integrate with external services via webhooks
  • delivery-delay-batching — Configure opt-in server-side delay and batching pipeline
8. UI Customization (MEDIUM)
  • ui-wireframes — Customize notification components with wireframes
9. Wireframe Variables (MEDIUM)
  • wireframe-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)
10. Debugging & Testing (LOW-MEDIUM)
  • debug-common-issues — Common issues and solutions

How to Use

Read 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:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Source pointers to official documentation

Compiled Documents

  • AGENTS.md — Compressed index of all rules with file paths (start here)
  • AGENTS.full.md — Full verbose guide with all rules expanded inline

Comments

Markdown supported