Loading...
Loading...
Evaluate and update Pollinations user tiers. Check balances, upgrade devs, batch process users. For finding users with errors, see model-debugging skill first.
npx skill4agent add pollinations/pollinations tier-managementbrew install gh && gh auth loginbrew install nodenpm install -g wranglerbrew install jqbrew install sopspollinationsenter.pollinations.ai/| Tier | Emoji | Pollen/Day | Criteria |
|---|---|---|---|
| microbe | 🦠 | 0.1 | Entry tier (auto-upgrades once verified) |
| spore | 🍄 | 1 | Verified accounts |
| seed | 🌱 | 3 | GitHub engagement |
| flower | 🌸 | 10 | Contributor |
| nectar | 🍯 | 20 | Coming soon |
gh api 'search/commits?q=repo:pollinations/pollinations+author:USERNAME' --jq '.total_count'grep -ri "author.*USERNAME" pollinations.ai/src/config/projects/gh api 'search/issues?q=repo:pollinations/pollinations+involves:USERNAME' --jq '.total_count'.claude/skills/tier-management/scripts/fetch-stargazers.sh USERNAMEcd enter.pollinations.ai
npx wrangler d1 execute DB --remote --env production \
--command "SELECT id, github_username, email, tier, tier_balance 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';"# Set balance immediately (e.g., flower = 10 pollen)
npx wrangler d1 execute DB --remote --env production \
--command "UPDATE user SET tier='flower', tier_balance=10 WHERE github_username='USERNAME';"
## Step 4: Notify user on GitHub
---
# Batch Processing
## Find Users with Billing Issues
Use the model-debugging skill to find users hitting 402 errors (billing/quota):
```bash
# 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.txtNote: 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.claude/skills/tier-management/scripts/check-user-balance.sh username_or_emailexport ENTER_ADMIN_TOKEN=your_token
export TIER_EVAL_GIST_ID=your_gist_id # optional
.claude/skills/tier-management/scripts/batch-evaluate.sh| File | Purpose |
|---|---|
| Tier → pollen mapping (source of truth) |
| Cron handler: daily refill |
| Sets tier on new user registration |
| Cron schedule: |
sporetier_balance