9 deals worth $312k due to close in October
$146k already won this month. 9 open deals worth $312,000 have an October close date, and 3 have had no activity in over 10 days.
Mondays and Thursdays: the deals with a close date this month, their amount and stage, and how long since anyone touched them.
Reads
You get
The card on the right is a sample. Yours shows your own numbers and updates in place every run.
What lands on your board
$146k already won this month. 9 open deals worth $312,000 have an October close date, and 3 have had no activity in over 10 days.
Which deals are supposed to close before the end of the month, and has anyone talked to them lately? Most month-end forecast calls come down to that question, and HubSpot answers it only if someone builds the right filtered view and remembers to open it.
On Mondays and Thursdays the agent builds that view for you. Each deal comes with its amount, stage and the date of the last logged call, email or meeting, so a $48,000 renewal that nobody has touched in two weeks stands out next to the deals already in Contract sent.
Call POST /crm/v3/objects/deals/search with a closedate BETWEEN filter (value the first day of the month, highValue the last, in epoch milliseconds for the account's time zone) and dealstage NOT_IN the closed stages from GET /crm/v3/pipelines/deals. Request dealname, amount, dealstage, closedate, hubspot_owner_id, notes_last_updated and notes_next_activity_date.
Run the same date range against the closed won stage, so the card can show won so far this month next to what is still open.
A deal is at risk when notes_last_updated is more than 10 days old, when notes_next_activity_date is empty, or when its close date has already passed and it is still open. Sort at-risk deals first, then the rest by amount.
Won so far and still open (count and amount), then one row per open deal: name, owner, amount, stage, close date and days since last activity.
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.
Pick your agent, where the data comes from and how to schedule it; the commands below follow.
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/hubspot-deals-closing-this-month/install | shAsk Claude Code:
promptRun the hubspot-deals-closing-this-month skillOr paste the prompt instead of installing:
promptFrom HubSpot, list every open deal with a close date in the current calendar month (deals search with closedate BETWEEN the first and last day of the month, closed stages excluded). For each one give me deal name, owner, amount, stage, close date and days since `notes_last_updated`. Also total what was closed won this month so far. Flag deals with no activity in more than 10 days, no `notes_next_activity_date`, or a close date that has already passed. Put flagged deals first, then the rest by amount, and finish with won so far, still open and how much of the open amount is flagged.Mondays and Thursdays at 8:30, from cron on any machine where Claude Code is signed in:
crontab30 8 * * 1,4 claude -p "Run the hubspot-deals-closing-this-month 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.
Connect Briefkin once with curl -fsSL https://briefkin.dev/install | sh and every run lands on your board as a report card. How setup works
SKILL.md---
name: hubspot-deals-closing-this-month
description: "Mondays and Thursdays: the deals with a close date this month, their amount and stage, and how long since anyone touched them. Use when the user asks for this, or when it runs on a schedule."
---
# HubSpot deals closing this month
Mondays and Thursdays: the deals with a close date this month, their amount and stage, and how long since anyone touched them.
Which deals are supposed to close before the end of the month, and has anyone talked to them lately? Most month-end forecast calls come down to that question, and HubSpot answers it only if someone builds the right filtered view and remembers to open it.
On Mondays and Thursdays the agent builds that view for you. Each deal comes with its amount, stage and the date of the last logged call, email or meeting, so a $48,000 renewal that nobody has touched in two weeks stands out next to the deals already in Contract sent.
## 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
- Read access to HubSpot deals and owners, through a private app token (`HUBSPOT_ACCESS_TOKEN`) or a HubSpot connector your agent already has.
- The account time zone, so the month starts and ends where HubSpot thinks it does.
If something is missing, say what and stop; do not invent numbers.
### Steps
1. **Search deals closing this month** (HubSpot): Call `POST /crm/v3/objects/deals/search` with a `closedate` `BETWEEN` filter (`value` the first day of the month, `highValue` the last, in epoch milliseconds for the account's time zone) and `dealstage NOT_IN` the closed stages from `GET /crm/v3/pipelines/deals`. Request `dealname`, `amount`, `dealstage`, `closedate`, `hubspot_owner_id`, `notes_last_updated` and `notes_next_activity_date`.
2. **Add what already closed** (HubSpot): Run the same date range against the closed won stage, so the card can show won so far this month next to what is still open.
3. **Mark the risky ones**: A deal is at risk when `notes_last_updated` is more than 10 days old, when `notes_next_activity_date` is empty, or when its close date has already passed and it is still open. Sort at-risk deals first, then the rest by `amount`.
4. **Write the card**: Won so far and still open (count and amount), then one row per open deal: name, owner, amount, stage, close date and days since last activity.
## Route B: the browser
### What you need
- Signed in to HubSpot with permission to view every deal in the pipeline, not just owned deals.
- The account time zone (Settings > Account Defaults) decides when This month starts and ends.
If something is missing, say what and stop; do not invent numbers.
### Steps
Start at https://app.hubspot.com/contacts/. The user is signed in already; never type passwords or codes, and ask if a sign-in page appears.
1. **Filter deals by close date**: Pick the account if you have several, go to **CRM > Deals**, switch to the list view and choose the pipeline. Add the filters **Close date** is **This month** and **Deal stage** is any of the open stages, leaving Closed won and Closed lost unticked.
2. **Show the activity columns**: With **Edit columns**, show Deal name, Deal owner, Amount, Deal stage, Close date, **Last activity date** and **Next activity date**. Sort by Last activity date, oldest first, so the quiet deals come to the top; the record count above the table is the open count.
3. **Read what already closed**: Change the Deal stage filter to **Closed won** only, keep Close date is This month, and read the count and the amount total for won so far. The board view shows the same total in the Closed won column header.
4. **Mark the risky ones**: A deal is at risk when Last activity date is more than 10 days ago, Next activity date is empty, or Close date is already behind today. Keep those first, then the rest by amount, with days since last activity for each.
Note: The list view shows up to 100 rows per page; with more deals closing this month, export the filtered view from the table actions menu and read the CSV. Last activity date counts only activities associated with the deal, the same property the API route reads.
## The report
- **Won so far this month** and **still open**, as count and amount.
- **At risk**: open deals with no activity in 10 days, no next activity booked, or a close date already behind them.
- **Every open deal** closing this month: owner, amount, stage, close date and days since last activity.
- One line on the deal most likely to slip into next month.
## 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": "hubspot-deals-closing-this-month/<date of this run, e.g. 2026-10-16>",
"item_key": "hubspot-deals-closing-this-month",
"project": "Acme",
"source": "HubSpot deals closing this month skill",
"kind": "update",
"title": "9 deals worth $312k due to close in October",
"summary": "$146k already won this month. **9** open deals worth **$312,000** have an October close date, and **3** have had no activity in over 10 days.",
"widget": [
{
"type": "Grid",
"props": {
"columns": 3
},
"children": [
{
"type": "Stat",
"props": {
"label": "Won this month",
"value": "$146k",
"tone": "ok"
}
},
{
"type": "Stat",
"props": {
"label": "Still open",
"value": "$312k"
}
},
{
"type": "Stat",
"props": {
"label": "At risk",
"value": 3,
"tone": "warn"
}
}
]
},
{
"type": "Table",
"props": {
"columns": [
"Deal",
"Owner",
"Amount",
"Stage",
"Close",
"Last activity"
],
"align": [
"left",
"left",
"right",
"left",
"left",
"right"
],
"rows": [
[
"Litware renewal",
"Dana",
"$48,000",
"Decision maker bought-in",
"Oct 31",
"13 days ago"
],
[
"Fabrikam pilot",
"Priya",
"$41,000",
"Qualified to buy",
"Oct 28",
"18 days ago"
],
[
"Coho Winery",
"Dana",
"$24,000",
"Presentation scheduled",
"Oct 31",
"11 days ago"
],
[
"Contoso data platform",
"Marco",
"$62,000",
"Contract sent",
"Oct 24",
"2 days ago"
],
[
"Tailspin annual plan",
"Sam",
"$38,000",
"Contract sent",
"Oct 20",
"today"
],
[
"Wingtip expansion",
"Lena",
"$35,000",
"Presentation scheduled",
"Oct 30",
"4 days ago"
],
[
"Adatum seats",
"Theo",
"$29,000",
"Decision maker bought-in",
"Oct 22",
"1 day ago"
],
[
"Fourth Coffee",
"Sam",
"$19,000",
"Contract sent",
"Oct 17",
"3 days ago"
],
[
"Trey Research",
"Priya",
"$16,000",
"Qualified to buy",
"Oct 29",
"6 days ago"
]
]
}
}
]
}
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: Mondays and Thursdays at 8:30 (`30 8 * * 1,4`). From cron, with the agent signed in on that machine:
```bash
30 8 * * 1,4 claude -p "Run the hubspot-deals-closing-this-month 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/hubspot-deals-closing-this-month#schedule
Source: https://briefkin.dev/skills/hubspot-deals-closing-this-month
Read access to HubSpot deals and owners, through a private app token (HUBSPOT_ACCESS_TOKEN) or a HubSpot connector your agent already has.
The account time zone, so the month starts and ends where HubSpot thinks it does.
https://mcp.hubspot.com. HubSpot also offers a Claude connector built on the same server; you sign in with your HubSpot user and it sees what that user can see (docs).crm.objects.deals.read, crm.objects.contacts.read, crm.objects.companies.read, crm.objects.owners.read), and store its token in HUBSPOT_ACCESS_TOKEN.The MCP server and connector can create and update records, so for unattended reports a private app with only .read scopes is the safer credential.
HubSpot's notes_last_updated property (Last Activity Date), which moves when a call, email, meeting, note or task is logged on the deal. An email logged only on the contact does not count unless it is also associated with the deal.
Yes. Find your owner ID with GET /crm/v3/owners?email=you@example.com, add hubspot_owner_id EQ <id> to the search, and give the card its own item_key so it does not replace the team version.
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 report card, so you can glance at it instead of asking again.
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.
Yes. Switch the data source to "Your browser" and the steps change to the HubSpot pages themselves: the agent opens app.hubspot.com/contacts 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.
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.
Free during the open beta. No card.