aurostack-org/stacks/add-notification
Claude Code and agent skill by aurostack-org/stacks
- community
Checking that the SKILL.md file is still in the repository.
Add a new kind of in-app notification to this API — the NotificationType, its data shape, and dispatching it from the action that causes it. Use when asked to "notify the user when X", "add a notification for Y", or to fill the notification inbox and unread badge.
Install
npx vskill@latest install aurostack-org/stacks/add-notificationSKILL.md
The same SKILL.md was published earlier as aurostack-org/stacks/add-notification.
Add a notification type
src/notifications/ stores notifications, serves the inbox and unread count, <!-- @feature:start realtime --> and pushes each new one to the user's connected sockets. <!-- @feature:end --> <!-- @feature:start !realtime --> and serves them to the client to fetch (without realtime nothing is pushed: add it with stack add realtime if the inbox should update live). <!-- @feature:end -->
- The type: add a value to
NotificationTypein
prisma/schema/enum.prisma, then yarn db:migrate (a migration that alters the enum). Add it in the same change as its producer: a type nothing dispatches is dead weight in every client.
- The data:
datais JSON. Decide its shape (ids and the few fields the
inbox shows, not whole entities) and write it down as a Zod schema or type beside the producer, so the frontend can render it.
- Dispatch from the service where the event happens, after it commits:
```ts constructor(private readonly notifications: NotificationsService) {}
await this.notifications.dispatch(review.contributorId, NotificationType.REVIEW_FINISHED, { quoteId: review.quoteId, decision: review.status }); ```
dispatch never throws: a failed notification is logged and must not fail the action that caused it.
- The client renders the new type in its inbox; tell the frontend the
type and data shape (and run yarn gen there).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtemplates/nest-api/files/.claude/skills/add-notification/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aurostack-org/stacks/add-notification)