Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

spending-analysis

Skill by pollinations

Analyzes Pollinations Stripe revenue, pack purchases and balance-bucket spending using Tinybird production data. It gives analysts ready-made queries and rules for counting revenue accurately.

  • Score 81
  • 5.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install spending-analysis

Built from the published package, never by AI.

git clone --depth 1 https://github.com/pollinations/pollinations /tmp/pollinations && mkdir -p ~/.claude/skills && cp -r /tmp/pollinations/.claude/skills/spending-analysis ~/.claude/skills/spending-analysis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install spending-analysis in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The spending-analysis skill queries Pollinations Stripe revenue, pack purchases and balance-bucket spending in Tinybird production data. It runs from the pollinations repository root through a tb-prod.sh script, which reads a production read token from SOPS. Example queries cover weekly pack revenue, recent pack purchases, revenue by customer and weekly spend by balance bucket.

The skill sets rules for revenue analysis. Revenue queries must count only successful Stripe checkout events so that asynchronous payment methods are counted once. It also keeps cash separate from funding sources, principal separate from gross auto-top-up payments, and past price changes defined by deployed code. It is written for analysts who work with Pollinations billing and usage data.

Written from the project's SKILL.md and checked against it.

What it can do

  • Weekly pack revenueTotals paid Stripe checkout revenue and purchase counts per week over the last 90 days.
  • Recent pack purchasesLists the 100 most recent paid pack purchases with user, session, amount and payment method.
  • Revenue by customerRanks users by paid revenue and purchase count over the last 30 days, top 50.
  • Weekly spend by balance bucketSummarizes generation spend by meter source per week over the last 60 days.
  • Funding reconciliationReconciles Stripe purchases, auto-top-ups, Polar credits and rewards as separate sources.
  • Auto-top-up principal vs grossKeeps principal, gross payment, tax, refunds and net revenue as separate numbers.
  • Historical pricing checkConfirms past price changes using billed unit prices from generation_event_v2.
  • Conversion cohort rulesSets rules for cohort selection, cutoff dates, observation windows and payment ordering.

What you need

  • Pollinations repository
  • jq
  • sops
  • Production read token available through SOPS

Try asking

  • Show weekly pack revenue and purchase counts for the last 90 days
  • List the 100 most recent paid pack purchases
  • Break down weekly generation spend by balance bucket for 60 days

Good to know

  • The staging workspace has no real revenue, so queries run against production.
  • Auto-top-ups do not create checkout events, so checkout-only queries miss them.
  • Polar was the merchant of record from Nov 2025 to Jan 2026 and is retired.
  • Request-count shares drift quickly and are dominated by free traffic.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/spending-analysis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB

Alternatives to spending-analysis

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

spending-analysis: common questions

Which data source does spending-analysis use for pack revenue?

It uses the stripe_event dataset in Tinybird as the source of truth for pack-purchase revenue. Queries filter for paid successful checkout events.

Can I combine Polar and Stripe revenue totals?

Not without checking the cutoff for overlap. Polar was the pre-Stripe merchant of record from Nov 2025 to Jan 2026 and is retired.

Does spending-analysis query the staging workspace?

No. The source says the staging workspace has no real revenue, so the script uses the production workspace.

How do I install spending-analysis?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is spending-analysis free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is spending-analysis safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to spending-analysis?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

spending-analysis Install

Add to stack

Loading.