/crew:linkedin-campaignfrom crew
Runs a LinkedIn outbound campaign end to end with Crew - finds and verifies real leads with treg, creates the launch's HeyReach campaigns through the HeyReach MCP, gives each lead a LinkedIn member id so Crew research enrichments can personalise, then builds, dry-runs and Shadows one Crew Agent over HeyReach through the linkedin-outreach skill. Use when someone wants Crew to find the leads for a LinkedIn campaign for a product or launch, or to set up research enrichments on LinkedIn-only leads. When they already have the people (a CSV, a CRM export, their own connections or warm contacts), use linkedin-outreach instead, even when they call it lead generation.
Ships in crew. 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.
Four pieces: treg for leads, the HeyReach MCP for campaigns, the Crew MCP for everything it exposes, and the sibling skill linkedin-outreach for the Agent itself. This skill adds the steps before it and one in the middle. It works on any Crew workspace.
First: a list, or a search? This skill is for Crew finding the leads. If the user already has
the people (a CSV, a CRM export, their own connections or warm contacts), stop here and load
linkedin-outreach: it builds the same Agent from their list and needs no treg or jq. When the
request doesn't say which, ask that one question before checking or installing anything.
Check these once the user has confirmed that Crew finds the leads; when one is missing, stop and
tell the user what to set up. What only the lead search needs (Python 3, jq, treg) is checked at
step 2, not here.
<scripts> is this skill's scripts/ folder,
<outreach> is linkedin-outreach's folder and <send-list> is send-list's; run each script by
absolute path with python3 -I (on Windows often py -3 -I: workspace-setup → "Scripts").../linkedin-outreach/SKILL.md from
this skill's folder.agent_create, webhooks_list and the like. An "Agent setup" token covers every call here; a
"People" token covers all but webhooks_create; an OAuth role needs skills:write, users:read,
users:write, mcp:read, webhooks:read and webhooks:write. A tool missing from the list means
the token lacks its permission.channels_list). With none, the user connects their
LinkedIn account as linkedin-outreach → "Connect LinkedIn, step by step" says (Crew then runs
HeyReach and makes the campaigns). Three workspace features: the HeyReach channel with its
LinkedIn account method, assumed on (the Crew MCP cannot read it, so never call it off on a
guess; ask RudderStack only when the Channels page offers no LinkedIn account); Profile enrichment, which runs
the research enrichments; and the built-in web tools (web_search, web_fetch), which they
search with. Workspace features says whether a new workspace
has each, who changes it, and how to tell. When one is missing, tell the user what to ask for and
carry on with what works. Without the web tools, use a search tool from mcp_listTools, or
research comes back empty. Without Profile enrichment, research can't run, so skip everything that
only feeds it: the custom identity webhook in step 6 (create or reuse only the lead webhook), steps
7 and 9, enrichmentIds in step 8, and the research table in step 10. Step 3's member ids are then
not needed.jq: checked when step 2 starts, never
installed before. Without treg the user brings leads.csv (and linkedin-outreach is then the
shorter path), step 3 cannot fetch member ids, and research enrichments are skipped.auth_method: "api_key"): the HeyReach MCP for step 5,
or the team's HeyReach API key in <launch>/heyreach.env (HEYREACH_API_KEY=, put there by the
user, never pasted into chat). Without either, the user creates the campaigns from your plan. A
managed channel (auth_method: "managed") needs neither.Keep working files in ~/crew-campaigns/<launch>/, outside any git repo, made private
(umask 077; mkdir -p ~/crew-campaigns/<launch>: folders 0700, files 0600). Don't use a session
scratchpad: it can be wiped on restart. Webhook tokens, shown only once, go in each webhook's own
file under ~/crew-lists/webhooks/ (step 6).
balance before and after, and report what the run cost.VAR=… command included): the scripts
read each webhook's file themselves, and the HeyReach key is read inside the one shell command that
uses it.webhooks_create also sets up a RudderStack source and returns its write
key once: never repeat it.webhooks_create (step 6). If that tool is missing
(the Crew MCP token lacks webhooks:write), ask for an "Agent setup" token, or with the user's
opt-in drive the UI: references/browser-steps.md.Brief. Read the product page(s), its pricing page and its docs. Write: the offer in one
sentence; the facts a reply may state (only what the pages say; "no price published" when there
is none; when the product is a plan feature, the price fact is the plan and how it is priced, such
as "Enterprise plan, custom price"; leave out one customer's metrics); the ICP; the outcome and its
success event; the lead event name (<Launch> Campaign Lead; say Beta only when the page says
beta). List the customers the product pages show (the logo wall) and ask whether to exclude them.
Confirm with the user.
Leads. First check what the search needs, now and not earlier: Python 3, jq and treg
(signed in, with balance). Install what is missing only with the user's yes, or stop here and
hand a list they have to linkedin-outreach.
references/lead-sourcing.md: three stages, each one
shell command that runs its treg calls in parallel and prints one table. Call the endpoints it
lists directly; catalog_search only when one fails. For a demo, use its Demo mode: one
command, about a minute. Write
leads.csv: name,linkedin_url,title,company,company_domain[,talking_point]. Take
company_domain only from a source in this run (a search result, the job post, the company's
LinkedIn page), never from memory; leave it blank when none gave it. Research reads it, so a
wrong domain sends research to the wrong company.
Verify. Stage 2 runs lookup_profiles.py on every candidate: it confirms each current role
and country and fetches the LinkedIn memberId. Keep only CURRENT rows (people leave and Google
snippets lag: one "Head of CRM" had left a month earlier, and 2 of 14 candidates in the second run
had moved company), then rerun it on leads.csv for member_ids.csv (cached, free).
Show the user the lead table: name, title, company, signal, source, and what the search cost.
Setup checks. linkedin-outreach step 1 (a missing lead webhook is fine: step 6 creates
it), then <send-list>/scripts/send_leads.py --check. If another running
Agent triggers on a journey event (LinkedIn Connection Accepted, LinkedIn Outreach Not Sent,
LinkedIn Reply Received), do not change it: tell the user both Agents will act on that event and
that it must be settled before Live. The same goes for an Agent on identify, which steps 9 and 11
send one of per lead; if it is Live, send nothing without the user's yes.
HeyReach campaigns. On a managed channel, skip this step: Crew already made one campaign per
LinkedIn action (Connection request, Message, View profile, Follow, Like a recent post), and
channels_resources lists them with the fields each action binds (linkedin-outreach step 2).
Offer the warm-up moves from that list. With the team's own HeyReach: Crew sequences and HeyReach executes one touch, so create one
single-step campaign per Agent move that needs one. Connect and Message are the base; offer the
warm-up moves too (view their profile, follow them, like their latest post) and let the user
pick. Replies are direct messages and need none. Drop leads already active in another campaign.
Choose the moves, senders, schedule and settings for this launch, show the plan, and create them
after a yes: references/heyreach-campaigns.md. This is
linkedin-outreach step 2, done for the user.
Identity webhook. A research enrichment runs only for a person with an external id, an email
or a phone. A LinkedIn URL is a send address and does not count, so without this step every
research enrichment is skipped. Reuse a custom-format webhook whose mapping is exactly the one
below (webhooks_list, status active). Only when none matches, create it with webhooks_create
(needs the workspace's Profile enrichment feature); the mapping is active from the start:
{
"name": "<Launch> leads (custom)",
"format": "custom",
"mapping": {
"eventNamePath": "event",
"messageIdPath": "messageId",
"identifiers": [{ "name": "user_id", "path": "userId" }],
"externalIds": [{ "namespace": "linkedin.member_id", "path": "memberId" }]
}
}
Each webhook gets its own file, ~/crew-lists/webhooks/<webhookId>.env, with CREW_WEBHOOK_URL
and CREW_WEBHOOK_TOKEN, made and filled as workspace-setup's references/events-catalog.md →
"Test events from Claude Code" step 2 says. webhooks_create returns the full url and the token
once, and neither can be fetched again: write them straight into the file and never repeat them
in a reply. A retry after a lost response makes a second webhook, so check webhooks_list by name
first. No lead webhook either? Create it the same way with
{"name": "<Launch> leads", "format": "rudderstack"} and no mapping. A webhook can be reused only
while its file is on this machine.
Enrichments. references/enrichments.md: preview each definition
on two leads with subject.externalIds = {"linkedin.member_id": "<id>"}, then enrichment_create
without stopping: the yes before step 6 covers it, so the list of writes says "created after a
preview", never "shown to you first". Show the previews with the Dry Run (step 10).
Agent. linkedin-outreach step 5: fill its references/agent-body.json with the step-5
campaign ids, both enrichment ids in enrichmentIds, and the copy rules in
references/agent-copy.md (meeting times stay a Reply prompt rule; as a
hard constraint it held demo replies). Add each warm-up move the user picked in step 5 as its own
Act, Option and action (references/heyreach-campaigns.md, "Add a
move to the Agent").
Seed. While the Agent is still Off, seed_profiles.py sends each lead's identify to the lead
webhook and one <Launch> Lead Profile event with the member id to the custom one. It reads both
step-6 files itself, so no token is printed:
python3 -I <scripts>/seed_profiles.py --env ~/crew-lists/webhooks/<lead webhookId>.env \
--custom-env ~/crew-lists/webhooks/<custom webhookId>.env \
--leads leads.csv --member-ids member_ids.csv --identifier <profile_url_identifier> \
--event "<Launch> Campaign Lead" --profile-event "<Launch> Lead Profile"
<profile_url_identifier> is the HeyReach channel's settings.profile_url_identifier
(channels_list, usually linkedin_url). users_list must then show every lead with a
linkedin.member_id.
Dry Run. preview_tryEvent with a list of events for up to five leads (it enriches anyone with no current result)
with their real userId (linkedin:<slug>) and their profile URL under identifiers. Add one synthetic
lead that must be held, and one is_connection: true variant to see the Message copy. Then dry-run
the journey on one of them: LinkedIn Connection Accepted, LinkedIn Outreach Not Sent with
reason_code: "AlreadyAConnection", and LinkedIn Reply Received with a question, "not right
now", "please stop messaging me", a demo request, an integration not in the facts, and a price
question (properties as in linkedin-outreach step 7). Replies only go wrong here: in the
second run a Reply agreed to "Thursday afternoon" and the judge passed it. Before Shadow a lead has
no history, so a "not right now" may hold here and still get a kind reply after Shadow; judge
those on step 11's re-run. Put the leads' events in one preview_tryEvent call as a list and the
journey events in a second: a list runs at once, so a call takes about as long
as one run, where one call per lead took minutes. A partial enrichment result expires 15
minutes after it is written, so refresh again if the journeys run later.
Show the user four things: a research table (per lead, the enrichment facts that came back,
and which came back empty or refused); a Dry Run table (lead, move, the exact text it wrote or
why it held, and which facts it used: preview_tryEvent does not report them, so read them off the
text); a journey table (event, move, text); and the problems (claimed familiarity, a
sender role or experience the note invents, a company item credited to the person, a property
copied word for word, something private, a wrong hold, no offer where one belongs, a reply that
agrees to a time or answers yes or no to an unlisted fact). Fix the copy in a draft
(draft_createForSkill, draft_save), dry-run the draft, show the tables again for the fixed
leads, and stop for the user's approval.
Shadow. draft_publish, agent_update to shadow, then linkedin-outreach step 7's send
and read, to the lead webhook:
python3 -I <send-list>/scripts/send_leads.py --env ~/crew-lists/webhooks/<lead webhookId>.env \
--file leads.csv --event "<Launch> Campaign Lead" --identifier <profile_url_identifier> --pass shadow
Send all leads if the user asks. Research runs live, so poll analytics about every 60 s for up to 15 min (ten leads took about 3.5 minutes). Then re-run one journey on a lead the pass contacted, and do linkedin-outreach step 8.
Write <launch>/report.md: leads and search cost, HeyReach campaigns (ids, shapes, why),
enrichment definitions and previews, Agent id and prompts, research table, Dry Run table, Shadow
table (move, exact text, enrichment facts used, from analytics_get), journey table, and problems
split into skill / product / data. Leave the Agent in Shadow; ask before Off.
references/agent-copy.md (opens in a new tab)references/browser-steps.md (opens in a new tab)references/enrichments-data.json (opens in a new tab)references/enrichments.json (opens in a new tab)references/enrichments.md (opens in a new tab)references/heyreach-campaigns.md (opens in a new tab)references/lead-sourcing.md (opens in a new tab)scripts/lookup_profiles.py (opens in a new tab)scripts/seed_profiles.py (opens in a new tab)scripts/treg_batch.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub rudderlabs/crew-plugin --plugin crew10 skills in this plugin
/calibrateRun an Agent Calibrate in RudderCrew (Crew) as a conversation - Crew replays about ten of an Agent's recent real decisions through its working copy, the user judges each one, and Crew rewrites the working copy from the answers - one card at a time over the Crew MCP, ending with a Shadow publish or a hand-off to the editor. Use when someone wants to calibrate, tune, check or correct a Crew Agent's decisions, review what an Agent would have done for real people, or teach an Agent from examples; also right after building a new Agent and before running it in Shadow, once its trigger events reach Crew. Trigger even when the user names only the Agent ("calibrate the trial upgrade agent")./connect-rudderstackConnect a customer's existing RudderStack workspace to their Crew (RudderCrew) workspace so real events reach Crew Agents. Checks what is already connected, creates the Crew webhook only when needed, picks the source and its events with the RudderStack MCP, has the user add a RudderStack Webhook destination (in the RudderStack app, with Terraform or with rudder-cli), filters events with a transformation, tests the token before RudderStack depends on it, and checks events arrive on both sides. Use when the user wants to send their RudderStack events, event stream, track calls or a source to Crew, connect or hook RudderStack up to Crew, or when Crew gets no events or an Agent never fires although RudderStack shows traffic. Trigger even when the user names only the customer ("hook Acme's RudderStack up to Crew") without saying "webhook"./connect-warehouseFeed a RudderCrew (Crew) Agent from a warehouse table or SQL model (Snowflake, BigQuery, Redshift, Databricks, Postgres; a dbt or Profiles model) on a schedule through RudderStack Reverse ETL, so each row arrives as an event the Agent decides on. Use it whenever the numbers a RudderCrew decision needs already sit in a warehouse, even when nobody says "warehouse" or "reverse ETL", for example a health tier or renewal risk for every account, a usage drop or a score crossing a line, trial users nearing a limit or accounts reaching a milestone, a nightly churn or lead score a data team writes, a Lookout audience that should keep syncing, or account facts (plan, ARR, owner) every Agent should know about each person. It first picks the shape (decide every run, on a change, or on entering a set). Not for a reviewed list of up to a few hundred people sent once (send-list), wiring RudderStack event streams from SDKs or sources (connect-rudderstack), or building the Agent itself (workspace-setup)./expand-audienceUse when someone has a list of companies, accounts or firms and wants Crew to find the right person at each and reach out, when they say "find the right person at these companies", "expand my audience from this list", "I have a list of companies to reach", or "set up a personal outreach agent from my contacts or LinkedIn connections", when they paste a multi-part outreach plan (contact intelligence, outreach, follow-up, content) and ask whether Crew can do it, or when a visitor-identification feed names companies and they want the people there./lead-scoringBuild a lead-scoring Agent in RudderCrew (Crew) that reads each lead's fit, role and intent separately, picks a tier (Hot, Warm or Cold) with its reasons, and routes it - Hot to sales in Slack, Warm to nurture, Cold recorded - then dry-runs it, runs it in Shadow and measures it against outcomes. Use when someone wants to score, qualify, prioritise or route leads, signups or trial users with Crew; asks which signups sales should call first; wants MQL, PQL, ICP-fit or predictive lead scoring; or wants inbound leads tiered and handed to sales. Trigger even when the user names only the company ("set up lead scoring for Acme") without saying Crew./linkedin-outreachTurn a list of LinkedIn leads into one Crew Agent that works each person toward an outcome over LinkedIn through HeyReach, choosing its next move (connect, message, reply or wait) from everything that has happened with them. Checks the setup, builds and dry-runs the Agent over the Crew MCP, runs it in Shadow on real leads, sends the list, and hands the Live switch to a human. Use whenever someone already has the people (from analysis, a CSV, a CRM export, their own LinkedIn connections or warm contacts) and wants personalised LinkedIn outreach with Crew and HeyReach, even when they call it lead generation. It needs no lead search, treg or jq.