cloudflare-email-service
Skill3k starsChanged 2 months agoApache-2.0View on GitHub
Implement or troubleshoot Cloudflare Email Sending and Email Routing integrations and their delivery configuration.
14 other projects use a version of this, 12 of them edited.
Trending
Quiet since September.thin dataabout the whole repository
Most recently taken up by
- hencter/hencte.topword for word, first seen Oct 4, 2026
- casoon/ai-agent-configedited, first seen Sep 27, 2026
- meowdiocre/meowpiedited, first seen Sep 19, 2026
- leaf76/agent-skillsedited, first seen Aug 17, 2026
- adrienlupo/Claude-code-configedited, first seen Aug 14, 2026
- open-fox/agentsedited, first seen Aug 14, 2026
Who's talking about cloudflare/skills
- dceoy/docker-ai-coder“Install Cloudflare agent skills”GitHub · Sep 21, 2026 · 1 reactions
- jussray/solcontinuity“chore: add Cloudflare skills via npx skills add”GitHub · Aug 9, 2026 · 1 reactions
- @yug1224.com“AIエージェントにCloudflare上での開発方法を教え込むためのスキルセット集らしい エージェントを活用して効率よくアプリ開発を進めたいときに試したい yug1224 starred …”Bluesky · Jul 2, 2026 · 1 likes
- @yug1224.com“AIエージェントにCloudflare上での開発方法を学習させるためのスキル集らしい AIを活用した開発を効率化できそうで今すぐ試したい yug1224 starred cloudflare/skills …”Bluesky · Jul 2, 2026 · 1 likes
- @yug1224.com“AIエージェントにCloudflare上での開発や構築方法を学習させるためのスキルセット集らしい エージェントを活用して開発効率を上げたいときに便利そう yug1224 starred …”Bluesky · Jul 2, 2026 · 1 likes
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub and Bluesky (9 times).
On GitHub · 5
- Sep 21, 2026Install Cloudflare agent skills — dceoy/docker-ai-coder1 reaction
- Aug 9, 2026chore: add Cloudflare skills via npx skills add — jussray/solcontinuity1 reaction
- Jun 18, 2026chore(toolkit): track cloudflare/skills + ponytail external deps — stevengonsalvez/agents-in-a-box1 reaction · 2 comments
- Feb 20, 2026building-mcp-server-on-cloudflare — AAswordman/OperitSkillMarket1 reaction
- Feb 20, 2026building-ai-agent-on-cloudflare — AAswordman/OperitSkillMarket1 reaction
On Bluesky · 4
- Jul 2, 2026AIエージェントにCloudflare上での開発方法を教え込むためのスキルセット集らしい エージェントを活用して効率よくアプリ開発を進めたいときに試したい yug1224 starred cloudflare/skills… — @yug1224.com1 likes and repost
- Jul 2, 2026AIエージェントにCloudflare上での開発方法を学習させるためのスキル集らしい AIを活用した開発を効率化できそうで今すぐ試したい yug1224 starred cloudflare/skills https://github.com/cloudflare/skills — @yug1224.com1 likes and repost
- Jul 2, 2026AIエージェントにCloudflare上での開発や構築方法を学習させるためのスキルセット集らしい エージェントを活用して開発効率を上げたいときに便利そう yug1224 starred cloudflare/skills… — @yug1224.com1 likes and repost
- May 15, 2026I've been using cloudflare for some of my projects and saw that they had an agent skill repo when I was first trolling around the docs.… — @n0vsec.social1 likes and repost
Used with
Projects with it also use sandbox-sdk.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillsandbox-sdk
Build sandboxed applications for secure code execution. Load when building AI code execution, code interpreters, CI/CD systems, interactive dev environments, or executing untrusted code. Covers Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
Also in 6 projects that use this
Other versions14 projects use a version of this.
Word for word · 1
- hencter/hencte.top★ 0100% same
Edited · 12
- open-fox/agents★ 5568% same
- adrienlupo/Claude-code-config★ 268% same
- langgenius/mosoo-skills★ 268% same
- meowdiocre/meowpi★ 264% same
- altrwork/skills★ 168% same
- casoon/ai-agent-config★ 168% same
- ElyzeSolutions/skills★ 168% same
- snissn/skills★ 168% same
- vteetime/cloudflare-skills-for-hermes★ 166% same
- Biznomad/claude-skills★ 068% same
2 more not listed
Wrote their own version · 1
- swyxio/skills★ 171same name
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 repository15 other files it gives its agents.
- agents-sdkSkill
- basinSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- durable-objectsSkill
- k2Skill
- nextjs-on-cloudflareSkill
- sandbox-migrate-to-nextSkill
- sandbox-nextSkill
- sandbox-stableSkill
- turnstile-spinSkill
- web-perfSkill
- workers-best-practicesSkill
- wranglerSkill
The file
We split this skill into the rules it gives an agent
6 rules. 3 are common, 0 are distinctive, and 3 are very specific to this project.
3
Common
Most of the 13 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 25
Before writing any email code, verify the basics are in place:
- Very specific: line 27
Domain onboarded?: Run npx wrangler email sending list to see which domains have email sending enabled.
- Very specific: line 28
Binding configured?: Look for send_email in wrangler.jsonc (for Workers)
- Very specific: line 29
postal-mime installed?: Run npm ls postal-mime (only needed for receiving/parsing emails)
- Common: line 33
Start here. Find your situation, then follow the link for full details.
- Common: line 67
Read the reference that matches your situation.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cloudflare Email Service
Your knowledge of the Cloudflare Email Service, Email Routing or Email Sending may be outdated. Prefer retrieval over pre-training for any Cloudflare Email Service task.
Cloudflare Email Service lets you send transactional emails and route incoming emails, all within the Cloudflare platform. Your knowledge of this product may be outdated — it launched in 2025 and is evolving rapidly. Prefer retrieval over pre-training for any Email Service task.
If there is any discrepancy between this skill and the sources below, always trust the original source. The Cloudflare docs, REST API spec, @cloudflare/workers-types, and Agents SDK repo are the source of truth. This skill is a convenience guide — it may lag behind the latest changes. When in doubt, retrieve from the sources below and use what they say.
Retrieval Sources
| Source | How to retrieve | Use for |
| Cloudflare docs | Cloudflare MCP docs tool or URL https://developers.cloudflare.com/email-service/index.md | API reference, limits, pricing, latest features |
| REST API spec | https://developers.cloudflare.com/api/resources/email_sending/index.md | OpenAPI spec for the Email Sending REST API |
| Workers types | https://www.npmjs.com/package/@cloudflare/workers-types | Type signatures, binding shapes |
| Agents SDK docs | Email agent walkthrough | Email handling in Agents SDK |
FIRST: Check Prerequisites
Before writing any email code, verify the basics are in place:
- Domain onboarded? Run
npx wrangler email sending listto see which domains have email sending enabled. If the domain isn't listed, runnpx wrangler email sending enable userdomain.comor see cli-and-mcp.md for full setup instructions. - Binding configured? Look for
send_emailinwrangler.jsonc(for Workers) - postal-mime installed? Run
npm ls postal-mime(only needed for receiving/parsing emails)
What Do You Need?
Start here. Find your situation, then follow the link for full details.
| I want to... | Path | Reference |
| Send emails from a Cloudflare Worker | Workers binding (no API keys needed) | sending.md |
| Send emails from an AI agent built with Cloudflare Agents SDK | onEmail() + replyToEmail() in Agent class | sending.md |
| Send emails from an external app or agent (Node.js, Go, Python, etc.) | REST API with Bearer token | rest-api.md |
| Send emails from a coding agent (Claude Code, Cursor, Copilot, etc.) | MCP tools, wrangler CLI, or REST API | cli-and-mcp.md |
| Receive and process incoming emails (Email Routing) | Workers email() handler | routing.md |
| Set up Email Sending or Email Routing | wrangler email sending enable / wrangler email routing enable, or Dashboard | cli-and-mcp.md |
| Improve deliverability, avoid spam folders | Authentication, content, compliance | deliverability.md |
Sending Workflow
Prefer the binding for Workers; use REST for external apps or when explicitly requested. Read sending.md or rest-api.md to retrieve the documentation for the selected task before writing code. These guides cover setup, recipients, attachments, headers, limits, response handling, and errors; the Workers guide also covers Agents SDK integration and types matched to the project configuration.
Common Mistakes
| Mistake | Why It Happens | Fix |
Forgetting send_email binding in wrangler config | Email Service uses a binding, not an API key | Add "send_email": [{ "name": "EMAIL" }] to wrangler.jsonc |
| Sending from an unverified domain | Domain must be onboarded onto Email Sending before first send | Run wrangler email sending enable yourdomain.com or onboard in Dashboard |
Reading message.raw twice in email handler | The raw stream is single-use — second read returns empty | Buffer first: const raw = await new Response(message.raw).arrayBuffer() |
Missing text field (HTML only) | Some email clients only show plain text; also helps spam scores | Always include both html and text versions |
| Using email for marketing/bulk sends | Email Service is for transactional email only | Use a dedicated marketing email platform for newsletters and campaigns |
| Forwarding to unverified destinations | message.forward() only works with verified addresses | Run wrangler email routing addresses create user@gmail.com or add in Dashboard |
| Testing with fake addresses | Bounces from non-existent addresses hurt sender reputation | Use real addresses you control during development |
| Hardcoding API tokens in source code | Tokens in code get committed and leaked | Use environment variables or Cloudflare secrets |
Ignoring the from domain requirement | The from address must use a domain onboarded to Email Service | Verify the domain first, then send from anything@that-domain.com |
Using email key in REST API from object | REST API uses address not email for from object | Use { "address": "...", "name": "..." } for REST, { "email": "...", "name": "..." } for Workers |
Using replyTo in REST API | REST API uses snake_case field names | Use reply_to for REST API, replyTo for Workers binding |
References
Read the reference that matches your situation. You don't need all of them.
- references/sending.md — Documentation map for Workers binding, attachments, and Agents SDK email.
- references/rest-api.md — Documentation map for HTTP sending, request schemas, responses, and errors.
- references/routing.md — Inbound
email()handler, forwarding, replying, parsing. For receiving emails. - references/cli-and-mcp.md — Domain setup, wrangler commands, MCP tools. For first-time setup.
- references/deliverability.md — SPF/DKIM/DMARC, bounces, suppressions, best practices.
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.

