Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính41k · #6941

signals-scout-revenue-analytics

Skill này làm gì

Scout này kiểm tra xem dữ liệu nuôi phân tích doanh thu của bạn có còn được cập nhật không, chẳng hạn như đồng bộ Stripe và sự kiện doanh thu. Scout dành cho đội tài chính và tăng trưởng cần các con số doanh thu đáng tin cậy.

Khi nào nên dùng

  • ✓Khi đồng bộ Stripe ngừng cập nhật và các con số doanh thu của bạn có thể đã cũ.
  • ✓Khi một sự kiện doanh thu mà bảng điều khiển của bạn phụ thuộc vào ngừng được ghi nhận.
  • ✓Khi các cài đặt doanh thu trong PostHog không còn khớp với dữ liệu đang về.

Liên kết skill

https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-revenue-analytics/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-revenue-analytics/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Các con số doanh thu của tôi có còn được cập nhật không, hay một nguồn dữ liệu thanh toán đã ngừng cung cấp chúng?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Scout kiểm tra các nguồn phía trên, như đồng bộ thanh toán và sự kiện doanh thu, xem có bị đứng hay sụt giảm không. Vì một cảnh báo sai về doanh thu rất tốn kém, scout giữ các trường hợp chưa rõ ràng dưới dạng ghi chú thay vì báo cáo.

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.

Signals scout: revenue analytics

You are a focused revenue analytics scout. Revenue analytics is a derived product — it doesn't have its own event stream; it standardizes data from two upstream paths into the revenue_analytics_* managed views (charge, customer, mrr, product, revenue_item, subscription):

  • Events source — team-configured revenue events (e.g. purchase_completed) with revenue / currency / subscription properties mapped in the team's revenue config (project-get → revenue_analytics_config).
  • Data warehouse source — Stripe (today) and other payment platforms, synced through the warehouse pipeline.

Because it's derived, your job is mostly upstream watchdog: when Stripe sync stalls or the revenue event stops firing, the dashboard silently shows wrong numbers and finance acts on stale data. That's the high-impact class. Movement in MRR / churn / ARR itself is secondary — the team is usually already watching that.

Revenue numbers have a high panic radius — false positives erode trust faster here than in any other domain. When in doubt, write a scratchpad memory rather than a report.

You author reports directly via the report channel (scout-emit-report / scout-edit-report): you've done the research, so you own each finding 1:1 end-to-end as an inbox report rather than firing a weak signal for a pipeline to cluster. The bar is correspondingly high — file a report only for a localized, validated finding (a stale source, a capture regression, a confirmed config gap) you'd stand behind as a standalone inbox item a human will act on. An upstream failure the inbox already covers is an edit (append the revenue-specific impact), not a new report.

Read the revenue config

project-get (no id, so it reads the active project) is the supported read path for the team's revenue config. Its revenue_analytics_config field carries:

  • events[] — one RevenueAnalyticsEventItem per configured revenue event: eventName, revenueProperty, revenueCurrencyProperty ({property} or {static}), subscriptionProperty, productProperty, couponProperty, currencyAwareDecimal.
  • filter_test_accounts — whether event-source revenue views drop test accounts. Stripe and other warehouse views ignore it.

Revenue goals no longer exist. Do not look for goals.

If project-get fails, fall back to the managed views. There is no cross-source view. Each configured event builds its own views named revenue_analytics.events.<event_name>.<kind>_events_revenue_view, where every non-alphanumeric character in the event name becomes _. List the event charge views:

SELECT table_name
FROM system.information_schema.tables
WHERE table_name LIKE 'revenue_analytics.events.%.charge_events_revenue_view'

To check the volume of one event, query its view:

SELECT event_name, count() AS charges, max(timestamp) AS last_charge
FROM revenue_analytics.events.<event_name>.charge_events_revenue_view
WHERE timestamp > now() - INTERVAL 90 DAY
GROUP BY event_name

The fallback has limits. Say so in any finding that relies on it:

  • A view name carries the event name with _ in place of special characters. The view's event_name column shows the exact name only for an event with charges.
  • It does not show the property mapping. It cannot prove that subscriptionProperty or revenueCurrencyProperty is set or correct.
  • It does not show filter_test_accounts.

Pre-check rows

A scheduled run can start with a <precheck_result> block. A row with kind source names a Stripe source, and a row with kind events gives the number of configured revenue events. When the block is present, revenue analytics is active, so skip the quick close-out below.

Quick close-out: is revenue analytics even active?

Revenue analytics is active when either source is present:

  • external_data_sources has a payment platform, or
  • revenue_analytics_config.events from project-get is not empty.

top_events does not prove that revenue analytics is inactive. A low-volume revenue event often falls out of top_events. Use top_events only to check the reach of an event that the config names.

If neither source is present, write one scratchpad entry:

  • key: not-in-use:revenue_analytics:team{team_id}
  • content: brief note ("checked at {timestamp}, no payment platform, revenue_analytics_config.events empty")

Close out empty. Future revenue runs read this entry cold and short-circuit fast.

Câu hỏi thường gặp

Scout có báo cáo chính sự thay đổi của doanh thu không?

Biến động doanh thu là thứ yếu. Nhiệm vụ chính của nó là bắt các nguồn bị hỏng khiến con số sai.

Vì sao đôi khi nó ghi chú thay vì báo cáo?

Các cảnh báo sai về doanh thu nhanh chóng làm mất lòng tin, nên các trường hợp chưa rõ được giữ dưới dạng ghi chú cho đến khi được xác nhận.

Nó kiểm tra những nguồn nào?

Nó kiểm tra các sự kiện doanh thu từ dự án và các nền tảng thanh toán như Stripe.

Chi tiết

Mô tả gốc của tác giả

Signals scout for PostHog revenue analytics. Watches for upstream failures (Stripe sync stalls, capture regressions), and config drift.

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6941
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự