/crew:send-listfrom crew
Build a list of people for any use case (a Lookout audience, a warehouse query, Clay, a CSV, a CRM), review it with the user, and send the approved people once to a Crew Agent, which decides and writes the outreach. People can be known by email or by LinkedIn profile. Use when someone wants to choose who a Crew Agent works on, once, for example "send this Lookout audience to Crew", "top accounts that visited our site but Crew is not working on", "data leaders at these companies", or "this list from my CRM". A warehouse table or query that should keep reaching an Agent on a schedule, or a list of more than a few hundred people, belongs to the connect-warehouse skill instead.
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.
1 build the list ─▶ 2 drop people Crew already works on ─▶ 3 user reviews ─▶ 4 pick the Agent ─▶ 5 webhook ─▶ 6 dry run ─▶ 7 send
Any source can make the list. Crew needs each row to be one person, known by a LinkedIn profile or an email:
| Column | |
|---|---|
linkedin_url or email | One is required. A linkedin.com/in/ profile makes a LinkedIn lead, for a HeyReach Agent. An email, with no profile, makes an email lead, for a Customer.io Agent. A row can have both; then the profile is its identity and the email goes to the person's profile too. |
name | Required for a LinkedIn lead. Recommended for an email lead: without it the Agent has no name to greet. |
id | Optional. The person's user id in your product. Set it when the person is already known to Crew under that id, so the list joins what Crew knows about them. A Customer.io channel in User ID mode sends to the person with this id. |
title, company, company_domain | Recommended. company_domain lets the Agent research the account. |
why_now | Recommended. One line on why this person fits, such as Leads data and analytics at Acme. It goes to the Agent and can end up in the message, so write only what is fine to say to the person. Put what you saw them do (visits, pages, trials) in evidence.json, never here. |
| any other column | Goes to the Agent as an event property. |
A list of accounts rather than people has a company_domain column and no person: one row per company, sent with --entity account. Crew keys it account:<domain>, its identify carries the company's name and domain, and it is what the expand-audience skill's Expand Agent triggers on. A row that also has a linkedin_url or email is a person: send it in person mode.
Keep the files in ~/crew-lists/<slug>/. Make ~/crew-lists and every folder in it 0700, and every file 0600. Do not put them in a repo.
Ask which people the user wants and how to rank them. If a recipe in references/recipes/ fits, follow it:
If no recipe fits, build the list with the MCPs that are connected. To find people at companies, use references/clay-people.md. Write the list to list.csv.
This skill sends a list once, through Claude. Every row passes through the chat, so keep a list to a few hundred people. A bigger list, or one that should keep sending the people who join it later, belongs in a scheduled RudderStack Reverse ETL sync: the connect-warehouse skill. A list built here from a warehouse query becomes that sync's model.
Save each stage, then show the funnel. Write each stage's result to its own file in the list folder, together with the setting it used (for example, accounts.csv for "3 or more days"). After the list is built, show one line with the count after each stage, such as 258 accounts → 72 not customers → top 5 → 10 found in Clay → 9 people. If the user changes one setting ("5 days, not 3", "1 per account"), run again from that stage only, and use the saved files for the stages before it.
Keep the evidence, by source. For each person, write to evidence.json, keyed by linkedin_url, or by email for an email lead, one entry per source that put them on the list: source (Lookout, Warehouse, Clay, Crew, ...), why (one sentence on what this source says about the person), facts (the numbers or fields behind it), and basis (how you got it: the database and table, the filter or query, the window). The user should be able to check each one against the source. This file is not sent to the Agent. When the user asks why someone is on the list, answer from it.
For each row, find the person in Crew with users_list. q matches part of a person's user id, email or name, so check that a result is the same person.
id: search q set to the id first, and keep only a result whose user id equals it exactly. A person Crew knows from product events can have that id and recent decisions but no stored email, so searching by the email alone would miss them, and the send would still reach their existing record./in/) for a LinkedIn lead.If Crew knows the person, call analytics_list filtered by that person. Drop the row if the person has a decision in the last 30 days, from any Agent. Add this check to the funnel, and add a Crew entry to evidence.json (for example, why: Not known to Crew, basis: users_list and analytics_list, last 30 days). Tell the user how many rows you dropped and why.
If this session has the Artifact tool, review on a page:
capabilities: {"db": {}}, icon list, and a one-sentence description of the list. Write the URL to state.json in the list folder. Step 6 uses the same page, so do not publish it again.ArtifactData batch. Make one set per person at rows/<n>, with n, name, title, company, linkedin_url or email, why_now, keep: true, and sources (that person's entries from evidence.json, as an array). Then set review/state to {"name": "<list name>", "stage": "list", "status": "open"}.rows (list) and review/state (get). If status is not approved, ask whether the user has finished. Drop the rows with keep: false, take each edited why_now, and write list.csv again.Without the Artifact tool, show the table in the chat: name, title, company, why_now. The user removes or edits rows there.
Either way, send nothing until the user says the list is final.
Call agent_list, then agent_get for the Agent the user names. From its body, read:
--event. Do not invent an event name. send_leads.py refuses a name Crew would refuse (workspace-setup's references/events-catalog.md → "Events Crew refuses").when condition on the trigger. Each row must meet it. If a row does not, add the column or drop the row.channels_get for the channel of each action.
--identifier (usually linkedin_url). Email leads cannot be sent this way.send_leads.py writes from the email column. In User ID mode it sends to the Customer.io person whose id is the row's id, so every row needs an id that Customer.io knows. --identifier does not apply.identify. So the send reaches every Agent that triggers on --event or on identify, not just this one (a custom webhook sends only the --event). From agent_list and agent_get, find them all. If any of them is Live, stop. For a Live Agent on --event, use an event only this Agent triggers on. For a Live Agent on identify, which every rudderstack-format send reaches, go ahead only with the user's yes for that Agent acting on these people too.If no Agent fits, build one with the workspace-setup skill, and give it a trigger event named for the list, such as Free Tier Upgrade Offer. Nothing else sends that event, so the Agent decides only on the people you send.
Send to the webhook the Agent's trigger already comes in on, if there is one. Otherwise use a Lists webhook.
webhooks_list shows each one's format and mapping). The MCP never returns its credential. If ~/crew-lists/webhooks/<webhookId>.env already exists, use it. Otherwise, a webhook linked to RudderStack shows a RudderStack ingest URL with writeKey= on Crew's Webhooks page; webhooks that aren't linked show their token only once, at creation, and can't be read again, so use a Lists webhook (next bullet). Never ask for the ingest URL in the chat: the write key in it lets anyone send events. The user writes the file themselves, for example (umask 077; mkdir -p ~/crew-lists/webhooks; pbpaste | sed 's/^/CREW_INGEST_URL=/' > ~/crew-lists/webhooks/<webhookId>.env) after copying the URL, and you check only that it exists (test -s). For a custom webhook, also write body.json: a template that puts each field where the webhook's mapping reads it (see scripts/send_leads.py for $event, $id, $row and $row.<column>).Lists webhook. If one of the webhookIds from webhooks_list already has a file ~/crew-lists/webhooks/<webhookId>.env, use it. Otherwise call webhooks_create with {"name": "Lists", "format": "rudderstack"} and write CREW_WEBHOOK_URL and CREW_WEBHOOK_TOKEN to that file as workspace-setup's references/events-catalog.md → "Test events from Claude Code" step 2 says, with the URL exactly as answered. The token is shown once. Never print it. If the create response is lost, call webhooks_list again and find the webhook by name before you create another.One file per webhook keeps each Crew workspace on its own webhook. Never write a send script of your own: send_leads.py covers both kinds.
Call preview_tryEvent once with 5 rows as a list in event, or every row if the list has 5 or fewer. Pick rows from different companies. Send the Agent's skillId and version, and for each row an event with the trigger event, the row's other columns as properties, and identifiers: {"<identifier>": "<linkedin_url>"} for a LinkedIn lead, or {"email": "<email>"} for an email lead. For a row with an id, also send userId set to it: the dry run then reads what Crew knows about that person, and a Customer.io channel in User ID mode has someone to send to. The rows run at once, so the call takes about as long as one row; never call preview_tryEvent once per row. A dry run sends nothing, but each row uses model budget. If the user asks for more rows, dry-run more.
The user reviews each message. On the review page, update each dry-run row with dry_run: {"decision", "action", "message", "reason"}, verdict: null and note: "". Then set review/state to stage copy and status open. The user marks each message Good or Needs work and writes a note. Without the page, or if a write to it is refused, show the full messages in the chat and ask the same.
If a message needs work, change the Agent in a draft. Turn the notes into one edit of the Agent's body. Change only the parts the notes are about, usually the message instructions or the Agent's prompt, and show the user what you will change. Then call agent_get and read body.version. The draft needs the complete body, often 9 KB or more, and a body typed out by hand failed to parse 3 times in a row in a test. So build it in a file: save the published body to agent/published.json in the list folder, make the edit with a short Python script that writes agent/draft.json, and check that the file parses. Then call draft_createForSkill with exactly that file's text as body and expectedPublishedVersion = that body.version. Call preview_tryEvent with the new draftId on the same rows, again as one list. Put the new messages on the page, clear the verdicts, and ask again. If the list is the problem, not the copy, go back to step 3.
When the user approves the messages, call draft_publish. Do this only for a Shadow or Off Agent; Crew refuses it for a Live Agent, so a human publishes that draft in the Crew editor. Publishing changes what the Agent writes to everyone it decides on, so publish only after the user says yes.
python3 ${CLAUDE_SKILL_DIR}/scripts/send_leads.py --file list.csv --event "<trigger>" --identifier <identifier> --check
python3 ${CLAUDE_SKILL_DIR}/scripts/send_leads.py --env ~/crew-lists/webhooks/<webhookId>.env --file list.csv --event "<trigger>" --identifier <identifier> --pass shadow
For an email-only list, leave out --identifier. For a custom webhook, add --body body.json to both. For a list of accounts (accounts.csv with a company_domain column and no person), add --entity account to both. --only <profile slug, email or id> sends one person, which is a good first send. --limit N sends the first N valid rows and --skip N leaves them out, so a list goes out as a sample and then the rest without a repeat. --key profile keys a LinkedIn lead without an id by its canonical profile URL instead of linkedin:<slug>: the key a custom webhook mapping mints a person under, so use it when the same people can also arrive through such a mapping (the expand-audience skill's loopback).
Run each send as exactly one python3 ${CLAUDE_SKILL_DIR}/scripts/send_leads.py ... command, with nothing chained before or after it, and let Claude Code ask before it runs: the prompt shows the command, and a list goes out in at most two sends (--only first, then the rest). Do not suggest a permissions.allow rule for the script: you can write the webhook file it reads, so a standing rule would let a list go anywhere without the user seeing it. If Claude Code or auto mode blocks a send, give the user the command, with the path written out, to run themselves. Do not edit their settings. The script sends only to the webhook named in a file in ~/crew-lists/webhooks/ that only the user can read, only over https, never follows a redirect, and prints the host before it sends. In claude.ai chat, the code sandbox reaches only the hosts the organization allows; if the send cannot connect there, run it from Claude Code.
--check sends nothing. It lists the rows it will skip and says how many leads go by LinkedIn profile and how many by email. If you send the same --pass again within about a day, Crew ignores it as a duplicate (it remembers a message id for roughly 24 hours, so a later repeat is a new event). The message id is built from the event name with case and punctuation folded (Partner.Account and partner account read the same), the pass and the person, so two events whose names differ only that way, sent to one person under one pass, collide: give them different passes. When a human takes the Agent Live, send again with --pass live. After about 3 minutes, analytics_list for the Agent must show one decision per row. Report the counts: sent, skipped, decided, and decided with no action.
analytics_approve, analytics_editAndSend or analytics_reject unless the user asks for that decision in this conversation.~/crew-lists/.What SKILL.md sets; muted values are Claude Code's defaults
10 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".Other plugins' skills for the same job
npx claudepluginhub rudderlabs/crew-plugin --plugin crew