Agent skill

Notifications

by latitude-dev in latitude-dev/latitude-llm

Multi-channel notifications. An agent skill from latitude-dev/latitude-llm.

MITAuto-check passedBackend & APIs

Install Notifications

skills CLI
$ npx skills add latitude-dev/latitude-llm --skill notifications -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install latitude-dev/latitude-llm notifications --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/latitude-dev/latitude-llm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/notifications .claude/skills/notifications && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
notifications
GitHub stars
4.7k
Token cost
~3.5k tokens
SKILL.md length
1,574 words
Files
1
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

Multi-channel notifications. An agent skill from latitude-dev/latitude-llm.

  • Works in 7 steps: Add the kind to NOTIFICATION_KIND_META… → Define the payload schema in the same… → Extend buildIdempotencyKey… → …
  • Tasks that involve Transactional email
  • SKILL.md covers Vocabulary (and what NOT to…, Pipeline at a glance, Adding a new kind (existing… and Adding a new topic (sub-toggle…, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Notifications is an agent skill from latitude-dev/latitude-llm. Multi-channel notifications. Adding a new notification kind, group, or channel; in-app + email delivery; per-user prefs; project-level gates; idempotency.

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Transactional email. The repository describes itself as: Open-source observability for AI agents. Find where your agents fail, dispatch your coding agent to fix it, and verify the fix against real traces. The licence is MIT.

When your agent uses it

  • Tasks that involve Transactional email

Example prompts

  • “/notifications”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Add the kind to NOTIFICATION_KIND_META (packages/domain/notifications/src/entities/notification.ts) with { group, payload }.
  2. Define the payload schema in the same file. Keep it flat — no nested event discriminator.
  3. Extend buildIdempotencyKey (helpers/idempotency-key.ts) with the new kind. Pattern: ${kind}:${naturalEntityId} if there is one…
  4. Add per-channel renderers (TS will fail the build until each is present)
  5. If the kind has its own source flow (not just wrapping an existing one)
  6. If the kind is tied to a project, set projectId on each request so the ProjectDeleted cascade cleans it up.
  7. Tests alongside each use case + each renderer.

What it can do on your machine

Read from SKILL.md and the folder at commit 87e8aa0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Notifications loads about 3.5k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 1,574 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from latitude-dev/latitude-llm at commit 87e8aa0, republished under its MIT licence (© latitude-dev). 1,574 words, ~3,460 tokens.

Download SKILL.mdSave it as .claude/skills/notifications/SKILL.md (or your agent's skills folder).
name
notifications
description
Multi-channel notifications. Adding a new notification kind, group, or channel; in-app + email delivery; per-user prefs; project-level gates; idempotency.

Notifications

When to use: Adding a notification kind / group / channel, touching the notifications table or users.notification_preferences, wiring a new source event into the notification pipeline, or debugging in-app / email delivery.

Always read dev-docs/notifications.md for the full picture before editing. This skill is the action-oriented summary.

Vocabulary (and what NOT to confuse)

Four orthogonal axes — keep them straight:

AxisTypeExamplesLives in
Kindflat enum (event-type)incident.event, incident.opened, incident.closed, wrapped.report, agent-score.weekly-digest, custom.messageNOTIFICATION_KIND_META in @domain/notifications
Groupuser-visible categorysignals, monitors, wrapped_reports, agent_score, custom_messages, personal, destinations, billingNOTIFICATION_GROUPS in @domain/shared
Topicsub-toggle inside a groupsignal.discovered, signal.escalating, signal.regressed, signal.reprioritizedNOTIFICATION_TOPICS in @domain/shared
Channeldelivery surfaceemail, slackper-channel worker + registry

AlertIncidentKind (issue.new / issue.regressed / issue.escalating) is a fifth axis — it lives inside the incident.* payload and gates the producer step at the project level. It is not a NotificationKind. The mapping today: issue.new and issue.regressed → incident.event (one-shot, endedAt = startedAt); issue.escalating → incident.opened + later incident.closed (sustained, endedAt transitions from null). The producer derives the notification kind from incident.endedAt, so adding a new sustained or eventful alert kind is purely a @domain/alerts change.

Pipeline at a glance

source domain event → domain-events worker
                    → notifications:request-<group>-notifications
                    → notifications:create-notification (one per recipient)
                    → notification-email:send (if user prefs allow)

Project deletion cascades via a separate path: ProjectDeleted → notifications:delete-by-project.

Producers compute everything; consumers act idempotently. See dev-doc for details.

Adding a new kind (existing group)

  1. Add the kind to NOTIFICATION_KIND_META (packages/domain/notifications/src/entities/notification.ts) with { group, payload }.
  2. Define the payload schema in the same file. Keep it flat — no nested event discriminator.
  3. Extend buildIdempotencyKey (helpers/idempotency-key.ts) with the new kind. Pattern: ${kind}:${naturalEntityId} if there is one, ${kind}:${entityId}:${eventTimestamp} when the same entity can legitimately fire again (the unique index is permanent), else ${kind}:${generateId()}.
  4. Add per-channel renderers (TS will fail the build until each is present):
    • In-app: apps/web/src/routes/_authenticated/-components/notifications/renderers/<kind>.tsx + entry in notification-item.tsx's dispatch.
    • Email: packages/domain/email/src/templates/notifications/<kind>/index.tsx + entry in registry.ts. The renderer is an Effect — it can yield* any services it needs (e.g. WrappedReportRepository for wrapped.report). If the renderer needs services beyond SqlClient, wire the matching *Live layer into the email worker's rendererLayer in apps/workers/src/workers/notification-emailer.ts. Renderers that only need payload + context use Effect.tryPromise(() => buildHtml(...)).
  5. If the kind has its own source flow (not just wrapping an existing one):
    • Add a request-<kind>-notifications task to the notifications queue topic.
    • Write requestXxxNotificationsUseCase in @domain/notifications.
    • Route the source domain event in apps/workers/src/workers/domain-events.ts.
    • Add a handler in apps/workers/src/workers/notifications.ts.
  6. If the kind is tied to a project, set projectId on each request so the ProjectDeleted cascade cleans it up.
  7. Tests alongside each use case + each renderer.

No user-preferences UI change needed. The new kind inherits the group's existing toggle.

Adding a new topic (sub-toggle inside a group)

Reach for a topic when a group's existing switch is too coarse — the recipient wants this group but not this slice of it. A topic is one entry in NOTIFICATION_TOPICS + NOTIFICATION_TOPIC_META and one entry in the owning group's topics list (all in packages/domain/shared/src/notification-preferences.ts); both settings UIs render it from that meta with no further edits.

  • defaultEnabled: true is the normal case — the topic behaves opt-out, matching every other default in the system.
  • defaultEnabled: false makes it opt-in on both channels at once. admitsTopic is the single resolver behind shouldSendEmail and the worker's Slack fan-out, so one flag covers email, Slack, and both settings screens. Use it for topics that fire on routine activity a busy project would read as spam (signal.reprioritized fires on every priority increase).
  • Read checked in the UIs through admitsTopic(...), never ?? true — a hardcoded fallback silently shows an opt-in topic as on.
  • A topic only filters delivery. The in-app bell row is always written, so a muted topic still shows up in the feed.
  • A topic filter is the last line of defence, not the first. If a whole class of source events is never worth announcing, guard the outbox write instead — updateSignalTriageUseCase only emits SignalReprioritized for priority increases, so a downgrade costs no outbox row, no queue hop, and no producer run. Filtering downstream would burn all three to reach the same silence.

Adding a new group

A new group adds a new user-visible preferences toggle and (optionally) a new project-level gate.

  1. Add the group to NOTIFICATION_GROUPS and NOTIFICATION_GROUP_META in packages/domain/shared/src/notification-preferences.ts (groups today: signals, monitors, wrapped_reports, agent_score, custom_messages, personal, destinations, billing). notificationPreferencesSchema is built from NOTIFICATION_GROUPS and auto-extends. Set slackRoutable on the meta: non-routable groups (e.g. personal — single-recipient kinds) are hidden from the Slack routes settings, rejected by the route-config server fns, and skipped by the worker's Slack fan-out; the Slack renderer registry still needs a (stub) entry because it is exhaustive.
  2. The user-prefs settings page (apps/web/src/routes/_authenticated/projects/$projectSlug/settings/account.tsx) iterates NOTIFICATION_GROUPS to render toggles — the new group appears automatically with its label/description from the meta.
  3. Add at least one kind to the new group (use the "Adding a new kind" steps).
  4. Project-level gate (optional) — only if the new group should be opt-out-able per project:
    • Add a slot to notificationsSettingSchema in packages/domain/shared/src/settings.ts.
    • Define the inner shape (per-kind, per-target, simple boolean — whatever's useful at the project level).
    • Add a helper next to isIncidentNotificationEnabled and call it from the new producer use case before fan-out.
    • Update the API ProjectSettingsSchema in packages/operations/src/operations/projects.ts and regenerate openapi/mcp:
      sh
      pnpm --filter @app/api openapi:emit
      pnpm --filter @app/api mcp:emit
    • Wire the new toggles into apps/web/src/routes/_authenticated/projects/$projectSlug/settings.tsx.
  5. Tests: extend request-*-notifications.test.ts patterns; add a cross-group preference test (group X off, group Y still on).

Group keys are persisted in users.notification_preferences jsonb — picking a stable group key matters more than a stable label (the label is NOTIFICATION_GROUP_META[group].label and can change freely).

Show full SKILL.md (678 more words)Show less

Adding a new channel (Slack, SMS, ...)

  1. New queue topic in packages/domain/queue/src/topic-registry.ts (e.g. notification-slack with send).
  2. New per-kind renderer registry alongside the channel adapter, keyed on NotificationKind (exhaustive Record).
  3. Extend channelPreferencesSchema in @domain/shared/notification-preferences.ts with the new channel key (jsonb — no migration).
  4. Update the creator step in apps/workers/src/workers/notifications.ts to also publish the new channel's send task when prefs[group].<channel> is true. Add a shouldSend<Channel>(prefs, kind) helper alongside shouldSendEmail if it grows non-trivial.
  5. New worker file mirroring notification-emailer.ts. Register it in apps/workers/src/server.ts.
  6. Settings UI — which surface depends on how the channel is addressed. A per-user channel (email, SMS) is a switch on the per-group block in apps/web/src/routes/_authenticated/projects/$projectSlug/settings/account.tsx, driven by channelPreferencesSchema. An org-level routed channel (Slack) is not a user preference at all: it lives in settings/-components/slack-org-settings.tsx + slack-route-row.tsx, keyed on NOTIFICATION_GROUP_META[group].slackRoutable, and skips steps 3–4 entirely.

Source events, the producer step, the in-app feed, and the kind registry are all unchanged.

Embedding server-rendered images in emails

Pattern lives in apps/web/src/routes/api/notifications/$nid/incident-trend[.]png.ts — useful when a new kind wants a richer email visual than HTML/CSS can produce.

  1. URL: build at render time from a stable id (notification id). The buildChartUrl helper in @domain/email embeds the id as a path param. No signing today — the CUID is unguessable and the chart payload is project-internal trend data. If you're embedding more sensitive data (PII, credentials, content the recipient shouldn't see), HMAC-sign the id first; the chart route's TODO points at the contained change.
  2. Render: TanStack Start file route under apps/web/src/routes/api/ (project convention for machine-facing routes in apps/web — see api/health.ts, api/auth/…). Use satori (JSX → SVG) + @resvg/resvg-js (SVG → PNG). Already in apps/web's deps because the wrapped OG card uses the same pipeline. Keeping all PNG-rendering routes in apps/web keeps apps/api strictly to the authenticated public + MCP surface.
  3. Auth: unauthenticated. The route uses the admin Postgres client (RLS bypass — no org context until the row is loaded). Read via getAdminPostgresClient() from apps/web/src/server/clients.ts.
  4. Fallback: missing id, row gone, wrong kind, unparseable payload, or render failure → 200 with a 1×1 transparent PNG so the <Img> keeps rendering an element. A broken inbox image is worse than a missing one.
  5. Cache: Cache-Control: public, max-age=31536000, immutable. Mail-client image proxies cache the response.
  6. Email side: build the URL inside the renderer Effect via buildChartUrl from @domain/email. NotificationEmailRenderContext carries notificationId + webAppUrl, both resolved once at email-worker boot.

Idempotency rules

  • Producers publish with deterministic dedupeKey. The queue layer drops duplicate emits.
  • The creator step inserts via ON CONFLICT (organization_id, user_id, idempotency_key) DO NOTHING ... RETURNING. Only the "wrote it" branch publishes downstream channel jobs.
  • The emailer claims the row via markEmailed (UPDATE … WHERE emailed_at IS NULL RETURNING id) before sending. SMTP failures post-claim are lost emails — the trade-off is zero duplicates, which the design picked over zero misses.
  • delete-by-project is naturally idempotent (DELETE … RETURNING returns zero on re-runs).

If you change ordering (e.g. send-then-stamp): you'll get duplicate emails. Don't.

Anti-patterns

  • ❌ Filtering inside renderers ("don't send if X"). The producer/creator already decided — renderers just render.
  • ❌ Putting routing info in the kind name. incident.event describes what happened, not who needs to know.
  • ❌ Snapshotting live entity attributes (project name, issue name, project slug) in payloads. Use the row-level projectId and payload.sourceId and resolve display info downstream (bell: live query / projects collection; email: IssueRepository yielded by the renderer + ctx.project). Snapshotting derived point-in-time facts (trend buckets, breach numbers) is fine and encouraged.
  • ❌ Reading user prefs in the producer step. Prefs are per-channel and belong in the creator's "should I publish this channel's send task" decision.
  • ❌ FK constraint on project_id. Use the application-layer cascade via ProjectDeleted → delete-by-project. Per the database-postgres skill.
  • ❌ Deduping by source entity id alone. Use buildIdempotencyKey — the key must be per-occurrence, not per-entity (multiple incidents on the same issue = multiple notifications).
  • ❌ Mutating settings keys in place. NOTIFICATION_GROUPS entries are persisted in jsonb; renaming a group orphans existing user prefs. Add new groups; deprecate old ones with a no-op renderer if needed.

See also

© latitude-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/notifications of latitude-dev/latitude-llm.

Open the folder on GitHubat commit 87e8aa0

Compare with similar skills

Notifications next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Notifications compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Notifications this skilllatitude-dev/latitude-llm4.7k—~3.5kAutomated safety check: PassMIT
Stripe Projectsfossasia/eventyay1.7k5 repos~2kAutomated safety check: NotesApache-2.0
WooCommerce Email Editor Developmentwoocommerce/woocommerce11k—~893Automated safety check: PassCustom licence
Email Best Practicesviclafouch/meme-studio1107 repos~787Automated safety check: PassNone
React Emailviclafouch/meme-studio1102 repos~3.6kAutomated safety check: PassMIT
Email Deliverability Auditgrowthenginenowoslawski/coldoutboundskills740—~3.4kAutomated safety check: PassMIT

Similar skills

  • Stripe Projects

    fossasia/eventyay

    A skill your agent uses when the user wants to provision infrastructure or third-party services using Stripe Projects.

    1.7k GitHub starsUsed in 5 repos~2k tokens
    Backend & APIsAuto-check: notes
  • Sets up a local environment for the WooCommerce block email editor, with a watcher, Mailpit email capture and build and test commands for its PHP and JS packages.

    11k GitHub stars~893 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Email Best Practices

    viclafouch/meme-studio

    A skill your agent uses when building email features, emails going to spam, high bounce rates, setting up SPF/DKIM/DMARC authentication, implementing email capture, ensuring compliance (CAN-SPAM…

    110 GitHub starsUsed in 7 repos~787 tokens
    Backend & APIsAuto-check passed
  • React Email

    viclafouch/meme-studio

    A skill your agent uses when creating HTML email templates with React components - welcome emails, password resets, notifications, order confirmations, newsletters, or transactional emails.

    110 GitHub starsUsed in 2 repos~3.6k tokens
    Backend & APIsAuto-check passed
  • Email Deliverability Audit

    growthenginenowoslawski/coldoutboundskills

    Diagnostic audit for a running cold email program. An agent skill from growthenginenowoslawski/coldoutboundskills.

    740 GitHub stars~3.4k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing).

    127 GitHub starsUsed in 3 repos~2k tokens
    Backend & APIsAuto-check passed

More from latitude-dev/latitude-llm

All 28 skills in this repo
  • Better Auth Best Practices

    latitude-dev/latitude-llm

    Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables.

    4.7k GitHub starsUsed in 7 repos~1.6k tokens
    Auto-check passed
  • Artifact Designer

    latitude-dev/latitude-llm

    Create, validate, preview, and publish self-contained HTML artifacts.

    4.7k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • CI Watchdog

    latitude-dev/latitude-llm

    Continuously monitor GitHub PR CI checks and automatically fix failures until all checks pass.

    4.7k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Temporal Developer

    latitude-dev/latitude-llm

    This skill should be used when the user asks to "create a Temporal workflow", "write a Temporal activity", "debug stuck workflow", "fix non-determinism error", "Temporal Python", "Temporal…

    4.7k GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Docs

    latitude-dev/latitude-llm

    Review the current conversation context and git changes, then persist durable repository knowledge into dev-docs/.md by domain and into AGENTS.md for cross-cutting repo rules.

    4.7k GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Managing Maintenance Windows

    latitude-dev/latitude-llm

    Enables or disables Latitude production maintenance mode by redirecting all publicly exposed production services to the Better Stack status page.

    4.7k GitHub stars~802 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Notifications

What does Notifications do?

Multi-channel notifications. An agent skill from latitude-dev/latitude-llm. Notifications is an agent skill from latitude-dev/latitude-llm. Multi-channel notifications.

When should I use Notifications?

Notifications fits situations like: tasks that involve Transactional email.

How do I install Notifications in Claude Code?

Run `npx skills add latitude-dev/latitude-llm --skill notifications -a claude-code`. Or copy the skill folder (.agents/skills/notifications in latitude-dev/latitude-llm) into .claude/skills/notifications in your project. Claude Code loads it when a task matches its description.

How do I install Notifications in Codex?

Run `npx skills add latitude-dev/latitude-llm --skill notifications -a codex`. Or copy the skill folder (.agents/skills/notifications in latitude-dev/latitude-llm) into .agents/skills/notifications in your project. Codex loads it when a task matches its description.

Can I use Notifications in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add latitude-dev/latitude-llm --skill notifications -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/notifications, .gemini/skills/notifications, .github/skills/notifications and .opencode/skills/notifications in your project.

What does Notifications need to run?

SKILL.md names no scripts, command-line tools or credentials: Notifications is instructions for the agent only.

Does Notifications access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Notifications safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Notifications use?

Notifications is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Notifications use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Notifications?

Skills that share tags, products or a category with Notifications: Stripe Projects (fossasia/eventyay, 1.7k stars), WooCommerce Email Editor Development (woocommerce/woocommerce, 11k stars), Email Best Practices (viclafouch/meme-studio, 110 stars) and React Email (viclafouch/meme-studio, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Notifications?

latitude-dev (a GitHub organization) maintains it in latitude-dev/latitude-llm, which has 4,712 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 6, 2026.

Source: latitude-dev/latitude-llm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.