/salesforce-for-sales:team-pipelinefrom Sales Cloud
Builds a team pipeline brief from Salesforce data showing closed revenue, forecast, swing deals, and coaching needs by rep. Useful for pipeline reviews and manager team analysis.
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 → resolve team → read opps → analyze → output. No per-opp SF follow-ups — the team opps read has the data.
Ground User (for team resolution) and Opportunity (for pipeline fields). Both always exist. Fire as two separate calls, not one combined call — combined User+Opportunity ObjectInfo commonly exceeds the tool's char limit, and recovering from that overflow (temp file outside the bash mount, failed cat, retry) costs far more than just issuing two calls up front. Same turn, same shape, one apiNames each:
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { objectInfos(apiNames: [\\\"User\\\"]) { fields { ApiName label dataType relationshipName } } } }\"}" })
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { objectInfos(apiNames: [\\\"Opportunity\\\"]) { fields { ApiName label dataType relationshipName } } } }\"}" })
If either still overflows, the result auto-persists to a temp file outside the bash mount — don't shell to it (cat/python3/ls will fail, it's not on that mount). Read it back with the Read tool only, and go straight to that — don't retry bash first. If the Read tool can't load it either, skip custom-field grounding for that object and proceed with standard fields only; don't keep retrying.
From the result: (a) scalar __c fields (quota, forecast, risk, etc.) — take their { value }; (b) each lookup field's exact relationshipName to span for a related record's Name.
"my team" (default) — reps where Manager = current user:
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { query { User(where: { and: [{ ManagerId: { eq: \\\"<CURRENT_USER_ID>\\\" } }, { IsActive: { eq: true } }] }, first: 50) { edges { node { Id Name { value } Email { value } <USER_CUSTOM> } } } } } }\"}" })
A named list, role, or territory (disambiguate — do NOT probe): shared/demo orgs collide hard on name (one name → base user plus regional variants like (AM)/(BK)/(SG)). Pull enough to disambiguate at a glance — never pull each candidate's pipeline to guess which is real:
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { query { User(where: { Name: { like: \\\"%REP%\\\" } }, first: 10) { edges { node { Id Name { value } Title { value } IsActive { value } } } } } } }\"}" })
One match per name → take its Id. Several → list them (Name · Title · active? · Id) and ask the user to pick; the suffix/title is usually the tell. Don't guess.
Insert <USER_CUSTOM> = confirmed scalar __c { value } fields (quota, etc.). Capture the Ids — they become the owner filter in step 3.
Do not pull the whole team's book as raw records. A team of 5+ reps with 200 open opps returns well past the point a tool result overflows and auto-persists to a temp file (then you can't shell to it — it's outside the bash mount; same overflow pipeline-review hit). Salesforce aggregates server-side — use it for the scoreboard math; only a small, bounded sample of concrete deals comes back as raw records, for swing-deal specifics and at-risk flags.
Fire these as tool calls in one turn (independent, all filtered by the team-user Ids from step 2). Insert <OPP_CUSTOM> = confirmed scalar __c { value } fields (risk, coaching signals, etc.) on the sample query only — aggregates don't need them.
Date filters take a DateInput object, never a bare string (gte: \"2026-07-01\" fails WrongType … must be an object type). For the current-quarter bounds below, use the exact-date form on both ends: { value: \"YYYY-MM-DD\" }. Multiple ops on one field (gte/lte) AND automatically — no and: [...] wrapper needed around them.
Rollup by forecast category (GraphQL aggregate — folded into the top-N sample request below). ExpectedRevenue (Amount × Probability, a standard field) sums straight to the Weighted column — no client-side probability math. This rollup rides in the sample query (below) as an aggregate sibling of the detail read — one dispatch returns both. It yields one row per rep × forecast category. Per rep: Commit $ = that rep's Commit-category Amount.sum; Best-case $ = the BestCase row; Weighted = Σ ExpectedRevenue.sum across that rep's rows.
Closed-won this period, per rep (GraphQL aggregate). Feeds the scoreboard's Closed column:
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { aggregate { Opportunity(where: { OwnerId: { in: [<TEAM_USER_IDS>] }, IsWon: { eq: true }, CloseDate: { gte: { value: \\\"<Q_START>\\\" }, lte: { value: \\\"<Q_END>\\\" } } }, groupBy: { OwnerId: { group: true } }) { edges { node { aggregate { OwnerId { value } Id { count { value } } Amount { sum { value } } } } } } } } }\"}" })
Top-N sample per rep + forecast-category rollup (ONE request). The rollup gives the scoreboard numbers; the sample gives named deals for the swing-deal writeups, at-risk flags, hygiene flags, and Monday questions below. Cap the sample hard (first: 60, biggest first) so it never overflows — this is a sample, not the book. orderBy takes only ONE field — a multi-field array (orderBy: [{...},{...},{...}]) fails WrongType ... must be an object type; sort by Amount alone and group by owner client-side from the Owner.Name on each row. The forecast-category rollup rides in this same request as an aggregate sibling of the sample — read the per-rep Commit/Best-Case/Weighted numbers from its edges, the named deals from the sample rows.
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { query { Opportunity(where: { OwnerId: { in: [<TEAM_USER_IDS>] }, IsClosed: { eq: false }, CloseDate: { gte: { value: \\\"<Q_START>\\\" }, lte: { value: \\\"<Q_END>\\\" } } }, orderBy: { Amount: { order: DESC } }, first: 60) { edges { node { Id Name { value } StageName { value displayValue } ForecastCategory { value } Amount { value displayValue } CloseDate { value } NextStep { value } LastActivityDate { value } CreatedDate { value } Probability { value } <OPP_CUSTOM> Account { Name { value } } Owner { Name { value } } } } } } aggregate { Opportunity(where: { OwnerId: { in: [<TEAM_USER_IDS>] }, IsClosed: { eq: false }, CloseDate: { gte: { value: \\\"<Q_START>\\\" }, lte: { value: \\\"<Q_END>\\\" } } }, groupBy: { OwnerId: { group: true }, ForecastCategory: { group: true } }) { edges { node { aggregate { OwnerId { value } ForecastCategory { value } Id { count { value } } Amount { sum { value } } ExpectedRevenue { sum { value } } } } } } } } }\"}" })
Map each row's OwnerId → rep name using the User list from step 2 — no extra lookup needed.
If a GraphQL aggregate query errors (some orgs throw grouping a picklist/Id field), don't retry the same shape — fall to the SOQL GROUP BY equivalent, which groups cleanly. For the combined sample request specifically, the grouped aggregate sibling (OwnerId/ForecastCategory) can take the whole request down with it — re-fire the sample as the detail query alone (drop the aggregate block) to keep the named deals, and get the per-rep rollup from this SOQL:
dispatch_readonly(method: "GET", url: "/services/data/v63.0/query",
queryParams: { "q": "SELECT OwnerId, ForecastCategory, COUNT(Id) cnt, SUM(Amount) amt, SUM(ExpectedRevenue) weighted FROM Opportunity WHERE OwnerId IN (<TEAM_USER_IDS>) AND IsClosed = false AND CloseDate >= <Q_START> AND CloseDate <= <Q_END> GROUP BY OwnerId, ForecastCategory" })
(Closed-won the same way: swap IsClosed = false for IsWon = true and drop the ForecastCategory group.)
Hygiene counts (GraphQL aggregate, full book — feeds step 6, not sample-limited). The top-60 sample above skews toward the biggest deals; these three counts cover every open opp so stale/overdue/blank-NextStep flags aren't undercounted. <STALE_CUTOFF> = today − 14 days, <TODAY> = today, both as DateInput ({ value: "YYYY-MM-DD" }):
-- Stale 14d+, per rep
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { aggregate { Opportunity(where: { OwnerId: { in: [<TEAM_USER_IDS>] }, IsClosed: { eq: false }, LastActivityDate: { lte: { value: \\\"<STALE_CUTOFF>\\\" } } }, groupBy: { OwnerId: { group: true } }) { edges { node { aggregate { OwnerId { value } Id { count { value } } } } } } } } }\"}" })
-- Past CloseDate, per rep
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { aggregate { Opportunity(where: { OwnerId: { in: [<TEAM_USER_IDS>] }, IsClosed: { eq: false }, CloseDate: { lt: { value: \\\"<TODAY>\\\" } } }, groupBy: { OwnerId: { group: true } }) { edges { node { aggregate { OwnerId { value } Id { count { value } } } } } } } } }\"}" })
-- Blank NextStep, per rep
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { aggregate { Opportunity(where: { OwnerId: { in: [<TEAM_USER_IDS>] }, IsClosed: { eq: false }, NextStep: { eq: null } }, groupBy: { OwnerId: { group: true } }) { edges { node { aggregate { OwnerId { value } Id { count { value } } } } } } } } }\"}" })
Fire these in the same turn as the rollup/closed-won/sample queries above. If aggregate errors on any of the three, fall to SOQL COUNT(Id) ... GROUP BY OwnerId with the matching WHERE (same fallback pattern as the rollup above).
Perf guardrail: Do NOT fire per-opp SF follow-ups (EmailMessage, Task, OpportunityFieldHistory) — the rollups + sample above already have the data. Email/doc/Slack searches for flagged accounts only (step 3b).
Issue step 3 and step 3b as tool calls in a single turn. Fire email/doc/Slack searches for top 3–5 at-risk accounts only (keyed on account name, not the SF result):
Use whatever Slack search tools are available. If none present, skip silently. Cite source + date for anything you use.
For each rep, compute and assign a one-word Call:
| Rep | Closed | Commit | Weighted | vs Quota | Call |
|---|
If quotas aren't in SFDC, ask once and remember for the session.
Identify the 3–5 opps that swing the number: large Amount × late stage × rep-needs-it × closing this period. For each, write three lines:
The "do this" is the point. Be specific enough that the leader can act without further research.
For each Behind or At-risk rep, write ONE question phrased the way the leader would actually ask it in a 1:1 or Slack. Grounded in a specific deal, conversational, not interrogative. Examples: "where's the [Account] security review at — saw it's been a couple weeks" / "do you need anything from me on [Account] or is it just waiting on them."
Search Slack for each rep's recent posts in the team channel from config — if they already flagged something, reference it instead of re-asking.
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.The widget template is embedded below — resolve its tokens and call display_widget({ resourceType: "dynamic", widgetDefinition: <hydrated> }) once (see the widgetDefinition param for token-resolution rules).
Chart series are FORECAST categories (Proposal / Negotiation / Closing), not sales stage — chartSeries has three {name, data} objects, each data array holding one raw-dollar value per rep, matching chartCategories order. Datagrid rows: plan/closed/commit/gap are raw currency numbers, attain is 0–100 percentage; set a leading status object ({value,badgeVariant} — value Behind/At risk/Ahead, badgeVariant error/warning/success) only on risky rows.
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): `title` (page title string) · `headerStatus` (badge label) · `subtitle` (one-line summary) · `chartCaption chartCategories chartSeries` (chart title, rep names array, series array of `{name, data}` objects) · `meterLabel meterValue meterMax meterTarget meterValueLabel meterTargetLabel meterStatus meterBands` (meter scalars + bands array) · `datagridCaption datagridRows` (grid title + rows array, each row: `{rep (plain string — format as the rep's display name (e.g. \"Priya Nair\"); names must be plain strings, not objects: use `Owner.Name.value` from the SF GraphQL response), plan, closed, commit, gap, attain, status?:{value,badgeVariant}}`) · `calloutTitle calloutDescription ctaPrimaryLabel ctaPrimaryMsg ctaSecondaryLabel ctaSecondaryMsg` (callout text + button labels/actions).",
"props": {
"title": {
"description": "Page title for the team-pipeline view.",
"type": "string",
"example": "Team pipeline — Q3, week 6 of 13"
},
"headerStatus": {
"description": "Header status badge label.",
"type": "string",
"example": "BEHIND PACE"
},
"subtitle": {
"description": "One-line summary.",
"type": "string",
"example": "$8.8M closed of $13.0M plan · 7 reps · 49 days left"
},
"chartCaption": {
"description": "Caption for the by-rep pipeline chart.",
"type": "string",
"example": "Open pipeline by rep and stage"
},
"chartCategories": {
"description": "Rep names for the chart's x-axis, as strings.",
"type": "array",
"items": {
"type": "string"
},
"example": [
"Priya",
"Marcus",
"Dana",
"Tom",
"Sara",
"Jon"
]
},
"chartSeries": {
"description": "Chart series — one object {name, data} per metric.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Series name.",
"type": "string"
},
"data": {
"description": "Values per rep — a number array matching chartCategories.",
"type": "array",
"items": {
"type": "number"
}
}
}
},
"example": [
{
"name": "Proposal",
"data": [
900000,
1100000,
700000,
600000,
500000,
400000
]
},
{
"name": "Negotiation",
"data": [
500000,
700000,
900000,
500000,
400000,
300000
]
},
{
"name": "Closing",
"data": [
200000,
300000,
400000,
300000,
300000,
200000
]
}
]
},
"meterLabel": {
"description": "Label for the team meter.",
"type": "string",
"example": "Team attainment"
},
"meterValue": {
"description": "Team value — the meter's current value.",
"type": "number",
"example": 8.8
},
"meterMax": {
"description": "The meter's max.",
"type": "number",
"example": 13
},
"meterTarget": {
"description": "Target marker on the meter.",
"type": "number",
"example": 13
},
"meterValueLabel": {
"description": "Display string for the value.",
"type": "string",
"example": "$8.8M of $13.0M plan — 68%"
},
"meterTargetLabel": {
"description": "Display string for the target.",
"type": "string",
"example": "$13.0M plan"
},
"meterStatus": {
"description": "Short read shown on the meter.",
"type": "string",
"example": "behind pace"
},
"meterBands": {
"description": "Color bands for the meter, in order covering 0→max.",
"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": 7.8,
"variant": "error",
"label": "Behind"
},
{
"from": 7.8,
"to": 11.7,
"variant": "warning",
"label": "At pace"
},
{
"from": 11.7,
"to": 13,
"variant": "success",
"label": "Ahead"
}
]
},
"datagridCaption": {
"description": "Caption for the rep datagrid.",
"type": "string",
"example": "Per-rep Q3 scoreboard, worst gap to plan first"
},
"datagridRows": {
"description": "Reps — one row per rep. 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"
]
}
}
},
"rep": {
"description": "Rep's display name, a plain string (use Owner.Name.value — never a nested object).",
"type": "string"
},
"plan": {
"description": "Rep's plan / quota (number).",
"type": "number"
},
"closed": {
"description": "Closed amount (number).",
"type": "number"
},
"commit": {
"description": "Commit amount (number).",
"type": "number"
},
"gap": {
"description": "Gap to plan (number).",
"type": "number"
},
"attain": {
"description": "Attainment % (number).",
"type": "number"
}
}
},
"example": [
{
"status": {
"value": "Behind",
"badgeVariant": "error"
},
"rep": "Priya Nair",
"plan": 2000000,
"closed": 820000,
"commit": 640000,
"gap": -540000,
"attain": 41
},
{
"status": {
"value": "At risk",
"badgeVariant": "warning"
},
"rep": "Marcus Lee",
"plan": 2000000,
"closed": 1180000,
"commit": 500000,
"gap": -320000,
"attain": 59
},
{
"status": {
"value": "At risk",
"badgeVariant": "warning"
},
"rep": "Dana Ruiz",
"plan": 1800000,
"closed": 1240000,
"commit": 420000,
"gap": -140000,
"attain": 69
},
{
"rep": "Tom Alvarez",
"plan": 1800000,
"closed": 1520000,
"commit": 300000,
"gap": 20000,
"attain": 84
},
{
"rep": "Sara Kim",
"plan": 1800000,
"closed": 1610000,
"commit": 260000,
"gap": 70000,
"attain": 89
},
{
"status": {
"value": "Ahead",
"badgeVariant": "success"
},
"rep": "Jon Webb",
"plan": 1800000,
"closed": 1900000,
"commit": 180000,
"gap": 280000,
"attain": 106
}
]
},
"calloutTitle": {
"description": "Synthesis callout heading — the team's key read.",
"type": "string",
"example": "3 deals decide the quarter"
},
"calloutDescription": {
"description": "Synthesis callout body.",
"type": "string",
"example": "Cobalt Robotics ($1.8M, Priya, stalled 12d), Meridian Health ($2.4M, Marcus, exec sponsor unconfirmed), and Alto Financial ($0.9M, Dana, 9d stale). Slipping all three drops the team to 61% attainment."
},
"ctaPrimaryLabel": {
"description": "Primary button label (action/sendMessage).",
"type": "string",
"example": "Draft team review note"
},
"ctaPrimaryMsg": {
"description": "First-person prompt the primary button sends (action/sendMessage).",
"type": "string",
"example": "Draft a team review note covering the 3 deals that decide the quarter, with specific unblock recommendations for each rep."
},
"ctaSecondaryLabel": {
"description": "Secondary button label (action/sendMessage).",
"type": "string",
"example": "Open pipeline summary"
},
"ctaSecondaryMsg": {
"description": "First-person prompt the secondary button sends (action/sendMessage).",
"type": "string",
"example": "Open a summary of the team's pipeline by stage, highlighting coverage gaps and where reps are thin."
}
}
}
{
"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"
},
"children": [
{
"definition": "tile/icon",
"attributes": {
"name": "dashboard",
"size": "xl",
"alt": ""
}
},
{
"definition": "tile/text",
"attributes": {
"text": "{{title}}",
"variant": "h1"
}
}
]
},
{
"definition": "tile/badge",
"attributes": {
"label": "{{headerStatus}}",
"variant": "warning"
}
}
]
},
{
"definition": "tile/text",
"attributes": {
"text": "{{subtitle}}",
"variant": "caption",
"color": "muted"
}
},
{
"definition": "tile/separator"
},
{
"definition": "tile/column",
"attributes": {
"gap": "md"
},
"children": [
{
"definition": "tile/chart",
"attributes": {
"chartType": "column",
"caption": "{{chartCaption}}",
"categories": "{{chartCategories}}",
"series": "{{chartSeries}}",
"stackMode": "stacked",
"valueFormat": "compact",
"showValues": false
}
},
{
"definition": "tile/meter",
"attributes": {
"label": "{{meterLabel}}",
"value": "{{meterValue}}",
"min": 0,
"max": "{{meterMax}}",
"target": "{{meterTarget}}",
"valueFormat": "currency",
"valueLabel": "{{meterValueLabel}}",
"targetLabel": "{{meterTargetLabel}}",
"status": "{{meterStatus}}",
"bands": "{{meterBands}}"
}
}
]
},
{
"definition": "tile/datagrid",
"attributes": {
"caption": "{{datagridCaption}}",
"appearance": "striped",
"size": "sm",
"defaultSort": {
"key": "gap",
"direction": "asc"
},
"columns": [
{
"key": "status",
"header": "Status",
"type": "badge"
},
{
"key": "rep",
"header": "Rep",
"type": "avatar"
},
{
"key": "plan",
"header": "Plan",
"type": "currency",
"align": "right"
},
{
"key": "closed",
"header": "Closed",
"type": "currency",
"align": "right",
"sortable": true
},
{
"key": "commit",
"header": "Commit",
"type": "currency",
"align": "right"
},
{
"key": "gap",
"header": "Gap to plan",
"type": "currency",
"align": "right",
"sortable": true
},
{
"key": "attain",
"header": "Attainment",
"type": "databar",
"target": 100
}
],
"rows": "{{datagridRows}}"
}
},
{
"definition": "tile/callout",
"attributes": {
"variant": "warning",
"title": "{{calloutTitle}}",
"description": "{{calloutDescription}}"
},
"children": [
{
"definition": "tile/row",
"attributes": {
"gap": "sm",
"align": "center",
"isWrapped": true
},
"children": [
{
"definition": "tile/button",
"attributes": {
"label": "{{ctaPrimaryLabel}}",
"variant": "primary",
"actions": {
"click": [
{
"definition": "action/sendMessage",
"attributes": {
"content": "{{ctaPrimaryMsg}}"
}
}
]
}
}
},
{
"definition": "tile/button",
"attributes": {
"label": "{{ctaSecondaryLabel}}",
"variant": "secondary",
"actions": {
"click": [
{
"definition": "action/sendMessage",
"attributes": {
"content": "{{ctaSecondaryMsg}}"
}
}
]
}
}
}
]
}
]
}
]
}
}
}
}
Self-verification before calling:
value/max/target/band bounds are dollar numbers (millions) and bands tile 0 → low% → mid% → plan with target reachable below max.stackMode: "stacked", three series (Proposal / Negotiation / Closing) with one raw-dollar value per rep, matching categories length/order.{ value, display } — the type annotation handles formatting).status object ({value,badgeVariant} — value Behind/At risk, badgeVariant error/warning); healthy/ahead rows carry status:{value:"Ahead",badgeVariant:"success"} or omit both.display_widget SUCCEEDED# Team Pipeline - [Period]
Target $[X] | Closed $[X] | [N] days left
## Scoreboard
| Rep | Closed | Commit | Weighted | Gap | Call |
|---|---|---|---|---|---|
| [Name] | $[X] | $[X] | $[X] | $[X] | Behind |
...
| **Team** | **$[X]** | **$[X]** | **$[X]** | **$[X]** | |
## Deals That Decide the Quarter
**[Account]** - $[X], [Stage], [Rep]
Why it matters: [the math]
Risk: [specific, evidenced]
→ **Do this:** [one concrete leader action]
[repeat 3–5x]
## Risk Flags
- Pushed dates: [N] opps moved CloseDate this week
- Stale 14d+: [N] opps - [Account, Account, ...]
- Past close date: [N] opps need hygiene before the call
## Monday Questions
- **[Rep]:** "[one question, conversational, deal-grounded]"
- **[Rep]:** "[...]"
## If you want to dig
- Per-rep detail: ask "just [rep name]"
- Full at-risk list: run pipeline-review with team scope
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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