> ## Documentation Index
> Fetch the complete documentation index at: https://www.courier.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Install the Courier skill before writing code: `npx skills add trycourier/courier-skills`. It carries the verified SDK shapes and the rules you cannot get wrong.
> Authenticate every request with `Authorization: Bearer <API_KEY>`. A workspace has several environments and each has its own keys, which are plain `pk_` strings with no environment prefix. Start with Test.
> Send with `client.send.message` from the Node SDK (`@trycourier/courier` v7 and later, where the client is the default import). Reference a template by its `nt_` id or its alias.
> A send accepts a bare Elemental element list, but storing content on a template requires the top-level elements wrapped in a channel element.
> To translate a template, write one locale at a time with `PUT /notifications/{id}/locales/{localeId}`, which merges into the existing translations. `PUT /notifications/{id}/content` and `PUT /notifications/{id}/elements/{elementId}` overwrite translations along with the content, so send each element's `id` and `locales` back, and first remove every `checksum` and any `locales` key that starts with an underscore.
> Templates and journeys can be built in the Courier app or created through the API. Either way they live in the workspace and are referenced by ID when you send.
> The hosted MCP server is https://mcp.courier.com. For a briefing on what Courier is and when to use it, read https://www.courier.com/llms.txt.
> Prefer the Guides tab for how-do-I questions and the Docs tab for how-does-it-behave questions. The API reference lives under /api-reference.

# Courier Skills: the agent skill for notifications

> Install Courier Skills so Claude Code, Cursor, or Codex gets your Courier integration right the first time and debugs the Courier code you already have.

Courier Skills is an agent skill: a set of markdown files your coding agent reads before it writes Courier code. Install it once and the agent builds against the APIs Courier ships today, not the ones it half-remembers.

## Install Courier Skills

> [tab] Any assistant (recommended)
>
> ```bash theme={null}
> npx skills add trycourier/courier-skills
> ```
>
> Works with Cursor, Claude Code, Codex, Windsurf, Cline, and any tool that supports agent skills. Run `npx skills update courier` to pick up changes.

> [tab] Claude Code (plugin)
>
> The plugin self-updates and connects the Courier docs MCP server, so the agent can search the docs with no extra setup:
>
> ```
> /plugin marketplace add trycourier/courier-skills
> /plugin install courier@courier-skills
> ```
>
> Run `/plugin update courier@courier-skills` to pick up changes.

> [tab] Manual clone
>
> For any tool that reads a skills directory, clone [courier-skills on GitHub](https://github.com/trycourier/courier-skills) and copy the skill into your assistant's skills folder:
>
> ```bash theme={null}
> git clone https://github.com/trycourier/courier-skills.git /tmp/courier-skills
> cp -R /tmp/courier-skills/skills/courier ~/.cursor/skills/   # or ~/.claude/skills/
> ```

Agents discover the skill from the `name` and `description` frontmatter in `SKILL.md`. There is exactly one, named `courier`, and nothing else to configure.

## Verify the skill is loaded

Confirm the installer put the skill where your agent reads it:

```bash theme={null}
npx skills list
```

`courier` should appear in the list. The Claude Code plugin doesn't show up there, so skip to the next step if you installed that way.

Then ask your agent a question only the skill can answer:

```text theme={null}
Which Courier skill files would you read to add a one-time passcode flow?
```

An agent with the skill loaded names files such as `transactional.md` and `sms.md`. Those files exist only in the skill, so an agent answering from memory can't name them.

**Most agents load skills when a session starts.** If `npx skills list` shows the skill but the agent doesn't know it, start a new session.

## What the skill does for your agent

Courier Skills gives your agent Courier's own guidance on building notifications: how to call the API, which Courier feature fits each job, and the rules each channel needs. Your agent writes working Courier code on the first try, and it can debug the notification code you already have, including why a message didn't deliver.

The agent reads `SKILL.md` first, which points it at the one or two files a task needs. It loads only those, so it codes faster and spends fewer tokens than it would searching the docs or retrying calls that fail.

## What you can build with it

| You ask | The agent builds |
| - | - |
| "Add a notification center to my React app" | Courier Inbox with JWT auth and real-time updates |
| "Batch these into a daily digest" | A digest on a preference topic, released on each user's schedule |
| "Fall back from push to email if push fails" | A routing strategy with ordered channels |
| "Send an OTP and an order receipt" | Transactional sends with idempotency keys, never batched or delayed |
| "Build a 5-day onboarding series" | A journey with delay and branch nodes |
| "Why didn't this message deliver?" | A trace from the `requestId` to the message history, then the provider |

## What the skill covers

| Area | What the agent knows |
| - | - |
| Email | Deliverability, SPF, DKIM, and DMARC, sender setup, bounce handling |
| SMS | 10DLC registration, segment math, sender setup, quiet hours |
| Push | APNs and FCM setup, device tokens, permission priming |
| Inbox | Sending to the inbox, JWT auth, and rendering in React, Web Components, React Native, iOS, Android, and Flutter |
| Slack and Microsoft Teams | Block Kit and OAuth for Slack, Adaptive Cards and bot setup for Teams |
| WhatsApp | Approved templates and the 24-hour window |
| Transactional | Password resets, OTPs, receipts, dunning, appointment reminders, and security alerts, each mapped to a Courier primitive |
| Lifecycle | Onboarding, adoption, re-engagement, referral, and campaigns |
| Platform | Journeys, templates and Elemental, routing, preferences, digests, brands, tenants, audiences, bulk sends, webhooks, metrics, the CLI, and MCP |

## FAQ

> [accordion] Do I need a Courier API key to install Courier Skills?
>
> Courier Skills needs no API key. It is a set of instructions the agent reads, and it touches nothing in your workspace. The code the agent writes needs a key to run, and so do the MCP server and CLI.

> [accordion] How is Courier Skills different from the MCP server?
>
> Courier Skills changes the code your agent writes. The [MCP server](https://www.courier.com/docs/resources/mcp.md) and the [Courier CLI](https://www.courier.com/docs/resources/cli.md) call the Courier API, so the agent can create templates, send notifications, and read delivery logs in your workspace. Most setups install Skills and the MCP server together.

> [accordion] Which AI coding tools support Courier Skills?
>
> Courier Skills installs into Claude Code, Cursor, Codex, Windsurf, Cline, and any other tool that loads agent skills from a `SKILL.md` file. Claude Code can also install it as a plugin that self-updates.

> [accordion] Is Courier Skills open source?
>
> Courier Skills is MIT-licensed and public at [trycourier/courier-skills on GitHub](https://github.com/trycourier/courier-skills).
