resend-cli
Operate the Resend CLI (preferred) or MCP server (fallback) for sending emails, managing domains, contacts, broadcasts, templates, webhooks, API keys, and segments. Defaults to CLI with explicit auth; falls back to MCP only when CLI is unavailable. Use when the user mentions Resend, wants to send email from the terminal, manage email infrastructure, work with Resend domains or contacts, create broadcasts, manage email templates, or any task involving the `resend` command or Resend MCP tools. Also trigger when the user says 'resend-send', 'send an email', 'email sending', 'resend domains', 'resend contacts', 'resend broadcasts', 'resend templates', 'configure resend', 'update resend config', 'resend setup', or references Resend operations. Manages per-project configuration (.resend.md) for domain, sender address, default recipient, API key env var, and sending instructions.
What this skill does
# Resend CLI ## Project Setup (run on every activation) On every activation, run through these checks in order before proceeding with the user's request. See [references/setup.md](references/setup.md) for detailed procedures. ### 1. Project Configuration (`.resend.md`) Read `.resend.md` from the project root. If it exists, parse the YAML frontmatter: ```yaml --- api_key_env: RESEND_API_KEY from: "Claude <[email protected]>" to: "[email protected]" instructions: | Keep emails professional and concise. Sign off with "Best regards" --- ``` Fields: - `api_key_env` — Name of the environment variable holding the Resend API key for this project (e.g., `RESEND_API_KEY`, `RESEND_KEY_STAGING`) - `from` — Default sender in `"Name <address>"` format - `to` — Default recipient address - `instructions` — Behavioral guidelines for composing emails (tone, sign-off, formatting, CC rules, etc.) **If `.resend.md` exists**, verify it is gitignored: ```bash git check-ignore .resend.md ``` If not ignored, add it to `.gitignore` before proceeding. This file must never be committed. **If `.resend.md` is missing**: Run first-time setup — see [references/setup.md](references/setup.md) § First-Run Setup. **If the user asks to update/change config**: Read the current file, ask what to change, update the frontmatter, confirm. See [references/setup.md](references/setup.md) § Updating Configuration. ### 2. CLI Pre-flight (primary tool) Check if the Resend CLI is installed: ```bash ~/.resend/bin/resend --version ``` If not found, offer to install: `curl -fsSL https://resend.com/install.sh | bash` If the user declines installation, fall back to MCP — see step 3. **API key validation:** Before the first CLI command, verify the env var from `api_key_env` is set: ```bash printenv <api_key_env> ``` If empty, ask the user for their Resend API key (starts with `re_`, available at https://resend.com/api-keys) and guide them to persist it — see [references/setup.md](references/setup.md) § Check API Key. **All CLI commands must include `--api-key`**, passing the env var from `api_key_env`. For example, if `api_key_env: RESEND_API_KEY`: ```bash ~/.resend/bin/resend --api-key "$RESEND_API_KEY" emails list ``` ### 3. MCP Server (fallback — only when CLI is unavailable) Only configure MCP if the CLI is not installed and the user declines to install it. Check `.mcp.json` at the project root for a `resend` entry under `mcpServers`. If missing, set it up using `api_key_env` from `.resend.md` — see [references/setup.md](references/setup.md) § MCP Server Setup. **Note:** After adding the MCP server entry, the user may need to restart their Claude session for the `mcp__resend__*` tools to become available. ## Sending Emails **CRITICAL: Use config values VERBATIM. Never infer, shorten, guess, or modify email addresses.** Copy-paste the exact `from` and `to` strings from `.resend.md` into the send command. If the config says `to: "[email protected]"`, send to exactly `[email protected]` — not `[email protected]` or any other variation. ### Pre-send checklist (mandatory before every send) 1. Read `.resend.md` and extract the exact `from`, `to`, and `instructions` values 2. **Confirm with the user before sending** — show the exact from/to/subject that will be used: > Sending from: `<exact from value>` > To: `<exact to value or user-specified override>` > Subject: `<subject>` 3. Only send after user confirms or if the user's request was already explicit about all fields 4. Apply `instructions` from the config (tone, format, sign-off, etc.) 5. The user can override any default per-email — but only when they explicitly provide a different value ### Template-Aware Sending Two layers of templates exist — check **local first**, then **Resend cloud**: 1. **Local templates** (filesystem, no API) — see [references/local-templates.md](references/local-templates.md). Lives at `<repo>/.resend-templates/`, `~/.claude/resend-cli/templates/`, or shipped with the plugin. Faster, version-controllable, works offline. **Check these first.** 2. **Resend templates** (server-side, requires API) — see [references/templates.md](references/templates.md). Use when teammates outside this repo need the same template, or when sending from the Resend dashboard. **Pre-send flow:** 1. **List local templates** via `node "$CLAUDE_PLUGIN_ROOT/skills/resend-cli/scripts/render-template.js" list`. 2. Match by `name` / `alias` / `description` against the email's purpose. 3. **If local match**: render with `render --template <name> --vars '<json>'`, then pipe `subject` + `body` into `resend emails send`. Done — no Resend API hit for the template itself. 4. **If no local match**: fall through to Resend templates (`resend templates list --json --quiet`). 5. **If neither matches**: compose normally; offer to save the result as a local template post-send. **Post-send:** if no template was used and the email looks reusable (recurring structure, variable but predictable content), offer to save **locally first** (project or user library), with Resend cloud as an opt-in for cross-machine sharing. ### Via CLI (preferred) Always include `--api-key` with the env var from `api_key_env`. Replace `RESEND_API_KEY` below with the actual env var name if different. ```bash ~/.resend/bin/resend --api-key "$RESEND_API_KEY" emails send \ --from "<from-value-from-config>" \ --to [email protected] \ --subject "Subject" \ --text "Body" ``` ### Via MCP (fallback — only when CLI is unavailable) Use `mcp__resend__*` tools only when the CLI is not installed. Pass the `from` address from config. ### Common Patterns All examples use `--api-key "$RESEND_API_KEY"` — replace with the actual env var from `api_key_env` if different. Send HTML email: ```bash ~/.resend/bin/resend --api-key "$RESEND_API_KEY" emails send --from "<FROM>" --to [email protected] --subject "Update" --html "<h1>Hello</h1>" ``` Send with attachments: ```bash ~/.resend/bin/resend --api-key "$RESEND_API_KEY" emails send --from "<FROM>" --to [email protected] --subject "Files" --text "See attached" --attachment ./doc.pdf ``` Pipe HTML from file: ```bash ~/.resend/bin/resend --api-key "$RESEND_API_KEY" emails send --from "<FROM>" --to [email protected] --subject "Newsletter" --html-file ./newsletter.html ``` Send using a Resend (server-side) template: ```bash ~/.resend/bin/resend --api-key "$RESEND_API_KEY" emails send --from "<FROM>" --to [email protected] --template tmpl_abc123 --var name=Alice ``` Send using a local template (render first, then send): ```bash RENDERED=$(node "$CLAUDE_PLUGIN_ROOT/skills/resend-cli/scripts/render-template.js" render \ --template weekly-status --vars '{"week_of":"2026-05-04","summary":"..."}') SUBJECT=$(echo "$RENDERED" | node -e "console.log(JSON.parse(require('fs').readFileSync(0)).subject)") BODY=$(echo "$RENDERED" | node -e "console.log(JSON.parse(require('fs').readFileSync(0)).body)") ~/.resend/bin/resend --api-key "$RESEND_API_KEY" emails send \ --from "<FROM>" --to [email protected] --subject "$SUBJECT" --html "$BODY" ``` Batch send from JSON: ```bash ~/.resend/bin/resend --api-key "$RESEND_API_KEY" emails batch --file batch.json ``` Schedule for later: ```bash ~/.resend/bin/resend --api-key "$RESEND_API_KEY" emails send --from "<FROM>" --to [email protected] --subject "Reminder" --text "..." --scheduled-at "2025-03-01T09:00:00Z" ``` ## Quick Reference All commands below require `--api-key "$<api_key_env>"` as a global flag (omitted from table for brevity). | Task | Command | |------|---------| | Send email | `resend emails send --from ... --to ... --subject ... --text/--html ...` | | List sent emails | `resend emails list` | | Batch send | `resend emails batch --file emails.json` | | Cancel scheduled | `resend emails cancel <id>` | | List domains | `resend domains list` | | Verify domain | `resend domains verify <id>` | | List contacts | `resend contacts list` | | Create b
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.