zelda-claude-code
v3.0.4
Published
Transform your Claude Code experience into an epic Zelda adventure with sounds, achievements, and combos!
Maintainers
Readme
🎮 Zelda Claude Code
Transform your coding experience into an epic Zelda adventure with sounds, achievements, combos, and real-time stats!
🎮 Try the Live Demo | 📦 NPM Package
✨ What is this?
Zelda Claude Code gamifies your coding experience! Every command plays iconic Zelda sounds, successful streaks build epic combos, and you unlock achievements as you master your craft. Everything works seamlessly inside Claude Code - no external tools, no manual scripts, just pure integrated magic!
🚀 Installation
Method 1: NPM (Recommended) - 10 seconds!
# Install globally via npm (v3.0.0 - spec compliant!)
npm install -g zelda-claude-code@latest
# IMPORTANT: Restart Claude Code
exit
# Start Claude Code again✅ Works on all platforms: macOS, Linux, Windows, WSL
Method 2: From Source
# Clone the repository
git clone https://github.com/linjiw/claude-code-but-zelda.git
cd claude-code-but-zelda
# Run the universal installer (NEW!)
python3 universal_installer.py
# Or use the classic installer
./install.sh
# IMPORTANT: Restart Claude Code
exit
# Start Claude Code againVerify Installation
# Check everything is working
python3 verify_and_fix_installation.py
# Test the sounds
./demo_sounds.shThat's it! The installer handles everything automatically. ✨
🎯 Version 3.0.0 - Full Claude Code Compliance
NEW: 100% compliant with official Claude Code documentation!
- Universal Installer: Works on any system, any condition
- Spec-Compliant Hooks: Follows official Claude Code hook specification
- Self-Healing Installation: Auto-fixes configuration issues
- Cross-Platform Support: macOS, Linux, Windows, WSL
- Zero Breaking Changes: Backward compatible with all features
⚡ Performance Optimizations
Blazing fast performance with 80-98% improvements!
- Sound Caching: Preloaded sounds with 90% cache hit rate
- Smart Debouncing: 97.5% reduction in redundant operations
- Async File I/O: 98.3% faster file operations
- Performance Monitoring: Real-time metrics tracking
All optimizations are automatic and backward compatible!
🎮 How to Use
Everything is controlled through @zelda commands directly in Claude Code:
📊 Core Commands
| Command | Description | Example |
|---------|-------------|---------|
| @zelda help | Show all available commands | @zelda help |
| @zelda stats | View your coding statistics | @zelda stats |
| @zelda achievements | Check achievement progress | @zelda achievements |
| @zelda combo | See current combo streak | @zelda combo |
| @zelda config | View configuration settings | @zelda config |
| @zelda config <key> <value> | Update a setting | @zelda config volume 75 |
💡 Real Examples
# Check how you're doing
@zelda stats
# See what you've unlocked
@zelda achievements
# Check your current streak
@zelda combo
# Adjust the volume
@zelda config volume 50
# Turn off combo sounds
@zelda config sounds.combo false
# Enable achievement notifications
@zelda config notifications.achievements true🎵 Sound Events
Experience these epic sounds as you code:
| Event | Sound | Triggered When | |-------|-------|----------------| | ✅ Success | Puzzle Solved | Any command succeeds | | ❌ Error | Damage/Cooking Fail | Command fails | | 📝 Todo Done | Shrine Complete | Mark todo as complete | | 🏆 Achievement | Item Get (Large) | Unlock new achievement | | 🔥 Combo 3x | Rupee | 3 successes in a row | | 🔥 Combo 5x | Heart Get | 5 successes streak | | 🔥 Combo 10x | Secret Found | Epic 10x combo! | | 💥 Combo Break | Game Over | Streak ends | | 🔍 Search | Discovery | Find search results | | 🚀 Session Start | Village Theme | Begin coding session | | 🌙 Session End | Night Theme | End coding session |
🏆 Features in Detail
📈 Statistics Tracking
Track your coding journey with detailed metrics:
Session Stats:
- Commands executed this session
- Success/failure ratio
- Current combo streak
- Session duration
- Tools used
All-Time Stats:
- Total commands lifetime
- Overall success rate
- Longest combo ever
- Total sessions
- Favorite tools
- Achievement progress
⚡ Combo System
Build epic streaks with consecutive successes:
| Combo Level | Commands | Sound | Reward | |-------------|----------|-------|--------| | 🥉 Bronze | 3 | Rupee | Confidence boost | | 🥈 Silver | 5 | Heart Get | Momentum building | | 🥇 Gold | 10 | Secret Found | Epic streak! | | 💎 Diamond | 20 | Major Discovery | Legendary! | | 🔥 Master | 50 | Ultimate Power | Triforce worthy! |
Tips:
- Combos reset on any error
- Higher combos = cooler sounds
- Track best combo in stats
- Some achievements require specific combos
🎖️ Achievement System
Unlock 11+ achievements across multiple categories:
Progress Milestones:
- 👶 First Steps - Your first command (1)
- 📚 Apprentice Coder - Getting started (10)
- ⚔️ Journeyman - Making progress (50)
- 🏆 Master Coder - Proven skill (100)
- 👑 Legendary Hero - True mastery (500)
Combo Achievements:
- 🔥 Combo Novice - 5x combo streak
- 💥 Combo Master - 10x combo streak
- ⚡ Combo Legend - 20x combo streak
Perfection Achievements:
- 💯 Perfectionist - 20 commands without error
- 🎯 Sharpshooter - 50 error-free commands
- 🌟 Flawless Victory - 100 perfect commands
⚙️ Configuration Options
Customize everything without leaving Claude Code:
Sound Settings:
@zelda config volume 75 # Set volume (0-100)
@zelda config sounds.enabled true # Enable all sounds
@zelda config sounds.combo true # Combo sounds on/off
@zelda config sounds.achievements true # Achievement sounds
@zelda config sounds.ambient false # Ambient soundsNotification Settings:
@zelda config notifications.achievements true # Achievement popups
@zelda config notifications.milestones true # Milestone alerts
@zelda config notifications.combos true # Combo notifications📊 What Your Stats Look Like
# 📊 Zelda Coding Statistics
## Session Stats
- **Commands:** 42
- **Success Rate:** 92.8%
- **Current Streak:** 7 🔥
- **Best Combo:** 15
## All-Time Stats
- **Total Commands:** 1,337
- **Success Rate:** 89.2%
- **Longest Streak:** 28 🔥
- **Total Sessions:** 24
- **Favorite Tool:** Bash (42%)
*Keep coding, Hero of Hyrule!* 🗡️✨🧪 Testing & Demos
Verify everything works perfectly:
# Run comprehensive unit tests
python3 test_zelda_system.py
# Run integration tests
python3 test_integration.py
# Demo all sounds (hear them all!)
./demo_sounds.sh
# Test specific sound
python3 scripts/play_sound.py success🔧 Troubleshooting
Sounds Not Playing?
Check volume:
@zelda config volume 100Verify sounds enabled:
@zelda config sounds.enabled trueTest audio player:
- macOS:
which afplay(should exist) - Linux:
which aplayorwhich paplay - Windows: PowerShell available
- macOS:
Test directly:
python3 scripts/play_sound.py success
Commands Not Working?
Did you restart Claude Code? (Required after install!)
Check hooks installed:
cat ~/.claude/settings.json | grep zelda_hookVerify hook exists:
ls hooks/zelda_hook.pyRe-run installer:
./install.sh
Stats Not Saving?
Check data directory:
ls -la ~/.zelda/Verify permissions:
touch ~/.zelda/test.txt && rm ~/.zelda/test.txt
Achievements Not Unlocking?
- Some achievements need specific conditions
- Check progress:
@zelda achievements - Stats persist across sessions
- First command always unlocks "First Steps"
🎨 Customization
Adding Custom Sounds
- Add
.wavfiles tosounds/directory - Name them to match events:
success.wav- Command successerror.wav- Command failureachievement.wav- Achievement unlock- etc.
Requirements:
- Format: WAV (preferred) or MP3
- Duration: ≤10 seconds
- Size: <5MB recommended
Custom Sound Packs
Create themed sound packs:
sounds/
├── zelda-classic/ # Retro 8-bit sounds
├── zelda-modern/ # BOTW/TOTK sounds
└── zelda-custom/ # Your mix📁 Project Structure
zelda-claude-code/
├── install.sh # One-click installer
├── zelda_core.py # Core game logic (all-in-one)
├── hooks/
│ └── zelda_hook.py # Claude Code integration
├── scripts/
│ ├── play_sound.py # Sound player
│ └── play_sound_async.py # Async sound player
├── sounds/ # 25+ Zelda sounds
│ ├── success.wav
│ ├── error.wav
│ ├── achievement.wav
│ └── ...
├── test_zelda_system.py # Unit tests
├── test_integration.py # Integration tests
└── demo_sounds.sh # Sound demo script💡 Pro Tips
- Build Combos: Chain commands for epic streaks
- Perfect Runs: Error-free sessions unlock special achievements
- Explore Tools: Use different Claude Code tools for variety
- Track Progress: Regular
@zelda statskeeps you motivated - Custom Volume: Find your perfect volume level
- Silent Mode: Working in public? Disable sounds temporarily
🤝 Contributing
We welcome contributions! Areas to improve:
- 🎵 New sound packs
- 🏆 More achievements
- 📊 Advanced statistics
- 🎮 New combo mechanics
- 🌍 Localization
- 🎨 Themes
📜 License
MIT License - Use freely!
Note: Zelda is a trademark of Nintendo. Please obtain sounds legally.
🙏 Credits
- 🎮 Nintendo for The Legend of Zelda
- 🤖 Anthropic for Claude Code
- 💻 Open source community
- 🎵 Sound designers and musicians
🚨 Important Notes
- Restart Required: Always restart Claude Code after installation
- Data Privacy: All data stored locally in
~/.zelda/ - No Network: Everything runs locally, no data sent anywhere
- Persistence: Stats save automatically
- Updates: Pull latest and re-run
./install.sh
🎯 Philosophy
Our design philosophy is seamless integration:
✅ What you CAN do:
- Use
@zeldacommands naturally - Everything works inside Claude Code
- Automatic sound feedback
- Real-time stats tracking
❌ What you DON'T need:
- Leave Claude Code
- Run Python scripts manually
- Edit config files
- Use external tools
📞 Support
Having issues? Try these:
- Check Troubleshooting section
- Run test suite:
python3 test_zelda_system.py - Demo sounds:
./demo_sounds.sh - Reinstall:
./install.sh
🚀 Ready to Level Up Your Coding?
- Install in 30 seconds
- Restart Claude Code
- Type
@zelda help - Start your adventure!
May the Triforce guide your code! 🗡️✨
Happy coding, Hero of Hyrule!
