signals-scout-revenue-analytics
できること
このスカウトは、Stripeの同期や収益イベントなど、収益の分析に供給されているデータが届き続けているかを確認します。財務やグロースのチームが、信頼できる収益の数字を必要とする場合の向けです。
使う場面
- ✓Stripeの同期が更新されなくなり、収益の数字が古くなっているかもしれないとき。
- ✓ダッシュボードが依存している収益のイベントの記録が止まったとき。
- ✓PostHogの収益の設定が、届いているデータと一致しなくなったとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-revenue-analytics/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“収益の数字は今も最新ですか?それとも、支払いデータのソースが止まって供給されなくなっていますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
上流のソース、たとえば支払いの同期や収益イベントについて、停止や低下を確認します。収益についての誤警報は代償が大きいため、不明確なケースはレポートではなくメモとして残します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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.
よくある質問
収益の変化自体も報告しますか?
収益の動きは副次的な役割です。主な仕事は、数字を誤らせる壊れたソースを捕まえることです。
なぜレポートではなくメモを書くことがあるのですか?
収益についての誤警報は信頼をすぐに損なうため、不明確なケースは確認されるまでメモとして残します。
どのソースを確認しますか?
プロジェクトの収益イベントと、Stripeなどの支払いプラットフォームのイベントを確認します。
詳細
作者による元の説明
Signals scout for PostHog revenue analytics. Watches for upstream failures (Stripe sync stalls, capture regressions), and config drift.
repo: PostHog/posthog
人気
- GitHubのスター
- 41k
- ランキング
- #6941
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
depot-ci
41kエージェントが、GitHub Actionsの代替であるDepot CIのワークフローを設定し実行できるよう支援します。既存のワークフローの移行や、実行ログの確認も含みます。
depot-container-builds
41kエージェントが、Depotのリモート・ビルダーでDockerイメージを作れるよう支援します。マルチプラットフォームのイメージ、レジストリへのプッシュ、ビルド失敗の修正を含みます。
depot-github-runners
41kエージェントが、GitHub Actionsのジョブを Depot が管理するランナーに移し、ランナーのサイズとラベルを選び、ランナー設定の問題を解決できるよう支援します。
editing-agents-md
41kエージェントが、AGENTS.mdとCLAUDE.mdのどちらにルールを書くべきかを判断し、ファイルを膨らませずに守られやすい形で書けるよう支援します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。