gamification
XP system for productivity gamification via ClawdBot - track levels, badges, streaks, and achievements
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chipagosfinest/gamification-xpGamification & XP System
Turn productivity into a game with XP, levels, badges, streaks, and achievements. Every completed task, habit, and goal milestone earns XP toward leveling up.
ClawdBot Integration
This skill is designed for ClawdBot - it provides the prompt interface for ClawdBot's gamification API server which stores data in Supabase.
Architecture:
User → ClawdBot Gateway → ClawdBot API Server → Supabase (Postgres)
(Railway) (user_gamification, xp_transactions tables)
The backend implementation lives in api-server/src/routes/gamification.ts and api-server/src/lib/xp-engine.ts.
Features
- XP System: Earn XP for habits, tasks, and goal milestones
- Leveling: Level up with formula
XP = 50 * (level^2) - Streak Bonuses: Up to 2.0x multiplier for consistent habits
- Badges: Earn badges for achievements and milestones
- Leaderboard: Compare progress (multi-user support)
- Accountability: Track commitment and earn-back system
Environment Variables
| Variable | Required | Description |
|---|---|---|
SUPABASE_URL | Yes | Supabase project URL |
SUPABASE_SERVICE_KEY | Yes | Supabase service role key |
API Endpoints
All endpoints are relative to the ClawdBot API server ({CLAWDBOT_API_URL}/api/gamification/).
Get User Stats
GET /api/gamification/stats/:userId
Response:
{
"totalXp": 2450,
"currentLevel": 7,
"weeklyXp": 350,
"monthlyXp": 1200,
"progress": {
"xpInLevel": 150,
"xpNeeded": 450,
"percent": 33
},
"accountability": {
"balance": 50,
"totalSlashed": 10,
"totalEarnedBack": 60
}
}
Get Recent Transactions
GET /api/gamification/transactions/:userId?limit=20
Get User Badges
GET /api/gamification/badges/:userId
Award XP (Internal)
POST /api/gamification/award
{
"userId": "302137836",
"amount": 50,
"source": "habit",
"sourceId": "morning-routine",
"note": "Completed morning routine"
}
Complete Habit (with streak bonus)
POST /api/gamification/habit-complete
{
"userId": "302137836",
"habitId": "workout",
"currentStreak": 7
}
Complete Task
POST /api/gamification/task-complete
{
"userId": "302137836",
"taskId": "task-123",
"priority": 8
}
Goal Milestone
POST /api/gamification/goal-milestone
{
"userId": "302137836",
"goalId": "goal-456",
"milestonePercent": 50
}
Award Badge
POST /api/gamification/badge
{
"userId": "302137836",
"badgeType": "early_bird",
"metadata": { "streak": 30 }
}
Get Leaderboard
GET /api/gamification/leaderboard
Get XP Config
GET /api/gamification/config
Database Tables
This skill requires the following Supabase tables:
user_gamification- User XP totals, levels, streaksxp_transactions- XP award historyuser_badges- Earned badges
XP Rewards
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chipagosfinest-gamification-xp": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
context-compressor
Intelligently compress context — conversations, code, logs. Preserve key information while reducing token usage. Auto-detects content type and applies optimal compression.
daily-report-generator
Automatically generate daily/weekly work reports from git commits, calendar events, and task lists. Use when you need to quickly create professional work reports without manual effort.
auto-context
智能上下文卫生检查器。分析当前会话的上下文污染程度 (长对话、主题漂移、噪声累积),建议:continue、/fork、/btw 或新会话。 支持手动触发(/auto-context)和自动触发(响应层实现)。 基于 ArXiv 论文和认知心理学研究的多维度评估体系。
Meeting Brief Copilot
Turn people, companies, agendas, notes, and email threads into consulting-style meeting briefs, sharp questions, follow-up emails, and action items.
quicker-connector
与 Quicker 自动化工具集成,读取、搜索和执行 Quicker 动作列表。支持 CSV 和数据库双数据源,智能匹配用户需求并调用本地 QuickerStarter 执行。