adding-warehouse-perso…
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable anywhere person and group properties…
Explains PostHog billing usage and spend from the customer's visible Billing MCP tools. Use when the user asks why usage or spend is high, which product or project is driving usage, what a usage type means, how to reduce usage, what changed over time, why they got a usage change
$ npx -y skills add PostHog/ai-plugin --skill understanding-billing-usage --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/understanding-billing-usageContext preview
The summary Claude sees to decide when to auto-load this skill.
Explains PostHog billing usage and spend from the customer's visible Billing MCP tools. Use when the user asks why usage or spend is high, which product or project is driving usage, what a usage type means, how to reduce usage, what changed over time, why they got a usage change
name: understanding-billing-usage description: > Explains PostHog billing usage and spend from the customer's visible Billing MCP tools. Use when the user asks why usage or spend is high, which product or project is driving usage, what a usage type means, how to reduce usage, what changed over time, why they got a usage change alert, or whether a spike/drop alert was real or noisy. Also use before product-specific analytics skills when the user names a billable PostHog product metric such as events, recordings, feature flag requests, exceptions, survey responses, synced rows, logs, AI events, AI credits, or Inbox credits. Starts from Billing usage/spend tools, then routes to customer-visible product MCP surfaces for deeper investigation.
Use this skill for customer-facing "what am I using and why?" Billing usage workflows. The question may come from the Billing usage dashboard, a usage alert email, an AI chat prompt, or a user who noticed high usage, spend, a spike, or a drop.
The core rule:
> Billing tools explain what changed, when, and which project drove it. Product tools > explain why it happened.
If a prompt sounds like "why are my events high?" or "why did recordings/logs/AI credits increase?" and Billing tools are available, start here rather than jumping straight to the product-specific metric skill. Once the billable usage type, project, and window are known, hand off to the relevant product tools or skill for the root-cause drilldown.
This skill is not meant for broad invoice, plan, refund, contractual credit, subscription, or contract questions. Keep it focused on usage and spend behavior.
| Tool | Purpose | | ------------------------------ | ----------------------------------------------------------------------- | | `posthog:billing-overview-get` | Org billing context, subscribed products, team names, and usage summary | | `posthog:billing-usage-get` | Time-series usage by day, usage type, and team | | `posthog:billing-spend-get` | Optional spend context when the user asks about dollars | | Product-specific MCP tools | Follow-up investigation inside the affected product/project |
Only use this skill when the Billing read tools above are available. If the user asks about Billing usage and those tools are not available, do not continue with this workflow; briefly say that Billing usage investigation is not enabled for this organization or MCP session. If a Billing tool is available but returns a permission error, explain that the MCP session needs Billing access from an org admin or owner rather than saying the feature is unavailable.
Some clients expose PostHog MCP tools through `mcp__posthog__exec` instead of direct `posthog:*` tool names. If the direct Billing tools are not visible, search for `billing`, inspect the relevant tool schema, and call the Billing tool through the dispatcher before deciding Billing usage investigation is unavailable.
Read `references/spike-alert-mechanics.md` when the prompt comes from a usage alert email or dashboard link and you need URL parameter or weekday/weekend baseline guidance.
Read `references/usage-type-routing.md` before doing product-specific drilldown.
The best input is a Billing usage dashboard URL, but the skill should also work from a product name, usage type, project, or date in a normal user prompt. Extract whatever is available:
If the usage type is missing but the user named a product, map it to the closest billing usage type and say what you inferred. If the date range is missing, use the last 30 days and say so. Only ask for more context when the prompt is too vague to choose a product or time window.
Choose the smallest path that answers the user:
Call `posthog:billing-usage-get` using the dashboard or prompt parameters:
If the response shape makes the total hard to read, make a second call with `breakdowns: ["type"]`. Keep dashboard-linked investigations anchored on the provided date range unless you need a small extension to compare against the same weekday/weekend class.
Call `posthog:billing-overview-get` only when you need org context that usage time series cannot answer: plan state, limits, trials, entitlements, docs links, product names, or team name hints. Do not call it by default for simple spike/high-usage questions. Do not use `usage_summary` as the source of truth for the alert, because it only reflects the current billing period.
If the user asks about dollars, call `posthog:billing-spend-get` with the same date range and breakdowns. Treat spend as an estimate/attribution layer over
Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.
Repo: PostHog/ai-plugin
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable anywhere person and group properties…
Analyze the most expensive users in AI observability and explain why they cost so much. Use when the user asks about top spenders, expensive users, per-user…
Analyze session replay patterns across experiment variants to understand user behavior differences. Use when the user wants to see how users interact with…
Split a completed PostHog task run into activity records — what the agent tried, whether it worked, what blocked it — and record each one through the…
Assesses what a page's heatmap is telling you and recommends concrete changes. Pulls click / rageclick / scroll-depth data for a URL, names the hot elements by…
Audit every endpoint in a PostHog project for staleness, failed materialisations, and unused materialised versions. Use when the user asks "what endpoints can…