agentleFS
hugobownehugobowne/show-us-your-agent-skills/skills/resend-email/SKILL.md

resend-email

Skill68 starsChanged 5 months agoMITView on GitHub

Send emails via Resend.com API. Use when the user wants to (1) send an email, (2) email someone, (3) send a message to an email address, (4) send email with attachments, (5) schedule an email for later. Requires RESEND_API_KEY environment variable.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always pass --json to get machine-readable output.

    line 20

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Resend Email

Send emails using the resend-cli. The CLI authenticates via RESEND_API_KEY environment variable.

Sending Email

resend emails send --json \
  --from "Claude <claude@ehop.me>" \
  --to user@example.com \
  --subject "Hello" \
  --text "Email body here"

Always pass --json to get machine-readable output.

Required Flags

FlagDescription
--fromSender address (default to Claude <claude@ehop.me>)
--toRecipient address(es), repeat flag for multiple
--subjectEmail subject line
--text or --html or --html-fileBody content (exactly one required)

Optional Flags

FlagDescription
--htmlHTML body as string
--html-filePath to an HTML file for the body
--textPlain text body
--ccCC recipient(s), repeat flag for multiple
--bccBCC recipient(s), repeat flag for multiple
--reply-toReply-to address
--attachmentFile path(s) to attach, repeat flag for multiple
--scheduled-atSchedule delivery (ISO 8601, e.g. 2024-12-25T09:00:00Z)
--headersCustom headers as key=value pairs
--tagsEmail tags as name=value pairs

Examples

Simple text email:

resend emails send --json \
  --from "Claude <claude@ehop.me>" \
  --to user@example.com \
  --subject "Quick update" \
  --text "Just a quick note."

HTML email:

resend emails send --json \
  --from "Newsletter <news@ehop.me>" \
  --to user@example.com \
  --subject "Newsletter" \
  --html "<h1>Hello</h1><p>Welcome to our newsletter.</p>"

With attachments:

resend emails send --json \
  --from "Claude <claude@ehop.me>" \
  --to user@example.com \
  --subject "Report attached" \
  --text "Please find the report attached." \
  --attachment /path/to/report.pdf \
  --attachment /path/to/data.csv

Multiple recipients with CC:

resend emails send --json \
  --from "Claude <claude@ehop.me>" \
  --to alice@example.com \
  --to bob@example.com \
  --cc manager@example.com \
  --subject "Team update" \
  --text "Hi team..."

Scheduled email:

resend emails send --json \
  --from "Claude <claude@ehop.me>" \
  --to user@example.com \
  --subject "Reminder" \
  --text "Don't forget!" \
  --scheduled-at "2024-12-25T09:00:00Z"

HTML from file:

resend emails send --json \
  --from "Claude <claude@ehop.me>" \
  --to user@example.com \
  --subject "Report" \
  --html-file ./email.html

Output

Success returns JSON with email ID:

{"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"}

Errors exit with code 1 and return:

{"error": {"message": "...", "code": "..."}}

Limits

  • Sender domain must be verified in Resend dashboard
  • Max 50 recipients per email
  • Max 40MB total size including attachments

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.