home / skills / abdullahbeam / nexus-design-abdullah / hubspot-list-deals
This skill lists HubSpot deals and returns paginated results to streamline monitoring and reporting of your pipeline.
npx playbooks add skill abdullahbeam/nexus-design-abdullah --skill hubspot-list-dealsReview the files below or copy the command above to add this skill to your agents.
---
name: hubspot-list-deals
description: "List deals from HubSpot CRM. Load when user says 'list deals', 'show deals', 'show pipeline', 'get deals', 'hubspot deals'. Returns paginated deal list."
---
# List HubSpot Deals
**Specialized skill** for listing deals from HubSpot CRM.
## Pre-Flight Check
Before running, execute config check:
```bash
python 00-system/skills/hubspot/hubspot-master/scripts/check_hubspot_config.py --json
```
If `ai_action` is not `proceed_with_operation`, follow hubspot-connect setup guide.
---
## Usage
### Basic List (default 10 deals)
```bash
python 00-system/skills/hubspot/hubspot-master/scripts/list_deals.py --json
```
### With Limit
```bash
python 00-system/skills/hubspot/hubspot-master/scripts/list_deals.py --limit 25 --json
```
### With Pagination
```bash
python 00-system/skills/hubspot/hubspot-master/scripts/list_deals.py --after "cursor_value" --json
```
---
## Output Format
```json
{
"results": [
{
"id": "5840795376",
"properties": {
"dealname": "Enterprise Deal",
"amount": "50000",
"dealstage": "qualifiedtobuy",
"pipeline": "default",
"closedate": "2025-03-15T00:00:00Z"
},
"url": "https://app.hubspot.com/contacts/.../record/0-3/5840795376"
}
],
"paging": {
"next": {
"after": "cursor_for_next_page"
}
}
}
```
---
## Display Format
```
Found {count} deals:
1. Enterprise Deal
Amount: $50,000
Stage: Qualified to Buy
Close Date: 2025-03-15
ID: 5840795376
2. Startup Package
Amount: $5,000
Stage: Proposal Sent
...
```
---
## Common Deal Stages
| Stage ID | Name |
|----------|------|
| appointmentscheduled | Appointment Scheduled |
| qualifiedtobuy | Qualified to Buy |
| presentationscheduled | Presentation Scheduled |
| decisionmakerboughtin | Decision Maker Bought In |
| contractsent | Contract Sent |
| closedwon | Closed Won |
| closedlost | Closed Lost |
---
## Error Handling
| Error | Solution |
|-------|----------|
| 401 | Invalid token - re-run setup |
| 403 | Missing `crm.objects.deals.read` scope |
| 429 | Rate limited - wait and retry |
---
## Related Skills
- `hubspot-create-deal` - Create new deal
- `hubspot-search-deals` - Search by name/amount
- `hubspot-update-deal` - Update deal stage
- `hubspot-get-associations` - Get deal contacts
This skill lists deals from a HubSpot CRM instance and returns a paginated, machine-friendly list or a concise human display. It supports limit and cursor-based pagination and outputs core deal properties like name, amount, stage, pipeline, close date, and record URL. Use it to quickly inspect pipeline status and recent opportunities.
The skill calls HubSpot's Deals API to retrieve deal records using configured credentials and required scopes. It accepts parameters for limit and an "after" cursor to fetch subsequent pages, then formats results into a JSON payload with results and paging.next.after. It also provides a readable summary listing key fields for each deal.
What permissions are required?
The integration needs crm.objects.deals.read scope and valid HubSpot API credentials.
How do I get the next page of results?
Pass the paging.next.after value as the --after parameter to retrieve the next page.