understanding-billing-usage

understanding-billing-usage is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 180 tokens per session (2,964 once invoked), scanned A, original, MIT.

A tool for explaining PostHog billing usage and spending from the billing data visible to you. It connects usage changes with products, projects, teams, and time periods.

In plain words
What is it for?
Use it to investigate usage spikes, compare usage over time, identify the project driving consumption, and understand what a billed usage type represents.
Why use it?
It helps explain why usage or spending increased or decreased, including which project or usage type caused the change. This makes unexpected usage alerts easier to investigate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate usage spikes, compare usage over time, identify the project driving consumption, and understand what a billed usage type represents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/understanding-billing-usage
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/posthog-foss --skill understanding-billing-usage
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for understanding-billing-usage

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/understanding-billing-usage/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/understanding-billing-usage)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/understanding-billing-usage"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/understanding-billing-usage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for understanding-billing-usage

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/understanding-billing-usage"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/understanding-billing-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 180 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,964 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00180 $0.02964
Opus 5.5 $0.00072 $0.01186
Sonnet 5.5 $0.00036 $0.00593
Haiku 4.5 $0.00018 $0.00296

Measured today against content hash 5cf1e6f9adff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

understanding-billing-usage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

products/billing/skills/understanding-billing-usage/SKILL.md · 270 lines

How it starts

The opening of the file, as written. The whole thing — 270 lines — stays where its author put it; the contents beside it link to each section on 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.

Read references/self-host-or-build.md when the user asks what an event costs or what it would take to self-host PostHog or build their own pipeline instead.

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.

Read the full file on GitHub · 270 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +2 lines 5cf1e6f9adff
  2. 12d ago Changed · +1 lines 3102cb796045
  3. 14d ago Changed · +15 lines · +32 tokens per session f7badead24b7
  4. 1mo ago Changed · +1 lines 7dca25dbdff7
  5. 1mo ago Changed abf1ddcd532d
  6. 2mo ago Changed · -3 lines 2205179e19f6
  7. 2mo ago Changed · +8 lines c2fb9c1d4962
  8. 2mo ago First seen · 246 lines · 148 tokens per session scan A 1d1438893747

Subscribe to this mod's changes

understanding-billing-usage is a skill published in the GitHub repository PostHog/posthog-foss (734 stars, last pushed today), licensed MIT. It adds 180 tokens to every session and 2,964 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

understanding-billing-usage compared with skills from other repositories

understanding-billing-usage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
understanding-billing-usagePostHog/posthog-fossSkill734todayMITA180Claude Code, Codex
sector-rotationHKUDS/Vibe-TradingSkill39ktodayMITA39Claude Code, Codex
strategy-pivot-designertradermonty/claude-trading-skillsSkill9.2ktodayMITA28Claude Code, Codex
twitter-readerhimself65/finance-skillsSkill3.6k26d agoMITA110Claude Code
energy-procurementhashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A93Claude Code, Codex
airdrop-hunting-guidenirholas/three.wsSkill289todayApache-2.0A54Claude Code, Codex
multi-expert-analyzerdigoal/blogSkill8.6ktodayGPL-2.0A292Codex