understanding-billing-usage
Ce qu’il fait
Cette skill lit votre historique d'usage de facturation PostHog et explique ce qui a changé et où. Elle s'adresse aux titulaires de compte qui veulent comprendre une alerte d'usage ou une facture plus élevée que prévu.
Quand l’utiliser
- ✓Quand vous avez reçu une alerte d'usage et voulez savoir si le pic était réel.
- ✓Quand vos dépenses PostHog sont plus élevées que prévu et que vous voulez savoir quel projet en est la cause.
- ✓Quand vous voulez comprendre ce que signifie un type d'usage et comment le réduire.
Lien du skill
https://github.com/PostHog/posthog/blob/master/products/billing/skills/understanding-billing-usage/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Pourquoi mon usage PostHog a-t-il augmenté la semaine dernière, et quel projet en est responsable ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La skill examine l'usage par jour, par type et par projet sur la période choisie, puis désigne le plus grand changement. Lorsque la cause se trouve dans une fonctionnalité, elle transmet l'analyse aux outils propres à ce produit.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Understanding billing usage
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.
Available tools
| 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 returns a permission error, read the error detail before deciding what to do. Stop only when it says the user does not have billing access. Say the current PostHog user does not have billing access for this organization and should ask someone with billing access to run it or update their role.
If the permission error points to requested projects or team_ids, correct the
project filter once if the user provided the wrong project context. Do not
describe that as missing billing access unless the tool says it is.
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.
Inputs to look for
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:
usage_types: JSON array of billing usage type identifiers, for example["event_count_in_period"]date_to: the end of the chart window, or the alert day for alert linksdate_from: the start of the chart windowinterval: normallyday- Product or usage type names from the dashboard, email copy, or prompt
- Project/team names or IDs if the user already has a suspected project
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.
Workflow
Step 1. Classify the question
Choose the smallest path that answers the user:
- High/current usage: identify the product, project, and current-period context.
- Spend question: include spend, but keep usage as the diagnostic source.
- Usage change: compare the changed period to a sensible baseline.
- Alert email: follow the usage-change path and apply the alert-specific rules below.
- Reduction question: identify the driver first, then suggest product-specific reductions.
Step 2. Recreate the Billing view
Call posthog:billing-usage-get using the dashboard or prompt parameters:
start_date: `
Questions fréquentes
Explique-t-elle ma facture ?
Non. Elle se concentre sur l'usage et les dépenses, et non sur les factures, les remboursements, les forfaits ou les contrats.
Peut-elle expliquer la hausse des événements d'une fonctionnalité ?
Elle trouve quand et où le changement a eu lieu, puis utilise les outils produit pour en expliquer la raison.
Peut-elle aider à réduire l'usage ?
Elle peut montrer quels types d'usage pèsent le plus sur vos dépenses, ce qui vous aide à décider où réduire.
Détails
Description originale de l’auteur
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
repo: PostHog/posthog
Popularité
- Étoiles GitHub
- 41k
- Position au classement
- #6837
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
depot-ci
41kAide votre agent à configurer et exécuter des workflows Depot CI, alternative à GitHub Actions, en migrant les workflows existants et en lisant les journaux.
depot-container-builds
41kAide votre agent à construire des images Docker sur les constructeurs distants de Depot, y compris les images multiplateformes et la correction des échecs.
depot-github-runners
41kAide votre agent à faire tourner les jobs GitHub Actions sur les machines gérées par Depot, à choisir la taille des runners et leurs labels, et à résoudre les problèmes de configuration.
editing-agents-md
41kAide votre agent à décider si une règle doit figurer dans un fichier AGENTS.md ou CLAUDE.md, et à la rédiger pour qu'elle soit suivie sans alourdir le fichier.
Skills similaires
blucli
394kAide votre agent à trouver, lancer, mettre en pause, regrouper et régler le volume des enceintes Bluesound et NAD grâce à la commande blu.
camsnap
394kAide votre agent à prendre des instantanés, de courts extraits vidéo ou des événements de mouvement depuis les caméras réseau et webcams locales que vous avez configurées.
eightctl
394kAide votre agent à consulter et contrôler un boîtier Eight Sleep, y compris sa température, ses alarmes et ses programmes de sommeil.