agentleFS
vellum-aivellum-ai/vellum-assistant/skills/resend-setup/SKILL.md

resend-setup

Skill1.4k starsChanged 5 months agoMITView on GitHub

Set up and send emails via a user-provided Resend account (BYO email provider)

  • Sends data out

1 other project uses a version of this.

Trending

Quiet since October.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 5 mentionsSep 2026: 6 mentionsOct 2026: 2 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the vellum-ai/vellum-assistant repository that our weekly crawl found: only 14 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about vellum-ai/vellum-assistant

The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 14

Talked about on GitHub and Bluesky (14 times).

On GitHub · 13

8 more on GitHub

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 5 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting, check whether Resend is already configured:

    line 21
  2. Very specific:

    If configured is true — Resend is already set up.

    line 29
  3. Very specific:

    If configured is false — continue to Step 1.

    line 30
  4. Distinctive:

    Run the store script to securely collect the API key:

    line 34
  5. Distinctive:

    After storing the API key, automatically detect the user's domain — don't ask them for it.

    line 44
  6. Very specific:

    Use hi@<domain> as the default sender address.

    line 53
  7. Very specific:

    Run with network_mode: "proxied" and the resend credential.

    line 64
  8. Distinctive:

    If the user also wants to receive emails via Resend, run the webhook setup script:

    line 68
  9. Very specific:

    If the script fails because no public base URL is configured (self-hosted only), load the public-ingress skill to walk the user through …

    line 80
  10. Very specific:

    Default sender: hi@<domain>"

    line 92
  11. Very specific:

    If webhook was set up: ✅ Webhook configured for inbound email

    line 96
  12. Very specific:

    Use bash with curl to call the Resend API.

    line 101
  13. Very specific:

    Default sender address is hi@<domain> — use this unless the user specifies otherwise.

    line 155
  14. Distinctive:

    Always confirm with the user before sending — never send without explicit permission.

    line 156
  15. Very specific:

    Use text for plain text, html for rich formatting.

    line 157

≈ “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

Overview

Send emails through the user's own Resend account. The user provides their Resend API key and you send via their domain.

Setup

Step 0: Check Existing Configuration

Before starting, check whether Resend is already configured:

bun skills/resend-setup/scripts/check-config.ts

The script outputs JSON: { "configured": boolean, "hasApiKey": boolean, "hasWebhookSecret": boolean, "details": string }.

  • If configured is true — Resend is already set up. Offer to verify the connection or reconfigure.
  • If configured is false — continue to Step 1.

Step 1: Store the API Key

Run the store script to securely collect the API key:

bun skills/resend-setup/scripts/store-api-key.ts

The script opens a secure credential prompt, stores the key with the correct injection templates, and exits. If it exits 0, the key is stored. Exit code 130 means the user cancelled the prompt — nothing was stored; that's a valid choice, not an error, so ask whether they'd like to try again rather than treating it as a failure. Any other non-zero exit is a real failure. Never ask for the key in chat.

Step 2: Detect the Domain

After storing the API key, automatically detect the user's domain — don't ask them for it. Call the Resend Domains API:

curl -s https://api.resend.com/domains \
  -H "Content-Type: application/json"

Run this with network_mode: "proxied" and the resend credential so the Authorization header is injected automatically. The response contains a data array of domain objects with name and status fields. Pick the first domain with "status": "verified" (or the only domain if there's just one). If no verified domains are found, tell the user they need to verify a domain in their Resend dashboard first.

Use hi@<domain> as the default sender address. Remember the domain for future sends.

Step 3: Verify the Connection

Send a test request to confirm the API key works:

curl -s https://api.resend.com/domains \
  -H "Content-Type: application/json"

Run with network_mode: "proxied" and the resend credential. A successful response (HTTP 200) with domain data confirms the connection.

Step 4: Webhook Setup (for receiving email)

If the user also wants to receive emails via Resend, run the webhook setup script:

bun skills/resend-setup/scripts/setup-webhook.ts --domain "<verified domain>"

This script:

  1. Registers a callback URL via the webhooks system
  2. Creates the webhook in Resend via their API
  3. Automatically stores the returned signing secret in the credential vault

If the script fails because no public base URL is configured (self-hosted only), load the public-ingress skill to walk the user through setting one up, then retry.

Step 5: Report Success

Summarize with the completed checklist:

"Setup complete! ✅ API key configured ✅ Domain detected: <domain> ✅ Connection verified {webhook_line}

Default sender: hi@<domain>"

For {webhook_line}:

  • If webhook was set up: ✅ Webhook configured for inbound email
  • If skipped: ⬜ Webhook — run setup again to enable inbound email

Sending Email

Use bash with curl to call the Resend API. The credential proxy injects the Authorization: Bearer header automatically when using network_mode: "proxied" with the resend credential.

curl -X POST https://api.resend.com/emails \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Name <sender@example.com>",
    "to": ["recipient@example.com"],
    "subject": "Hello",
    "text": "Plain text body",
    "html": "<p>HTML body</p>"
  }'

API Parameters

ParameterTypeRequiredDescription
fromstring✅Sender address ("Name <email>" format)
tostring | string[]✅Recipient(s), max 50
subjectstring✅Email subject
textstringPlain text body
htmlstringHTML body
ccstring | string[]CC recipients
bccstring | string[]BCC recipients
reply_tostring | string[]Reply-to address
headersobjectCustom headers (e.g. In-Reply-To, References for threading)

Threading (replies)

To reply in a thread, include In-Reply-To and References headers:

{
  "from": "bot@example.com",
  "to": ["user@example.com"],
  "subject": "Re: Original subject",
  "text": "Reply body",
  "headers": {
    "In-Reply-To": "<original-message-id>",
    "References": "<original-message-id>"
  }
}

Response

Success returns { "id": "email-id" } with HTTP 200.

Errors return { "message": "error description" } with 4xx/5xx status.

Important Notes

  • The from address must be from a domain verified in the user's Resend account.
  • Default sender address is hi@<domain> — use this unless the user specifies otherwise.
  • Always confirm with the user before sending — never send without explicit permission.
  • Use text for plain text, html for rich formatting. Provide both when possible.
  • Rate limits depend on the user's Resend plan.

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.