AgentSkillsCN

hubspot-list-deals

从HubSpot CRM中列出交易。当用户说‘列出交易’、‘显示交易’、‘显示管道’、‘获取交易’、‘hubspot交易’时加载。返回分页的交易列表。

SKILL.md
--- frontmatter
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

code
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 IDName
appointmentscheduledAppointment Scheduled
qualifiedtobuyQualified to Buy
presentationscheduledPresentation Scheduled
decisionmakerboughtinDecision Maker Bought In
contractsentContract Sent
closedwonClosed Won
closedlostClosed Lost

Error Handling

ErrorSolution
401Invalid token - re-run setup
403Missing crm.objects.deals.read scope
429Rate 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