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" },
},
});