understanding-billing-usage
Skill này làm gì
Skill này đọc mức dùng thanh toán PostHog của bạn theo thời gian và giải thích điều gì đã thay đổi và ở đâu. Nó dành cho chủ tài khoản muốn hiểu một cảnh báo sử dụng hoặc một hóa đơn cao hơn dự kiến.
Khi nào nên dùng
- ✓Khi bạn nhận được cảnh báo sử dụng và muốn biết đợt tăng đó có thật không.
- ✓Khi chi tiêu PostHog cao hơn dự kiến và bạn muốn biết dự án nào gây ra.
- ✓Khi bạn muốn hiểu một loại dùng nghĩa là gì và làm sao để giảm nó.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/billing/skills/understanding-billing-usage/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Vì sao mức dùng PostHog của tôi tăng vọt tuần trước, và dự án nào đang gây ra điều đó?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill xem mức dùng theo ngày, theo loại dùng và theo dự án trong khoảng thời gian bạn chọn, rồi chỉ ra thay đổi lớn nhất. Khi nguyên nhân nằm trong một tính năng, skill chuyển nguyên nhân gốc cho các công cụ chuyên biệt của sản phẩm đó.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
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.
If a billing tool returns a permission error, read the error detail before deciding what to do. Stop only when it says the user does not have billing access. Say the current PostHog user does not have billing access for this organization and should ask someone with billing access to run it or update their role.
If the permission error points to requested projects or team_ids, correct the
project filter once if the user provided the wrong project context. Do not
describe that as missing billing access unless the tool says it is.
Some clients expose PostHog MCP tools through mcp__posthog__exec instead of direct
posthog:* tool names. If the direct billing tools are not visible, search for
billing, inspect the relevant tool schema, and call the billing tool through the
dispatcher before deciding billing usage investigation is unavailable.
Read references/spike-alert-mechanics.md when the prompt comes from a usage alert
email or dashboard link and you need URL parameter or weekday/weekend baseline guidance.
Read references/usage-type-routing.md before doing product-specific drilldown.
Inputs to look for
The best input is a Billing usage dashboard URL, but the skill should also work from a product name, usage type, project, or date in a normal user prompt. Extract whatever is available:
usage_types: JSON array of billing usage type identifiers, for example["event_count_in_period"]date_to: the end of the chart window, or the alert day for alert linksdate_from: the start of the chart windowinterval: normallyday- Product or usage type names from the dashboard, email copy, or prompt
- Project/team names or IDs if the user already has a suspected project
If the usage type is missing but the user named a product, map it to the closest billing usage type and say what you inferred. If the date range is missing, use the last 30 days and say so. Only ask for more context when the prompt is too vague to choose a product or time window.
Workflow
Step 1. Classify the question
Choose the smallest path that answers the user:
- High/current usage: identify the product, project, and current-period context.
- Spend question: include spend, but keep usage as the diagnostic source.
- Usage change: compare the changed period to a sensible baseline.
- Alert email: follow the usage-change path and apply the alert-specific rules below.
- Reduction question: identify the driver first, then suggest product-specific reductions.
Step 2. Recreate the Billing view
Call posthog:billing-usage-get using the dashboard or prompt parameters:
start_date: `
Câu hỏi thường gặp
Skill có giải thích hóa đơn của tôi không?
Không. Skill tập trung vào hành vi sử dụng và chi tiêu, không phải hóa đơn, hoàn tiền, gói dịch vụ hay hợp đồng.
Skill có thể cho biết vì sao sự kiện của một tính năng tăng không?
Nó tìm ra khi nào và ở đâu thay đổi xảy ra, rồi dùng công cụ sản phẩm để giải thích vì sao.
Skill có giúp tôi giảm mức dùng không?
Có. Skill có thể cho thấy loại dùng nào làm tăng chi tiêu của bạn, để bạn quyết định cắt giảm ở đâu.
Chi tiết
Mô tả gốc của tác giả
Explains PostHog billing usage and spend from the customer's visible Billing MCP tools. Use when the user asks why usage or spend is high, which product or project is driving usage, what a usage type means, how to reduce usage, what changed over time, why they got a usage change alert, or whether a spike/drop alert was real or noisy. Also use before product-specific analytics skills when the user names a billable PostHog product metric such as events, recordings, feature flag requests, exceptions, survey responses, synced rows, logs, AI events, AI credits, or Inbox credits. Starts from Billing
repo: PostHog/posthog
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6837
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
depot-ci
41kGiúp agent của bạn thiết lập và chạy quy trình Depot CI, một lựa chọn thay thế GitHub Actions, gồm chuyển các quy trình hiện có và đọc nhật ký chạy.
depot-container-builds
41kGiúp agent của bạn build image Docker trên các builder từ xa của Depot, gồm image đa nền tảng, đẩy lên registry và sửa lỗi build.
depot-github-runners
41kGiúp agent của bạn chuyển các job GitHub Actions sang runner do Depot quản lý, chọn kích thước và nhãn runner, và xử lý lỗi thiết lập runner.
editing-agents-md
41kGiúp agent của bạn quyết định một quy tắc nên nằm trong file AGENTS.md hay CLAUDE.md, và viết sao cho quy tắc được tuân thủ mà file không bị phình to.
Skill tương tự
blucli
394kGiúp agent của bạn tìm, phát, tạm dừng, nhóm và chỉnh âm lượng loa Bluesound và NAD qua lệnh blu.
camsnap
394kGiúp agent của bạn chụp ảnh, quay clip ngắn hoặc lấy sự kiện chuyển động từ camera mạng và webcam nội bộ mà bạn đã thiết lập.
eightctl
394kGiúp agent của bạn kiểm tra và điều khiển thiết bị Eight Sleep pod, gồm nhiệt độ, báo thức và lịch ngủ.