by CosmoBlk
Email marketing skill for AI agents, by George Hartley (founded SmartrMail). Plans, writes, audits and sends email with hard send-safety gates. Works in Claude, ChatGPT, Codex and Cursor. Free, MIT, vendor-neutral.
# Add to your Claude Code skills
git clone https://github.com/CosmoBlk/email-marketing-bibleGuides for using ai agents skills like email-marketing-bible.
email-marketing-bible is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by CosmoBlk. Email marketing skill for AI agents, by George Hartley (founded SmartrMail). Plans, writes, audits and sends email with hard send-safety gates. Works in Claude, ChatGPT, Codex and Cursor. Free, MIT, vendor-neutral. It has 391 GitHub stars.
email-marketing-bible's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/CosmoBlk/email-marketing-bible" and add it to your Claude Code skills directory (see the Installation section above). email-marketing-bible ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh email-marketing-bible against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
By George Hartley, co-founder of Nitrosend. Disclosure: Nitrosend is one of the platforms compared in references/platforms.md.
v2.8.4, 12 Nov 2026. Distilled from the EMB guide (19 chapters), from running SmartrMail (~12K customers, 6B emails, sold 2022) and field notes from running an ESP through agents. Rules and gates are here; detail is in
references/, named by the router (§2). Ifreferences/is missing, ask the user to install the full package or paste https://emailmarketingskill.com/llms.txt (then use its URLs verbatim). Otherwise name the chapter and never invent the figure.
Every segment, draft, campaign, flow or staged send on a real ESP is live. Hard gates, never skip:
/send, /dispatch, /trigger, /fire, /publish paths can dispatch immediately; if the approve-scheduled path is unclear, ask the human to click it. Test on sandboxes or cloned campaigns with seed lists.Account data beats benchmarks. Dated facts (law, inbox rules, vendor features, prices, model names) live in references/ with a Last checked date. If that date is more than about 90 days old, or the answer turns on the fact, verify it live before stating it as current. A benchmark is a starting hypothesis, never a pass/fail gate. Opens are unreliable in both directions: judge on bot-filtered clicks, replies, conversions and revenue per recipient.
Files are in references/.
| Task | Read | Done when |
|---|---|---|
| "Send this now", any send or schedule | §0, §4 | Packet shown; waiting for "send it" |
| Campaign or newsletter | §4, copy.md, design.md | Draft, preview URL, seed test, packet shown |
| Flow, or failed-payment (dunning) email | flows.md | Drafted, read back as numbered steps with exits; not activated |
| Audit a programme | agent-ops.md, flows.md, deliverability.md | Findings ranked, each with its fix; nothing changed |
| Why am I in spam, bounces, complaints | deliverability.md, thresholds.md | Root cause shown with evidence; fix and monitoring window stated |
| DNS or authentication change | deliverability.md (DNS protocol) | Records drafted for the DNS owner; re-verified after the change |
| Migrate from another ESP | deliverability.md (switching runbook) | Inventory done, suppressions imported first, ramp plan agreed |
| Write or de-slop copy | §5, copy.md | Lint passes; one real opinion; one real proof |
| Design an email | §6, design.md | Inputs gathered; direction picked by the human; render critiqued |
| Compliance question | compliance.md | Regime and basis named; dated facts flagged |
| Reporting, attribution, A/B test | measurement.md | Metric and denominator stated; sample size set before the test |
| Segment or list building | segmentation.md | Rules, count and five sample rows shown |
| Pick a platform | platforms.md | Shortlist on permission model, data depth and cost |
| Benchmarks | benchmarks.md, thresholds.md | Figure given with source, label and date |
| Cold outbound | cold-email.md | Separate infrastructure confirmed before copy |
| WhatsApp, SMS, RCS | messaging-channels.md | Channel consent and region checked |
| Industry playbook, BFCM | playbooks.md, flows.md | Plan tied to the vertical's flows |
| Connect or run an agent, routine or MCP | agent-ops.md | Lowest scope chosen; gates confirmed |
| Model choice for design | models.md | Roles filled with current names, date checked |
| Go deeper | sources.md, §8 | Chapter named or fetched |
The marketer moved from operator to director: brief the agent, govern it, own the send button. Advise on the surface the user runs (references/platforms.md).
The loop: read state → reason → act → verify. Read the account first (lists, flows, recent campaigns, deliverability, suppressions), act on one thing, verify it.
Automate: send-time optimisation, subject-line variants + A/B, cart/browse triggers, post-purchase cross-sell, first-draft copy. Keep human: brand voice, strategy (segment priority, flow order), creative direction, domain and deliverability, the final send.
Autonomy dial. Ask mode by default; widen only on narrow, reversible, low-brand-risk tasks, with an undo; read before write access. Supervised autonomy is the production stance. Measure AI optimisation with holdouts, never last-touch credit (guardrails in references/measurement.md).
Silent failure is the real risk (a flow that quietly stops, caught days later). Where the ESP offers failure webhooks or events (flow paused, sending paused, domain verification lost), subscribe to them; otherwise schedule a recurring health digest of flows not fired, flows erroring, metrics dropped.
Run it before you stage, schedule or activate anything beyond a seed test. Confirm every line in the packet, then wait for approval (§0).
Compliance first. (1) Type: transactional, lifecycle, marketing, newsletter or cold? (2) Recipient region? (3) Consent basis for this audience and this content, including buyers? (4) One-click unsubscribe and physical address present? (5) Suppressions applied? (6) Content materially accurate, with deadlines, scarcity and discounts real (the calendar honours the deadline, the stock limit exists, the discount is the checkout price)? Any unclear answer: refuse or ask. AI does not transfer liability: you own an agent's sends, so re-check the footer and unsubscribe after every template edit.
hrefSlop costs trust: 40% of US consumers would trust a retailer's emails less if they knew AI wrote them (Validity, Jun 2026) [vendor].
Design inputs first. Before the first compose, gather two or three screenshots of the brand's best emails or landing page, the brand document, the logo in light and dark variants, and a folder of approved real images. Name the images to use in each email. After any brand-kit scrape, read it back (logo, brand name, colours, footer, social links, dark-mode logo) and fix it before the first draft. A site on a store or link-in-bio platform can hand the scrape that platform's branding. Context beats prompt: feed the brand kit, design tokens, a tested module library and a rules file before iterating on wording.
AI defaults to competent and generic; force it off its defaults.
role="presentation" tables and dark-mode-safe colours (~#121212, never pure #000 backgrounds or #fff logos).Direct the agent: Discover, Define, Deliver. Adapted for email from Anshu Chimala, "How to turn your AI into a world-class designer" (Lenny's Newsletter, 1 Sep 2026, https://www.lennysnewsletter.com/p/how-to-turn-your-ai-into-a-world) via the design-director skill. LLMs predict the median; divergence has to come from outside the model. Method (full in references/design.md): seed strings inside the brand tokens; 12-20 one-line directions, one picked by the human, brief approved before any image or code; ambitious briefs; a fresh-context critic loop to 9/10, four rounds at most; delivery by subtraction.
Model roles. Critic: the strongest vision-capable model you can reach, in a fresh context. Implementer: your coding agent. Stills and motion: the current image and video models. Names and dates: references/models.md.
The first three are ESP mechanics (check your ESP's equivalent); the rest hold anywhere.
if_version); on conflict, re-read and retry with the fresh version, never guess.href, give Liquid merge defaults single quotes; inner double quotes close the attribute and break the link.Full guide: https://emailmarketingskill.com (chapter URLs: llms.txt, above). references/sources.md says which chapter answers what. Where a chapter and a reference disagree, the reference wins.
01-fundamentals, 02-building-your-list, 03-segmentation-and-personalisation, 04-the-emails-that-make-money, 05-copywriting-that-converts, 06-design-and-technical, 07-deliverability, 08-testing-and-optimisation, 09-analytics-and-measurement, 10-compliance-and-privacy, 11-industry-playbooks, 12-choosing-your-platform, 13-cold-email-and-b2b-outbound, 14-whatsapp-business, 15-sms-and-rcs, 16-ai-and-agentic-marketing, 17-company-case-studies, 18-expert-directory, 19-best-email-designs-2026, appendix-a-benchmarks, appendix-b-frequency-guide, appendix-c-calendar, appendix-d-methodology.
An email marketing skill for AI agents. Your agent plans, writes, designs, audits and sends email with it, and nothing goes to more than one person until you type "send it".
Works in Claude (web, desktop, Cowork and Claude Code), Codex, Cursor, ChatGPT and any agent that reads skills. Free, MIT licensed and vendor-neutral: it works with the email platform you already use.
Download for Claude (ZIP) · All install options · Read the guide
By George Hartley, who founded SmartrMail (email marketing for about 12,000 ecommerce stores, sold to Relay Commerce in 2022) and co-founded Nitrosend. Disclosure: Nitrosend is one of the platforms the skill compares.
Version 2.8.4, 12 November 2026.
| You use | Do this |
|---|---|
| Claude on the web or the desktop app, any plan | Upload the ZIP (2 minutes) |
| Claude on a paid plan | Add it as a plugin, which also carries it into Cowork and Claude Code |
| Claude Code | Two commands |
| Codex, Cursor, Gemini CLI and other agents | npx skills add CosmoBlk/email-marketing-bible |
| ChatGPT or another chat app | Paste one prompt |
Pick one route per Claude account. The ZIP and the plugin together load the skill twice.
Use the Email Marketing Bible to plan a three-email welcome series for my
business. Ask me what you need first, and keep everything as drafts.
On Team and Enterprise plans an owner may need to allow skills in Organization settings first. To update, remove the old skill and upload the new ZIP.
CosmoBlk/email-marketing-bible.In Claude Code, run:
/plugin marketplace add CosmoBlk/email-marketing-bible
/plugin install email-marketing-bible@email-marketing-bible
Use the plugin or a clone into ~/.claude/skills, not both: the clone also carries the plugin manifest and can load the skill twice.
npx skills add CosmoBlk/email-marketing-bible
Or git clone the repo into that agent's skills folder.
Paste this into a new chat:
Read https://raw.githubusercontent.com/CosmoBlk/email-marketing-bible/main/SKILL.md
and follow it in this conversation. For detail, read
https://emailmarketingskill.com/llms.txt and the files it lists.
The core rules work on their own; the links you pasted let the agent read the reference files when it needs them.
You can start without connecting anything. The skill drafts, audits and plans in chat. To build or send inside your email platform, connect it to your agent (MCP, an API or a connector); the skill still holds every send to more than one person until you say "send it".
| Task | What it does |
|---|---|
| Run email automation | Build welcome, cart, post-purchase and win-back flows from a prompt, then review exits, timing and copy before anything goes live |
| Audit your setup | Review flows, segments, deliverability and compliance, and say what is missing |
| Draft and de-slop copy | Write with proven frameworks (PAS, AIDA, BAB) and strip the AI tells before send |
| Direct email design | Seed strings for divergence, a critic loop that scores screenshots, chained image and video models, delivery by subtraction; output as inbox-safe MJML or React Email |
| Drive your ESP from AI | Operate any ESP an agent can reach through MCP or an API, with pre-send gates, a session-start check of the right account, and field-tested operating rules |
| Fix deliverability | Step-by-step triage covering authentication, DNS changes, Gmail Postmaster v2, content and the AI-mediated inbox, plus a switching-ESP runbook |
| Pull industry benchmarks | Click, placed-order and revenue-per-recipient figures by vertical and email type, each with its source and date |
| Compare platforms | Comparison by list size, budget, and how an agent can drive each one and where approval is enforced (disclosure: the author co-founded Nitrosend, one of the platforms compared) |
| Review compliance | GDPR, CAN-SPAM, Washington CEMA, CASL, UK PECR, the Australian Spam Act and EU AI Act Article 50 as a gate before any send, with CCPA as a privacy note |
| Write cold email | Sequences with proper infrastructure separation, warming and personalisation |
| WhatsApp, SMS and RCS | The real cost models, consent rules and where each channel pays off |
Talk to your AI like an email marketing consultant.
Audit and build:
"Audit my Klaviyo account for a DTC skincare brand doing $2M/year. I have a
welcome series, abandoned cart, and one weekly newsletter. What am I missing,
and build me whatever flow would earn the most first."
Fix a problem:
"My emails are landing in Gmail promotions and opens dropped from 22% to 14%
over three months. What is going on and how do I fix it?"
De-slop:
"Here is a draft welcome email. Make it sound like a person, not an AI, and
keep it on our brand voice."
Design:
"Design a launch email for a premium coffee brand. List 15 directions first,
I will pick. Then build the pick as MJML and run a critic loop on the render."
A short core file (SKILL.md) holds the rules and the send gates, so they survive a long session. Sixteen files in references/ hold the depth: thresholds, deliverability, compliance, measurement, flows, copy, design, segmentation, cold email, messaging channels, platforms, benchmarks, playbooks, models, agent operations and sources. The agent reads a reference file only when the task needs it.
Check any number it gives you. Every dated fact in references/ carries a source link, an evidence label (primary, vendor, trade, practitioner) and a Last checked date. Where a figure has no public source, the skill says so instead of inventing one.
What it fetches. Everything the skill follows ships in this package; it never tells the agent to pull instructions from another site. It may ask the agent to check a dated fact against its public source before stating it as current, and it reads the guide only when you ask for more depth.
Agents now build the campaign, segment the audience, draft the copy and stage the send; the marketer directs. That only works if the agent runs on real benchmarks and hard guardrails. This skill is that discipline layer: the patterns that repeat across industries, the mistakes that destroy deliverability, the anti-slop rules for copy and design, and the send-safety gates that keep one prompt from mailing the wrong thing to your whole list.
The skill is distilled from the Email Marketing Bible guide at emailmarketingskill.com: 19 chapters and 4 appendices, searchable, with a free PDF. The chapters are being rebuilt for v3. Where a chapter and a reference file disagree, the reference file wins, because it carries a Last checked date.
| # | Chapter | What you get |
|---|---|---|
| 1 | The Fundamentals | Why email wins, the stack, key metrics, the AI-mediated inbox |
| 2 | Building Your List | Organic growth, popups, opt-in, spam traps, validation |
| 3 | Segmentation & Personalisation | Engagement tiers, AI-built segments, 1:1 content from behaviour |
| 4 | The Emails That Make Money | Welcome, cart, post-purchase, win-back, and building flows with AI |
| 5 | Copywriting That Converts | Subject lines, frameworks, CTAs, and the anti-slop copy protocol |
| 6 | Design & Technical | Designing for two readers, tokens and modules, dark mode, accessibility, the anti-default ban list, and directing the agent (Discover, Define, Deliver) |
| 7 | Deliverability | SPF, DKIM, DMARC, BIMI, reputation, warming, autonomous-send safety |
| 8 | Testing & Optimisation | A/B testing, significance, send-time, testing AI-assisted email |
| 9 | Analytics & Measurement | KPIs by type, attribution, querying your data with AI |
| 10 | Compliance & Privacy | GDPR, CAN-SPAM, CASL, CCPA, AU Spam Act, AI accountability |
| 11 | Industry Playbooks | Tactics for 19 verticals |
| 12 | Choosing Your Platform | Comparison by list size and budget, including which tools an agent can actually drive |
| 13 | Cold Email & B2B Outbound | Infrastructure, writing, follow-up, AI in outbound |
| 14 | WhatsApp Business | The cost model and where it pays off, per-user caps, quality tiers, opt-in and geo-branching, the AI-chatbot rule |
| 15 | SMS & RCS | TCPA, 10DLC and CTIA compliance, quiet hours, a realistic read on RCS, and AI in two-way messaging |
| 16 | AI & Agentic Marketing | Supervised autonomy, agent prefl |