# Send Gamification & XP System to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "gamification-xp",
    "name": "Gamification & XP System",
    "source": "tencent",
    "type": "skill",
    "category": "其他",
    "sourceUrl": "https://clawhub.ai/Chipagosfinest/gamification-xp",
    "canonicalUrl": "https://clawhub.ai/Chipagosfinest/gamification-xp",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/gamification-xp",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gamification-xp",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "gamification-xp",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T05:56:00.301Z",
      "expiresAt": "2026-05-06T05:56:00.301Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gamification-xp",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gamification-xp",
        "contentDisposition": "attachment; filename=\"gamification-xp-1.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "gamification-xp"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/gamification-xp"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/gamification-xp",
    "downloadUrl": "https://openagent3.xyz/downloads/gamification-xp",
    "agentUrl": "https://openagent3.xyz/skills/gamification-xp/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gamification-xp/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gamification-xp/agent.md"
  }
}
```
## Documentation

### Gamification & 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

VariableRequiredDescriptionSUPABASE_URLYesSupabase project URLSUPABASE_SERVICE_KEYYesSupabase 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, streaks
xp_transactions - XP award history
user_badges - Earned badges

### XP Rewards

ActionBase XPNotesHabit completion10-50+ streak bonus up to 2xTask completion5-50Based on priority (1-10)Goal 25% milestone100First quarterGoal 50% milestone200HalfwayGoal 75% milestone300Three quartersGoal 100% completion500Full completion

### Check Progress

"What's my XP level?"
"How close am I to leveling up?"
"Show my gamification stats"

### View Achievements

"What badges do I have?"
"Show my recent XP transactions"
"What's my current streak?"

### Leaderboard

"Show the leaderboard"
"Who has the most XP?"

### Related

goals - Set and track goals
habits - Habit tracking system
remind - Reminder system
daily-briefing - Daily progress summary
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Chipagosfinest
- Version: 1.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T05:56:00.301Z
- Expires at: 2026-05-06T05:56:00.301Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/gamification-xp)
- [Send to Agent page](https://openagent3.xyz/skills/gamification-xp/agent)
- [JSON manifest](https://openagent3.xyz/skills/gamification-xp/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/gamification-xp/agent.md)
- [Download page](https://openagent3.xyz/downloads/gamification-xp)