/salesforce-for-sales:daily-briefingfrom Sales Cloud
Creates a daily sales briefing from Salesforce events, deals, account context, commitments, and unread customer email. Useful for a morning rundown combining meetings, pipeline, and inbox priorities.
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 → (calendar + closing-soon + inbox, ALL in ONE turn) → match meetings to accounts (one batched turn) → flag → output. This is today's rundown, not a pipeline review — closing-soon is a small bounded set, so pull concrete rows, don't aggregate.
Ground only Opportunity — it always exists (naming a missing object fails the whole call). Reveals this org's stage/next-step/activity __c names so the closing-soon read can surface them; don't assume names.
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { objectInfos(apiNames: [\\\"Opportunity\\\"]) { fields { ApiName label } } } }\"}" })
Step 1 is the authority on names — use exact strings, never guess. Response can be large on customized orgs — if it truncates and auto-saves to a temp file, don't shell to that file (it's outside the bash mount) and don't read it whole; read it back directly and filter to __c fields whose label matches your keywords. Grounding is best-effort (customs are additive); standard fields (Amount, CloseDate, StageName, NextStep, LastActivityDate) and Account/Owner spans are reliable across orgs.
Five independent reads (plus step 1) — batch them in a single turn. Insert <OPP_CUSTOM> = confirmed __c { value } fields.
2a. Today's calendar — today's meetings for the running user. There is no /connect/calendar/... REST resource on this server — read the calendar from the Event object via GraphQL (below), or a dedicated calendar connector tool if one is present. Do NOT guess a REST path or reach for discover on a 404; the query here is the path.
Shape gotcha — Event.What/Event.Who are polymorphic (Event_What / Event_Who unions) and expose no Name span: What { Name { value } } throws a schema error. Pull the raw WhatId / WhoId scalars instead. Inline fragments on the union do work: What { ... on Opportunity { AccountId { value } } } returns an Opportunity link's account (an empty What for any other type). WhatId is your best account link — a 001… Id is an Account, 006… an Opportunity (use its What.AccountId) — resolve it directly in step 3 (no domain-guessing for those). Get attendee email domains from the Description/Location text, or an EventRelation child if you need invitees.
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { query { Event(scope: MINE, where: { ActivityDate: { eq: { literal: TODAY } } }, first: 50, orderBy: { StartDateTime: { order: ASC } }) { edges { node { Id Subject { value } StartDateTime { value } EndDateTime { value } Location { value } WhatId { value } WhoId { value } What { ... on Opportunity { AccountId { value } } } Description { value } } } } } } }\"}" })
scope: MINE returns events you own (organize). Meetings where you're only an invitee live under EventRelation and may not appear here — an empty calendar usually means that or a genuinely clear day, not a failure; say which. Extract each event's external-attendee email domains, its WhatId, and (for an Opportunity WhatId) its What.AccountId; those are the input to step 3.
2b. Closing soon — the rep's open opps closing in the next 14 days. A small filtered set — pull concrete rows (first: 50), not an aggregate.
Date filters take a DateInput object, never a bare string (gte: \"…\" fails WrongType … must be an object type). Three forms, each nested under a comparison op (gte/lte/eq); multiple ops on one field are AND'd automatically (no and: [...] wrapper):
{ range: { next_n_days: 14 } } / { range: { last_n_days: 30 } }. Keys come in last_n_* / next_n_* / n_*_ago families over days|weeks|months|quarters|years (e.g. last_n_months: 3, n_days_ago: 2).{ literal: LAST_QUARTER } (or THIS_QUARTER, TODAY, …).{ value: \"YYYY-MM-DD\" }.So "closing in the next 14 days" = CloseDate: { gte: { literal: TODAY }, lte: { range: { next_n_days: 14 } } }:
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { query { Opportunity(scope: MINE, where: { IsClosed: { eq: false }, CloseDate: { gte: { literal: TODAY }, lte: { range: { next_n_days: 14 } } } }, first: 50, orderBy: { CloseDate: { order: ASC } }) { edges { node { Id Name { value } StageName { value displayValue } Amount { value displayValue } CloseDate { value } NextStep { value } LastActivityDate { value } <OPP_CUSTOM> Account { Name { value } } } } } } } }\"}" })
(To widen the window, change next_n_days; for a named period the user gives, swap to the exact-date form { value: \"YYYY-MM-DD\" } on both bounds.)
2c. Past due — the rep's open opps with close date in the past (still not closed). Pull concrete rows (first: 50) for the pastDueRows widget datagrid:
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { query { Opportunity(scope: MINE, where: { IsClosed: { eq: false }, CloseDate: { lt: { literal: TODAY } } }, first: 50, orderBy: { CloseDate: { order: ASC } }) { edges { node { Id Name { value } StageName { value displayValue } Amount { value displayValue } CloseDate { value } NextStep { value } LastActivityDate { value } <OPP_CUSTOM> Account { Name { value } } } } } } } }\"}" })
2d. Inbox signal — unread email from the last 48h whose sender domain matches an account you own (email tool). Sender, subject, domain only — don't read bodies (that's inbox-sweep).
2e. Running user — who's the briefing for, their name, and timezone. The running-user record needs no Id — currentUser always resolves to the signed-in user. It requires v66.0 specifically (the GraphQL endpoint otherwise pins v65.0 — bump the version in the URL for this one call):
dispatch_readonly(method: "GET", url: "/services/data/v66.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { currentUser { Id Name { value } Email { value } TimeZoneSidKey { value } } } }\"}" })
Use Name for the briefing title/date header; TimeZoneSidKey to render "today" and last-touch ages in the rep's zone (2b/2c's windows are resolved server-side, so no client date math); Email domain as a fallback when matching your own account inbox in 2d.
Resolve every meeting's account in one query (not per-meeting), OR-ing two kinds of match together: (a) any WhatId from 2a that is an Account (001…) → Id: { eq }, or an Opportunity (006…) → its What.AccountId from 2a, same Id list; (b) the external-attendee domains → Website like. Prefer the direct WhatId link when present — it's exact; fall back to domain match only for meetings with no usable WhatId.
dispatch_readonly(method: "GET", url: "/services/data/v65.0/graphql",
queryParams: { "queryInput": "{\"query\":\"query { uiapi { query { Account(where: { or: [ { Id: { in: [\\\"<WhatId account 001…>\\\"] } }, { Website: { like: \\\"%domain1%\\\" } }, { Website: { like: \\\"%domain2%\\\" } } ] }, first: 25) { edges { node { Id Name { value } Website { value } LastActivityDate { value } Opportunities(where: { IsClosed: { eq: false } }, first: 5, orderBy: { Amount: { order: DESC } }) { edges { node { Id Name { value } StageName { value displayValue } Amount { value displayValue } CloseDate { value } } } } } } } } } }\"}" })
In the same turn, per matched account: docs search (most recent transcript/notes/plan — title + one-line) and "you owe them" email search (sent-mail promises to those attendees — "I'll send/get you/intro" — still unfulfilled). No account match → (no CRM match — net new or personal).
NextStep or stale (LastActivityDate 7d+).Amount.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.rows are typed: amount/trend are numbers/number arrays, not strings; risky rows carry _tone, healthy rows don't.onClick is action/sendMessage with a real first-person content prompt — no decorative buttons.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).
Tokens: dateEyebrow briefingTitle (header) · topMove topMoveDetail topMoveDraftMsg (the #1 move callout with its primary action button) · kpiEventsLine kpiEventsSub kpiPipelineLine kpiPipelineSub kpiGapsLine kpiGapsSub kpiFollowupsLine kpiFollowupsSub (four-up stat strip — each *Line is the whole "<n> <unit>" headline, e.g. "7 meetings", "$495K", "2 opps") · flag1Title flag1Sub flag1Msg flag2Title flag2Sub flag2Msg flag3Title flag3Sub flag3Msg flag4Title flag4Sub (attention flags with sendMessage buttons, except flag4) · meetingsHeading meeting1Time meeting1Title meeting1Ask meeting2Time meeting2Title meeting2Ask meeting3Line meeting4Line (meetingsHeading is the section title incl. count e.g. "Today's meetings — 4, 2 external"; two detailed meetings render as walk-in-asking callouts — put the "$45K · closes today"-style tag inline in meetingNTitle; the two compact meetings are a single meetingNLine string each) · oweHeading owe1Title owe1Meta owe1Msg owe2Title owe2Meta owe2Msg inboxClear (oweHeading incl. count; open-promise cards; inbox-clear caption when empty) · oppsSummary closingLabel gridColumns closingRows pastDueLabel pastDueRows (accordion with two datagrids sharing one gridColumns schema; each is preceded by its *Label incl. count+$; each row object is { name (plain string — format as "<Account> — <Opp Name>", e.g. "Okta — Support Uplift"; concatenate Account.Name.valueandOpportunity.Name.value from the SF response — plain strings, not objects), stage, trend, close (plain string — human-readable relative date, e.g. "Today", "Jul 31 · tomorrow", "Jul 15 · 15d past"; NOT ISO YYYY-MM-DD), amount, next, _tone } where amount/trend are numbers/number[], risky rows carry _tone:"error"/"warning"; gridColumns is the typed column array — keep the trend sparkline column). Omit any block whose data you lack; drop the column if no activity history; do not send empty arrays or leave stray {{tokens}}.
{
"renderer": {
"componentOverrides": {
"$": {
"type": "mosaic",
"definition": "tile/widget",
"children": [
{
"definition": "tile/column",
"attributes": {
"gap": "sm"
},
"children": [
{
"definition": "tile/text",
"attributes": {
"text": "{{dateEyebrow}}",
"weight": "semibold",
"color": "muted",
"variant": "caption"
}
},
{
"definition": "tile/text",
"attributes": {
"text": "{{briefingTitle}}",
"variant": "h1"
}
}
]
},
{
"definition": "tile/separator"
},
{
"definition": "tile/callout",
"attributes": {
"variant": "recommended",
"eyebrow": "YOUR #1 MOVE TODAY",
"title": "{{topMove}}",
"description": "{{topMoveDetail}}"
},
"children": [
{
"definition": "tile/button",
"attributes": {
"label": "Draft next step",
"variant": "primary",
"actions": {
"click": [
{
"definition": "action/sendMessage",
"attributes": {
"content": "{{topMoveDraftMsg}}"
}
}
]
}
}
}
]
},
{
"definition": "tile/row",
"attributes": {
"gap": "md",
"align": "stretch",
"isWrapped": true
},
"children": [
{
"definition": "tile/column",
"attributes": {
"gap": "none"
},
"children": [
{
"definition": "tile/text",
"attributes": {
"text": "{{kpiEventsLine}}",
"variant": "h4"
}
},
{
"definition": "tile/text",
"attributes": {
"text": "{{kpiEventsSub}}",
"variant": "caption",
"color": "muted"
}
}
]
},
{
"definition": "tile/column",
"attributes": {
"gap": "none"
},
"children": [
{
"definition": "tile/text",
"attributes": {
"text": "{{kpiPipelineLine}}",
"variant": "h4"
}
},
{
"definition": "tile/text",
"attributes": {
"text": "{{kpiPipelineSub}}",
"variant": "caption",
"color": "muted"
}
}
]
},
{
"definition": "tile/column",
"attributes": {
"gap": "none"
},
"children": [
{
"definition": "tile/text",
"attributes": {
"text": "{{kpiGapsLine}}",
"variant": "h4",
"color": "error"
}
},
{
"definition": "tile/text",
"attributes": {
"text": "{{kpiGapsSub}}",
"variant": "caption",
"color": "muted"
}
}
]
},
{
"definition": "tile/column",
"attributes": {
"gap": "none"
},
"children": [
{
"definition": "tile/text",
"attributes": {
"text": "{{kpiFollowupsLine}}",
"variant": "h4"
}
},
{
"definition": "tile/text",
"attributes": {
"text": "{{kpiFollowupsSub}}",
"variant": "caption",
"color": "muted"
}
}
]
}
]
},
{
"definition": "tile/separator"
},
{
"definition": "tile/text",
"attributes": {
"text": "Needs your attention",
"variant": "section-title"
}
},
{
"definition": "tile/column",
"attributes": {
"gap": "sm"
},
"children": [
{
"definition": "tile/callout",
"attributes": {
"variant": "error",
"title": "{{flag1Title}}",
"description": "{{flag1Sub}}"
},
"children": [
{
"definition": "tile/button",
"attributes": {
"label": "Draft next step",
"variant": "secondary",
"actions": {
"click": [
{
"definition": "action/sendMessage",
"attributes": {
"content": "{{flag1Msg}}"
}
}
]
}
}
}
]
},
{
"definition": "tile/callout",
"attributes": {
"variant": "error",
"title": "{{flag2Title}}",
"description": "{{flag2Sub}}"
},
"children": [
{
"definition": "tile/button",
"attributes": {
"label": "Draft CFO ask",
"variant": "secondary",
"actions": {
"click": [
{
"definition": "action/sendMessage",
"attributes": {
"content": "{{flag2Msg}}"
}
}
]
}
}
}
]
},
{
"definition": "tile/callout",
"attributes": {
"variant": "warning",
"title": "{{flag3Title}}",
"description": "{{flag3Sub}}"
},
"children": [
{
"definition": "tile/button",
"attributes": {
"label": "Nudge signer",
"variant": "secondary",
"actions": {
"click": [
{
"definition": "action/sendMessage",
"attributes": {
"content": "{{flag3Msg}}"
}
}
]
}
}
}
]
},
{
"definition": "tile/callout",
"attributes": {
"variant": "warning",
"title": "{{flag4Title}}",
"description": "{{flag4Sub}}"
}
}
]
},
{
"definition": "tile/separator"
},
{
"definition": "tile/text",
"attributes": {
"text": "{{meetingsHeading}}",
"variant": "section-title"
}
},
{
"definition": "tile/column",
"attributes": {
"gap": "sm"
},
"children": [
{
"definition": "tile/callout",
"attributes": {
"variant": "recommended",
"eyebrow": "{{meeting1Time}} · WALK IN ASKING",
"title": "{{meeting1Title}}",
"description": "{{meeting1Ask}}"
}
},
{
"definition": "tile/callout",
"attributes": {
"variant": "recommended",
"eyebrow": "{{meeting2Time}} · WALK IN ASKING",
"title": "{{meeting2Title}}",
"description": "{{meeting2Ask}}"
}
},
{
"definition": "tile/text",
"attributes": {
"text": "{{meeting3Line}}",
"variant": "body"
}
},
{
"definition": "tile/text",
"attributes": {
"text": "{{meeting4Line}}",
"variant": "body"
}
}
]
},
{
"definition": "tile/separator"
},
{
"definition": "tile/text",
"attributes": {
"text": "{{oweHeading}}",
"variant": "section-title"
}
},
{
"definition": "tile/column",
"attributes": {
"gap": "sm"
},
"children": [
{
"definition": "tile/callout",
"attributes": {
"title": "{{owe1Title}}",
"description": "{{owe1Meta}}"
},
"children": [
{
"definition": "tile/button",
"attributes": {
"label": "Draft email",
"variant": "secondary",
"actions": {
"click": [
{
"definition": "action/sendMessage",
"attributes": {
"content": "{{owe1Msg}}"
}
}
]
}
}
}
]
},
{
"definition": "tile/callout",
"attributes": {
"title": "{{owe2Title}}",
"description": "{{owe2Meta}}"
},
"children": [
{
"definition": "tile/button",
"attributes": {
"label": "Draft CFO ask",
"variant": "secondary",
"actions": {
"click": [
{
"definition": "action/sendMessage",
"attributes": {
"content": "{{owe2Msg}}"
}
}
]
}
}
}
]
},
{
"definition": "tile/text",
"attributes": {
"text": "{{inboxClear}}",
"variant": "caption",
"color": "muted"
}
}
]
},
{
"definition": "tile/separator"
},
{
"definition": "tile/accordion",
"children": [
{
"definition": "tile/accordionItem",
"attributes": {
"title": "Opportunities",
"subtitle": "{{oppsSummary}}",
"iconName": "briefcase",
"isExpanded": true
},
"children": [
{
"definition": "tile/text",
"attributes": {
"text": "{{closingLabel}}",
"variant": "body",
"weight": "semibold"
}
},
{
"definition": "tile/datagrid",
"attributes": {
"appearance": "striped",
"size": "sm",
"columns": "{{gridColumns}}",
"rows": "{{closingRows}}"
}
},
{
"definition": "tile/text",
"attributes": {
"text": "{{pastDueLabel}}",
"variant": "body",
"weight": "semibold"
}
},
{
"definition": "tile/datagrid",
"attributes": {
"appearance": "striped",
"size": "sm",
"columns": "{{gridColumns}}",
"rows": "{{pastDueRows}}"
}
}
]
}
]
}
]
}
}
}
}
display_widget SUCCEEDED# Daily Briefing — [Date]
## Today's Meetings ([N])
[Time] **[Title]** — [Attendees]
Account: [Name] · Opp: [Stage] $[Amount] closes [Date] · Last touch: [N]d ago[ · context from doc]
You owe: [unfulfilled promise, or "nothing outstanding"]
→ Walk in asking: [the one thing]
…
## Closing in 14 Days ([N] opps, $[total])
- **[Account]** — [Stage] $[Amount] closes [Date] · Next: [NextStep or "⚠ BLANK"] · Last activity: [N]d[ "⚠ 7+d stale"]
…
## Inbox ([N] unread from customers)
- [Sender] @ [Account] — "[Subject]" (opp $[Amount])
… Run `inbox-sweep` to triage and draft replies.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
40 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.npx claudepluginhub salesforce/salesforce-skills --plugin salesforce-for-salesOther plugins' skills for the same job