revenue-truth
Fetch live ThumbGate revenue, paid orders, and funnel telemetry from production billing endpoints. Use BEFORE answering any question about money, conversion…
от IgorGanapolsky★ 34 звезды на GitHub
Установить revenue-truth в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Revenue Truth — Live Data Before Any Money Claim
Why this exists
On 2026-05-26 the CTO answered "why didn't we make money?" three times in a row by quoting planning documents and stale March snapshots as if they were current telemetry. The CEO had to push back with "are you sure?" three times before the CTO admitted he had never queried the live billing endpoint. This skill exists so that never happens again.
The first version of this skill (written same day) referenced an env var named THUMBGATE_ADMIN_KEY that does not exist anywhere in the codebase — a name I invented without grepping. The CEO caught it with another "are you sure?". The skill now defers to the canonical scripts/revenue-status.js pipeline so it cannot drift again.
Hard rule
Before claiming any revenue, visitor, conversion, or funnel number, you MUST run node scripts/revenue-status.js and quote its output. If no credentials are configured, say so — do not fall back to planning docs.
Canonical command
node scripts/revenue-status.js
Reads credentials in this exact priority order (same as scripts/operational-summary.js and scripts/operational-dashboard.js):
$THUMBGATE_OPERATOR_KEY— read-only billing-summary access, recommended for agents~/.config/thumbgate/operator.json— created bynode bin/cli.js billing:setup$THUMBGATE_API_KEY— full admin, only when operator unavailable
Output sections (quote these directly, never paraphrase):
Source:—hosted-billing-summary(live) vslocal-fallback(no creds)Today / 30d / Lifetime:— visitors, pageViews, checkoutStarts, paidOrders, bookedRevenue30d attribution coverage— channel telemetry qualityGaps:— exact phrases describing what's missing
Quick lookups against the same endpoint
If you need a single field rather than the full report, query directly:
KEY="${THUMBGATE_OPERATOR_KEY:-${THUMBGATE_API_KEY:-}}"
[ -z "$KEY" ] && { echo "no operator/api key configured"; exit 1; }
curl -fsS \
-H "Authorization: Bearer ${KEY}" \
"https://thumbgate-production.up.railway.app/v1/billing/summary?window=30d" \
| jq '{
window,
booked_cents: .revenue.bookedRevenueCents,
paid_orders: .revenue.paidOrders,
checkout_starts: .funnel.checkoutStarts,
visitors: .funnel.uniqueVisitors,
acquisition: .funnel.acquisitionBySource
}'
Stripe direct (cross-check only)
curl -fsS https://api.stripe.com/v1/charges?limit=20 \
-u "${STRIPE_SECRET_KEY:?set STRIPE_SECRET_KEY in env}:" \
| jq '[.data[] | select(.paid==true and .refunded==false)
| {amount, created, description, customer}]
| {count: length, total_cents: (map(.amount) | add)}'
Note the var is STRIPE_SECRET_KEY (matches src/api/server.js:2597), not STRIPE_SECRET. If the two sources disagree, /v1/billing/summary is truth for booked-revenue claims; Stripe disagreement is an attribution bug worth filing.
What counts as truth vs. noise
| Source | Truth? | Notes |
|---|---|---|
scripts/revenue-status.js output where Source: hosted-billing-summary |
YES | Backed by Stripe-reconciled ledger |
scripts/revenue-status.js output where Source: local-fallback |
NO | Means no key configured; numbers are zero-state local |
Stripe API /v1/charges |
YES | Cross-check only |
reports/gtm/*/operator-close-packet.md numbers labeled "revenue plan" |
NO | These are forecasts |
docs/VERIFICATION_EVIDENCE.md snapshot dates |
YES at that date, NO as current | Always check the date in the section heading |
docs/COMMERCIAL_TRUTH.md cumulative line |
YES as of file's "Updated:" date | Stale if git log -1 -- docs/COMMERCIAL_TRUTH.md is >7 days old |
If no credentials are configured
State this exactly:
"No operator key in this session's env and no
~/.config/thumbgate/operator.jsonon this container.scripts/revenue-status.jsreportsSource: local-fallback. The last verified production snapshot in the repo is<date>: <numbers>fromdocs/VERIFICATION_EVIDENCE.md. Any number labeled '30d' in operator packets without a corresponding live curl is a forecast, not measured traffic."
Then offer one specific resolution:
"To unlock live numbers for this session AND future sessions: paste a
THUMBGATE_OPERATOR_KEYvalue into the harness env (the agent container's env, not Railway's server env). Generate one withnode bin/cli.js billing:setupon a machine where the admin key is already configured, or copy the existing operator key from Railway's variables."
Then stop. Do not speculate. Do not quote forecasts as actuals.
Channel-attribution sanity check
When booked revenue is low, also pull acquisition breakdown:
KEY="${THUMBGATE_OPERATOR_KEY:-${THUMBGATE_API_KEY:-}}"
curl -fsS \
-H "Authorization: Bearer ${KEY}" \
"https://thumbgate-production.up.railway.app/v1/billing/summary?window=30d" \
| jq '.funnel.acquisitionByS
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
FAQ
Что делает скилл revenue-truth?
Fetch live ThumbGate revenue, paid orders, and funnel telemetry from production billing endpoints. Use BEFORE answering any question about money, conversion, traffic, or "why we didn't make X." Never quote planning documents as actuals.
Как установить скилл revenue-truth?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл revenue-truth запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…