/marketing-skills:cold-emailfrom marketing-skills
Writes, audits, and fixes B2B cold emails: checks subject lines for merge tags, spam phrases, and mobile length; audits full emails against CAN-SPAM and Gmail/Yahoo bulk-sender rules; diagnoses sequence send data; returns rewrites.
Ships in marketing-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Paste a cold email before you send it; get every problem quoted with a fix and a paste-ready rewrite.
Before (assets/flawed_email.txt):
Subject: {{first_name}}, FREE audit!!!
Hi {{first_name}},
I hope this email finds you well. My name is Dana and I'm the founder of Relay Outbound, the leading platform for sales teams.
After running deliverability_checker.py (exit 1):
FIX 13 issue(s) (3 hard)
1. [hard] merge-tag: "Hi {{first_name}},"
unrendered token {{first_name}}. rule: an unrendered token tells the reader this is a mail merge
Fix: "Hi," (pass --first-name/--company to fill it)
6. [fix] spam-words: "We guarantee a 3x lift in replies or your money back."
guarantee. heuristic: promotional phrases; providers do not publish trigger lists
Fix: "We expect a 3x lift in replies or your money back."
8. [fix] opt-out: "(no opt-out line found)"
Fix: add before your sign-off: "If this isn't relevant, reply "no" and I won't email you again."
Apply the fixes and assets/sample_email.txt prints PASS: no findings.
Quick start (from this skill folder):
python3 scripts/deliverability_checker.py assets/flawed_email.txt
python3 scripts/subject_line_scorer.py --file assets/flawed_subjects.txt
python3 scripts/sequence_optimizer.py assets/flawed_sequence.json
For the whole job end to end, use the cs-growth-marketer agent (installed with the plugin, or npx @borghei/claude-skills add-agent cs-growth-marketer).
B2B cold email that reads like it came from a person, checked by tools that read your actual draft and send data.
Before generating the email, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Step 1: Gather Context
Required information:
Step 2: Choose Framework
| Framework | Best When | Structure |
|---|---|---|
| Problem-First | Prospect has a visible pain point | Problem observation > Relevance > Ask |
| Trigger-Based | There is a specific event (funding, hiring, news) | Trigger reference > Connection to problem > Ask |
| Mutual Connection | Referral or shared network | Name drop > Context > Ask |
| Value-First | You have something genuinely useful to share | Insight/resource > Brief context > Ask |
| Direct Ask | Prospect is high-intent or very senior | Brief context > Direct question |
Step 3: Draft the Email
Structure:
Subject: [2-4 words, looks like an internal email]
[Opener: 1 sentence about their world — trigger, observation, or question]
[Relevance: 1-2 sentences connecting their situation to what you do]
[Proof: 1 sentence of credible evidence — specific number, named customer, result]
[Ask: 1 sentence with a single, specific, low-friction CTA]
[Sign-off]
Step 4: Validate
Step 1: Write Email 1 (Using Workflow 1)
Step 2: Plan Follow-Up Angles
Each follow-up needs a distinct angle. Plan before writing:
| Day | Angle | What is New | |
|---|---|---|---|
| 1 | Day 1 | Problem-first | Initial outreach |
| 2 | Day 4 | New evidence | Case study, data point, or recent result |
| 3 | Day 9 | Different pain point | Alternative angle on their world |
| 4 | Day 16 | Industry insight | Something notable about their space |
| 5 | Day 25 | Direct question | Simple, clear ask without context |
| 6 | Day 35 | Breakup | Professional close, referral ask |
Step 3: Write Each Follow-Up
Rules for every follow-up:
Step 4: Write the Breakup Email
The breakup email closes the loop. It signals this is the last one; in practice it often draws replies from people who were meaning to answer (heuristic).
Template:
Subject: closing the loop
[Name],
Last note from me. If [specific problem] becomes a priority,
reply here and I'll pick it up.
If there's someone else at [Company] better suited for this
conversation, a name would help.
Either way — [genuine well-wish related to something specific].
[Sign-off]
Step 1: Diagnose from your own numbers
python3 scripts/sequence_optimizer.py sequence.json --company "Northwind"
It reads per-step sent/delivered/bounced/replied/unsubscribed/complaints, reports missing data as missing, and flags bounce rate, spam-complaint rate, weak steps (under half your own median reply rate), unsubscribe spikes, shrinking cadence gaps and subject problems. Open rates are shown but never judged (Apple Mail Privacy Protection, 2021, makes them over-count).
Step 2: Rewrite the underperforming element
Fix one element at a time. Use the revised plan the tool prints (new days, rewritten subjects) and run
deliverability_checker.py on the rewritten email before it goes out.
Step 3: Test and measure
The moment your email sounds like marketing copy, it is deleted.
Test: Would you send this to a smart colleague at another company? If not, rewrite.
Each sentence must do one of these jobs:
If a sentence does none of these, cut it.
Generic personalization is worse than none.
The personalization must bridge to the reason for reaching out.
The opener should be about their situation, problem, or context. Not about you or your product.
Do not ask them to book a call, watch a demo, read a case study, AND reply with their timeline. Pick one.
The subject's only job is to get the email opened by the right person. The best cold subjects look like internal email: short, lower case, and tied to one fact about the prospect.
subject_line_scorer.py| Rule | Passes | Fails |
|---|---|---|
| merge-tag (hard) | "Priya, quick question" | "{{first_name}}, quick question" |
| nonsense (hard) | "Northwind's 4 SDR roles" | "asdf qwer zxcv" |
| fake-reply (hard, CAN-SPAM 7704(a)(2)) | "our call on Tuesday" (after a real call, in a new thread) | "Re: our call" on a first touch |
| generic (heuristic) | "who owns SDR onboarding at Northwind?" | "quick question", "following up" |
| mobile-length (heuristic, 40 chars) | "Brightline: 1.8% to 4.1% replies" | "Quick question about how your team handles onboarding new SDRs" |
| spam-words / all-caps / punctuation (heuristic) | "ramping 4 reps at once" | "FREE DEMO!!! Limited time 50% off" |
Naming the prospect's company or trigger is what makes a subject specific. Naming your own company ("Relay Outbound: helping you achieve...") is a pitch, not a subject.
| Pattern | Example |
|---|---|
| Specific trigger | "your Series B hiring plan" |
| Observation | "Northwind's 4 SDR roles" |
| Number from their world | "ramping 4 reps at once" |
| Referral hook | "Maya suggested I write" (only if Maya did) |
| Role-specific | "SDR onboarding at Northwind" |
| Send Day | Gap | Notes | |
|---|---|---|---|
| Email 1 | Day 1 | — | First touch |
| Email 2 | Day 4 | +3 days | New evidence angle |
| Email 3 | Day 9 | +5 days | Different pain point |
| Email 4 | Day 16 | +7 days | Industry insight |
| Email 5 | Day 25 | +9 days | Direct question |
| Breakup | Day 35 | +10 days | Close the loop |
Gaps increase over time. Persistent but not annoying.
| Angle Type | Description | Example |
|---|---|---|
| New evidence | Case study, data point, recent result | "Since my last note, we helped [Company] reduce [metric] by [%]" |
| Different pain | Alternative problem in their world | "Setting aside [topic A] — are you dealing with [topic B]?" |
| Industry insight | Something notable about their space | "Saw [industry trend]. Most teams are responding by [approach]" |
| Direct question | Simple ask without buildup | "[Name], quick one: who handles [function] at [Company]?" |
| Reverse ask | Request for referral | "If this isn't your area, who would you point me to?" |
| Social proof | Relevant peer doing it | "[Similar company] just went through this — here's what worked" |
All three are Python 3 standard library, offline, and share one rule set (subject_line_scorer.py is
also imported by the other two). Every finding quotes your input, names the rule and threshold (with
source and year, or labelled heuristic) and gives a rewrite built from your own text.
| Script | Reads | Gives back |
|---|---|---|
scripts/subject_line_scorer.py | subjects as arguments or --file (one per line, - for stdin); optional --first-name, --company, --context, --context-file | per-subject findings, a rewrite per finding, a suggested subject |
scripts/deliverability_checker.py | one email: plain text (optional Subject: first line) or a raw .eml with headers; optional --first-name, --company, --domain, --daily-volume, --spam-rate | findings incl. opener rewrite, CAN-SPAM opt-out/address, one-click unsubscribe and SPF/DKIM/DMARC from headers, plus a paste-ready revised email |
scripts/sequence_optimizer.py | sequence JSON (per step: day, sent; optional delivered, bounced, opened, replied, unsubscribed, complaints, subject); optional --company, --context | per-step table, findings, revised plan (new send days, rewritten subjects) |
python3 scripts/subject_line_scorer.py "quick question" --company "Northwind"
python3 scripts/subject_line_scorer.py --file assets/flawed_subjects.txt --format json
python3 scripts/deliverability_checker.py assets/flawed_email.txt --first-name Priya --company Northwind
python3 scripts/deliverability_checker.py assets/flawed_message.eml --daily-volume 6000 --spam-rate 0.12
python3 scripts/sequence_optimizer.py assets/flawed_sequence.json --company Northwind
All take --format text|json (--json is an alias). Text output starts with a verdict line
(PASS: ..., FIX n issue(s) (k hard)) and ends with at most three next actions.
| Code | Meaning |
|---|---|
| 0 | No findings |
| 1 | Findings to act on (any hard or fix item) |
| 2 | Unusable input: missing or unreadable file, empty input, invalid JSON, impossible counts (e.g. replies > delivered). One BLOCKED: line on stderr, no traceback |
python3 scripts/subject_line_scorer.py "{{first_name}}, FREE audit!!!" --first-name Priya --company Northwind
FIX 4 issue(s) in 1 of 1 subject(s) (1 hard)
...
1. "{{first_name}}, FREE audit!!!" (29 chars, 3 words) FIX
[hard] merge-tag: "{{first_name}}" - unrendered personalisation token would reach the inbox as-is
Rewrite: "Priya, FREE audit!!!"
[fix] spam-words: "free" - promotional phrases in a 1:1 cold subject
heuristic: promotional phrases; providers do not publish trigger lists
Rewrite: "Priya, audit!!!"
...
Suggested subject: "Priya, audit"
And on the flawed sample email, the opener finding moves the prospect's own line to the top:
3. [fix] opener: "I hope this email finds you well. My name is Dana and I'm the founder of Relay Outbound, ..."
Fix: open with your own line about them: "I noticed Northwind is hiring SDRs, and your team will need
help keeping reply rates up while new reps ramp." (moved up); delete "I hope this email finds you well.", ...
Samples live in assets/ (sample_* exit 0, flawed_* exit 1, malformed_* exit 2);
assets/contract.json lists every run.
| Symptom | Likely cause | Fix |
|---|---|---|
| Replies below 1% across the sequence (heuristic) | Body lacks relevance or the ask is too big | Run deliverability_checker.py on email 1; take its opener rewrite and single-ask fix |
| One step replies far below the rest | Weak angle | sequence_optimizer.py flags it as weak-step; replace it with a new angle or delete it |
| Landing in spam | Missing SPF/DKIM/DMARC or one-click unsubscribe | Send a test to Gmail, save "Show original" as .eml, run deliverability_checker.py on it |
| Spam complaint rate at or above 0.10% | Mis-targeted list or too-frequent sends | Gmail Email sender guidelines (2024): stay below 0.10%, never 0.30%. Narrow the list to your ICP and widen gaps |
| Bounce rate at or above 3% (heuristic) | Unverified list, role or catch-all addresses | Verify every address before the next step |
| Prospect replies "is this automated?" | Unrendered {{first_name}} or generic subject | Run subject_line_scorer.py --file subjects.txt on what actually went out |
Targets are working heuristics for well-targeted B2B outbound, except where a source is given.
In Scope:
Out of Scope:
Limitations:
Authentication-Results header in a raw .eml, otherwise reported as not checkedreferences/cold-email-playbook.md: voice calibration by seniority, personalization tiers and sources, deliverability setup and warmup, CAN-SPAM / GDPR / CASL checklists, anti-patterns, best practices, and the sourced bulk-sender requirements table.assets/contract.json (opens in a new tab)assets/flawed_email.txt (opens in a new tab)assets/flawed_message.eml (opens in a new tab)assets/flawed_sequence.json (opens in a new tab)assets/flawed_subjects.txt (opens in a new tab)assets/malformed_email.txt (opens in a new tab)assets/malformed_sequence.json (opens in a new tab)assets/malformed_subjects.txt (opens in a new tab)assets/sample_email.txt (opens in a new tab)assets/sample_sequence.json (opens in a new tab)assets/sample_subjects.txt (opens in a new tab)references/cold-email-playbook.md (opens in a new tab)scripts/deliverability_checker.py (opens in a new tab)scripts/sequence_optimizer.py (opens in a new tab)scripts/subject_line_scorer.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub borghei/claude-skills --plugin marketing-skills46 skills in this plugin
/ab-test-setupCalculates A/B test sample size and duration, writes a reviewable test plan, and analyzes conversion results (z-test, confidence interval, sample ratio check, ship/revert/inconclusive verdict). Use when setting up an A/B test, sizing an experiment, checking whether a test ran long enough, or deciding whether to ship a variant from visitor and conversion counts.
/ad-creativeDesign ad creative across Google, Meta, LinkedIn, Twitter/X, and TikTok with platform format specs, headline formulas, and A/B testing. Use when writing ad copy, generating headline variations, creating ad sets, or validating creative.
/aeoAnswer Engine Optimization (AEO): checks a page for the structures LLM answers quote (definition first, tables, numbered steps, sourced numbers, question headings, visible date), generates FAQ/HowTo JSON-LD from the page's own Q&A, and tallies brand mentions and cited URLs in saved LLM answers. Use when auditing a page for LLM citability, adding Q&A schema, or measuring whether ChatGPT, Claude, Perplexity or Gemini name your brand.
/ai-content-disclosureCheck AI-generated marketing content and reviews for required disclosures under the EU AI Act, FTC rules and platform AI-label policies. Use when you have a list of AI-made ads, deepfakes, chatbots, influencer posts or testimonials to clear before publishing, or a set of customer reviews to vet for fakes.
/ai-seoOptimize content to rank in AI search engines (AI Overviews, Perplexity, ChatGPT) via generative engine optimization (GEO), citability audits, and schema markup. Use when optimizing for AI search, generative search, or LLM visibility, when auditing a page for AI citability, when checking which passage answers a query, or when classifying keywords by intent for AI answers.
/analytics-trackingAnalytics implementation for web and SaaS (GA4, Google Tag Manager, event taxonomy, conversion tracking, UTM strategy) with three checkers: UTM links, event names/params/PII, and funnel drop-off. Use when building a tracking plan, validating a UTM sheet or event list before launch, finding where a funnel leaks, debugging missing events, or auditing existing analytics.
Other plugins' skills for the same job