# Agent Skills

Official Agent Skills for Cursor, Claude Code, Codex, and other clients that support the [Agent Skills](https://agentskills.io) format.

Skills teach agents how to send with Groundmail, install MCP/CLI, and follow email deliverability basics — without stuffing the entire docs corpus into every prompt.

**Index:** [Set up with one prompt](https://docs.groundmail.dev/ai/one-prompt-setup) · [llms.txt](https://docs.groundmail.dev/llms.txt) · [Agent skill notes](https://docs.groundmail.dev/ai/agent-skill) · [MCP server](https://docs.groundmail.dev/ai/mcp) · [GitHub (public)](https://github.com/Groundmail/groundmail-skills)

---

## Install

```bash
# All skills
npx skills add Groundmail/groundmail-skills -y

# Individual skills
npx skills add Groundmail/groundmail-skills --skill groundmail -y
npx skills add Groundmail/groundmail-skills --skill groundmail-mcp -y
npx skills add Groundmail/groundmail-skills --skill groundmail-cli -y
npx skills add Groundmail/groundmail-skills --skill groundmail-mailboxes -y
npx skills add Groundmail/groundmail-skills --skill email-best-practices -y
```

### Claude Code plugin

The same skills plus the hosted MCP server, as a Claude Code plugin:

```text
/plugin marketplace add Groundmail/groundmail-skills
/plugin install groundmail@groundmail
```

### Cursor rule

Cursor can also load a single project rule: see [Cursor rules](https://docs.groundmail.dev/ai/cursor-rules).

Scope flags for `npx skills add`:

- `-g` — install globally for your user
- default — project-level skills in the current repo

Machine-readable listing: [/.well-known/agent-skills/index.json](https://docs.groundmail.dev/.well-known/agent-skills/index.json)

---

## Available skills

| Skill | When to use |
|-------|-------------|
| **groundmail** | Send API, official SDKs (Node, Python, Go, PHP, Ruby), SMTP, `gm_` auth, test sends, idempotency, error codes, domains |
| **groundmail-mcp** | Connect the MCP server in Claude, Claude Code, ChatGPT or Cursor |
| **groundmail-cli** | Terminal flows (`emails`, `domains`, `webhooks`, `suppressions`, …) |
| **groundmail-mailboxes** | An agent's own address: create, wait for codes, read, reply |
| **email-best-practices** | SPF/DKIM, suppressions, key hygiene, sandbox vs production |

For **React Email** authoring and preview, use React Email’s own tools and skills. Send with Groundmail — see [Send React Email](https://docs.groundmail.dev/guides/react-email) (`npm install groundmail @react-email/render react`).

---

## Cursor / Claude / Codex

After `npx skills add …`, restart or reload the agent so skill names/descriptions are discovered. The agent loads full `SKILL.md` bodies only when a task matches the skill description.

Prefer:

1. Install **groundmail** for any send/integration work
2. Add **groundmail-mcp** when the user wants MCP tools instead of writing HTTP
3. Add **email-best-practices** when reviewing deliverability or production readiness

The dashboard **Home** page has a personalized setup prompt for Cursor or Claude (**Copy agent prompt**). It holds no API key: the agent signs in with `groundmail login`.

---

## Related

- Narrative agent defaults (same content as the core skill, as a docs page): [Agent skill notes](https://docs.groundmail.dev/ai/agent-skill)
- MCP package install: [MCP server](https://docs.groundmail.dev/ai/mcp)
- Full doc corpus for agents: [llms-full.txt](https://docs.groundmail.dev/llms-full.txt)
