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.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
“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[]— oneRevenueAnalyticsEventItemper 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'sevent_namecolumn shows the exact name only for an event with charges. - It does not show the property mapping. It cannot prove that
subscriptionPropertyorrevenueCurrencyPropertyis 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_sourceshas a payment platform, orrevenue_analytics_config.eventsfromproject-getis 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.eventsempty")
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
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ự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.