/gtm-skills:email-generationfrom gtm-skills
Renders cold-outreach email sequences from fixed templates and contact CSV data with deterministic variant routing and placeholder substitution. No per-row LLM calls.
Ships in gtm-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.
Render a sequence from a fixed template set (sequence.md from email-prompt-building) and a contact CSV whose {{input_fields}} are already populated. This skill is mechanical: route variants, substitute placeholders, render to the target format, write the output CSV.
There is no LLM call here. All strategic reasoning happened at design time (email-prompt-building); all per-row intelligence happened upstream in normalization + enrichment, which filled the input fields. If an email is wrong, the template or the input data is wrong — fix the source, re-render.
This skill is a renderer, not a reasoner and not a runner.
template set (sequence.md) ─┐
├──▶ route variant ─▶ substitute ─▶ render to target ──▶ emails CSV
contact CSV (fields filled) ┘
| Input | Source | Required |
|---|---|---|
| Template set | The campaign's sequence file from email-prompt-building | yes |
| Contact CSV | Input fields already filled by normalization + enrichment | yes |
The contact CSV must carry every field in the template's Input Fields contract, plus the routing key(s). If a declared field is missing for a row, apply that field's declared fallback; if the row can't be salvaged, drop it and report.
Rendering is where this pipeline actually breaks. "Substitute the placeholders" hand-waves the hard part — newlines and escaping. This contract is mandatory.
The template uses two break types and the renderer MUST preserve the distinction:
\n\n (blank line) = paragraph break\n (single) = soft line break inside a paragraph (used deliberately)| Target | Newline handling | Escaping |
|---|---|---|
review (emails.md / CSV body column) | keep \n\n and \n literal | none — but the CSV writer MUST quote the multiline cell |
html (Instantly / sequencer) | \n → <br /> (so \n\n → <br /><br />) | HTML-escape & < > in the content |
plain (plain-text channels) | keep literal | none |
customer_segment).{{fields}} into the plain-text body.Why this order: if you HTML-escape the template before substitution, a field value like Johnson & Johnson slips in unescaped and breaks the HTML. Escaping the final assembled string covers both template copy and substituted values.
import html
def render(body: str, target: str) -> str:
"""body: assembled plain-text (variant chosen, {{fields}} substituted).
target: 'review' | 'html' | 'plain'."""
if target in ("review", "plain"):
return body
if target == "html":
# escape content per line, THEN join with <br /> — never escape the tags
return "<br />".join(html.escape(line) for line in body.split("\n"))
raise ValueError(target)
\n → <br>: the email arrives as one wall of text. Every HTML sequencer needs the conversion.& < > break the HTML.&amp;. Escape exactly once, as the last step.body column shift rows/columns. Use a real CSV writer.{{ remain in any output before writing. A leftover {{company_name}} means the field wasn't passed (e.g. Touch 3 not receiving company_name).{{field}} and every routing key.For each contact, for each touch:
review, html).{{ remains.Subject lines: first touch only; follow-ups carry an empty subject (thread continuation).
email, first_name, company_name, touch, variant, subject, body, body_html, gaps. The gaps column records which fields fell back (e.g. industry=fallback).Write both into the GTM project's campaign-assets location. See references/render_emails.py for the reference renderer.
{{ across all rows\n\n and \n both survive into the HTML target as <br /><br /> / <br />& / < renders escaped (not raw, not double-escaped)gaps populated where fallbacks firedWhen the user flags a bad email:
email-prompt-building) or a data problem (→ fix normalization/enrichment so the input field is correct).Before writing the output CSV, drop any contact whose email is on the GTM project's suppression list (unsubscribes, bounces, retired addresses). The project owns where that list lives; this skill only honors it.
If no sequence.md exists for the campaign, use the email-prompt-building skill to design one. Do not improvise copy in this skill — this skill only renders.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub extruct-ai/gtm-skills --plugin gtm-skills21 skills in this plugin
/account-researchDeep-research a single target account into a decision-ready dossier: the entity tree, the buying units and decision-makers, live signals (open/closed roles, leadership moves, news, tech stack), and the entry angle. Powered by Extruct Deep Research — ONE cited report per account, no table/column setup. Optionally enrich buyer emails via email-search. Use to prep for a sales conversation, build a buyer map, find who to sell to at a company, or surface why-now signals for ONE account (not a list). Triggers on: "research this account", "account research", "buyer map", "who do we sell to at", "prep for the meeting with", "deep dive on", "map the org at", "find decision makers at", "why now at", "research [company] before the call".
/atomic-messageDraft ONE cold-outreach message from a signal + persona + channel: a single cold email, a LinkedIn note, or a follow-up. Generates one primary draft plus 1-2 variants, then runs a self-check lint. Reads voice, sender identity, positioning, proof, and banned words from the company context file. This is the single-message craft engine; it does NOT build sequences, cadences, or multi-touch arcs (email-prompt-building owns sequencing). Triggers on: "write a message", "draft a message", "atomic message", "write a single email", "one-off email", "write a linkedin message", "linkedin note", "linkedin dm", "write a follow-up", "follow-up message", "draft outreach", "rewrite this message", "write a cold email" (one message, not a sequence).
/campaign-sendingUpload finalized emails for sequencing and sending. Maps fields to lead schema, creates or finds campaigns, uploads leads with dedup, and provides a pre-send verification checklist. Triggers on: "upload to instantly", "run instantly", "send emails", "instantly campaign", "push to instantly", "start campaign", "load into instantly".
/competitor-monitoringSet up and run competitive intelligence monitoring. Discover competitors via user input, lookalike search, web research, or G2/review sites, then create an Extruct company table with research columns for blog, social media, news, key people, and business model tracking. Re-run columns to refresh monitoring data. Triggers on: "competitor monitoring", "track competitors", "competitive intelligence", "monitor competitors", "competitor analysis", "competitive landscape", "who are my competitors", "competitor tracking".
/context-buildingBuild and maintain a global company context file that all other GTM skills read from. Captures product info, voice rules, ICP, win cases, proof library, campaign history, hypotheses, and DNC lists. Supports four modes: create (new context), update (append to existing), call recording capture (extract signals from transcripts), and feedback loop (import campaign results). Triggers on: "company context", "update context", "build context", "ICP", "win cases", "campaign history", "call recording", "feedback loop", "DNC list".
/email-prompt-buildingDesign a cold-outreach email sequence as a FIXED TEMPLATE SET — real, human-approved copy with {{input_field}} placeholders and variant-routing rules. Reads the company context file and campaign research, explores angles, and commits to copy at design time. The output is rendered later by the email-generation skill via deterministic substitution — no per-row LLM. Triggers on: "cold email", "outreach prompt", "email campaign", "new vertical email", "draft email prompt", "email sequence", "email template".
Other plugins' skills for the same job