nestjs-notification
БесплатноБез исполняемых скриптовНе проверенBuild dual-write notification services with database persistence and FCM push delivery in NestJS. Use when creating notification entities, sending push via…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
NestJS Notification Architecture
Priority: P0 (CRITICAL)
Implement "Dual-Write" notification system: persist to Database (In-App) and send via FCM (Push).
Workflow: Send Notification
- Save to database — Persist notification entity with type enum and metadata.
- Check FCM token — Verify recipient valid
fcmToken; skip push if missing. - Send push — Call FCM inside
try/catch; never let FCM failure block request. - Serialize data — Convert Dates to ISO strings; keep FCM
datapayload flat (IDs only).
Dual-Write Service Example
Structure
Implementation Guidelines
- Use Dual-Write: Save to DB first, then attempt FCM. Catch FCM errors so they don't block logic.
- Define Granular Types: Use
NotificationTypeEnum (e.g.,APPOINTMENT_REMINDER) for frontend icon/color logic. - Stringify Metadata: Store routing data (IDs) as JSON string in DB, but Map to string-only Key-Values for FCM
data. - Handle Tokens: Check for
fcmTokenexistence before sending. Fail gracefully if missing. - Serialize Dates: Convert Dates to ISO strings before sending to FCM.
Anti-Patterns
- No Generic Types: Avoid
type: string. Always use Enum. - No Blocking FCM: Never
awaitFCM withouttry/catch. It shouldn't crash request. - No Complex Data in Push: Keep FCM
datapayload flat and minimal (IDs only). Fetch details on open.
References
Установить nestjs-notification в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nestjs-notification?
Build dual-write notification services with database persistence and FCM push delivery in NestJS. Use when creating notification entities, sending push via FCM, or implementing in-app notification feeds.
Как установить скилл nestjs-notification?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nestjs-notification запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic