ay-automate/gtmos-skills/gtmos-analytics-gtm-report
Claude Code and agent skill by ay-automate/gtmos-skills
- community
Checking that the SKILL.md file is still in the repository.
Build the weekly GTM report, pipeline pack or campaign post-mortem where every figure names the operation or system it came from, small samples are flagged, and data gaps are stated. With GTM OS connected it reads query.engine_kpis, crm.dashboard, money.attribution and money.revenue, each engine's KPIs, sync.health and sync.completeness, and delivers the report as a document or through channel.deliver for approval. Use for \"weekly report\", \"GTM report\", \"pipeline report\", \"sales report\"…
Install
npx vskill@latest install ay-automate/gtmos-skills/gtmos-analytics-gtm-reportSKILL.md
The same SKILL.md was published earlier as ay-automate/gtmos-skills/gtmos-analytics-gtm-report.
GTM performance report
Part of GTM OS Skills. Adapted from `sales-reporting` in HubSpot/agent-cli-skills (Apache-2.0, HubSpot, Inc.). Merged with `campaign-postmortem` from zapier/gtm-cheat-codes (MIT), kept inreferences/zapier-campaign-postmortem.md. Changed for GTM OS: the operating section below, rewritten cross-references and tool pointers. Notices: THIRD-PARTY-NOTICES.md (installed beside the skills asTHIRD-PARTY-NOTICES.md).
With GTM OS connected
Rules ([GTMOS-RULES.md](../GTMOS-RULES.md)). Readpolicy.get_dry_modefirst; in dry mode every effect stops at a draft. E-class operations are proposed and a different person approves them; never approve your own proposal. Numbers come only from operation results, named with the operation. Claims about results, customers or metrics must be backed by active proof fromproof.list.
1. Data health first. sync.health Q and sync.completeness Q: if a source is stale or incomplete, the report says so at the top.
2. Numbers. query.engine_kpis Q (cross-engine), crm.dashboard Q (pipeline, won, win rate), money.revenue Q and money.attribution Q (name the model and window), actions.kpis Q, and per engine score.kpis, outreach.kpis, perf_ads.kpis, seo_geo.kpis. Custom KPIs: metric.evaluate Q.
3. Write. Apply the method below. Every figure carries its source in a footnote or column. A KPI with too little data reads "not enough data yet (n = …)" and is not compared week over week.
4. Deliver. Render through the output-docgen connector, or post with channel.deliver E, which a person approves.
Without GTM OS
Pull numbers from the CRM, analytics and ad platforms the user has, name each source, and follow the format below.
The method below is the upstream HubSpot skill. Its HubSpot CLI and MCP calls are the path for a HubSpot portal without GTM OS; with GTM OS connected, run each data step through the operations in the section above instead.
Source of truth
hubspot <command> --help is authoritative. Build on bulk-operations/SKILL.md — JSONL shape, batch-read rules, and pagination live there. Reshape patterns: bulk-operations/resources/json-patterns.md. search/list cap at 100 rows per call; a result of exactly 100 is almost always truncated — paginate via bulk-operations/SKILL.md before aggregating.
Property and output shape notes
- All CRM property values come back as strings in JSONL — booleans included.
hs_is_closed_wonis returned as"true"/"false"(string);amountis a numeric string. Usetonumberfor arithmetic; compare booleans as strings (== "true") when filtering client-side. - Numeric properties can be `null` *or* an empty string (`""`) when unset/blank.
tonumberaborts on"". Always guard withselect(. != null and . != "") | tonumber. - In
--filterexpressions,hs_is_closed_won=trueandhs_is_closed!=truework — the API parses the value. --propertiesreturns the standard nested shape:{"id":"123","properties":{"amount":"5000","dealname":"..."}}. Reference fields as.properties.amountin jq.- Stage IDs in
dealstageare portal-specific. Map them withhubspot pipelines stages --type deals --pipeline <id>(or read thestagesarray embedded inhubspot pipelines list/get). `hubspot pipelines` is app-token-only — see Auth section; it 403s under user OAuth. hubspot_owner_idis a numeric string. Resolve to a name withhubspot owners list(fields:id,firstName,lastName,email).hubspot owners listworks under both user OAuth (hubspot auth login) and a service key.
1. Daily briefing
Date windows differ between macOS and GNU date:
Deals closing in the next 7 days:
Deals updated in the last 24h:
Open-pipeline summary line:
2. Pipeline snapshot
By stage — count and amount per dealstage:
By owner:
To label owner IDs with names, dump the owners file once and join:
3. Win/loss analysis
Filter on hs_is_closed_won=true for won; hs_is_closed=true AND hs_is_closed_won!=true for lost. Scope with closedate>=YYYY-MM-DD AND closedate<YYYY-MM-DD.
Closed won / lost in a period:
Win rate by rep — pull all closed deals in the period, group, divide. Note: hs_is_closed_won lands as a string, so compare == "true".
Revenue by close month (won deals):
4. Saved reports
The hubspot reports family runs HubSpot's saved reports and CRM-SQL reports server-side, so you don't have to recompute aggregates client-side:
reports list/get <id>— browse and inspect saved reports.reports fetch-dataset <id>— re-execute a saved report server-side and return its dataset.reports create "<CRM SQL>"— create a report from a CRM-SQL query (a companion skill can generate the SQL);reports insights <id>generates AI insights (async, polls to completion).reports update <id>/clone <id>/favorite <id>/unfavorite <id>— manage report metadata.reports delete <id>— irreversible, digest-gated:--dry-runfirst, then--digest <hash> --confirm "<report name>"(confirm = the report's name).
Run hubspot reports --help for the full surface and the CRM-SQL grammar.
5. Win/loss context: sequence enrollments
hubspot sequences enrollments <contact_id> returns a contact's Sales Hub sequence enrollment history (read-only) — useful for attributing wins/losses to outreach. Each row: {"contactId":789,"enrollments":[{"sequenceName":"Q4 Outbound","state":"FINISHED","enrolledAt":"...","currentStepOrder":5,"totalSteps":6}]}. Join it to a deal's associated contacts for a "was this deal worked through a sequence?" view. See hubspot sequences enrollments --help.
Known limitations
- Won/lost stages are identifiable from
hubspot pipelines stages: each stage'smetadatacarriesisClosed/probability(e.g.jq -r 'select(.metadata.probability=="1.0") | .id').hs_is_closed_wonon the deal itself also works. - No team object — group by
hubspot_owner_idand resolve names fromhubspot owners listclient-side. hubspot pipelinesis app-token-only and 403s under user OAuth.hubspot owners listworks under user OAuth. Keep raw IDs + warn; do not fail the report when pipelines is unavailable.- Numeric CRM properties can be
nullor""; always guardtonumberwithselect(. != null and . != "").
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gtmos-analytics-gtm-report/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ay-automate/gtmos-skills/gtmos-analytics-gtm-report)