/cold-md:cold-sendfrom cold-md
Creates and launches a FoxReach cold email campaign from imported leads and drafted copy. Runs pre-flight checks (banned phrases, variables, spin syntax, audience fit, duplicates, verification, account health, bounce guard), builds campaign steps with A/B variants, and starts after user approval.
Ships in cold-md. 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.
None: SKILL.md is the whole skill.
Creates the campaign in FoxReach as a draft, checks everything, and starts it only after the user approves.
.cold/last-import.json (from /cold leads): leadIds, preExistingLeadIds, customFields, verification, file, importId/cold draft: .cold/drafts/<importId>/, else the newest folder under .cold/drafts/cold.md: ## Sequence (steps, delays), ## Banned, ## Audience (including any "Not for" lines).cold/experiments/.active and its protocol.md (optional).cold/config.json: sending.timezone, sending.dailyLimit, sending.espMatching, guards.*, trust.humanApprovalRequired. v0.2 config: use timezone: "UTC", dailyLimit: 50, espMatching: "auto", minAccountHealth: 70.FOXREACH_API_KEYFoxReach sends one template per step to every lead, filling {{variables}} from lead data. Build one template per ## Sequence step (subject, body, delay in days) from cold.md and the drafts. The control copy is the step itself.
Per-lead text that is not a variable (for example the research hook) must live on the lead as a custom field:
foxreach leads update <LEAD_ID> --custom hook="<the line>"
and appear in the template as {{hook|<generic fallback>}}.
Stop on any failure, print what failed and how to fix it.
cold.md ## Banned. Any hit: stop, name the file and phrase, ask the user to rerun /cold draft.{{name}} must be a standard variable (firstName, lastName, fullName, email, company, title, phone, website, linkedin, senderName, senderEmail, signature, or the snake_case forms) or a name in last-import.json.customFields. A missing value renders as empty text, so any variable that is blank for some lead in the import file needs a fallback ({{firstName|there}}). Spin blocks are {option one|option two}; check braces are balanced and not nested. FoxReach also rejects invalid spin syntax when the step is created.fit_score >= threshold from last-import.json. Leads matching a "Not for" line in cold.md ## Audience (title, company type, industry, region) are removed from the send list and listed.preExistingLeadIds:
foxreach leads activity <LEAD_ID> --json
Flag the lead if activities has an email_sent in the last 90 days or campaigns shows another active enrollment. Exclude flagged leads unless the user passes --allow-duplicates.last-import.json.verification. by: "none": warn that <n> leads are unverified and suggest /cold leads with verification on. unknown above zero: warn that those addresses can bounce. Warnings do not block.foxreach accounts list --json
Offer the accounts with isActive: true and no lastError (default: all of them, or the ones the user names). For each chosen account:
foxreach accounts health <ACCOUNT_ID> --json
healthScore below guards.minAccountHealth: drop the account. healthScore null (fewer than 20 warmup observations) or minAccountHealth null: warn, keep it.bounce7d.bounced / bounce7d.sent (use bounceRate when bounce7d.sent is 0). Above guards.bounceRateThreshold: drop the account and suggest more warmup or a swap. Not overridable.warnings (SPF/DKIM/DMARC). Warnings do not block; https://www.foxreach.io/free-tools/spf-dkim-dmarc-checker helps fix them.No account left: stop.
Capacity. Planned sends = leads x steps. Daily capacity = the smaller of sending.dailyLimit and the sum of the accounts' dailyLimit. Print the days the first step needs. The plan's monthly sending quota is not available in the public API; tell the user to check it in the web app if the volume is large.
foxreach campaigns create --name "<name>" --timezone "<sending.timezone>" \
--daily-limit <sending.dailyLimit> --json
Name: <experiment id> when an experiment is active, else <icp vertical> - <YYYY-MM-DD>. Pass --esp-matching only when sending.espMatching is true; "auto" is decided below. Defaults when omitted: UTC, Mon-Fri, 9-17, 50 per day.
One step per ## Sequence entry, in order (step numbers start at 1):
foxreach sequences create --campaign $CID --name "<step name>" --delay-days <d> \
--subject "<control subject>" --body "<control body>" --json
Steps default to sending only if the lead has not replied. Then accounts and leads:
foxreach campaigns add-accounts $CID --account-ids <id1,id2,...>
add-leads takes a comma-separated list, so send at most 500 IDs per call:
jq -r '.leadIds[]' .cold/send-leads.json | split -l 500 - .cold/chunk-
for f in .cold/chunk-*; do
foxreach campaigns add-leads $CID --lead-ids "$(paste -sd, "$f")"
done
rm .cold/chunk-*
(.cold/send-leads.json = the lead IDs left after pre-flight.)
foxreach campaigns esp-mix $CID --json
Returns enabled, senders (google, microsoft, other), leads (per provider, plus unresolved), totalLeads, resolvedPct.
sending.espMatching: true: already on. If all senders are on one provider, say it has nothing to match.false: leave it off."auto": turn it on when senders include both Google and Microsoft mailboxes AND leads include both Google and Microsoft recipients:
foxreach campaigns update $CID --esp-matching
Otherwise leave it off and say why (for example "all senders are Google, nothing to match"). A low resolvedPct means lookups are still running; that is fine.Needs foxreach-cli 0.6.0 or later (foxreach --version; upgrade with pip install -U foxreach-cli). The campaign is still a draft, which variants need: the API refuses to add, edit or delete variants while a campaign is active (pause it first).
Once a step has variants, FoxReach sends one of them to each lead, picked by weight, and the step's own subject and body are no longer used. So create both arms: A with the control copy, B with the variant copy.
$SID of step <N> from the sequences create --json output (id), or from foxreach sequences list --campaign $CID --json (the entry whose step_number is <N>).foxreach sequences variants add --campaign $CID --step $SID --label A \
--subject "<control subject>" --body "<control body>" --weight 1 --json
foxreach sequences variants add --campaign $CID --step $SID --label B \
--subject "<variant subject>" --body "<variant body>" --weight 1 --json
Each prints the new variant (id, sequence_id, label, subject, body, weight, send_as_html). A label that already exists on the step is refused; list the variants and fix the existing one instead:
foxreach sequences variants update <VARIANT_ID> --campaign $CID --step $SID \
--subject "<subject>" --body "<body>" --json
foxreach sequences variants list --campaign $CID --step $SID --json
Exactly two variants, A with the control copy and B with the variant copy, both weight 1. Anything else: show it, fix it with variants update, and check again. Do not start until it matches, or until the user chooses to send without the experiment. In that case remove the test with foxreach sequences variants delete <A_ID> --campaign $CID --step $SID --yes (deleting one of two variants deletes both, and the step goes back to its own subject and body), leave .active untouched and note it in .cold/decisions.md..cold/experiments/<id>/protocol.md frontmatter: campaignId, step, sequenceId: $SID, variantIds: { control: <A id>, variant: <B id> }, variantLabels: { control: A, variant: B }.Two-campaign experiments (protocol design: two-campaign, for cadence or provider matching): create two campaigns that differ only in the tested setting, split the leads randomly in half, give both the same accounts, and record both campaignIds in the protocol. For an esp-matching experiment the protocol sets provider matching per campaign; skip the "auto" rule.
Show the summary and ask. With trust.humanApprovalRequired (default true) never start without a yes.
Ready to start "<name>" (<CID>), draft
Steps: <n> (<names>), leads: <n>, accounts: <n>
Provider matching: <on|off> (<reason>)
Experiment: <id> step <N>, A=<id> B=<id> (or: none)
Warnings: <list or none>
Start now? (y/N)
foxreach campaigns start $CID
With provider matching on, the campaign can sit in "waiting for recipient lookups" for up to 30 minutes before the first sends. That is normal; leads behind a security gateway are reported as gateway.
.cold/last-send.json{
"campaignId": "...",
"campaignIds": ["..."],
"experimentId": "<id or null>",
"testStep": 1,
"sequenceIds": ["..."],
"variantIds": { "control": "...", "variant": "..." },
"espMatching": false,
"accountIds": ["..."],
"leadCount": 0,
"excluded": { "notFor": 0, "duplicates": 0 },
"sentAt": "<ISO time of campaigns start>"
}
sentAt is the start time; /cold learn reads stats from it.
Live: "<name>" (<CID>)
/cold triage Categorize replies as they arrive (needed for accurate results)
/cold status Check progress
/cold learn Read the experiment after <minDaysBeforeRead> days
.cold/docs-cache/foxreach-openapi.json.curl https://api.foxreach.io/api/v1/<path> -H "X-API-Key: $FOXREACH_API_KEY" (for example POST /campaigns/{id}/sequences with subject, body, name, delayDays, delayHours, sendOnlyIfNoReply, sendAsHtml, or POST /campaigns/{id}/sequences/{sequence_id}/variants with label, subject, body, weight).--skip-preflight; the bounce guard cannot be overridden.trust.humanApprovalRequired is true.What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/cold-draftDraft cold email openers, bumps, breakups and replies from a cold.md file, write FoxReach-ready step templates (with {{variables}} and optional spin syntax) and experiment variants, and lint cold.md or drafts against the spec. Use when the user asks to write a cold email, sequence, bump, breakup, reply or objection response, runs `/cold draft`, `/cold bump`, `/cold breakup` or `/cold lint`, or when a cold.md file exists at the repo root. Enforces the cold.md spec (https://cold.md): banned phrases, voice rules, proof list, sequence constraints and audience disqualifiers./cold-experimentDesign the next A/B experiment in the cold.md loop. Reads the current tier, picks the one variable to test, writes the control and variant copy, sample size, guards and decision rule into a protocol under .cold/experiments/, and marks it active for /cold draft, /cold send and /cold learn. Use after /cold leads and before /cold draft, or when the user says "design the next experiment", "what should we test next", "set up the A/B" or runs /cold experiment./cold-icpBuild your Ideal Customer Profile (ICP) and write it to icp.md for the rest of the cold.md suite to consume. Use when the user says "build my ICP", "define my target audience", "who should I sell to", "analyze my website for ICP", or when starting a new cold outreach project. Can bootstrap from a URL (scrape homepage, about, pricing, case studies) or run an interactive Q&A. Validates the draft with web research and, when a FoxReach key is set, an optional free Lead Finder count. Writes a structured icp.md that cold-leads, cold-draft, and cold-send all read./cold-leadsBuild the lead list for the next campaign. Sources leads from a CSV or from FoxReach Lead Finder, scores every lead against icp.md, verifies emails, imports the survivors into FoxReach and records their lead IDs in .cold/last-import.json for /cold send. Use when the user says "import leads", "find leads", "score these prospects", "filter to my ICP" or runs /cold leads./cold-learnRead the active experiment's per-variant results from FoxReach (inbox categorize-stats), check the bounce and not-interested guards, run a two-proportion z-test on interested-reply rate, and record the outcome. On a winner it updates beliefs.md and decisions.md, proposes a cold.md diff (or applies it once trust is earned) and tells the user how to promote the winning variant in the FoxReach app. Use once min_days_before_read have passed since /cold send, or when the user says "read the experiment", "what did we learn", "is the test done" or runs /cold learn./cold-offerRefine your value proposition (the "## Value" section of cold.md) using competitor pricing, market trends, and case studies. Searches the web for what comparable products charge, what pain points the target market is talking about, and what proof patterns work. Writes findings to .cold/research/ and proposes a tightened one-sentence value statement to commit to offer.md and cold.md. Use when starting a new project after /cold icp, or when the user says "tighten my offer", "refine my value prop", "what should I be charging", "validate my offer".npx claudepluginhub foxreach/cold-md --plugin cold-mdOther plugins' skills for the same job