Courier

Build with Courier: send on any channel, run journeys, manage templates and preferences, and debug deliveries. Ships the Courier docs MCP.

Plugin · بلقنmcp

Install

/plugin install courier@trycourier/courier-skills

Works with

claude-code (native)

Content

Courier Notification Skills: the agent skill for building notifications with Courier

Give your AI coding assistant everything it needs to integrate Courier, ship notification features, and debug delivery across email, SMS, push, in-app inbox, Slack, Microsoft Teams, and WhatsApp. Works with Claude Code, Cursor, Codex, and any tool that supports agent skills.

npx skills add trycourier/courier-skills
What is this? A packaged, verified knowledge base that teaches an AI agent how to use Courier well: the right primitive for each use case, the exact SDK shapes for the installed version, and the rules you cannot get wrong (send one-time codes immediately, never batched; mask personal data in security alerts; confirm the environment before a bulk delete; never send PHI). Every API claim is checked against the installed SDK and the docs, so the code your agent writes actually runs.

The skill is for building and debugging. For plan, account and other product questions it sends the agent to Courier's docs, which the plugin ships as an MCP server.

New to building notifications with AI? Start with Courier's Build with AI onboarding guide, which covers the CLI, the Courier MCP server, agent skills, and machine-readable docs.

What you can build with it

Ask your assistant in plain English. The skill routes the request to the right Courier primitive and writes working code in TypeScript, Python, Ruby or Java, the CLI, or curl:

  • "Send a welcome email from my Node backend" gives you a single client.send.message with a template.
  • "Add an in-app notification center to my React app" gives you the Courier Inbox with JWT auth and real-time updates.
  • "Batch these into a daily digest so users are not spammed" gives you a topic digest: one send per event, released on the schedule each user picks.
  • "Fall back from push to email if push fails" gives you a routing strategy with ordered channels.
  • "Let users choose which notifications they get" gives you preference topics and a hosted preference page.
  • "Why did this message not deliver?" gives you the CLI delivery ladder: messages retrieve with the send's requestId, then history, then content.
  • "Send to a segment of trial users that stays current" gives you an audience with live filter rules.
  • "Give each B2B tenant its own branding and defaults" gives you tenants with per-tenant brand and preferences.
  • "Send a one-time passcode and an order receipt" gives you transactional sends with idempotency, and never batched or delayed.
  • "Build a 5-day onboarding series and a win-back flow" gives you lifecycle journeys with delays and branches that respect each user's preferences.

One send call does the whole job. You address a user (or a list, audience, or tenant), content comes from a template or inline, routing picks the channels, and preferences gate delivery. Multi-step flows, meaning anything with a delay, a branch, or aggregation, are journeys: defined as JSON and invoked by API.

Install

Any assistant (recommended; works with Claude Code, Cursor, Codex, and more):

npx skills add trycourier/courier-skills

Claude Code (plugin; ships the Courier docs MCP):

/plugin marketplace add trycourier/courier-skills
/plugin install courier@courier-skills

Then turn on auto-update so new versions arrive on their own: run /plugin, open the Marketplaces tab, select courier-skills, and choose Enable auto-update. Claude Code leaves auto-update off for third-party marketplaces until you do. To update by hand instead, run claude plugin update courier@courier-skills in your shell.

Admins can turn it on for everyone with "autoUpdate": true on the courier-skills entry in extraKnownMarketplaces in managed settings. If you add that key to your own settings.json instead, add it after /plugin marketplace add, which rewrites the entry without it.

The plugin ships the Courier docs MCP server (.mcp.json), so the agent can look things up with no extra setup.

Manual clone (any tool that reads a skills directory):

git clone https://github.com/trycourier/courier-skills.git /tmp/courier-skills
cp -R /tmp/courier-skills/skills/courier ~/.cursor/skills/   # or ~/.claude/skills/

Discovery is driven by the name and description frontmatter in SKILL.md, with no extra configuration.

The 30-second example

import Courier from "@trycourier/courier";

const client = new Courier(); // reads COURIER_API_KEY from the environment

await client.send.message({
  message: {
    to: { user_id: "user-123" },
    template: "welcome-email",       // or inline content: { title, body }
    data: { name: "Alice" },
  },
});

The same shape sends email, SMS, push, Slack, Teams, WhatsApp, or in-app. The channel is decided by routing and the user's profile, not by a different API. See the quickstart.

What the skill covers

Channels. Email (provider overrides, attachments, bounces, delivery tracking, SES and SMTP setup traps), SMS (10DLC, STOP opt-outs mirrored into preferences), push (device tokens, reaching every device across APNs, FCM, Expo and web push), in-app inbox (JWT auth, plus React, Vue, Angular, Web Components, React Native, iOS, Android, and Flutter rendering), Slack (app setup, Block Kit sends, threads, updating messages), Microsoft Teams (bot setup, Adaptive Cards, proactive messages, thread replies), and WhatsApp through Twilio (Content SIDs, the 24-hour window).

Notification types. [Transactional](./skills/courier/references/transactional.md) (password reset, OTP, orders, receipts, dunning, security alerts) and [lifecycle marketing](./skills/courier/references/lifecycle-marketing.md) (onboarding, adoption, digests, win-back, campaigns). Each is mapped to the Courier primitive that implements it.

Core platform. Quickstart and environments, journeys (delays, branches, batching, throttling, A/B experiments, cancellation), templates and Elemental (including how template variables resolve), template translations (the API workflow and Design Studio AI Translation), Device Preview (screenshots of an email on real clients), multi-channel routing, preferences and preference sections (including tracking preference changes by API and webhook), digests (topic schedules, categories, and early release), template delivery metrics, brands, audiences, tenants, reliability (idempotency, retries, delivery statuses), webhooks in both directions (outbound events and signature verification, inbound webhooks and journey triggers), sending to many recipients (list and audience fan-out, broadcasts, the Bulk API), routing strategies, and provider configuration (including send rate limits).

Tooling. The CLI for ad-hoc operations and delivery debugging, and MCP: the API server to operate a workspace and the docs server to look things up. The [Feedback API](./skills/courier/references/guides/feedback.md) lets the agent report bugs, confusing behavior, and feature requests to Courier's team as it works.

Who it is for

  • Developers building SaaS, e-commerce, marketplaces, or mobile apps.
  • Teams consolidating email, SMS, push, and chat providers behind one notification API.
  • Engineers implementing preference centers, unsubscribe handling, or multi-channel routing.
  • Anyone pairing an AI coding assistant with Courier who wants it to get the API right the first time.

Frequently asked questions

How do I send a notification with Courier? Call client.send.message({ message: { to, template, data } }) with the Node SDK (@trycourier/courier) or client.send.message(message={...}) with the Python SDK (trycourier). Both read the API key from COURIER_API_KEY by default. The Ruby, Java, Go, PHP and C# SDKs follow the same shape (in Ruby the method is send_, since send is reserved).

Which channels does Courier support? Email, SMS, push, in-app inbox, Slack, Microsoft Teams, and WhatsApp, all through one unified send API, across providers like SendGrid, Amazon SES, Postmark, Twilio, Vonage, Firebase FCM, and Apple APNs.

How do I add an in-app notification center or notification bell? Use the Courier Inbox. Send to the inbox channel server-side, then render it client-side with the React, Web Components, or React Native SDK, secured with a per-user scoped JWT. The inbox references in this skill cover the full setup, including real-time updates and unread counts.

What is the difference between transactional and marketing notifications? Transactional notifications are triggered by a user action (password reset, order confirmation) and should never be batched or delayed. Marketing notifications are sent proactively, so map each one to a preference topic: Courier enforces the user's opt-out on every send. See the [transactional guide](./skills/courier/references/transactional.md) and the [lifecycle marketing guide](./skills/courier/references/lifecycle-marketing.md) for patterns and the rules for each.

How do I handle notification preferences? See [references/guides/preferences.md](./skills/courier/references/guides/preferences.md) for per-user subscription topics, opt-out, hosted preference pages, and workspace-level preference sections.

How do I debug why a message was not delivered? Start from the delivery ladder in the skill. Confirm Courier accepted the request (it returns a requestId), then run courier messages retrieve, history, and content to see where it stopped and what rendered, before touching the channel. For a single-recipient send the requestId is the message id; a list or audience send fans out, and each recipient's message id is <requestId>:<user_id>.

How do I build multi-step flows like onboarding, escalation, or win-back? Use Journeys, a JSON graph of send, delay, branch, fetch, throttle, and batch nodes that you create, publish, and invoke over the API.

Repository structure

courier-skills/
├── .claude-plugin/plugin.json        : plugin manifest (name, version, MCP, links)
├── .claude-plugin/marketplace.json   : Claude Code marketplace entry
├── .mcp.json                         : Courier docs MCP, shipped with the plugin
├── AGENTS.md                         : contributor guide
└── skills/courier/
    ├── SKILL.md                      : entry point that routes to the right reference
    └── references/
        ├── transactional.md   lifecycle-marketing.md   sdk-reference.md
        ├── channels/  (email, sms, push, inbox, slack, ms-teams, whatsapp)
        ├── inbox/     (rendering, auth, react, web-components, react-native, legacy-v7)
        └── guides/    (quickstart, journeys, templates, templates-as-code, elemental,
                        localization, device-preview, multi-channel, preferences,
                        batching, throttling, brands, audiences, tenants, patterns,
                        routing-strategies, providers, reliability, webhooks, bulk,
                        scheduling, metrics, digests, cli, mcp)

Open skills/courier/SKILL.md. Its Where to Look table routes you to the one or two references that match your task.

Integrations and providers

Courier is provider-agnostic. You write one send call and Courier delivers through whichever provider you configure, so you can switch or add providers without changing application code. Commonly used integrations by channel:

| Channel | Providers | |---------|-----------| | Email | SendGrid, Amazon SES, Postmark, Mailgun, Resend, SparkPost, Mandrill, Mailjet, MailerSend, Amply, Gmail, OneSignal, SMTP | | SMS | Twilio, Vonage, Telnyx, Sinch, Plivo, MessageBird, MessageMedia, Azure SMS, TextUs, Africa's Talking, SMSCentral | | Push | Firebase Cloud Messaging (FCM), Apple Push Notification service (APNs), Expo, OneSignal, Airship | | Chat | Slack, Microsoft Teams | | Messaging | WhatsApp (through Twilio) | | In-app | Courier Inbox |

Courier supports 50+ providers in total. For the complete, current list see the Courier integrations docs, or call client.providers.catalog.list() for the live catalog in your workspace.

Links

Contributing

Found an issue or want to add a notification pattern? PRs welcome. Read [AGENTS.md](./AGENTS.md) first: it covers what belongs in the skill and how to keep every SDK call grounded in the installed package's own type definitions.

License

[MIT](./LICENSE) © Courier, Inc.

Built for the Courier notification platform. Works with any AI coding assistant that supports agent skills.

Source and license

Source
Courier Skills
Original
trycourier/courier-skills/.
License
MIT