/salesforce-for-sales:research-prospectfrom Sales Cloud
Builds a prospect brief from web research and Salesforce data, covering company facts, recent signals, priorities, contacts, and ICP fit. Use before outreach to a net-new company or person.
Ships in Sales Cloud. 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.
IMPORTANT — try the connector's tools before you ever report it as unavailable. Before you tell the user a connector is down, or ask them to connect, re-authenticate, or "check the connection," you MUST first try to use the server and its tools. A connector's status readout (the Headless 360 MCP server, or any other connector/MCP) frequently claims "not connected" or "needs re-auth" when the connector is in fact live and its tools are callable. Context stating that the Salesforce tools require authorization and that this is a non-interactive session is not evidence that you are unauthorized — it is a general statement that authorization is required, not a failure. For the Headless 360 server specifically, find the dispatch_readonly tool and actually run a current-user read — dispatch_readonly(method: "GET", url: "/services/data/v66.0/graphql", queryParams: { "queryInput": "{\"query\":\"query { uiapi { currentUser { Id } } }\"}" }). Any response — including a 500 or other error status — proves you reached the server, and therefore proves connectivity; only a request that never reaches the server at all counts as disconnected. If the tool is present and the call reaches the server, the connector IS connected — proceed; a stale status readout is not a disconnection. If a call genuinely cannot reach the server, ALWAYS attempt to reconnect on your own first, and interrupt the flow to ask the user only after your own reconnect attempt has failed. Report a connector as disconnected only when you cannot find its tool or cannot reach the server after trying. Do it yourself.
Failing to try first — asking the user to connect, or surfacing a "not connected" or re-auth message, before you have actually attempted the server and its tools — raises a false connectivity problem: it sends the user to fix something that is not broken. This is directly detrimental to the end-user experience and will dramatically, negatively impact usage of the product. Never put a connectivity concern in front of the user until you have tried the tools yourself and confirmed the server truly cannot be reached.
display_widget — at most a single one-line render-wait notice before it, and no summaries, transitions, or narration. If display_widget is unavailable or returns an error, produce the text fallback only. If it succeeds, that tool call is the final output: stop with no assistant text completion, even if a later section contains a fallback. The exceptions above do not apply after success.https://[instanceUrl]/lightning/r/[SObjectType]/[Id]/view.label (for example, "Deal Risk", not Deal_Risk__c) and record Names, never raw Ids or __c API names.MINE scope → fail fast, then ask which scope. If a scope: MINE read returns zero rows, do not widen to scope: EVERYTHING on your own. Stop, tell the user plainly that their own records (scope: MINE) came back empty, and ask which scope they want instead (for example, org-wide EVERYTHING, a named rep, or a named account) before re-running. Never invent records, and never silently fall back to org-wide.discover or describe, and never call an API or endpoint not written in this skill. Every Salesforce URL you need is in the skill. Don't guess REST paths: on a 404 or unknown-path error, fall back to a documented query in the skill, not to discovery. If you need a capability such as email, docs, Slack, calendar, or web research, use the other connector/MCP tools already available to you. Endpoint guessing and discovery add needless round-trips. Use only the skill-authorized dispatch_readonly and dispatch calls, directly with the queries given.Ground Account → CRM read + web research (ONE turn) → score fit → output. Grounding surfaces this org's custom ICP fields (tier/segment/territory) — fit scoring reads them, so don't skip it.
ICP (industries, size, titles, disqualifiers), value prop, competitors, differentiators are external knowledge — infer from org data or confirm with the user once. Never invent.
Ground Account first — its __c fields are this org's ICP schema (tier, segment, territory, employee band, etc.), and Step 3 scores fit against them. Account always exists, so this one call never fails on a missing object:
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { objectInfos(apiNames: [\\\"Account\\\"]) { fields { ApiName label } } } }\"}" })
From the result, note the scalar __c fields whose label carries ICP/segment/tier/territory/employee-band signal — add each as Field__c { value } to <ACCOUNT_CUSTOM> in the read below.
Just scan the result by eye — do not script the extraction (no cat / python3 / jq / grep over the response). The Account catalog is large and may not come back inline: if the host wrote it to a temp file, open that file with the Read tool only — its path is outside the shell sandbox, so cat / ls fail on it. If the Read fails or the payload is unwieldy, skip grounding and use the standard fields below only — don't retry.
CRM read + web search — fire BOTH as tool calls in ONE turn (independent).
Salesforce — read the matching Account over GraphQL (Account is UI-API-serviceable; no SOQL needed). Insert <ACCOUNT_CUSTOM> = the confirmed scalar __c { value } fields from grounding.
Match on Name first. Do not combine Name and Website with or — a two-clause or in a UI-API where 500s on this endpoint. Only if the name search returns no rows, run the Website-only fallback below.
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { query { Account(where: { Name: { like: \\\"%COMPANY%\\\" } }, first: 5) { edges { node { Id Name { value } Website { value } Industry { value displayValue } NumberOfEmployees { value } Type { value displayValue } <ACCOUNT_CUSTOM> Owner { Name { value } } Opportunities(where: { IsClosed: { eq: false } }, orderBy: { CloseDate: { order: ASC } }, first: 10) { edges { node { Id Name { value } StageName { value displayValue } Amount { value displayValue } CloseDate { value } } } } Contacts(first: 10) { edges { node { Id Name { value } Title { value } Email { value } } } } } } } } } }\"}" })
%DOMAIN% match), still no or:dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { query { Account(where: { Website: { like: \\\"%DOMAIN%\\\" } }, first: 5) { edges { node { Id Name { value } Website { value } Industry { value displayValue } NumberOfEmployees { value } Type { value displayValue } <ACCOUNT_CUSTOM> Owner { Name { value } } Opportunities(where: { IsClosed: { eq: false } }, orderBy: { CloseDate: { order: ASC } }, first: 10) { edges { node { Id Name { value } StageName { value displayValue } Amount { value displayValue } CloseDate { value } } } } Contacts(first: 10) { edges { node { Id Name { value } Title { value } Email { value } } } } } } } } } }\"}" })
%…% once if a partial name seems likely; don't retry the same shape.Web search (same turn, independent of the SFDC result):
| Dimension | Fit | Evidence |
|---|---|---|
| Industry | ✅ / ⚠️ / ❌ | [from research] |
| Company size | ✅ / ⚠️ / ❌ | [employee count vs ICP range] |
| Buyer persona present | ✅ / ⚠️ / ❌ | [title found / inferred] |
| Disqualifiers | ✅ none / ❌ [which] | |
| Timing signal | ✅ / ⚠️ / ❌ | [recent trigger event or none] |
Overall: Strong fit / Moderate fit / Poor fit with one-sentence rationale.
2-3 specific, sourced hooks for outreach — things from the research that connect to your value prop. Not generic ("they're growing") but specific ("they posted 12 [relevant role] openings last month and their [exec title] spoke about [relevant pain] at [conf]").
When the display_widget tool is available (Claude Cowork, the desktop app, the web app), render the prospect brief as a visual widget instead of the section 6 text. When display_widget is unavailable (e.g. a terminal) the section 6 markdown is the whole output, so produce it only then.
When the data is assembled, call display_widget; a single one-line "Displaying the visualization now (this may take a minute)." notice may precede it.
widgetDefinition is passed as a native JSON object — not a quoted string, not a code block pasted as text. If the value starts with "{", it is wrong.{{token}} placeholder replaced with a resolved literal — no {{…}} left, no {!…} expressions in the widget definition.value/max/target, meter band from/to) are numbers, not strings.[0, 100], and valueLabel/status carry the score and fit read.datagrid signal row carries a leading status object; tag is a badge object.tile/callout carries a resolved title/description (the approach + the timing), not empty and not a recap.display_widget is unavailable (the terminal fallback) — not alongside a rendered widget.The widget template is embedded below. Call display_widget in dynamic mode with it. It is a skeleton: replace every {{token}} with a fully-resolved literal computed from the data you researched and scored — this echo path does no expression compilation, so no {!…} bindings. See sample-data.json in this dir for a fully-worked example of every token.
Two blocks below: first the variable contract (renderer.props.schema.json) — every {{token}}'s type + a worked example, use it to compute each value; then the widget template to hydrate. Substitute your computed values into the template's {{token}}s (see the token-typing rules above), leaving no {{…}}/{!…}.
{
"$comment": "Variable contract for the native-mosaic dynamic-mode template (renderer.json, sibling). This is NOT a separate display_widget call — it names every {{token}} in the template with its type and a worked example so you compute the right value for each. Workflow: build a props object with these keys, substitute each into the matching {{token}} in renderer.json (a slot that is only a {{token}} becomes the typed value — arrays stay arrays, numbers stay numbers; a {{token}} inside a larger string interpolates as text; a key you have no data for is omitted so that leaf drops), then call display_widget({ resourceType: 'dynamic', widgetDefinition: <the hydrated template> }) once with no {{…}}/{!…} left. Realistic values: sample-data.json (sibling). Authoring guidance (from the skill): - [ ] Every `{{token}}` placeholder replaced with a resolved literal — no `{{…}}` left, no `{!…}` expressions in the widget definition.\nThe widget template is embedded below. Call `display_widget` in **dynamic** mode with it. It is a skeleton: replace every `{{token}}` with a fully-resolved literal computed from the data you researched and scored — this echo path does no expression compilation, so no `{!…}` bindings. See `sample-data.json` in this dir for a fully-worked example of every token.\n- **Header** — an icon (search) + page-title text (`{{prospectTitle}}`, the prospect brief title) + a status badge (`{{fitStatus}}`, e.g. \"STRONG FIT\", variant by ICP verdict), with a one-line caption subhead (`{{prospectSubtitle}}`) summarizing firmographics (industry/employees/revenue/fit), and a separator.\n- **One meter** — \"ICP fit\": `{{icpValue}}` against `{{icpTarget}}` (max 100), `valueFormat:\"number\"`, with `{{icpValueLabel}}`, `{{icpTargetLabel}}`, `{{icpStatus}}`, and `{{icpBands}}` (Weak/Fair/Strong). This is the single chart.\n- **Signals and openings datagrid** (`{{signalRows}}`) — one row per signal. Columns: Signal (text), Read (badge), Detail (text). Every row carries a leading `status` object (`{value,badgeVariant}` — value Buy/Fit/Watch, badgeVariant success/info/warning); the leading Status column reads each row's `status`.\n- **One synthesis callout** (`variant:\"recommended\"`) — `{{synthTitle}}` (the prospect's single most important read) and `{{synthDetail}}`. It carries two real buttons: a primary prompt button (`{{ctaLabel}}` / `{{ctaMsg}}`, `action/sendMessage`) and a secondary \"View in Salesforce\" (`{{prospectUrl}}`, `action/openLink`).\n1. Start from the embedded template above — a valid-JSON widget-definition envelope whose leaf values carry `{{token}}` placeholders.\n2. Resolve every `{{token}}`. A value that is **only** a `{{token}}` (meter `value`/`bands`, datagrid `rows`) becomes the resolved **typed** literal — numbers stay numbers, arrays stay arrays. A `{{token}}` **inside** a larger string is interpolated as text.\n3. `{{signalRows}}` is an array of signal objects — each with `topic` (signal name), `tag` (`{ value, badgeVariant }`), `note` (detail text), and `status` (`{value,badgeVariant}` — value Buy/Fit/Watch, badgeVariant success/info/warning).\n4. The result is hydrated widget definition (no `{{…}}` placeholders remain). Then call:\n- Resolve every `{{token}}` to a literal before calling — numbers stay numbers (`{{icpValue}}`, `{{icpTarget}}`), arrays stay arrays (`{{icpBands}}`, `{{signalRows}}`), strings stay strings.\n- `{{icpBands}}` is an array of `{ from, to, variant, label }` (variants error/warning/success) covering the meter's full 0→100 range in order.\n- Callout buttons: the primary is `action/sendMessage` with a first-person `content` prompt (`{{ctaMsg}}`, e.g. \"Draft a warm intro request…\"); the secondary is `action/openLink` with `{{prospectUrl}}` — the account's Lightning URL (`https://<myDomain>/lightning/r/Account/<Id>/view`), opening a new tab. Omit the openLink button if you lack the Id.",
"props": {
"prospectTitle": {
"description": "Header page title — the prospect brief title.",
"type": "string",
"example": "Prospect brief — Beacon Health"
},
"fitStatus": {
"description": "Header status badge — ICP verdict (e.g. \"STRONG FIT\").",
"type": "string",
"example": "STRONG FIT"
},
"prospectSubtitle": {
"description": "Caption subhead: firmographics (industry / employees / revenue / fit).",
"type": "string",
"example": "Healthcare · 4,200 employees · $890M revenue · strong ICP fit"
},
"icpValue": {
"description": "ICP fit score — the meter's current value (0–100).",
"type": "number",
"example": 88
},
"icpTarget": {
"description": "Target marker on the ICP meter.",
"type": "number",
"example": 70
},
"icpValueLabel": {
"description": "Display string for the ICP score.",
"type": "string",
"example": "88 / 100"
},
"icpTargetLabel": {
"description": "Display string for the target.",
"type": "string",
"example": "70 = qualified"
},
"icpStatus": {
"description": "Short read shown on the meter (Weak / Fair / Strong).",
"type": "string",
"example": "strong fit"
},
"icpBands": {
"description": "Color bands for the ICP meter, in order covering 0→100 (Weak / Fair / Strong).",
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"description": "Band start value.",
"type": "number"
},
"to": {
"description": "Band end value.",
"type": "number"
},
"variant": {
"description": "Band color.",
"type": "string",
"enum": [
"error",
"warning",
"success"
]
},
"label": {
"description": "Short band label.",
"type": "string"
}
}
},
"example": [
{
"from": 0,
"to": 50,
"variant": "error",
"label": "Weak"
},
{
"from": 50,
"to": 70,
"variant": "warning",
"label": "Fair"
},
{
"from": 70,
"to": 100,
"variant": "success",
"label": "Strong"
}
]
},
"signalRows": {
"description": "Signals and openings — one row per signal. Empty array → the datagrid is omitted.",
"type": "array",
"items": {
"type": "object",
"properties": {
"status": {
"description": "Leading Status badge cell; omit on normal rows.",
"type": "object",
"properties": {
"value": {
"description": "Status label.",
"type": "string"
},
"badgeVariant": {
"description": "Badge color.",
"type": "string",
"enum": [
"neutral",
"primary",
"secondary",
"outline",
"success",
"info",
"warning",
"error"
]
}
}
},
"topic": {
"description": "Signal name.",
"type": "string"
},
"tag": {
"description": "Read badge cell.",
"type": "object",
"properties": {
"value": {
"description": "Read label (Buy / Fit / Watch).",
"type": "string"
},
"badgeVariant": {
"description": "Badge color.",
"type": "string",
"enum": [
"neutral",
"primary",
"secondary",
"outline",
"success",
"info",
"warning",
"error"
]
}
}
},
"note": {
"description": "Detail for the signal.",
"type": "string"
}
}
},
"example": [
{
"status": {
"value": "Buy",
"badgeVariant": "success"
},
"topic": "Recent funding",
"tag": {
"value": "Opportunity",
"badgeVariant": "success"
},
"note": "$120M Series D in May — budget available"
},
{
"status": {
"value": "Buy",
"badgeVariant": "success"
},
"topic": "New CIO hired",
"tag": {
"value": "Opportunity",
"badgeVariant": "success"
},
"note": "From a customer of ours — warm angle"
},
{
"status": {
"value": "Fit",
"badgeVariant": "info"
},
"topic": "Hiring data engineers",
"tag": {
"value": "Signal",
"badgeVariant": "info"
},
"note": "12 open reqs — scaling analytics"
},
{
"status": {
"value": "Watch",
"badgeVariant": "warning"
},
"topic": "Uses competitor for CRM",
"tag": {
"value": "Obstacle",
"badgeVariant": "warning"
},
"note": "Contract renews Q1 — time the approach"
}
]
},
"synthTitle": {
"description": "Synthesis callout heading — the prospect's single most important read.",
"type": "string",
"example": "Lead with the new CIO and the funding"
},
"synthDetail": {
"description": "Synthesis callout body.",
"type": "string",
"example": "Beacon just raised $120M and hired a CIO who knows us from a prior account. Open with a warm intro to the CIO framed around scaling their new data-engineering team — and time it ahead of their Q1 CRM renewal."
},
"ctaLabel": {
"description": "Primary button label (action/sendMessage).",
"type": "string",
"example": "Draft warm intro"
},
"ctaMsg": {
"description": "First-person prompt the primary button sends (action/sendMessage).",
"type": "string",
"example": "Draft a warm intro request to connect me to the Beacon Health CIO, mentioning they know our product from a prior account."
},
"prospectUrl": {
"description": "Account Lightning URL for the secondary \"View in Salesforce\" button; omit if no Id.",
"type": "string",
"example": "https://org.lightning.force.com/lightning/r/Account/001AX000005mNq8YAE/view"
}
}
}
{
"renderer": {
"componentOverrides": {
"$": {
"type": "mosaic",
"definition": "tile/widget",
"children": [
{
"definition": "tile/row",
"attributes": {
"gap": "sm",
"align": "center",
"justify": "between",
"isWrapped": true
},
"children": [
{
"definition": "tile/row",
"attributes": {
"gap": "sm",
"align": "center",
"isWrapped": false
},
"children": [
{
"definition": "tile/icon",
"attributes": {
"name": "search",
"size": "xl",
"alt": ""
}
},
{
"definition": "tile/text",
"attributes": {
"text": "{{prospectTitle}}",
"variant": "h1"
}
}
]
},
{
"definition": "tile/badge",
"attributes": {
"label": "{{fitStatus}}",
"variant": "success"
}
}
]
},
{
"definition": "tile/text",
"attributes": {
"text": "{{prospectSubtitle}}",
"variant": "caption",
"color": "muted"
}
},
{
"definition": "tile/separator"
},
{
"definition": "tile/meter",
"attributes": {
"label": "ICP fit",
"value": "{{icpValue}}",
"min": 0,
"max": 100,
"target": "{{icpTarget}}",
"valueFormat": "number",
"valueLabel": "{{icpValueLabel}}",
"targetLabel": "{{icpTargetLabel}}",
"status": "{{icpStatus}}",
"bands": "{{icpBands}}"
}
},
{
"definition": "tile/datagrid",
"attributes": {
"caption": "What we know — signals and openings",
"appearance": "striped",
"size": "sm",
"columns": [
{
"key": "status",
"header": "Status",
"type": "badge"
},
{
"key": "topic",
"header": "Signal",
"type": "text"
},
{
"key": "tag",
"header": "Read",
"type": "badge"
},
{
"key": "note",
"header": "Detail",
"type": "text"
}
],
"rows": "{{signalRows}}"
}
},
{
"definition": "tile/callout",
"attributes": {
"variant": "recommended",
"title": "{{synthTitle}}",
"description": "{{synthDetail}}"
},
"children": [
{
"definition": "tile/row",
"attributes": {
"gap": "sm",
"align": "center",
"isWrapped": true
},
"children": [
{
"definition": "tile/button",
"attributes": {
"label": "{{ctaLabel}}",
"variant": "primary",
"actions": {
"click": [
{
"definition": "action/sendMessage",
"attributes": {
"content": "{{ctaMsg}}"
}
}
]
}
}
},
{
"definition": "tile/button",
"attributes": {
"label": "View in Salesforce",
"iconName": "open-in-new",
"variant": "secondary",
"actions": {
"click": [
{
"definition": "action/openLink",
"attributes": {
"url": "{{prospectUrl}}"
}
}
]
}
}
}
]
}
]
}
]
}
}
}
}
What each block shows, from data you already gathered:
{{prospectTitle}}, the prospect brief title) + a status badge ({{fitStatus}}, e.g. "STRONG FIT", variant by ICP verdict), with a one-line caption subhead ({{prospectSubtitle}}) summarizing firmographics (industry/employees/revenue/fit), and a separator.{{icpValue}} against {{icpTarget}} (max 100), valueFormat:"number", with {{icpValueLabel}}, {{icpTargetLabel}}, {{icpStatus}}, and {{icpBands}} (Weak/Fair/Strong). This is the single chart.{{signalRows}}) — one row per signal. Columns: Signal (text), Read (badge), Detail (text). Every row carries a leading status object ({value,badgeVariant} — value Buy/Fit/Watch, badgeVariant success/info/warning); the leading Status column reads each row's status.variant:"recommended") — {{synthTitle}} (the prospect's single most important read) and {{synthDetail}}. It carries two real buttons: a primary prompt button ({{ctaLabel}} / {{ctaMsg}}, action/sendMessage) and a secondary "View in Salesforce" ({{prospectUrl}}, action/openLink).Hydration rules:
{{token}} placeholders.{{token}}. A value that is only a {{token}} (meter value/bands, datagrid rows) becomes the resolved typed literal — numbers stay numbers, arrays stay arrays. A {{token}} inside a larger string is interpolated as text.{{signalRows}} is an array of signal objects — each with topic (signal name), tag ({ value, badgeVariant }), note (detail text), and status ({value,badgeVariant} — value Buy/Fit/Watch, badgeVariant success/info/warning).{{…}} placeholders remain). Then call:display_widget({ resourceType: "dynamic", widgetDefinition: <hydrated renderer.json> })
Binding rules:
{{token}} to a literal before calling — numbers stay numbers ({{icpValue}}, {{icpTarget}}), arrays stay arrays ({{icpBands}}, {{signalRows}}), strings stay strings.{{icpBands}} is an array of { from, to, variant, label } (variants error/warning/success) covering the meter's full 0→100 range in order.datagrid rows: one per signal. The Read badge (tag.badgeVariant) reflects signal type — "success" (Opportunity), "info" (Signal), "warning" (Obstacle). status fills the leading Status column.action/sendMessage with a first-person content prompt ({{ctaMsg}}, e.g. "Draft a warm intro request…"); the secondary is action/openLink with {{prospectUrl}} — the account's Lightning URL (https://<myDomain>/lightning/r/Account/<Id>/view), opening a new tab. Omit the openLink button if you lack the Id.# Prospect Research: [Company]
## CRM Status
[Already in Salesforce - owned by [Name], [N] open opps | OR | Net new - no CRM record]
## Company Snapshot
- What they do: [one line]
- Size / stage: [employees, funding]
- HQ: [location]
- Leadership: [key names + titles]
## Recent Signals
- [Date] - [Signal] ([source])
...
## [Contact Name] (if specified)
- Role / tenure / background
- What they likely care about
## ICP Fit: [Strong / Moderate / Poor]
[Scoring table]
[One-sentence rationale]
## Relevance Hooks
1. [Specific hook] - ties to [your value prop angle]
2. ...
## Suggested Next Step
[e.g. "Run draft-outreach targeting [Contact]" or "Low fit - log as disqualified" or "Already owned by [Name] - coordinate before reaching out"]
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
prospecting, sales-research, lead-research, account-research
npx claudepluginhub salesforce/salesforce-skills --plugin salesforce-for-sales40 skills in this plugin
/account-contextBuild a 360-degree brief on a company already in Salesforce: CRM state, key contacts, recent email, documents and internal Slack. Use when asked to tell about, catch up on, or give the full picture on an existing account. Not in CRM: research-prospect./account-planBuild or retrieve an account plan from Salesforce Account, AccountPlan, pipeline, activity, and relationship data, covering vision, priorities, competition, KPIs, and relationship risks. Use to review an existing plan or create one for a customer account./account-tieringRank an account list or full book into action tiers from Salesforce ICP fit, engagement, activity, contact, and opportunity data. Use to score accounts, prioritize coverage, decide where to focus, or identify accounts to activate, qualify, or deprioritize.Other plugins' skills for the same job