claude-gamify
v1.1.0
Published
Claude Code gamification - Interactive CLI for managing sound and output styles
Maintainers
Readme
Claude Gamify 🎮
Interactive NPX CLI for managing Claude Code gamification system
Transform your Claude Code experience into an immersive adventure through dual-layer gamification: epic sound effects that celebrate your coding victories, and themed response styles that turn every debugging session into a heroic quest.
Features
- 🎵 Theme Management - Switch between different gaming themes with unique sounds and response styles (Zelda, etc.)
- ⚙️ Settings Control - Adjust volume, toggle sounds on/off
- 🔊 Sound Testing - Test individual sounds or complete theme sets
Quick Start
Installation & Setup
# One-command installation and setup
npx claude-gamify
# Follow the interactive setup wizardDaily Usage
# Open the interactive manager
npx claude-gamify
# Quick commands
npx claude-gamify init # Reinitialize system
npx claude-gamify status # Show current statusAvailable Themes
- Zelda - The Legend of Zelda-inspired sound effects (default)
- System - Clean, minimal system sounds template
- More themes coming soon!
Requirements
- Node.js 14.0.0 or higher
- Claude Code with hooks support
- Audio System:
- macOS: Built-in (uses
afplay) - Linux: PulseAudio, ALSA, or SoX
- macOS: Built-in (uses
How It Works
Claude Gamify uses a separated architecture:
- NPX CLI Tool (
claude-gamify) - Rich interactive interface for management - Local Sound Player (
~/.claude-gamify/play_sound.js) - Zero-dependency, fast audio player - Claude Code Hooks - Integration with Claude Code's event system
┌─────────────────────┐
│ npx claude-gamify │ ← Interactive management
└─────────┬───────────┘
│ deploys
↓
┌─────────────────────┐
│ ~/.claude-gamify/ │ ← Local sound system
│ • play_sound.js │
│ • config.json │
│ • themes/ │
└─────────┬───────────┘
│ hooks
↓
┌─────────────────────┐
│ Claude Code │
└─────────────────────┘Configuration
Configuration is stored in ~/.claude-gamify/config.json:
{
"theme": "zelda",
"sound_enabled": true,
"sound_volume": 0.5
}Supported Sound Events
- SessionStart - When Claude Code starts
- UserPromptSubmit - When you send a message
- PreToolUse - Before Claude uses a tool
- PostToolUse - After Claude uses a tool
- Notification - General notifications
- Stop - When Claude finishes responding
- SubagentStop - When a subtask completes
Advanced Usage
Manual Theme Installation
# Copy theme files to ~/.claude-gamify/themes/my-theme/
# Include: SessionStart.wav, UserPromptSubmit.wav, etc.
npx claude-gamify # Select theme in UITroubleshooting
# Check system compatibility
npx claude-gamify
# → System Info
# Reinitialize if needed
npx claude-gamify init
# Test specific sounds
npx claude-gamify
# → Test SoundsLinux Audio Setup
If you're on Linux and sounds aren't working, install audio players:
# Ubuntu/Debian
sudo apt install alsa-utils pulseaudio-utils mpg123 sox
# CentOS/RHEL/Fedora
sudo yum install alsa-utils pulseaudio-utils mpg123 sox
# Arch Linux
sudo pacman -S alsa-utils pulseaudio mpg123 soxProject Structure
claude-gamify/
├── package.json # NPX package configuration
├── bin/ # CLI entry point
├── lib/ # Modular architecture
│ ├── orchestrator.js # Main coordinator
│ ├── cli/ # CLI interface layer
│ ├── core/ # Business logic
│ └── ui/ # User interface components
├── template/ # Deployment templates
│ ├── play_sound.js # Zero-dependency player
│ ├── config.json # Default configuration
│ └── themes/ # Sound themes
└── test/ # TestsContributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT License - see LICENSE file for details.
Credits
- Sound effects inspired by classic video games
- Built for the Claude Code community
- Powered by Node.js and modern CLI tools
Happy Coding with Claude Gamify! 🎮✨
