agentleFS
rmzlbrmzlb/notifyd/skills/notifyd-integrate/SKILL.md

notifyd-integrate

Skill16 starsChanged 3 months agoMITView on GitHub

Send notifications from an application through notifyd's REST API (POST /v1/send, /v1/batch, /v1/schedule), choose channels, priority, idempotency keys, tags, send windows, attachments, and follow delivery with GET /v1/jobs/:id. Use when writing code that emails, texts or notifies users through a self-hosted notifyd instance, or when debugging why a send call was rejected.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not loop on GET /v1/jobs/:id faster than every 2 s.

    line 71
  2. Very specific:

    Do not send marketing to an address that appears in GET /v1/suppressions: it is blocked server-side anyway, and each attempt is a failed …

    line 72
  3. Very specific:

    Do not put the API key in client-side code.

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Integrating an application with notifyd

Auth: project API key in x-api-key. Base URL: the instance (/v1/...). Full reference: docs/API.md; machine-readable summary: docs/llms.txt.

Sending

POST /v1/send with one channel (channel) or several (channels):

{
  "channel": "email",
  "to": "jane@example.com",
  "subscriber_id": "user_42",
  "subject": "Your order #1042 shipped",
  "body": "Plain text version",
  "body_html": "<p>HTML version</p>",
  "idempotency_key": "order-1042-shipped",
  "priority": "normal",
  "tags": [{"name": "category", "value": "transactional"}, {"name": "template", "value": "order-shipped"}],
  "reply_to": "support@example.com",
  "email_headers": {"X-Entity-Ref-ID": "1042"}
}

Rules that keep production clean:

  • Always set idempotency_key for anything triggered by an event (order, payment, signup): <event>-<entity-id>. A retried call returns the same job instead of sending twice.
  • Priority: critical for security codes and payment confirmations, normal (default) for transactional, bulk for campaigns. Bulk never delays transactional. A category tag of campaign, marketing or newsletter makes the job bulk automatically.
  • Tags: category (transactional | campaign | …) and template (your template name) — they power template_metrics and the digest.
  • Bulk email gets List-Unsubscribe one-click headers automatically; do not add your own unless you host the unsubscribe page yourself.
  • Send window: bulk waits for the recipient's daytime when the project has settings.send_window (or pass send_window in the request). Set the recipient's timezone with POST /v1/subscribers {"id", "timezone"}.
  • Attachments: "attachments": [{"filename", "content" (base64), "content_type"}], single-send only.

POST /v1/batch fans one message out to many subscribers (in-app or email via subscriber records); pass idempotency_key to make the whole fan-out replay-safe. POST /v1/schedule for a future scheduled_at.

Following a job

The send response returns job ids. GET /v1/jobs/:id gives status (pending → processing → sent | retry | failed), provider, provider_message_id, delivered_at, error. sent means the provider accepted the message; delivery events arrive later through webhooks.

failed is final: notifyd already retried transient errors (5 attempts) or the error was permanent (bad address, unverified sender, suppressed recipient). Fix the cause, then POST /v1/jobs/:id/retry.

What not to do

  • Do not loop on GET /v1/jobs/:id faster than every 2 s.
  • Do not send marketing to an address that appears in GET /v1/suppressions: it is blocked server-side anyway, and each attempt is a failed job in the digest.
  • Do not put the API key in client-side code; the in-app inbox uses subscriber JWTs (POST /v1/auth/subscriber-token) and one-time stream tickets instead.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.