tier-management
Evaluate and update Pollinations user tiers. Check balances, upgrade devs, batch process users. For finding users with errors, see model-debugging skill first.
Best use case
tier-management is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Evaluate and update Pollinations user tiers. Check balances, upgrade devs, batch process users. For finding users with errors, see model-debugging skill first.
Teams using tier-management should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/tier-management/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How tier-management Compares
| Feature / Agent | tier-management | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Evaluate and update Pollinations user tiers. Check balances, upgrade devs, batch process users. For finding users with errors, see model-debugging skill first.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
Top AI Agents for Productivity
See the top AI agent skills for productivity, workflow automation, operational systems, documentation, and everyday task execution.
SKILL.md Source
# Requirements Before using this skill, ensure you have: - **GitHub CLI**: `brew install gh && gh auth login` - **Node.js/npx**: `brew install node` - **Wrangler**: `npm install -g wrangler` - **jq**: `brew install jq` (for parsing JSON) - **sops**: `brew install sops` (for decrypting secrets) Must run from the `pollinations` repo root with access to `enter.pollinations.ai/`. --- # Tier Levels | Tier | Emoji | Pollen | Cadence | Criteria | |------|-------|--------|---------|----------| | microbe | 🦠 | 0 | none | Account under review | | spore | 🍄 | 0.01 | hourly | Verified accounts | | seed | 🌱 | 0.15 | hourly | GitHub engagement | | flower | 🌸 | 0.4 | hourly | Contributor | | nectar | 🍯 | 0.8 | hourly | Coming soon | --- # Upgrade Paths ## 🍄 Spore → 🌱 Seed - ⭐ Starred the pollinations repo - 💬 Opened an issue or PR - 💳 Made a purchase ## 🌱 Seed → 🌸 Flower - 🛠️ Pushed code to pollinations/pollinations - 📦 Has a project in our showcase - 🌐 Built something open-source using our API --- # Evaluate User Tier ## Check for Flower (any ONE qualifies) **Has commits to pollinations?** ```bash gh api 'search/commits?q=repo:pollinations/pollinations+author:USERNAME' --jq '.total_count' ``` **Has a project in our lists?** ```bash grep -ri "author.*USERNAME" pollinations.ai/src/config/projects/ ``` ## Check for Seed (any ONE qualifies) **Involved in issues/PRs?** ```bash gh api 'search/issues?q=repo:pollinations/pollinations+involves:USERNAME' --jq '.total_count' ``` **Starred repo?** ```bash .claude/skills/tier-management/scripts/fetch-stargazers.sh USERNAME ``` --- # Update User Tier ## How Tiers Work Now - **Tier balance refills** hourly for all tiers - **No rollover** - balance resets to tier amount each period - **Just update D1** - no external subscription system needed ## Quick Update ### Step 1: Find user ```bash cd 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%';" ``` ### Step 2: Update tier ```bash npx wrangler d1 execute DB --remote --env production \ --command "UPDATE user SET tier='TIER' WHERE github_username='USERNAME';" ``` Balance will update automatically at next hourly refill cycle. ### Step 3 (Optional): Immediate balance update ```bash # Set balance immediately (e.g., flower = 0.4 pollen) npx wrangler d1 execute DB --remote --env production \ --command "UPDATE user SET tier='flower', tier_balance=0.4 WHERE github_username='USERNAME';" ``` ### Step 4: Notify user on GitHub ``` Hey @USERNAME! You've been upgraded to [EMOJI] [TIER] tier! Your benefits: - [POLLEN] free compute (refills hourly) - All standard models ``` --- # 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.txt ``` > **Note**: 402 = billing issues (pollen balance, key budget). 403 = permission issues (model access denied). ## Check if User is a Developer ```bash # Check single user .claude/skills/tier-management/scripts/check-github-dev.sh OliverCWY # Output: dev: repos=12 followers=13 account_year=2017 ``` ## Batch Upgrade Devs to Seed ```bash # 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: - Checks GitHub profile for dev activity (repos, followers, account age) - Only upgrades users currently on spore tier (won't downgrade) - Has 2s delay between GitHub API calls to avoid rate limiting - Shows summary of upgraded/skipped users ## Check User Balance ```bash .claude/skills/tier-management/scripts/check-user-balance.sh username_or_email ``` --- ## Key Files | File | Purpose | |------|---------| | `enter.pollinations.ai/src/tier-config.ts` | Tier → pollen mapping (source of truth) | | `enter.pollinations.ai/src/scheduled.ts` | Cron handler: tier refill (hourly/daily) | | `enter.pollinations.ai/src/auth.ts` | Sets tier on new user registration | | `enter.pollinations.ai/wrangler.toml` | Cron schedule: `0 0 * * *` | --- # Notes - **Tier balance refills** hourly for all tiers; no rollover - New users get `spore` tier + 0.01 pollen/hour - Tier upgrades take effect on next refill (or set `tier_balance` manually)
Related Skills
model-management
Add, update, or remove text/image/video models. Handles any provider.
monitor-services
Health check and auto-restart all Pollinations GPU services (Flux/Z-Image on RunPod, LTX-2 on GH200, Klein on RunPod, legacy image on OVH, Sana on Vast.ai). Use with /loop for recurring checks.
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.
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.
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.
tinybird-deploy
Deploy Tinybird pipes and datasources for enter.pollinations.ai observability. Validates and pushes changes to Tinybird Cloud.
test-model
Test any model (text, image, video, audio) locally and via enter integration tests
spending-analysis
Analyze Pollinations revenue, pack purchases, and tier spending patterns. Query Polar for payment history and Tinybird for usage data.
r2-glacier-migration
Monitor and manage R2 to AWS Glacier Deep Archive migration. Use when checking transfer status, resuming transfers, or managing the archive migration.
model-debugging
Debug and diagnose model errors in Pollinations services. Analyze logs, find error patterns, identify affected users. For taking action on user tiers, see tier-management skill.
issue-maker
Create GitHub issues following Pollinations team conventions. Use when asked to create issues, track work, or plan features.
enter-services
Deploy and manage enter.pollinations.ai text/image services on EC2 and Cloudflare Workers. Requires: SSH keys, sops, wrangler.