CtrlK
BlogDocsLog inGet started
Tessl Logo

exploring-llm-costs

Investigate LLM spend in PostHog — total cost over time, cost by model, provider, user, trace, or custom dimension, token and cache-hit economics, and cost regressions. Use when the user asks "how much are we spending on LLMs?", "which model / user / feature is most expensive?", "why did cost spike?", wants to build a cost dashboard or alert, or pastes a trace URL and asks about its cost.

79

Quality

100%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

100%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured, token-efficient skill body: it leads with the unifying model, gives executable HogQL/JSON examples and a tool table, sequences workflows with explicit validation guardrails, and offloads detail to one-level-deep references that all exist. Concise and highly actionable throughout.

DimensionReasoningScore

Conciseness

Lean body that assumes Claude's competence — it opens with the unifying mental model ('Every cost question reduces to an aggregation...') and adds only PostHog-specific facts (event names, double-count pitfalls) Claude wouldn't already know, with no boilerplate concept explanations.

3 / 3

Actionability

Provides fully executable, copy-paste-ready artifacts: a HogQL query for total spend, a JSON tool-call payload for a single trace, a tool-purpose table, and exact UI link formats; ready-to-run recipes are clearly signaled in the breakdown-patterns reference.

3 / 3

Workflow Clarity

Multi-step workflows are clearly sequenced (total spend, breakdowns, single-trace, regression, materialize) with explicit validation guidance — 'Always set a time range', 'read $ai_cost_model_source first when a cost looks wrong', and a 5-step regression playbook referenced for fragile debugging.

3 / 3

Progressive Disclosure

The body is an overview that signals six one-level-deep references via clear inline links plus a References section, and all referenced paths (cost-properties, cost-sources, cache-accounting, breakdown-patterns, regression-debugging, materializing) resolve to real files in ./references/ with no nesting.

3 / 3

Total

12

/

12

Passed

Description

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong, specific description: third-person voice, concrete capabilities, and an explicit 'Use when' trigger clause with verbatim natural-language queries. It answers what, when, and how it differs from adjacent skills with minimal padding.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — 'total cost over time, cost by model, provider, user, trace, or custom dimension, token and cache-hit economics, and cost regressions' — each tied to a concrete aggregation rather than vague language.

3 / 3

Completeness

Explicitly answers both what (the cost investigations listed) and when via a clear 'Use when the user asks ... or pastes a trace URL and asks about its cost' trigger clause.

3 / 3

Trigger Term Quality

Quotes natural user phrasings verbatim — 'how much are we spending on LLMs?', 'which model / user / feature is most expensive?', 'why did cost spike?' plus trace-URL and dashboard/alert mentions — covering the terms users would actually say.

3 / 3

Distinctiveness Conflict Risk

Scoped to PostHog LLM-spend analysis over $ai_generation/$ai_embedding events with distinct triggers (spend questions, cost dashboards, trace URLs), giving it a clear niche unlikely to conflict with sibling skills.

3 / 3

Total

12

/

12

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

relative_links

Relative link issues: 1 suspicious

Warning

Total

15

/

16

Passed

Repository
PostHog/posthog
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.