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.
npx skills add PostHog/posthog-foss --skill analyzing-expensive-usersgit clone --depth 1 https://github.com/PostHog/posthog-fossWrote 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.
[](https://agentmods.dev/skills/posthog/posthog-foss/analyzing-expensive-users)<a href="https://agentmods.dev/skills/posthog/posthog-foss/analyzing-expensive-users"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/analyzing-expensive-users/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.
<a href="https://agentmods.dev/skills/posthog/posthog-foss/analyzing-expensive-users"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/analyzing-expensive-users.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00057 | $0.04167 |
| Opus 5.5 | $0.00023 | $0.01667 |
| Sonnet 5.5 | $0.00011 | $0.00833 |
| Haiku 4.5 | $0.00006 | $0.00417 |
Grade A, and why
analyzing-expensive-users 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- analyzing-expensive-users — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 403 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Analyzing expensive users
Use this skill when the user wants to understand the most expensive users in AI observability. The job is not just to rank users by cost. The useful answer explains what makes the top users expensive: volume, model choice, prompt size, output size, cache behavior, retries/errors, trace type, feature or tenant dimensions, and representative trace examples.
For general cost rollups, also use exploring-llm-costs. For reading
individual traces, also use exploring-llm-traces.
Tools
| Tool | Purpose |
|---|---|
posthog:execute-sql |
Rank users and compare their metrics against the project baseline |
posthog:query-llm-traces-list |
Find high-cost traces for a specific user (by person UUID) |
posthog:query-llm-trace |
Read representative traces to explain what actually happened |
posthog:read-data-schema |
Discover custom event or person properties before grouping by them |
posthog:generate-app-url |
Build region- and project-qualified links back to the UI |
Core rules
- Start with a bounded time range. If the user does not specify one, use the last 30 days and say so. If the user provides a link or existing filters, preserve the date range, test-account filter, and property filters.
- Start from generated-call spend. The per-user ranking query groups
$ai_generationrows bydistinct_id, withtraces,generations,errors,total_cost,first_seen, andlast_seen. This is the best first pass for finding expensive users. - For full spend by user, include embeddings deliberately. Broader cost
rollups should include
event IN ('$ai_generation', '$ai_embedding'), but call out when the event set changes. - Filter trace-id defaults when interpreting users. Some SDKs use
$ai_trace_idasdistinct_idwhen no user is set. For identified users, excludedistinct_id = properties.$ai_trace_idand flag how much spend becomes unattributed. - Do not guess custom dimensions. Discover event and person properties
before grouping by
feature,tenant_id,plan,workflow_name, or similar customer-specific fields. - Read traces before explaining causality. Aggregates identify suspects; representative traces show whether the user is expensive because of a real workflow, retries, loops, large context, tool-heavy generations, or other behavior.
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.
- today Changed · +2 lines 9176eef86cdc
- 20d ago Changed · +3 lines 42a9f0bded33
- 1mo ago Changed · +46 lines 9d6794b9cc42
- 2mo ago First seen · 352 lines · 57 tokens per session scan A cb1861d8e057
analyzing-expensive-users is a skill published in the GitHub repository PostHog/posthog-foss (734 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 4,167 once invoked, about $0.0002 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.
analyzing-expensive-users compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| analyzing-expensive-usersPostHog/posthog-foss | Skill | 734 | today | MIT | A | 57 | Claude Code, Codex |
| agent-platform-model-registrygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 60 | Claude Code, Codex |
| llm-evaluationsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 25 | Claude Code |
| google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skills | Skill | 25k | today | Apache-2.0 | A | 132 | Claude Code, Codex |
| training-checkwanshuiyin/Auto-claude-code-research-in-sleep | Skill | 20k | yesterday | MIT | A | 35 | Claude Code |
| foundry-config-setupmicrosoft/agent-framework | Skill | 15k | 13d ago | MIT | A | 65 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 92 | Claude Code |