[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6R5HSKH50RBQ7W7PY96ZTXE":3,"skill-same:01M6R5HSKH50RBQ7W7PY96ZTXE":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":13,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M6R5HSKH50RBQ7W7PY96ZTXE","spending-analysis",null,"Analyze Pollinations Stripe revenue, pack purchases, and balance-bucket spending patterns with Tinybird production data.","APPLEPIE6969\u002FPollinations","APPLEPIE6969","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242827480?v=4","01M6R5D0EAJN2DFJB3X6QTDANJ","01M6R5D0K2TSEDG15DK4M26BHH",0,"MIT","https:\u002F\u002Fgithub.com\u002FAPPLEPIE6969\u002FPollinations\u002Fblob\u002Fwan-aspect-ratio-fix\u002F.claude\u002Fskills\u002Fspending-analysis\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"analysis","spending","spending analysis","data","Production","analyze","pollinations","stripe","patterns","revenue","tinybird","with","balance","pack","bucket","2026-11-10 10:12:30",false,"---\nname: spending-analysis\ndescription: Analyze Pollinations Stripe revenue, pack purchases, and balance-bucket spending patterns with Tinybird production data.\n---\n\n# Requirements\n\n- Run from the `pollinations` repository root.\n- Install `curl`, `jq`, and `sops`.\n- Use the production Tinybird read token. The staging workspace has no real revenue.\n\n# Setup\n\n```bash\nexport TINYBIRD_TOKEN=$(sops -d apps\u002Foperation\u002Fkpi\u002Fsecrets\u002Fenv.json | jq -r '.TINYBIRD_READ_TOKEN')\n```\n\nNever print the token. Revenue queries must filter successful Stripe checkout\nevents so asynchronous payment methods are counted exactly once.\n\n# Weekly pack revenue\n\n```bash\ncurl -sS \"https:\u002F\u002Fapi.europe-west2.gcp.tinybird.co\u002Fv0\u002Fsql\" \\\n  -H \"Authorization: Bearer $TINYBIRD_TOKEN\" \\\n  --data-urlencode \"q=SELECT toStartOfWeek(timestamp) AS week, round(sum(amount_cents) \u002F 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\" \\\n  | jq '.data'\n```\n\n# Recent pack purchases\n\n```bash\ncurl -sS \"https:\u002F\u002Fapi.europe-west2.gcp.tinybird.co\u002Fv0\u002Fsql\" \\\n  -H \"Authorization: Bearer $TINYBIRD_TOKEN\" \\\n  --data-urlencode \"q=SELECT timestamp, user_id, session_id, amount_cents \u002F 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\" \\\n  | jq '.data'\n```\n\n# Revenue by customer\n\n```bash\ncurl -sS \"https:\u002F\u002Fapi.europe-west2.gcp.tinybird.co\u002Fv0\u002Fsql\" \\\n  -H \"Authorization: Bearer $TINYBIRD_TOKEN\" \\\n  --data-urlencode \"q=SELECT user_id, round(sum(amount_cents) \u002F 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\" \\\n  | jq '.data'\n```\n\n# Weekly spend by balance bucket\n\n```bash\ncurl -sS \"https:\u002F\u002Fapi.europe-west2.gcp.tinybird.co\u002Fv0\u002Fsql\" \\\n  -H \"Authorization: Bearer $TINYBIRD_TOKEN\" \\\n  --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\" \\\n  | jq '.data'\n```\n\n# Notes\n\n- `stripe_event` is the source of truth for pack-purchase revenue analytics.\n- `generation_event_v2` records Pollen consumption, not cash revenue.\n- Both datasets use `user_id`, so revenue and usage can be joined directly.\n- The dashboard's `daily_stripe_revenue` pipe applies the same paid-event filter.\n- For pre-migration revenue history, note that Polar was the pre-Stripe merchant\n  of record (Nov 2025–Jan 2026) and is retired. Do not combine historical Polar\n  and Stripe totals without checking the cutoff for overlap.\n","# Requirements\n\n- Run from the `pollinations` repository root.\n- Install `curl`, `jq`, and `sops`.\n- Use the production Tinybird read token. The staging workspace has no real revenue.\n\n# Setup\n\n```bash\nexport TINYBIRD_TOKEN=$(sops -d apps\u002Foperation\u002Fkpi\u002Fsecrets\u002Fenv.json | jq -r '.TINYBIRD_READ_TOKEN')\n```\n\nNever print the token. Revenue queries must filter successful Stripe checkout\nevents so asynchronous payment methods are counted exactly once.\n\n# Weekly pack revenue\n\n```bash\ncurl -sS \"https:\u002F\u002Fapi.europe-west2.gcp.tinybird.co\u002Fv0\u002Fsql\" \\\n  -H \"Authorization: Bearer $TINYBIRD_TOKEN\" \\\n  --data-urlencode \"q=SELECT toStartOfWeek(timestamp) AS week, round(sum(amount_cents) \u002F 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\" \\\n  | jq '.data'\n```\n\n# Recent pack purchases\n\n```bash\ncurl -sS \"https:\u002F\u002Fapi.europe-west2.gcp.tinybird.co\u002Fv0\u002Fsql\" \\\n  -H \"Authorization: Bearer $TINYBIRD_TOKEN\" \\\n  --data-urlencode \"q=SELECT timestamp, user_id, session_id, amount_cents \u002F 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\" \\\n  | jq '.data'\n```\n\n# Revenue by customer\n\n```bash\ncurl -sS \"https:\u002F\u002Fapi.europe-west2.gcp.tinybird.co\u002Fv0\u002Fsql\" \\\n  -H \"Authorization: Bearer $TINYBIRD_TOKEN\" \\\n  --data-urlencode \"q=SELECT user_id, round(sum(amount_cents) \u002F 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\" \\\n  | jq '.data'\n```\n\n# Weekly spend by balance bucket\n\n```bash\ncurl -sS \"https:\u002F\u002Fapi.europe-west2.gcp.tinybird.co\u002Fv0\u002Fsql\" \\\n  -H \"Authorization: Bearer $TINYBIRD_TOKEN\" \\\n  --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\" \\\n  | jq '.data'\n```\n\n# Notes\n\n- `stripe_event` is the source of truth for pack-purchase revenue analytics.\n- `generation_event_v2` records Pollen consumption, not cash revenue.\n- Both datasets use `user_id`, so revenue and usage can be joined directly.\n- The dashboard's `daily_stripe_revenue` pipe applies the same paid-event filter.\n- For pre-migration revenue history, note that Polar was the pre-Stripe merchant\n  of record (Nov 2025–Jan 2026) and is retired. Do not combine historical Polar\n  and Stripe totals without checking the cutoff for overlap.\n",{"name":5,"description":7},"wan-aspect-ratio-fix","0cf9c44b2cb868c1431babf98007a269e7a2b66b",".claude\u002Fskills\u002Fspending-analysis","https:\u002F\u002Fgithub.com\u002FAPPLEPIE6969\u002FPollinations","https:\u002F\u002Fgithub.com\u002FAPPLEPIE6969","2026-07-26 00:50:46",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add APPLEPIE6969\u002FPollinations --skill spending-analysis",{"tool":50,"command":51},"bunx","bunx skills add APPLEPIE6969\u002FPollinations --skill spending-analysis",{"tool":53,"command":54},"pnpm","pnpm dlx skills add APPLEPIE6969\u002FPollinations --skill spending-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAPPLEPIE6969\u002FPollinations\u002Fblob\u002Fwan-aspect-ratio-fix\u002F.claude\u002Fskills\u002Fspending-analysis\u002FSKILL.md",true,[],[59,92,112,137,160,174],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":73,"publishedAt":33},"01M6R5KBQ6ARHS4YP4XZX06DJC","polli","Generate images, text, audio, video, and transcribe speech via the Pollinations API using the polli CLI. Use when asked to generate media, call pollinations.ai, check pollen balance, list models, manage API keys, inspect quests, manage my-models, or run polli commands.","https:\u002F\u002Fgithub.com\u002FAPPLEPIE6969\u002FPollinations\u002Fblob\u002Fwan-aspect-ratio-fix\u002Fpackages\u002Fpolli-cli\u002FSKILL.md",[65,70],{"categoryNo":66,"categoryName":67,"taxonomyType":68,"taxonomyTypeDesc":69},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":71,"categoryName":72,"taxonomyType":68,"taxonomyTypeDesc":69},"01JBSEEDCAT000000000000016","图像与多媒体",[61,74,75,76,77,78,79,80,81,82,83,84,85,86,30,87,88,89,90,91],"cli","generate","run","speech","api","Video","Media","Audio","Bash","text","list","images","commands","quests","my","inspect","api keys","when",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":33},"01M6R5K5FEQFK9BRNY2S06M73S","founder-meditation","When something goes wrong — build failures, crashes, errors, test failures, deployment issues — generate a short calming meditation with TTS audio to reassure the user that everything will be okay.","https:\u002F\u002Fgithub.com\u002FAPPLEPIE6969\u002FPollinations\u002Fblob\u002Fwan-aspect-ratio-fix\u002Fapps\u002Fopenclaw\u002Fskills\u002Ffounder-meditation\u002FSKILL.md",[],[99,100,101,102,75,103,104,78,81,82,105,106,107,108,109,24,29,110,111,91],"founder","founder meditation","test","deployment","issues","https","tts","curl","short","user","build","errors","Wrong",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":121,"publishedAt":33},"01M6R5JT4Q4B2SE36ZP416AJ4Q","web-research","Query Pollinations text API with web-search models (gemini-search, perplexity-fast, nomnom, etc.). Use when you need web search grounded answers via Pollinations.","https:\u002F\u002Fgithub.com\u002FAPPLEPIE6969\u002FPollinations\u002Fblob\u002Fwan-aspect-ratio-fix\u002F.claude\u002Fskills\u002Fweb-research\u002FSKILL.md",[118],{"categoryNo":119,"categoryName":120,"taxonomyType":68,"taxonomyTypeDesc":69},"01JBSEEDCAT000000000000021","资料检索与研究",[122,123,124,125,126,127,128,78,129,83,130,131,24,132,133,134,29,135,136,91],"research","web","web research","gemini","search","fast","perplexity","web search","use","models","web-search","query","via","you","nomnom",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":33},"01M6R5JMK3CJN4VEKVX23745BR","voting-status","Create and post ASCII art voting status diagrams to GitHub issues and Discord. Use when asked to update voting, show voting results, or announce voting status.","https:\u002F\u002Fgithub.com\u002FAPPLEPIE6969\u002FPollinations\u002Fblob\u002Fwan-aspect-ratio-fix\u002F.claude\u002Fskills\u002Fvoting-status\u002FSKILL.md",[],[144,145,146,147,148,149,150,151,103,152,130,153,154,155,156,157,158,159,91],"status","voting","voting status","discord","github","create","update","github issues","results","ascii art","diagrams","Art","show","ascii","post","announce",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":169,"publishedAt":33},"01M6R5J6ZK52VS1783EJH36137","tinybird-deploy","Deploy Tinybird pipes and datasources for enter.pollinations.ai observability with the Tinybird Forward CLI.","https:\u002F\u002Fgithub.com\u002FAPPLEPIE6969\u002FPollinations\u002Fblob\u002Fwan-aspect-ratio-fix\u002F.claude\u002Fskills\u002Ftinybird-deploy\u002FSKILL.md",[166],{"categoryNo":167,"categoryName":168,"taxonomyType":68,"taxonomyTypeDesc":69},"01JBSEEDCAT000000000000011","运维与部署",[170,28,171,74,172,24,29,173],"deploy","tinybird deploy","observability","for",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":33},"01M6R5HYNSNJBPMC3SQ7PZVM5Y","sync-production","Sync the main branch into production via the GitHub merges API. Pre-checks for merge conflicts and bails out with a clear reason if the merge isn't clean. Use when asked to merge main into production, deploy main to production, or sync production.","https:\u002F\u002Fgithub.com\u002FAPPLEPIE6969\u002FPollinations\u002Fblob\u002Fwan-aspect-ratio-fix\u002F.claude\u002Fskills\u002Fsync-production\u002FSKILL.md",[],[181,22,182,148,183,170,78,184,130,185,186,187,188,189,134,29,173,190,91],"sync","sync production","merge","branch","merge conflicts","conflicts","clean","main","clear","reason"]