Skip to content

luka2chat/clawrecord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿพ ClawRecord

Duolingo for your AI assistant โ€” gamified OpenClaw tracking

GitHub stars License Last Updated OpenClaw Python Node.js

English | ็ฎ€ไฝ“ไธญๆ–‡ | Live Demo โ†’


Your AI grows. You get the credit. ClawRecord automatically tracks your OpenClaw usage and turns it into XP, achievements, leagues, and a personal dashboard โ€” all shareable to X.


๐Ÿš€ 30-Second Quick Start

# 1. Clone into your OpenClaw directory
git clone https://github.com/luka2chat/clawrecord.git
cd clawrecord

# 2. Install the hook
cp -r hooks/clawrecord-hook ~/.openclaw/hooks/
openclaw hooks enable clawrecord-hook && openclaw gateway restart

# 3. Generate your dashboard
python3 scripts/collect.py && python3 scripts/score.py && python3 scripts/generate_pages.py

# 4. Open it!
open docs/index.html  # macOS, or xdg-open on Linux

That's it. Your personal ClawRecord dashboard is ready.


๐ŸŽฎ For Every Type of Player

ClawRecord adapts to your experience level with a guided learning path:

๐ŸŒฑ Beginners โ€” Learn OpenClaw

Step What you'll learn Reward
1 Send your first message ๐Ÿฅš First Steps badge
2 Use a tool call ๐Ÿ”ง Tool Wielder badge
3 Complete a session ๐Ÿ‘ฃ Session Runner badge
4 Unlock your first achievement โญ First star
5 Reach Level 3 ๐Ÿฃ Apprentice Tamer rank

๐Ÿš€ Intermediate โ€” Track & Grow

Goal How to get there Reward
Build a 7-day streak Use OpenClaw every day ๐Ÿ”ฅ On Fire badge
Reach Gold league Earn 1,500+ weekly XP ๐Ÿฅ‡ Gold league status
Master a skill to Lv.5 Focus on one skill area ๐Ÿง™ Skill specialist badge
Unlock 10 achievements Explore different features ๐Ÿ… Achievement wall
Deploy your dashboard Push to GitHub Pages ๐Ÿ“Š Live personal dashboard

๐Ÿ‘‘ Advanced โ€” Compete Globally

Goal How to get there Reward
Join the global leaderboard PR to clawrecord-leaderboard ๐ŸŒ Global ranking
Reach Diamond league 40,000+ weekly XP ๐Ÿ’Ž Diamond status
Earn a Legend badge Max out any achievement โญโญโญโญโญ Legend tier
30-day streak Consistent daily usage ๐Ÿ”ฅ Unstoppable badge
Share profile on X Click share button ๐Ÿ“ข Social recognition

โœจ Features

๐ŸŽฏ Core Gameplay

Feature Description
๐Ÿ“Š Auto Data Collection Hook + session parser extracts metrics from OpenClaw runtime
โญ XP System Earn XP from messages, tool calls, multi-turn conversations, skill diversity
๐Ÿ“ˆ Level & Evolution Progress from ๐Ÿฅš Novice Tamer to ๐Ÿ‘‘ AI Overlord across 8 ranks
๐Ÿ”ฅ Streak & HP Daily streak with freeze protection, health decay, and recovery mechanics
๐Ÿ“‹ Daily Quests 3 rotating daily challenges (Combo + Challenge + Streak) with bonus XP

๐Ÿ… Gamification & Social

Feature Description
๐Ÿ† 47 Achievements 21 badge types with up to 5 tiers each (Bronze โ†’ Legend)
๐ŸŒณ 6 Skill Trees ๐Ÿ’ป Coding ยท โœ๏ธ Content ยท ๐Ÿ” Research ยท ๐Ÿ’ฌ Communication ยท โš™๏ธ Automation ยท ๐Ÿ“Š Data
๐ŸŸ๏ธ 10-Tier Leagues ๐ŸŸค Bronze โ†’ ๐Ÿ’Ž Diamond with promotion tracking
๐ŸŒ Global Leaderboard Decentralized via GitHub โ€” zero infrastructure cost
๐Ÿฆ Share to X One-click sharing of profile, achievements, streaks, and records
๐Ÿ—บ๏ธ Learning Path Guided journey from beginner to advanced with progress tracking

๐Ÿ“Š Level System

Level Rank Icon XP Required
1 Novice Tamer ๐Ÿฅš 0
3 Apprentice Tamer ๐Ÿฃ 500
5 Assistant Tamer ๐Ÿฅ 1,500
10 Senior Tamer ๐Ÿฆ… 5,000
20 Claw Master ๐Ÿฆ‰ 15,000
35 AI Expert ๐Ÿค– 40,000
50 AI Sage ๐Ÿง  80,000
100 AI Overlord ๐Ÿ‘‘ 200,000

๐ŸŸ๏ธ League System

๐ŸŸค Bronze โ†’ ๐Ÿฅˆ Silver โ†’ ๐Ÿฅ‡ Gold โ†’ ๐Ÿ’  Sapphire โ†’ ๐Ÿ”ด Ruby โ†’ ๐ŸŸข Emerald โ†’ ๐ŸŸฃ Amethyst โ†’ โšช Pearl โ†’ ๐Ÿ–ค Obsidian โ†’ ๐Ÿ’Ž Diamond

Leagues are determined by your weekly XP. The dashboard shows your progress toward the next league with a visual progress bar.


๐Ÿฆ Share to X

ClawRecord includes one-click sharing to X (Twitter) throughout the dashboard:

  • Profile share โ€” Your level, Claw Power, and rank
  • League share โ€” Your current league and weekly XP
  • Achievement share โ€” Your badge collection progress
  • Record share โ€” Your personal best stats

All share links include #ClawRecord #OpenClaw hashtags and Open Graph meta tags for rich link previews.


๐Ÿ—๏ธ Architecture

OpenClaw Runtime โ†’ Hook (real-time) โ†’ collect.py โ†’ score.py โ†’ generate_pages.py โ†’ GitHub Pages
                   Session JSONL โ”€โ”€โ”€โ”€โ†—                โ†“
                                              public_profile.json โ†’ Global Registry โ†’ Leaderboard

๐Ÿ“‚ Project Structure

clawrecord/
โ”œโ”€โ”€ hooks/clawrecord-hook/   # OpenClaw hook for real-time event capture
โ”œโ”€โ”€ scripts/
โ”‚   โ”œโ”€โ”€ collect.py           # Data collection from OpenClaw runtime
โ”‚   โ”œโ”€โ”€ score.py             # XP / achievement / level calculation engine
โ”‚   โ”œโ”€โ”€ generate_pages.py    # Static dashboard generator (v3)
โ”‚   โ””โ”€โ”€ utils.py             # Shared utilities
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ config.json          # Game rules, levels, 47 achievements, leagues
โ”‚   โ”œโ”€โ”€ raw/                 # Auto-collected metrics (do not edit)
โ”‚   โ”œโ”€โ”€ user_stats.json      # Computed user state
โ”‚   โ”œโ”€โ”€ tasks.json           # Auto-detected daily tasks
โ”‚   โ”œโ”€โ”€ check_ins.json       # Daily check-in records
โ”‚   โ””โ”€โ”€ public_profile.json  # Public data for global leaderboard
โ”œโ”€โ”€ docs/                    # Generated static dashboard
โ””โ”€โ”€ .github/workflows/       # CI/CD pipeline (daily cron)

๐Ÿ›ก๏ธ Anti-Cheat

  • All XP is computed from verified OpenClaw runtime logs
  • data/raw/ is machine-generated โ€” manual edits are ignored by the pipeline
  • public_profile.json includes a SHA-256 signature for integrity verification
  • The global registry checks XP growth rate anomalies

๐Ÿค Contributing

Contributions welcome! Feel free to:

  • ๐Ÿ› Report bugs via Issues
  • ๐Ÿ’ก Suggest features via Discussions
  • ๐Ÿ”ง Submit PRs for improvements

๐Ÿ“„ License

This project is open source. See LICENSE for details.


Powered by OpenClaw & GitHub Actions

โญ Star this repo if you find it useful!

About

๐ŸŽฎ Gamified OpenClaw tracking โ€” XP, levels, achievements, global leaderboard

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors