hubspot-revops-skill
Use when building revenue analytics on HubSpot — SQL warehouse queries, API enrichment pipelines, lead scoring models, pipeline forecasting, competitive intelligence. Triggers on "hubspot analytics", "revops dashboard", "lead scoring", "pipeline forecast", "ICP analysis", "hubspot SQL".
What this skill does
<objective>
Build revenue analytics infrastructure on HubSpot API + SQL data warehouse. Covers ICP validation, ML lead scoring, competitive intelligence, activity analysis, and pipeline forecasting — bridging CRM data into actionable intelligence products.
</objective>
<quick_start>
1. Create a HubSpot Private App with required CRM scopes (contacts, companies, deals, owners, timeline)
2. Confirm SQL replica access and schema prefix for your data warehouse
3. Run ICP validation query (UC1) to segment conversion rates
4. Build pipeline forecast (UC5) using stage-specific historical win rates
</quick_start>
<success_criteria>
- HubSpot Private App authenticated with all required scopes
- SQL warehouse connected and data freshness validated (sync lag < 24h)
- At least one use case (ICP, scoring, competitive, activity, forecast) producing results
- Lead scoring model trained on 200+ historical closed deals with measurable AUC
- Enrichment pipeline writing scores back to HubSpot without duplicates
</success_criteria>
# HubSpot RevOps Analytics
Revenue analytics infrastructure on HubSpot API + SQL data warehouse.
Bridges CRM data → analytics → intelligence products → revenue impact.
**Scope:** HubSpot-specific analytics stack. For basic CRM CRUD, use `crm-integration-skill`. For generic dashboards, use `data-analysis-skill`.
---
## Setup Checklist
### 1. HubSpot Private App
**Note:** Tim's HubSpot is accessed via the Epiphan CRM MCP connector — no Private App setup needed. All hubspot_* tools are available directly.
Create at Settings → Integrations → Private Apps:
| Scope | Permission | Why |
|-------|-----------|-----|
| `crm.objects.contacts.read/write` | Read/Write | Contact enrichment |
| `crm.objects.companies.read` | Read | Company data |
| `crm.objects.deals.read/write` | Read/Write | Pipeline analytics |
| `crm.schemas.custom.read` | Read | Custom objects |
| `crm.objects.owners.read` | Read | Rep attribution |
| `timeline` | Read | Activity data |
### 2. SQL Replica Access
Discovery questions for your data warehouse:
| Question | Options |
|----------|---------|
| Where is HubSpot data replicated? | Snowflake / BigQuery / Postgres / Redshift |
| What ETL tool syncs it? | Fivetran / Airbyte / Stitch / HubSpot Data Sync |
| Sync frequency? | Real-time / Hourly / Daily |
| Schema prefix? | `hubspot.` / `raw_hubspot.` / custom |
### 3. Python Environment
```bash
pip install hubspot-api-client pandas scikit-learn requests
```
```python
# SDK initialization
from hubspot import HubSpot
client = HubSpot(access_token="pat-na1-xxxxx")
# Or raw requests
import requests
HEADERS = {"Authorization": "Bearer pat-na1-xxxxx", "Content-Type": "application/json"}
BASE = "https://api.hubapi.com"
```
---
## Core Use Cases
| # | Use Case | Input | Output | Tools |
|---|----------|-------|--------|-------|
| 1 | ICP Validation | Contact + company data | Segment conversion rates | SQL + Clay |
| 2 | Lead Scoring | Historical deals | Win probability per lead | SQL + ML + API |
| 3 | Competitive Intel | Deal close reasons | Win/loss by competitor | SQL + webhook |
| 4 | Activity Analysis | Engagement data | Activity→outcome correlation | SQL |
| 5 | Pipeline Forecast | Open deals + stage history | Weighted revenue forecast | SQL |
### Use Case Details
**UC1 — ICP Validation:** Join contacts + companies + deals in SQL, segment by industry/size/geo, compute conversion rates per segment. Feed results to Clay MCP waterfall for enrichment:
1. `find-and-enrich-company` or `find-and-enrich-contacts-at-company` to identify target contacts
2. `add-contact-data-points` / `add-company-data-points` to queue enrichment jobs
3. `get-existing-search` to poll for results and check `state: completed`
4. Write enriched data back to HubSpot via API or Epiphan CRM integration
Alternative: Use Apollo MCP (`apollo_people_match`) for direct enrichment without waterfall wait.
**UC2 — Lead Scoring:** Train GradientBoostingClassifier on historical won/lost deals. Features: company size, industry, engagement score, days in pipeline. Deploy scores back to HubSpot as custom property.
**UC3 — Competitive Intel:** Extract competitor mentions from deal `closed_lost_reason`. Build win/loss matrix by competitor. Trigger webhook alerts on competitive displacement patterns.
**UC4 — Activity Analysis:** Correlate email opens, meetings booked, calls logged with deal outcomes. Identify which activities actually move deals forward.
**UC5 — Pipeline Forecast:** Calculate weighted forecast using stage-specific win rates from historical data. Factor in deal age, velocity, and rep performance.
> **Reference:** See `reference/sql-analytics.md` for complete SQL templates per use case.
---
## Golden Rules for Prospect Quality
**Tim's BDR targeting criteria (as of March 2026)** — Apply these filters before outreach:
```sql
-- Exclude existing customers and channels
WHERE lifecyclestage NOT IN ('customer')
AND custom.first_conversion NOT LIKE '%Pearl%'
AND custom.first_conversion NOT LIKE '%setup%'
AND custom.first_conversion NOT LIKE '%Connect%'
AND custom.first_conversion NOT LIKE '%signup%'
AND device_count < 1
AND is_channel = false
-- Target only AE territories (Lex Evans, Ron Epstein, Phillip Sandler)
AND hubspot_owner_id IN (82625923, 423155215, 190030668)
-- Optionally segment by company size, industry, location
```
**Use this filter in:**
- ICP Validation queries (UC1) before Clay enrichment
- Lead scoring model (UC2) training data
- Prospect research cadence (prospect-research-to-cadence-skill)
**Note:** See `phone-verification-waterfall-skill` for full Golden Rules implementation with Clay MCP integration.
---
## Quick Reference: HubSpot API Endpoints
| Object | Endpoint | Key Operations |
|--------|----------|----------------|
| Contacts | `/crm/v3/objects/contacts` | Search, create, update, batch |
| Companies | `/crm/v3/objects/companies` | Search, associate to contacts |
| Deals | `/crm/v3/objects/deals` | Pipeline, stage history |
| Engagements | `/crm/v3/objects/engagements` | Emails, calls, meetings |
| Properties | `/crm/v3/properties/{object}` | Custom property CRUD |
| Associations | `/crm/v4/associations/{from}/{to}` | Object linking |
| Search | `/crm/v3/objects/{object}/search` | Filter + sort (max 10k) |
> **Reference:** See `reference/api-guide.md` for auth, SDK patterns, batch operations.
---
## Quick Reference: SQL Object Model
| HubSpot Object | SQL Table (typical) | Key Columns | Join Key |
|----------------|---------------------|-------------|----------|
| Contacts | `hubspot.contacts` | email, lifecycle_stage, lead_score | contact_id |
| Companies | `hubspot.companies` | domain, industry, employee_count | company_id |
| Deals | `hubspot.deals` | amount, stage, close_date, pipeline | deal_id |
| Deal Stages | `hubspot.deal_stage_history` | stage, timestamp, duration | deal_id |
| Engagements | `hubspot.engagements` | type, created_at, contact_id | engagement_id |
| Owners | `hubspot.owners` | email, first_name, team | owner_id |
**Join pattern:** contacts → associations → companies/deals (via association tables)
---
## Integration Points
| Skill | Relationship |
|-------|-------------|
| `crm-integration-skill` | Base CRUD patterns, auth setup |
| `data-analysis-skill` | Visualization, Streamlit dashboards |
| `sales-revenue-skill` | Pipeline metrics, MEDDIC context, forecasting |
| `research-skill` | Market/competitive research methodology |
| `cost-metering-skill` | Track API calls + Clay enrichment spend |
| `prospect-research-to-cadence-skill` | Automated deal flow, Golden Rules filter |
| `deal-momentum-analyzer-skill` | Pipeline health scoring |
## MCP Integration Points
| MCP Connector | Tools Available |
|---------------|----------------|
| **Epiphan CRM** | hubspot_search_companies, hubspot_search_contacts, hubspot_search_deals, hubspot_get_company, hubspot_get_contact, hubspot_get_deal, crm_searcRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.