Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyze Pollinations Stripe revenue, pack purchases, and balance-bucket spending patterns with Tinybird production data.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -19% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -9% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 23% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -7% | 0% |
pollinations repository root.curl, jq, and sops.bashexport TINYBIRD_TOKEN=$(sops -d apps/operation/kpi/secrets/env.json | jq -r '.TINYBIRD_READ_TOKEN')
Never print the token. Revenue queries must filter successful Stripe checkout events so asynchronous payment methods are counted exactly once.
bashcurl -sS "https://api.europe-west2.gcp.tinybird.co/v0/sql" \ -H "Authorization: Bearer $TINYBIRD_TOKEN" \ --data-urlencode "q=SELECT toStartOfWeek(timestamp) AS week, round(sum(amount_cents) / 100, 2) AS revenue_usd, count() AS purchases FROM stripe_event WHERE payment_status = 'paid' AND event_type IN ('checkout.session.completed', 'checkout.session.async_payment_succeeded') AND timestamp >= now() - INTERVAL 90 DAY GROUP BY week ORDER BY week DESC FORMAT JSON" \ | jq '.data'
bashcurl -sS "https://api.europe-west2.gcp.tinybird.co/v0/sql" \ -H "Authorization: Bearer $TINYBIRD_TOKEN" \ --data-urlencode "q=SELECT timestamp, user_id, session_id, amount_cents / 100 AS amount, currency, payment_method FROM stripe_event WHERE payment_status = 'paid' AND event_type IN ('checkout.session.completed', 'checkout.session.async_payment_succeeded') ORDER BY timestamp DESC LIMIT 100 FORMAT JSON" \ | jq '.data'
bashcurl -sS "https://api.europe-west2.gcp.tinybird.co/v0/sql" \ -H "Authorization: Bearer $TINYBIRD_TOKEN" \ --data-urlencode "q=SELECT user_id, round(sum(amount_cents) / 100, 2) AS revenue_usd, count() AS purchases FROM stripe_event WHERE payment_status = 'paid' AND event_type IN ('checkout.session.completed', 'checkout.session.async_payment_succeeded') AND timestamp >= now() - INTERVAL 30 DAY GROUP BY user_id ORDER BY revenue_usd DESC LIMIT 50 FORMAT JSON" \ | jq '.data'
bashcurl -sS "https://api.europe-west2.gcp.tinybird.co/v0/sql" \ -H "Authorization: Bearer $TINYBIRD_TOKEN" \ --data-urlencode "q=SELECT toStartOfWeek(start_time) AS week, splitByChar(':', selected_meter_slug)[-1] AS meter_source, sum(total_price) AS total_spend, count() AS requests FROM generation_event_v2 WHERE start_time >= now() - INTERVAL 60 DAY AND environment = 'production' GROUP BY week, meter_source ORDER BY week DESC FORMAT JSON" \ | jq '.data'
stripe_event is the source of truth for pack-purchase revenue analytics.generation_event_v2 records Pollen consumption, not cash revenue.user_id, so revenue and usage can be joined directly.daily_stripe_revenue pipe applies the same paid-event filter.of record (Nov 2025–Jan 2026) and is retired. Do not combine historical Polar and Stripe totals without checking the cutoff for overlap.
Other measured skills in the registry, with their headline benchmark lift.