notifications

notifications is a skill for Claude Code from filipebraida/adonisjs-starter-kit. It costs 134 tokens per session (2,001 once invoked), scanned A, original, MIT.

A notification system for an AdonisJS and Inertia application that saves notifications in PostgreSQL and delivers them instantly through Server-Sent Events, a browser connection that receives updates from the server.

In plain words
What is it for?
It helps define notification types, save and stream messages to individual users, show a notification bell and unread badge, list notifications, and mark one or all notifications as seen or read.
Why use it?
It removes the need for users to refresh the page to see new notifications and gives the application one place to manage unread and read state.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps define notification types, save and stream messages to individual users, show a notification bell and unread badge, list notifications, and mark one or all notifications as seen or read.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/filipebraida/adonisjs-starter-kit/notifications
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add filipebraida/adonisjs-starter-kit --skill notifications
Clone the repo
git clone --depth 1 https://github.com/filipebraida/adonisjs-starter-kit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for notifications

README.md
[![agentmods](https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/notifications/github.svg)](https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/notifications)
Your own site
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/notifications"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/notifications/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for notifications

Your own site · 80×15
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/notifications"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/notifications.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,001 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00134 $0.02001
Opus 5.5 $0.00054 $0.00800
Sonnet 5.5 $0.00027 $0.00400
Haiku 4.5 $0.00013 $0.00200

Measured 5d ago against content hash 3491151a1b82, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

notifications scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skills/notifications/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Notifications + SSE

In-app notifications persist as rows in the notifications table and stream to the user's personal channel in realtime via SSE. Facteur (@facteurjs/adonisjs) is the framework: one Notification<User, Params> class per type, with a deliverBy: { database, transmit } config and per-channel methods (asDatabaseMessage, asTransmitMessage). Transmit (@adonisjs/transmit) is the SSE transport, over Redis (config/transmit.ts), so an event sent from one node reaches a browser held by another. Emission always goes through domain events: actions emit, a listener schedules a durable workflow, and a ctx.localStep of that workflow calls facteur.notification(...).params(...).to([user]).send() (see [[actions-events]]).

Rules

  • A dedicated notifications module owns the model, transformer, controller and routes for the bell:
    • GET /notifications → list + unseen count.
    • POST /notifications/:id/read → mark one read.
    • POST /notifications/seen → mark all as seen (the dot disappears; row stays "unread").
    • POST /notifications/read → mark all read.
  • Notification classes live at app/<mod>/notifications/<name>_notification.ts, extending Notification<User, Params>:
    static options = { name: 'user-welcome', deliverBy: { database: true, transmit: true } }
    asDatabaseMessage() { return DatabaseMessage.create().setType(...).setContent({...}).setTags([...]) }
    asTransmitMessage() { return TransmitMessage.create().setContent({ kind: '...' }) }
    
  • User routing via User.notificationTargets():
    {
      database: { notifiableId: String(this.id) },
      transmit: { channel: `notifications/users/${this.id}` },
    }
    
    Facteur maps each channel's target automatically.
  • Emission goes through events and a workflow — see [[actions-events]]. The workflow's step calls:
    await ctx.localStep('notification', async () => {
      const user = await User.findOrFail(input.userId)
      await facteur.notification(SomeNotification).params({...}).to([user]).send()
    })
    
    A mail and its in-app notification are two steps of the same workflow, so a mail retry never notifies twice (app/users/workflows/send_welcome_workflow.ts).
  • Shared prop unseenNotifications (count) is computed in the Inertia middleware when a user is authenticated. It powers the bell badge on first render — the SSE stream keeps it in sync afterward.
  • Bell UI subscribes to the per-user channel via useNotificationsChannel(user.id, onIncoming), hits the endpoint to fetch the list when opened, marks-all-seen on open, marks-read on click. Its "See all" opens the full page: the same GET /notifications, answered as JSON to the bell and as the notifications/index page to a browser visit (grouped by day, with an unread slice).
  • Channel params are whole path segments. Transmit matches channels like routes (matchit): notifications/users/:id works, notifications/user-:id is read as literal text, never matches, and leaves the channel unauthorized for everyone.
  • Frontend SSE client is a lazy singleton: one EventSource on /__transmit/events, all channels multiplex through it.
  • SSE transport — apps/web/config/transmit.ts uses the Redis driver, imported from @adonisjs/transmit/transports/redis (the bare transports entry also loads the MQTT driver, which needs a package the app does not have). The provider does not register the /__transmit/* routes: app/notifications/routes.ts calls transmit.registerRoutes(...) behind auth() and transmit.authorize('notifications/users/:id', ...) so each user reads only their own channel.

Read the full file on GitHub · 124 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed 3491151a1b82
  2. 12d ago Changed 36387acbcc0a
  3. 20d ago Changed · +11 lines · +4 tokens per session 4e301364e2a4
  4. 3mo ago First seen · 113 lines · 130 tokens per session scan A 859860613f93

Subscribe to this mod's changes

notifications is a skill published in the GitHub repository filipebraida/adonisjs-starter-kit (99 stars, last pushed 6d ago), licensed MIT. It adds 134 tokens to every session and 2,001 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

notifications compared with skills from other repositories

notifications next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
notificationsfilipebraida/adonisjs-starter-kitSkill996d agoMITA134Claude Code
calendarcnvmnog/calendarcnSkill1685d agoMITA76Claude Code, Codex
ui-beatsnikhils4/ui-beatsSkill2363mo agoMITA62Claude Code, Codex
declare-typesone-ie/oneSkill1353d agononeA49Claude Code, Codex
sdkone-ie/oneSkill1353d agononeA34Claude Code
react-doctorshipkit-io/bonesSkill213d agononeA31Claude Code, Codex
auth-setupfirtoz/cf-multiworker-starter-kitSkill121mo agononeA39Claude Code, Codex