skills/tier-management/tier-management/SKILL.md
Evaluate and update Pollinations user tiers. Check balances, upgrade devs, batch process users. For finding users with errors, see model-debugging skill first.
npx skillsauth add aiagentskills/skills tier-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Before using this skill, ensure you have:
brew install gh && gh auth loginbrew install nodenpm install -g wranglerbrew install jq (for parsing JSON)brew install sops (for decrypting secrets)Must run from the pollinations repo root with access to enter.pollinations.ai/.
| Tier | Emoji | Pollen/Day | Criteria | |------|-------|------------|----------| | spore | 🍄 | 1 | Default (new signups) | | seed | 🌱 | 3 | GitHub engagement | | flower | 🌸 | 10 | Contributed code/project | | nectar | 🍯 | 20 | Strategic partners | | router | 🔌 | 100 | Infrastructure partners |
Has commits to pollinations?
gh api 'search/commits?q=repo:pollinations/pollinations+author:USERNAME' --jq '.total_count'
Has a project in our lists?
grep -ri "author.*USERNAME" pollinations.ai/src/config/projects/
Involved in issues/PRs?
gh api 'search/issues?q=repo:pollinations/pollinations+involves:USERNAME' --jq '.total_count'
Starred repo?
.claude/skills/tier-management/scripts/fetch-stargazers.sh USERNAME
⚠️ IMPORTANT: You MUST update BOTH the database AND Polar subscription. The DB tier controls what tier the user CAN activate. The Polar subscription is what they HAVE activated.
.claude/skills/tier-management/scripts/update-tier.sh USERNAME TIER
Example:
.claude/skills/tier-management/scripts/update-tier.sh s0974092 flower
This script automatically:
cd enter.pollinations.ai
npx wrangler d1 execute DB --remote --env production \
--command "SELECT id, github_username, email, tier FROM user WHERE LOWER(github_username) LIKE '%USERNAME%';"
npx wrangler d1 execute DB --remote --env production \
--command "UPDATE user SET tier='TIER' WHERE github_username='USERNAME';"
export POLAR_ACCESS_TOKEN=$(sops -d secrets/prod.vars.json | grep POLAR_ACCESS_TOKEN | cut -d'"' -f4)
npx tsx scripts/manage-polar.ts user update-tier --email USER_EMAIL --tier TIER
Add --dryRun to preview changes without applying.
🎉 **Tier Upgrade Complete!**
Hey @USERNAME! You've been upgraded to **[EMOJI] [TIER] tier**! ✨
Your benefits:
- [POLLEN] pollen/day
- ⚡ Priority queue
- 🎨 All standard models
Thanks for being part of Pollinations! 🚀
Use the model-debugging skill to find users hitting 402 errors (billing/quota):
# Find spore-tier users with >10 402 errors in last 24 hours
.claude/skills/model-debugging/scripts/find-402-users.sh 24 10 spore
# Save to file for batch processing
.claude/skills/model-debugging/scripts/find-402-users.sh 24 10 spore | cut -f1 > /tmp/users.txt
Note: 402 = billing issues (pollen balance, key budget). 403 = permission issues (model access denied).
# Check single user
.claude/skills/tier-management/scripts/check-github-dev.sh OliverCWY
# Output: dev: repos=12 followers=13 account_year=2017
# Dry run first (no changes)
.claude/skills/tier-management/scripts/upgrade-devs.sh /tmp/users.txt --dry-run
# Apply upgrades
.claude/skills/tier-management/scripts/upgrade-devs.sh /tmp/users.txt
The script:
.claude/skills/tier-management/scripts/check-user-balance.sh username_or_email
export ENTER_ADMIN_TOKEN=your_token
export TIER_EVAL_GIST_ID=your_gist_id # optional
.claude/skills/tier-management/scripts/batch-evaluate.sh
| Tier | Product ID |
|------|------------|
| Spore | 01a31c1a-7af7-4958-9b73-c10e2fac5f70 |
| Seed | fe32ee28-c7c4-4e7a-87fa-6ffc062e3658 |
| Flower | dfb4c4f6-2004-4205-a358-b1f7bb3b310e |
| Nectar | 066f91a4-8ed1-4329-b5f7-3f71e992ed28 |
| Router | 0286ea62-540f-4b19-954f-b8edb9095c43 |
documentation
Guides using bun.sys for system calls and file I/O in Zig. Use when implementing file operations instead of std.fs or std.posix.
development
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
development
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
development
Guides writing HMR/Dev Server tests in test/bake/. Use when creating or modifying dev server, hot reloading, or bundling tests.