How the skill works: your agent reads gaps from Salesforce, tuesdays and thursdays at 9:00, and gives you a question for you and a telegram ping and the report in the chat.
Reads
SaSalesforceGaps
reads
Your agentClaude Code, Codex, Cursor or GeminiTuesdays and Thursdays at 9:00
posts
You get
A question for youOn your board, answered with a tap
A Telegram pingOnly when it needs your answer, if you connect Telegram
The report in the chatEvery run, with or without Briefkin
What you get
Count and amount of open opportunities with a gap, split into no next step, past close date and both.
The list, largest first, with owner, stage, close date and days since last activity.
By owner, so each rep sees a short list.
The ask: whether to create a task for each owner.
The card on the right is a sample. Yours shows your own numbers and updates in place every run.
What lands on your board
Your boardTuesdays and Thursdays at 9:00
AcmeSalesforce opportunities without a next step · Claude Code
11 open opportunities need a next step or a new close date
Create a task for each owner to update Next Step and Close Date on their opportunities?
11 open opportunities worth $486,000: 6 have no Next Step, 4 have a close date that already passed, and 1 has both.
Opportunity
Owner
Amount
Issue
Woodgrove Bank core banking
Sam
$120k
Close date 9 days ago
Contoso APAC pilot
Lena
$84k
No next step
Humongous Insurance
Marco
$62k
No next step, close date 3 days ago
Wide World Importers
Priya
$48k
No next step
Proseware upgrade
Dana
$41k
Close date 16 days ago
Alpine Ski House
Theo
$36k
No next step
Lucerne Publishing
Sam
$29k
No next step
Coho Winery
Priya
$24k
Close date 5 days ago
Fourth Coffee
Dana
$19k
No next step
Margie's Travel
Theo
$14k
Close date 2 days ago
Trey Research
Lena
$9k
No next step
Sam 2Lena 2Priya 2Dana 2Theo 2Marco 1
An example with made-up numbers. Your agent posts your real ones.
What it does
Two fields decide whether a Salesforce forecast can be trusted: Next Step and Close Date. An open opportunity with an empty Next Step has no plan, and one with a close date last week is either won, lost or wishful thinking. Both kinds pile up quietly, because nothing in Salesforce complains about them.
This skill lists them on Tuesdays and Thursdays, grouped by owner, and asks whether to give each rep a task to fix their own. Managers get the hygiene check without having to be the person who sends the nagging email.
How it works
Sa
1Query the gaps
SELECT Id, Name, Account.Name, OwnerId, Owner.Name, StageName, Amount, CloseDate, NextStep, LastActivityDate FROM Opportunity WHERE IsClosed = false AND (NextStep = null OR CloseDate < TODAY) ORDER BY Amount DESC NULLS LAST.
2
2Label each one
Tag every row as no next step, past close date or both, with days overdue (today minus CloseDate) and days since LastActivityDate. If the list runs long, leave out opportunities under an amount you set, such as $5,000.
3
3Group by owner
Count opportunities and amount per Owner.Name, so each rep's share of the list is short and specific.
Sa
4Ask, then create the tasks
Post the list and ask whether to nudge the owners. On a yes, create one Task per opportunity with sf data create record --sobject Task --values "WhatId=<opportunity id> OwnerId=<owner id> Subject='Update next step and close date' ActivityDate=<tomorrow>".
Post it to the board
With BRIEFKIN_TOKEN set, the agent sends the result as one card that updates in place every run. Without it, you get the report in the chat.
Install and run it
Pick your agent, where the data comes from and how to schedule it; the commands below follow.
Agent
Data
Schedule
Install the skill
One command. It puts the SKILL.md in ~/.claude/skills and in ~/.agents/skills, which Codex, Cursor, Gemini CLI, Copilot CLI and OpenCode read too.
shellcurl -fsSL https://briefkin.dev/skills/salesforce-opportunities-without-next-step/install | sh
Run it
Ask Claude Code:
promptRun the salesforce-opportunities-without-next-step skill
Or paste the prompt instead of installing:
promptRun SOQL on my Salesforce org for open opportunities (IsClosed = false) where NextStep is null or CloseDate is before today, with name, account, owner, stage, amount, close date, next step and LastActivityDate. Label each as no next step, past close date or both, with days overdue. Show totals by issue and by owner, then the full list sorted by amount. Then ask me whether to create a Task for each owner to update Next Step and Close Date, due tomorrow, and create them only if I say yes.
Put it on a schedule
Tuesdays and Thursdays at 9:00, from cron on any machine where Claude Code is signed in:
crontab0 9 * * 2,4 claude -p "Run the salesforce-opportunities-without-next-step skill"
Add it with crontab -e. A laptop asleep at that time runs it when it wakes if you use launchd or Task Scheduler instead; GitHub Actions works for the API route.
Send it to your board
Connect Briefkin once with curl -fsSL https://briefkin.dev/install | sh and every run lands on your board as a question for you. How setup works
SKILL.md---
name: salesforce-opportunities-without-next-step
description: "Tuesdays and Thursdays: open opportunities with an empty Next Step or a close date already behind them, and an ask to nudge their owners. Use when the user asks for this, or when it runs on a schedule."
---
# Salesforce opportunities without a next step
Tuesdays and Thursdays: open opportunities with an empty Next Step or a close date already behind them, and an ask to nudge their owners.
Two fields decide whether a Salesforce forecast can be trusted: Next Step and Close Date. An open opportunity with an empty Next Step has no plan, and one with a close date last week is either won, lost or wishful thinking. Both kinds pile up quietly, because nothing in Salesforce complains about them.
This skill lists them on Tuesdays and Thursdays, grouped by owner, and asks whether to give each rep a task to fix their own. Managers get the hygiene check without having to be the person who sends the nagging email.
## Two ways to get the data
Use the API or MCP route when you have an MCP server, a CLI or an API token for the app. Otherwise, if you can drive a browser the user is signed in to (Claude in Chrome, a Playwright or Chrome DevTools MCP server), use the browser route. Say which one you used.
## Route A: API or MCP server
### What you need
- A Salesforce login that can read every open opportunity and create Tasks on them, used through the `sf` CLI, a Salesforce connector or the REST API.
If something is missing, say what and stop; do not invent numbers.
### Steps
1. **Query the gaps** (Salesforce): `SELECT Id, Name, Account.Name, OwnerId, Owner.Name, StageName, Amount, CloseDate, NextStep, LastActivityDate FROM Opportunity WHERE IsClosed = false AND (NextStep = null OR CloseDate < TODAY) ORDER BY Amount DESC NULLS LAST`.
2. **Label each one**: Tag every row as no next step, past close date or both, with days overdue (today minus `CloseDate`) and days since `LastActivityDate`. If the list runs long, leave out opportunities under an amount you set, such as $5,000.
3. **Group by owner**: Count opportunities and amount per `Owner.Name`, so each rep's share of the list is short and specific.
4. **Ask, then create the tasks** (Salesforce): Post the list and ask whether to nudge the owners. On a yes, create one Task per opportunity with `sf data create record --sobject Task --values "WhatId=<opportunity id> OwnerId=<owner id> Subject='Update next step and close date' ActivityDate=<tomorrow>"`.
## Route B: the browser
### What you need
- Signed in to Salesforce as a user who can see every open opportunity and create Tasks on them; saving the list view needs Create and Customize List Views.
If something is missing, say what and stop; do not invent numbers.
### Steps
Start at https://login.salesforce.com/. The user is signed in already; never type passwords or codes, and ask if a sign-in page appears.
1. **Build the list view**: From your My Domain open the **Opportunities** tab, pick **All Opportunities** and use the filter panel: **Closed** equals False, **Next Step** equals blank, **Close Date** less than TODAY, with filter logic `1 AND (2 OR 3)`. Save it as a list view named `Needs next step`.
2. **Show the right columns**: Select fields to display: Opportunity Name, Account Name, Opportunity Owner, Stage, Amount, Close Date, Next Step and **Last Activity**. Sort by Amount, largest first. Label each row as no next step, past close date or both, with days overdue.
3. **Count by owner**: Sort the same list by Opportunity Owner and count rows and amount per rep, or switch to the Kanban grouped by owner if you prefer a picture. Leave out opportunities under $5,000 if the list runs long.
4. **Ask, then create the tasks**: Post the list and ask whether to nudge the owners. On a yes, open each opportunity, click **New Task** in the Activity panel, Subject `Update next step and close date`, Assigned To the owner, Due Date tomorrow, and save.
Note: List views load 50 rows at a time and cap at 2,000; the by-owner counts are easier from a saved report grouped by Opportunity Owner if the list is long. The saved view makes Tuesday and Thursday a matter of opening one page.
## The report
- **Count and amount** of open opportunities with a gap, split into no next step, past close date and both.
- **The list**, largest first, with owner, stage, close date and days since last activity.
- **By owner**, so each rep sees a short list.
- **The ask**: whether to create a task for each owner.
## Post it to Briefkin
When `BRIEFKIN_TOKEN` is set, or `~/.config/briefkin/env` exists (the installer from https://briefkin.dev/docs writes it), also send the result to the user's Briefkin board as one card. Keep the `item_key` the same on every run so the card updates in place, use a new `event_id` per run, and put today's real numbers in place of the example ones. If the request fails, say so once and carry on.
```bash
[ -n "${BRIEFKIN_TOKEN:-}" ] || . ~/.config/briefkin/env
curl -sS -X POST "${BRIEFKIN_URL:-https://briefkin.dev}/v1/events" \
-H "authorization: Bearer $BRIEFKIN_TOKEN" \
-H "content-type: application/json" \
-d @- <<'JSON'
{
"v": 1,
"event_id": "salesforce-opportunities-without-next-step/<date of this run, e.g. 2026-10-16>",
"item_key": "salesforce-opportunities-without-next-step",
"project": "Acme",
"source": "Salesforce opportunities without a next step skill",
"kind": "action",
"title": "11 open opportunities need a next step or a new close date",
"summary": "**11** open opportunities worth **$486,000**: 6 have no Next Step, 4 have a close date that already passed, and 1 has both.",
"action": {
"request": "Create a task for each owner to update Next Step and Close Date on their opportunities?",
"options": [
"Yes, all owners",
"Only past close dates",
"Only deals over $25k",
"Not this time"
]
},
"widget": [
{
"type": "Table",
"props": {
"columns": [
"Opportunity",
"Owner",
"Amount",
"Issue"
],
"align": [
"left",
"left",
"right",
"left"
],
"rows": [
[
"Woodgrove Bank core banking",
"Sam",
"$120k",
"Close date 9 days ago"
],
[
"Contoso APAC pilot",
"Lena",
"$84k",
"No next step"
],
[
"Humongous Insurance",
"Marco",
"$62k",
"No next step, close date 3 days ago"
],
[
"Wide World Importers",
"Priya",
"$48k",
"No next step"
],
[
"Proseware upgrade",
"Dana",
"$41k",
"Close date 16 days ago"
],
[
"Alpine Ski House",
"Theo",
"$36k",
"No next step"
],
[
"Lucerne Publishing",
"Sam",
"$29k",
"No next step"
],
[
"Coho Winery",
"Priya",
"$24k",
"Close date 5 days ago"
],
[
"Fourth Coffee",
"Dana",
"$19k",
"No next step"
],
[
"Margie's Travel",
"Theo",
"$14k",
"Close date 2 days ago"
],
[
"Trey Research",
"Lena",
"$9k",
"No next step"
]
]
}
},
{
"type": "Badges",
"props": {
"items": [
{
"label": "Sam 2"
},
{
"label": "Lena 2"
},
{
"label": "Priya 2"
},
{
"label": "Dana 2"
},
{
"label": "Theo 2"
},
{
"label": "Marco 1"
}
]
}
}
]
}
JSON
```
Widgets come from the Briefkin catalog (https://briefkin.dev/v1/catalog). Without a token, just give the user the report.
## Run it on a schedule
Suggested: Tuesdays and Thursdays at 9:00 (`0 9 * * 2,4`). From cron, with the agent signed in on that machine:
```bash
0 9 * * 2,4 claude -p "Run the salesforce-opportunities-without-next-step skill"
# Codex: codex exec, Gemini CLI: gemini -p, Copilot CLI: copilot -p, OpenCode: opencode run
```
Or use the agent's own scheduler (Claude Code routines, Codex automations, Claude or ChatGPT scheduled tasks): https://briefkin.dev/skills/salesforce-opportunities-without-next-step#schedule
Source: https://briefkin.dev/skills/salesforce-opportunities-without-next-step
What your agent needs
A Salesforce login that can read every open opportunity and create Tasks on them, used through the sf CLI, a Salesforce connector or the REST API.
SaConnecting Salesforce
Salesforce Hosted MCP Servers. Salesforce runs MCP servers for your org; in Setup under MCP Servers, activate the read-only SObject Reads server and copy its URL. To use it from Claude, create an External Client App with OAuth (scopes mcp_api and refresh_token, callback https://claude.ai/api/mcp/auth_callback) and add the URL as a custom connector (server reference).
The sf CLI. Log in once with sf org login web --alias prod, then run sf data query --query "SELECT Name, StageName, Amount, CloseDate FROM Opportunity WHERE IsClosed = false" --target-org prod --json. Salesforce's DX MCP server (npx @salesforce/mcp) reuses the same CLI login for local agents.
REST API with OAuth. An External Client App with the api and refresh_token scopes; the skill reads SF_INSTANCE_URL and SF_ACCESS_TOKEN (or a refresh token) and calls the query endpoint.
SObject Reads and SOQL never write, but the user's permissions are the real limit: run reports as an integration user whose permission set grants Read on Opportunity, Account, Lead and Case and nothing else.
Questions
The rep says they updated the next step. Why is it still on the list?
Some teams track the next step in a custom field or as the latest open Task instead of the standard NextStep text field. Point the filter at that field (for example Next_Step__c = null), or treat an open Task with a future ActivityDate as a next step.
Will it change close dates itself?
No. It only reads opportunities and, if you say yes on the card, creates a Task for each owner. Moving a close date is the rep's call.
Do I need Briefkin to use the Salesforce opportunities without a next step skill?
No. The skill runs with your own agent and gives you the report in the chat. With a Briefkin token set, each run also posts it to your board as a asks you, so you can glance at it instead of asking again.
Which agents can run it?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, Windsurf and Amp all read SKILL.md files. The install command puts it in ~/.claude/skills and ~/.agents/skills, where they look. ChatGPT, the Claude app and Grok take the prompt instead. Pick your agent under "Install and run it" and the commands change to match.
Can it work without an API or MCP server, from my browser?
Yes. Switch the data source to "Your browser" and the steps change to the Salesforce pages themselves: the agent opens login.salesforce.com in a browser you are signed in to and reads the numbers off the page. Claude Code, Codex, Cursor, Claude app and ChatGPT can drive a browser out of the box; Gemini CLI, Copilot CLI and OpenCode need a Playwright or Chrome DevTools MCP server first. It is slower than the API and needs you signed in, so it suits a report you run by hand or from a scheduler on your own computer.
Answer your agents from one board, or from Telegram
Skills are free to use with any agent. Briefkin is where their results land: one board for every report, number and question your agents send, with a ping when something needs you.