add-resend
Skill4 starsChanged 3 months agoMITView on GitHub
Add Resend (email) channel integration via Chat SDK.
- Reads credentials
3 other projects use a version of this, 1 of them edited; most edited versions we compared are an older text (1 of 1).
How people change it
Most projects run an older version: 1 of 1 add nothing and lack a rule this one has, most likely added since.
Of the 1 edited version we compared: 1 is an older text.
Not in older versions
- Adapter installed but nothing flows. Run
pnpm exec vitest run src/channels/resend-registration.test.ts— red means the barrel import or the@resend/chat-sdk-adapterinstall drifted, so re-run the Apply steps. …missing from 1 of 1
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Most recently taken up by
- prathish-ks/isthmusword for word, first seen Oct 6, 2026
- nanocoai/nanoclawword for word, first seen Oct 4, 2026
- microsoft/amplifier-app-nanoclawedited, first seen Jun 12, 2026
Other versions3 projects use a version of this.
Word for word · 2
- nanocoai/nanoclaw★ 31k100% same
- prathish-ks/isthmus★ 2100% same
Edited · 1
- microsoft/amplifier-app-nanoclaw★ 441% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- container/CLAUDE.mdCLAUDE.md
- add-anydocSkill
- add-atomic-chat-toolSkill
- add-clidashSkill
- add-codexSkill
- add-dashboardSkill
- add-deltachatSkill
- add-dial-numberSkill
- add-dialSkill
- add-dial-toolSkill
- add-discordSkill
- add-emacsSkill
- add-gchatSkill
- add-githubSkill
- add-imessageSkill
- add-karpathy-llm-wikiSkill
- add-linearSkill
- add-macos-statusbarSkill
- add-matrixSkill
- add-mnemonSkill
- add-ollama-providerSkill
- add-ollama-toolSkill
- add-opencodeSkill
- add-rtkSkill
- add-signalSkill
- add-slackSkill
- add-tavily-toolSkill
- add-teamsSkill
- add-telegramSkill
- add-vercelSkill
- add-webexSkill
- add-wechatSkill
- add-whatsapp-cloudSkill
- add-whatsappSkill
- customizeSkill
- debugSkill
- init-first-agentSkill
- init-onecliSkill
- learnSkill
- manage-channelsSkill
- manage-mountsSkill
- migrate-from-openclawSkill
- migrate-from-v1Skill
- migrate-memorySkill
- migrate-nanoclawSkill
- migrate-slack-agentsSkill
- setupSkill
- update-nanoclawSkill
- update-skillsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 73
Add and verify your sending domain.
- Very specific: line 136
If you're in the middle of /setup, return to the setup flow now.
- Very specific: line 159
Adapter installed but nothing flows: Run pnpm exec vitest run src/channels/resend-registration.test.ts — red means the barrel import or the …
≈ “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.
Files
Add Resend Email Channel
Connect NanoClaw to email via Resend for async email conversations. NanoClaw
doesn't ship channels in trunk — this skill copies the Resend adapter in from the
channels branch.
The mechanical steps under Apply carry nc: directive fences: an agent reads
the prose and applies them, and a parser can apply them deterministically from
the same document. Every directive is idempotent, so the whole skill is safe to
re-run; anything a parser can't apply falls back to the prose beside it.
Apply
1. Copy the adapter
Fetch the channels branch and copy the Resend adapter into src/channels/
(overwrite — the branch is canonical):
src/channels/resend.ts
src/channels/resend-registration.test.ts2. Register the adapter
Append the self-registration import to the channel barrel (skipped if the line is already present). This one line is the skill's only reach-in into core:
import './resend.js';3. Install the adapter package
Pinned to an exact version — the supply-chain policy rejects ranges and latest:
@resend/chat-sdk-adapter@0.1.14. Build and validate
Build guards the typed createChatSdkBridge(...) core call and proves the
dependency is installed (the adapter imports @resend/chat-sdk-adapter; if it
isn't installed the barrel throws). End-to-end email delivery against a real
domain is verified manually once the service runs.
pnpm run buildpnpm exec vitest run src/channels/resend-registration.test.tsresend-registration.test.ts imports the real channel barrel and asserts the
registry contains resend. It goes red if the import line is deleted or drifts,
if the barrel fails to evaluate, or if @resend/chat-sdk-adapter isn't installed
(the import throws) — so it also covers the dependency from step 3.
Credentials
Resend account and domain setup is human and interactive — these steps are prose, not directives (no parser can verify a sending domain or click through the Resend UI). A recipe rebuild produces a compiling, registered adapter that cannot receive a message until they're done.
- Go to resend.com and create an account.
- Add and verify your sending domain.
- Go to API Keys and create a new key.
- Set up a webhook:
- Go to Webhooks > Add webhook.
- URL:
https://your-domain/webhook/resend. - Events: select email.received.
- Copy the signing secret.
Store the credentials
Capture the secrets, then write them. prompt only asks and binds the answer
to a name; a separate directive consumes it — so the same prompts could feed
ncl or the OneCLI vault instead of .env by swapping only the consumer. Here
they go to .env (set-if-absent — a value you've already filled in is never
overwritten):
Paste the Resend API key — API Keys, starts with `re_`.Paste the webhook signing secret — Webhooks, the value you copied above.The bot's sending email address on your verified domain (e.g. `bot@yourdomain.com`).The display name to send as (e.g. `NanoClaw`).RESEND_API_KEY={{api_key}}
RESEND_FROM_ADDRESS={{from_address}}
RESEND_FROM_NAME={{from_name}}
RESEND_WEBHOOK_SECRET={{webhook_secret}}Connect yourself
Because email is direct-addressable, the bot can write to you first — so wire
your own address as the owner and have it email you a hello. Tell it your address
and which agent should answer your email (ncl groups list shows their folders):
Your email address — I'll wire you as owner and email you a hello.Which agent should answer your email? Enter its folder (run `ncl groups list`).Register yourself as the owner, wire your address so the agent answers your email, and send the hello:
ncl users create --id resend:{{owner_email}} --kind resend --display-name Owner
ncl roles grant --user resend:{{owner_email}} --role owner
ncl messaging-groups create --channel-type resend --platform-id resend:{{owner_email}} --is-group 0
ncl wirings create --channel-type resend --platform-id resend:{{owner_email}} --agent-group {{agent_folder}} --engage-mode pattern --engage-pattern .
ncl messaging-groups send --channel-type resend --platform-id resend:{{owner_email}} --sender-id resend:{{owner_email}} --sender Owner --text "Hi — I'm your NanoClaw assistant, reachable by email now. Reply to this thread anytime."The hello arrives as a fresh email thread; reply to keep the conversation going.
Your own address is the conversation key (resend:<your-address>).
Next Steps
If you're in the middle of /setup, return to the setup flow now. (Answering an
open inbox — anyone who emails in, not just you — is a separate, not-yet-wired
case: email is plain-message, so the router never auto-creates a group for an
unknown sender; each correspondent's resend:<their-address> must be wired
explicitly.)
Channel Info
- type:
resend - terminology: Resend handles email. The bot has one fixed sending identity (
RESEND_FROM_ADDRESS, e.g.bot@yourdomain.com); every external correspondent the bot emails with is a separate conversation, keyed by their address. - how-to-find-id: The platform ID is the correspondent's email address, prefixed —
resend:<their-address>(e.g.resend:you@example.com) — not the bot's from-address. The adapter derives it from the reply-to party (channelIdFromThreadIdreturnsresend:<address>); each distinct email thread from that person (by rootMessage-ID) is a sub-conversation under it. - supports-threads: no (the adapter sets
supportsThreads: false; replies still thread via email headers, but the router does not treat threads as the primary conversation unit) - typical-use: Async communication -- email conversations with longer response expectations
- default-isolation: Same agent group if you want your agent to handle email alongside other channels. Separate agent group if email contains sensitive correspondence that shouldn't be accessible from other channels.
Troubleshooting
Sends fail with 401. The API key comes from the Resend dashboard's API Keys page and starts with re_. Keys are shown once at creation — if in doubt, create a new one and update RESEND_API_KEY in .env.
The hello email never lands, or hits spam. The sending domain must show as verified under Resend → Domains — until the SPF/DKIM DNS records propagate, sends are rejected or spam-foldered. RESEND_FROM_ADDRESS must be an address on that verified domain; a free-mail from-address will not work.
Replies never reach the agent. Inbound only flows via the webhook: Resend → Webhooks must point at your public host at /webhook/resend (shared webhook server, port 3000) with the email.received event selected, and RESEND_WEBHOOK_SECRET must match that webhook's signing secret. Resend's webhook page lists delivery attempts — a run of failures means the URL is unreachable or the secret mismatches.
Adapter installed but nothing flows. Run pnpm exec vitest run src/channels/resend-registration.test.ts — red means the barrel import or the @resend/chat-sdk-adapter install drifted, so re-run the Apply steps. If green, restart the service so it loads the adapter and .env, then re-send the hello.
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
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.

