{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/gamification-xp",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gamification-xp",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/gamification-xp",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Gamification & XP System",
        "body": "Turn productivity into a game with XP, levels, badges, streaks, and achievements. Every completed task, habit, and goal milestone earns XP toward leveling up."
      },
      {
        "title": "ClawdBot Integration",
        "body": "This skill is designed for ClawdBot - it provides the prompt interface for ClawdBot's gamification API server which stores data in Supabase.\n\nArchitecture:\n\nUser → ClawdBot Gateway → ClawdBot API Server → Supabase (Postgres)\n                         (Railway)              (user_gamification, xp_transactions tables)\n\nThe backend implementation lives in api-server/src/routes/gamification.ts and api-server/src/lib/xp-engine.ts."
      },
      {
        "title": "Features",
        "body": "XP System: Earn XP for habits, tasks, and goal milestones\nLeveling: Level up with formula XP = 50 * (level^2)\nStreak Bonuses: Up to 2.0x multiplier for consistent habits\nBadges: Earn badges for achievements and milestones\nLeaderboard: Compare progress (multi-user support)\nAccountability: Track commitment and earn-back system"
      },
      {
        "title": "Environment Variables",
        "body": "VariableRequiredDescriptionSUPABASE_URLYesSupabase project URLSUPABASE_SERVICE_KEYYesSupabase service role key"
      },
      {
        "title": "API Endpoints",
        "body": "All endpoints are relative to the ClawdBot API server ({CLAWDBOT_API_URL}/api/gamification/)."
      },
      {
        "title": "Get User Stats",
        "body": "GET /api/gamification/stats/:userId\n\nResponse:\n\n{\n  \"totalXp\": 2450,\n  \"currentLevel\": 7,\n  \"weeklyXp\": 350,\n  \"monthlyXp\": 1200,\n  \"progress\": {\n    \"xpInLevel\": 150,\n    \"xpNeeded\": 450,\n    \"percent\": 33\n  },\n  \"accountability\": {\n    \"balance\": 50,\n    \"totalSlashed\": 10,\n    \"totalEarnedBack\": 60\n  }\n}"
      },
      {
        "title": "Get Recent Transactions",
        "body": "GET /api/gamification/transactions/:userId?limit=20"
      },
      {
        "title": "Get User Badges",
        "body": "GET /api/gamification/badges/:userId"
      },
      {
        "title": "Award XP (Internal)",
        "body": "POST /api/gamification/award\n{\n  \"userId\": \"302137836\",\n  \"amount\": 50,\n  \"source\": \"habit\",\n  \"sourceId\": \"morning-routine\",\n  \"note\": \"Completed morning routine\"\n}"
      },
      {
        "title": "Complete Habit (with streak bonus)",
        "body": "POST /api/gamification/habit-complete\n{\n  \"userId\": \"302137836\",\n  \"habitId\": \"workout\",\n  \"currentStreak\": 7\n}"
      },
      {
        "title": "Complete Task",
        "body": "POST /api/gamification/task-complete\n{\n  \"userId\": \"302137836\",\n  \"taskId\": \"task-123\",\n  \"priority\": 8\n}"
      },
      {
        "title": "Goal Milestone",
        "body": "POST /api/gamification/goal-milestone\n{\n  \"userId\": \"302137836\",\n  \"goalId\": \"goal-456\",\n  \"milestonePercent\": 50\n}"
      },
      {
        "title": "Award Badge",
        "body": "POST /api/gamification/badge\n{\n  \"userId\": \"302137836\",\n  \"badgeType\": \"early_bird\",\n  \"metadata\": { \"streak\": 30 }\n}"
      },
      {
        "title": "Get Leaderboard",
        "body": "GET /api/gamification/leaderboard"
      },
      {
        "title": "Get XP Config",
        "body": "GET /api/gamification/config"
      },
      {
        "title": "Database Tables",
        "body": "This skill requires the following Supabase tables:\n\nuser_gamification - User XP totals, levels, streaks\nxp_transactions - XP award history\nuser_badges - Earned badges"
      },
      {
        "title": "XP Rewards",
        "body": "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"
      },
      {
        "title": "Check Progress",
        "body": "\"What's my XP level?\"\n\"How close am I to leveling up?\"\n\"Show my gamification stats\""
      },
      {
        "title": "View Achievements",
        "body": "\"What badges do I have?\"\n\"Show my recent XP transactions\"\n\"What's my current streak?\""
      },
      {
        "title": "Leaderboard",
        "body": "\"Show the leaderboard\"\n\"Who has the most XP?\""
      },
      {
        "title": "Related",
        "body": "goals - Set and track goals\nhabits - Habit tracking system\nremind - Reminder system\ndaily-briefing - Daily progress summary"
      }
    ],
    "body": "Gamification & XP System\n\nTurn productivity into a game with XP, levels, badges, streaks, and achievements. Every completed task, habit, and goal milestone earns XP toward leveling up.\n\nClawdBot Integration\n\nThis skill is designed for ClawdBot - it provides the prompt interface for ClawdBot's gamification API server which stores data in Supabase.\n\nArchitecture:\n\nUser → ClawdBot Gateway → ClawdBot API Server → Supabase (Postgres)\n                         (Railway)              (user_gamification, xp_transactions tables)\n\n\nThe backend implementation lives in api-server/src/routes/gamification.ts and api-server/src/lib/xp-engine.ts.\n\nFeatures\nXP System: Earn XP for habits, tasks, and goal milestones\nLeveling: Level up with formula XP = 50 * (level^2)\nStreak Bonuses: Up to 2.0x multiplier for consistent habits\nBadges: Earn badges for achievements and milestones\nLeaderboard: Compare progress (multi-user support)\nAccountability: Track commitment and earn-back system\nEnvironment Variables\nVariable\tRequired\tDescription\nSUPABASE_URL\tYes\tSupabase project URL\nSUPABASE_SERVICE_KEY\tYes\tSupabase service role key\nAPI Endpoints\n\nAll endpoints are relative to the ClawdBot API server ({CLAWDBOT_API_URL}/api/gamification/).\n\nGet User Stats\nGET /api/gamification/stats/:userId\n\n\nResponse:\n\n{\n  \"totalXp\": 2450,\n  \"currentLevel\": 7,\n  \"weeklyXp\": 350,\n  \"monthlyXp\": 1200,\n  \"progress\": {\n    \"xpInLevel\": 150,\n    \"xpNeeded\": 450,\n    \"percent\": 33\n  },\n  \"accountability\": {\n    \"balance\": 50,\n    \"totalSlashed\": 10,\n    \"totalEarnedBack\": 60\n  }\n}\n\nGet Recent Transactions\nGET /api/gamification/transactions/:userId?limit=20\n\nGet User Badges\nGET /api/gamification/badges/:userId\n\nAward XP (Internal)\nPOST /api/gamification/award\n{\n  \"userId\": \"302137836\",\n  \"amount\": 50,\n  \"source\": \"habit\",\n  \"sourceId\": \"morning-routine\",\n  \"note\": \"Completed morning routine\"\n}\n\nComplete Habit (with streak bonus)\nPOST /api/gamification/habit-complete\n{\n  \"userId\": \"302137836\",\n  \"habitId\": \"workout\",\n  \"currentStreak\": 7\n}\n\nComplete Task\nPOST /api/gamification/task-complete\n{\n  \"userId\": \"302137836\",\n  \"taskId\": \"task-123\",\n  \"priority\": 8\n}\n\nGoal Milestone\nPOST /api/gamification/goal-milestone\n{\n  \"userId\": \"302137836\",\n  \"goalId\": \"goal-456\",\n  \"milestonePercent\": 50\n}\n\nAward Badge\nPOST /api/gamification/badge\n{\n  \"userId\": \"302137836\",\n  \"badgeType\": \"early_bird\",\n  \"metadata\": { \"streak\": 30 }\n}\n\nGet Leaderboard\nGET /api/gamification/leaderboard\n\nGet XP Config\nGET /api/gamification/config\n\nDatabase Tables\n\nThis skill requires the following Supabase tables:\n\nuser_gamification - User XP totals, levels, streaks\nxp_transactions - XP award history\nuser_badges - Earned badges\nXP Rewards\nAction\tBase XP\tNotes\nHabit completion\t10-50\t+ streak bonus up to 2x\nTask completion\t5-50\tBased on priority (1-10)\nGoal 25% milestone\t100\tFirst quarter\nGoal 50% milestone\t200\tHalfway\nGoal 75% milestone\t300\tThree quarters\nGoal 100% completion\t500\tFull completion\nExample Usage\nCheck Progress\n\"What's my XP level?\"\n\"How close am I to leveling up?\"\n\"Show my gamification stats\"\n\nView Achievements\n\"What badges do I have?\"\n\"Show my recent XP transactions\"\n\"What's my current streak?\"\n\nLeaderboard\n\"Show the leaderboard\"\n\"Who has the most XP?\"\n\nRelated\ngoals - Set and track goals\nhabits - Habit tracking system\nremind - Reminder system\ndaily-briefing - Daily progress summary"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Chipagosfinest/gamification-xp",
    "publisherUrl": "https://clawhub.ai/Chipagosfinest/gamification-xp",
    "owner": "Chipagosfinest",
    "version": "1.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}