agentleFS
swyxioswyxio/skills/cloudflare-email-service/SKILL.md

cloudflare-email-service

Skill171 starsChanged 8 months agoMITView on GitHub

Implement or debug Cloudflare Email Service sending, Email Routing, or an Agents SDK email handler. Use for the Workers email binding, Email Service REST API, SMTP, inbound `email()` handlers, domain onboarding, deliverability, or Cloudflare email tooling. Do not trigger for provider-neutral email design or non-Cloudflare mail services.

14 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 3

    Distinctive

    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. Distinctive:

    Prefer the Worker binding inside Workers unless the existing application already has a reason to use another supported surface.

    line 23
  2. Distinctive:

    Keep API tokens and message secrets in the platform's secret mechanism, never in source or diagnostic output.

    line 33
  3. Very specific:

    Treat inbound message.raw as a single-use stream.

    line 35
  4. Distinctive:

    Use a controlled address and a non-sensitive fixture.

    line 47

“Common” is measured: kept by at least 6 in 10 of the 14 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.

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

Cloudflare Email Service

Retrieve current Cloudflare documentation and installed Workers types before using API signatures, limits, pricing, or CLI commands. Email Service is evolving and the Workers binding, REST API, SMTP, and Email Routing have distinct contracts.

Choose the surface

NeedUseReference
Send from a WorkerEmail bindingsending.md
Send from outside WorkersREST API or SMTPrest-api.md
Receive, forward, reject, or parse mailEmail Routing email() handlerrouting.md
Configure domains or agent toolingWrangler/API/MCP setupcli-and-mcp.md
Diagnose bounces, authentication, or reputationDeliverabilitydeliverability.md

Prefer the Worker binding inside Workers unless the existing application already has a reason to use another supported surface. Do not invent one request shape for all surfaces: field names and response envelopes differ.

Verify prerequisites and boundaries

  • Resolve the exact account, domain, environment, and sending or routing configuration before changing provider state.
  • Confirm the sending domain is onboarded and that the target Worker environment has the required binding.
  • Keep API tokens and message secrets in the platform's secret mechanism, never in source or diagnostic output.
  • Treat inbound message.raw as a single-use stream; buffer it once when several consumers need the content.
  • Forward only to destinations allowed by the current Email Routing contract.
  • Preserve the existing application handler when adding email; do not expand a delivery task into unrelated persistence, marketing, or workflow architecture.

For Agents SDK email, verify the installed Agents SDK version and read both the Agents and Email Service documentation. Do not assume their release cadence or types are synchronized.

Validate the owning path

Use a controlled address and a non-sensitive fixture. Verify the exact sender domain, recipient handling, text/HTML or raw MIME shape, and the surface actually used by the application. Distinguish provider acceptance, queueing, delivery, bounce, forwarding, and application processing; one does not prove the others.

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.