modeling-revenue-metrics

modeling-revenue-metrics is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 231 tokens per session (1,781 once invoked), scanned A, original, MIT.

A guide for turning payment or subscription data into reusable revenue measures. It covers figures such as recurring revenue, customer revenue, average revenue per user, and lifetime value.

In plain words
What is it for?
Use it to model recurring revenue, new and churned revenue, expansion, contraction, ARPU, LTV, and revenue by customer or account.
Why use it?
It gives billing data consistent definitions instead of making each report calculate revenue differently. It also helps choose between supported payment sources, custom revenue events, and dbt models.

Skill for Claude CodeCodex

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

Good fit Use it to model recurring revenue, new and churned revenue, expansion, contraction, ARPU, LTV, and revenue by customer or account.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/modeling-revenue-metrics
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 modeling-revenue-metrics
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 modeling-revenue-metrics

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/modeling-revenue-metrics/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/modeling-revenue-metrics)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/modeling-revenue-metrics"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/modeling-revenue-metrics/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 modeling-revenue-metrics

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/modeling-revenue-metrics"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/modeling-revenue-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 231 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,781 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 warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 48
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 55
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 95
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
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.00231 $0.01781
Opus 5.5 $0.00092 $0.00712
Sonnet 5.5 $0.00046 $0.00356
Haiku 4.5 $0.00023 $0.00178

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

Security

Grade A, and why

modeling-revenue-metrics 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/data_modeling/skills/modeling-revenue-metrics/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Modeling revenue metrics

Turn payment/subscription data into durable revenue models. Read modeling-warehouse-foundations first for the view-vs-dbt decision, the view-* workflow, and convertCurrency(); this skill is the revenue-specific layer on top. Metric definitions live in references/revenue-metric-definitions.md; copy-paste recipes in references/posthog/ and references/dbt/.

Step 1 — find where revenue lives

Revenue reaches PostHog two ways; both feed the same managed revenue views:

  • A payment platform as a warehouse source — Stripe today (Chargebee/Polar/RevenueCat coming). Best when the business runs on a billing platform. Connect via setting-up-a-data-warehouse-source.
  • Custom revenue events — you send events (e.g. purchase_completed) with a revenue property. Best when there's no supported platform or you already track revenue in-product.

If neither exists yet, use suggesting-data-imports to recommend a source. In dbt, the equivalent is staging whichever billing tables landed in the warehouse.

Step 2 — model on the managed views, not raw tables

PostHog auto-generates a curated set of views per source. Do not re-derive revenue from raw Stripe tables — the managed views already handle deferred-revenue recognition, currency, and a stable schema.

Each source gets its own views. There is no cross-source view. Names depend on the source type:

  • Warehouse source: <source>.<prefix>.<kind>_revenue_view, for example stripe.prod.mrr_revenue_view. The <prefix>. part is absent when the source has no prefix.
  • Custom revenue events: revenue_analytics.events.<event_name>.<kind>_events_revenue_view, where every non-alphanumeric character in the event name becomes _.

<kind> is one of the managed views in the table below. Discover the exact names. Do not search for revenue_analytics, because it does not match warehouse source views:

Read the full file on GitHub · 120 lines

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 978c173101ce
  2. 1mo ago Changed · +12 lines 20008cd2c4bf
  3. 2mo ago First seen · 106 lines · 231 tokens per session scan A 854dd89f8dc9

Subscribe to this mod's changes

modeling-revenue-metrics is a skill published in the GitHub repository PostHog/posthog-foss (734 stars, last pushed today), licensed MIT. It adds 231 tokens to every session and 1,781 once invoked, about $0.0009 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

modeling-revenue-metrics compared with skills from other repositories

modeling-revenue-metrics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modeling-revenue-metricsPostHog/posthog-fossSkill734todayMITA231Claude 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