XP system for productivity gamification via ClawdBot - track levels, badges, streaks, and achievements
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install gamification-xp或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install gamification-xp⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/gamification-xp/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: gamification version: 1.1.0 description: XP system for productivity gamification via ClawdBot - track levels, badges, streaks, and achievements author: ClawdBot category: productivity tags: - gamification - xp - levels - badges - streaks - habits - productivity - motivation - achievements - goals env: - name: SUPABASE_URL description: Supabase project URL for gamification data storage required: true - name: SUPABASE_SERVICE_KEY description: Supabase service role key for database access required: true keywords: - earn xp - level up - streak bonus - habit tracking - goal milestones - leaderboard - accountability triggers: - my xp - what level am I - my badges - leaderboard - xp stats - gamification stats ---
Turn productivity into a game with XP, levels, badges, streaks, and achievements. Every completed task, habit, and goal milestone earns XP toward leveling up.
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.
XP = 50 * (level^2)| Variable | Required | Description | |----------|----------|-------------| | SUPABASE_URL | Yes | Supabase project URL | | SUPABASE_SERVICE_KEY | Yes | Supabase service role key |
All endpoints are relative to the ClawdBot API server ({CLAWDBOT_API_URL}/api/gamification/).
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 /api/gamification/transactions/:userId?limit=20
GET /api/gamification/badges/:userId
POST /api/gamification/award
{
"userId": "302137836",
"amount": 50,
"source": "habit",
"sourceId": "morning-routine",
"note": "Completed morning routine"
}
POST /api/gamification/habit-complete
{
"userId": "302137836",
"habitId": "workout",
"currentStreak": 7
}
POST /api/gamification/task-complete
{
"userId": "302137836",
"taskId": "task-123",
"priority": 8
}
POST /api/gamification/goal-milestone
{
"userId": "302137836",
"goalId": "goal-456",
"milestonePercent": 50
}
POST /api/gamification/badge
{
"userId": "302137836",
"badgeType": "early_bird",
"metadata": { "streak": 30 }
}
GET /api/gamification/leaderboard
GET /api/gamification/config
This skill requires the following Supabase tables:
user_gamification - User XP totals, levels, streaksxp_transactions - XP award historyuser_badges - Earned badges| Action | Base XP | Notes | |--------|---------|-------| | Habit completion | 10-50 | + streak bonus up to 2x | | Task completion | 5-50 | Based on priority (1-10) | | Goal 25% milestone | 100 | First quarter | | Goal 50% milestone | 200 | Halfway | | Goal 75% milestone | 300 | Three quarters | | Goal 100% completion | 500 | Full completion |
"What's my XP level?"
"How close am I to leveling up?"
"Show my gamification stats"
"What badges do I have?"
"Show my recent XP transactions"
"What's my current streak?"
"Show the leaderboard"
"Who has the most XP?"
goals - Set and track goalshabits - Habit tracking systemremind - Reminder systemdaily-briefing - Daily progress summary安装 Gamification & XP System 后,可以对 AI 说这些话来触发它
Help me get started with Gamification & XP System
Explains what Gamification & XP System does, walks through the setup, and runs a quick demo based on your current project
Use Gamification & XP System to xP system for productivity gamification via ClawdBot - track levels...
Invokes Gamification & XP System with the right parameters and returns the result directly in the conversation
What can I do with Gamification & XP System in my marketing & growth workflow?
Lists the top use cases for Gamification & XP System, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/gamification-xp/ 目录(个人级,所有项目可用),或 .claude/skills/gamification-xp/(项目级)。重启 AI 客户端后,用 /gamification-xp 主动调用,或让 AI 根据上下文自动发现并使用。
Gamification & XP System 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Gamification & XP System 可免费安装使用。请查阅仓库了解许可证信息。
XP system for productivity gamification via ClawdBot - track levels, badges, streaks, and achievements
Gamification & XP System 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Gamification & XP System
Identifies repetitive steps in your workflow and sets up Gamification & XP System to handle them automatically