/langfuse-pack:langfuse-cost-forensics [cost-receipt.json]from langfuse-pack
Audits Langfuse recorded-cost observations for missing usage, unavailable cost, cursor gaps, and scope mismatches. Diagnoses whether a supplied observation set supports a cost claim.
Ships in langfuse-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Explain the recorded cost supported by a supplied observation set and what prevents a complete-set subtotal. Missing cost is not zero, a first page is not a project total, and recorded USD cost is not a verified provider invoice. This operator diagnoses evidence; it does not route models or promise savings.
Use Metrics API v2 for project-wide aggregate questions. Do not manufacture an aggregate by fetching only one observation page or issuing unbounded per-trace requests. Preserve the source and selection behind any supplied aggregate.
Identify whether the claim concerns a captured observation set, a project aggregate, an inferred model price, an ingested cost or a provider invoice. Record time window, project, filters, fields and capture times. Do not assume the report and invoice measure the same population or accounting event.
Read the contract. Retain the initial query, each opaque cursor and terminal omission. Usage fields must actually have been requested. Keep missing values missing and preserve explicit numeric zero.
Check inclusive start/exclusive end, exact project binding, compound trace/observation IDs, query stability and collection completion. The analyzer does not replay arbitrary advanced filters or authenticate supplied declarations. An open/future window or a missing page remains incomplete evidence.
python3 scripts/inspect-costs.py private-cost-receipt.json
Run from this skill's directory. The standard-library analyzer makes no network requests and echoes no raw prompts, outputs, model names, trace IDs or cursors. Inspect eligible generation/embedding rows separately from other observations.
Use totalCost as recorded; do not sum overlapping costDetails entries or
arbitrary token/audio/total usage components. Missing prices or usage do not
justify guessed rates, and negative adjustments need their own interpretation.
known_rows_recorded_cost_usd is a subtotal of known rows. The complete retrieved
set subtotal is withheld when evidence has gaps. Neither is a project-wide
invoice or a savings estimate. Model-group output is bounded and ordered by
hashed identity, not a ranking of the most expensive models.
Investigate unavailable costs, omitted usage fields, mismatched scope, cursor gaps and pricing provenance independently. A stored cost can be ingested or inferred; matching numbers alone do not establish invoice reconciliation.
For each discrepancy provide the finding code, private receipt pointer, affected count, arithmetic limit and next check. Separate confirmed receipt defects, observed recorded costs and hypotheses about provider pricing or billing. Further collection must stay within approved read scope.
Return langfuse-cost-report.json with eligible/known/zero/missing coverage,
known-row subtotal, complete-set subtotal when supported, bounded model groups,
findings and source limitations. Name supplied-data mode and do not convert
unknown cost into zero or claim that static coverage proves complete tracing.
Exit 0 means reviewable retrieved-set evidence, exit 1 requires investigation, and exit 2 holds malformed/unreadable/oversized input with a fixed code. Preserve the result, correct capture defects and retain original evidence. Do not alter cost observations, credentials or model routing as part of this analysis.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/langfuse-data-boundary-auditorAudit supplied Langfuse observation payloads for unapproved fields, incomplete
cursor coverage and retention evidence gaps. Separate project retention from
Cloud access windows and dataset/audit/external-copy scope. Use when reviewing this evidence. Trigger with "review a
Langfuse debug export", "did anonymization leave metadata?" or "does retention
cover all these Langfuse records?".
/langfuse-experiment-guardianCompare Langfuse experiment baseline and candidate results at case level using
reviewed dataset, content and evaluator identities. Detect missing cases,
evaluator errors and critical regressions before proposing a release. Use when reviewing these cases. Trigger with
"Langfuse experiment passed on average", "candidate lost evaluation cases" or
"can this experiment replace our reviewed baseline?".
/langfuse-prompt-release-guardianReview Langfuse prompt promotions or rollbacks using explicit versions, fresh
label snapshots, reviewed content hashes and runtime variable contracts.
Verify supplied prompt webhooks without treating signatures as release
approval. Use when reviewing this evidence. Trigger with "promote this Langfuse prompt", "check a prompt rollback" or
"is this signed prompt update enough to deploy?".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin langfuse-packOther plugins' skills for the same job