convez.ai
HookUtilidadesIntermediário
totigm

Claude Game Roulette

totigm/claude-game-roulette

Aleatoriedade controlada: lance um jogo a cada prompt com probabilidade configurável

Ver no GitHub
InicialPluginScore · de 0 a 100

Hook para Claude Code que adiciona uma pequena chance (configurável) de lançar um jogo aleatório a cada prompt. Injetar 'ROULETTE HIT' no contexto do modelo, permitindo que Claude reconheça a aleatoriedade enquanto responde normalmente. Perfeito para adicionar um toque de diversão e gamificação ao fluxo de trabalho de desenvolvimento.

Instalação

$npx convez-ai totigm/claude-game-roulette

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
2
Forks
0
Acompanhando
0
Saúde
42%
Último commit
há 5 meses
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Adicionar pausas gamificadas durante sessões longas de programação
  • Criar mecanismos de recompensa aleatória em workflows de desenvolvimento
  • Testar comportamento do Claude sob contextos inesperados e anormais

Veredito

Plugin criativo e bem-implementado que injeta diversão em Claude Code com zero impacto na produtividade real. Config simples, execução confiável, melhor para ambientes de desenvolvimento onde pausas lúdicas são bem-vindas.

README

A tradução para o português deste README ainda está na fila.

claude-game-roulette

A Claude Code plugin. Every prompt you submit has a small chance (default 1%) of launching a random game from a list you curate. The hook also injects a "ROULETTE HIT" note into the model's context, so Claude can acknowledge the chaos and still answer your actual prompt.

demo

Install

Inside Claude Code:

/plugin marketplace add totigm/claude-game-roulette
/plugin install claude-game-roulette@claude-game-roulette

(For local development, point marketplace add at the cloned directory instead of the GitHub slug.)

Then:

  1. Submit a prompt in Claude Code. The first run creates ~/.claude/claude-game-roulette.json with probability: 0 (inert).
  2. Edit ~/.claude/claude-game-roulette.json. See examples/claude-game-roulette.example.json for a starter.

Config

{
  "probability": 0.01,
  "games": [
    { "name": "Counter-Strike 2", "command": "steam://run/730" },
    { "name": "Minecraft", "command": "minecraft://", "weight": 2 },
    {
      "name": "League of Legends",
      "command": "/Applications/League of Legends.app"
    }
  ]
}
  • probability — float in [0, 1]. Per-prompt hit chance. Numeric strings ("0.5") are accepted; anything that isn't a number falls back to 0 with a stderr warning.
  • games[].name — shown in the announcement Claude sees.
  • games[].command — what to launch: a URI scheme (steam://run/730, minecraft://), an .app bundle path on macOS, or an executable path. No shell expansion (see note below).
  • games[].weight — optional. Relative likelihood on a hit. Defaults to 1.

Note: The command is launched directly without a shell wrapper. On Linux, this means shell metacharacters (;, |, $) are NOT interpreted — write the literal executable path or use a URI scheme. To launch with arguments, write a tiny wrapper script and point command at it.

Testing your config

Set CLAUDE_GAME_ROULETTE_FORCE=1 for a single Claude Code session to guarantee a hit on every prompt:

CLAUDE_GAME_ROULETTE_FORCE=1 claude

Requirements

  • Node.js 18+ on PATH. If you installed Claude Code via npm you already have it.

Development

npm test

Migrating from claude-roulette (v0.2.x)

The plugin was renamed in v0.3.0. Existing users:

  1. Move your config: mv ~/.claude/claude-roulette.json ~/.claude/claude-game-roulette.json
  2. Use CLAUDE_GAME_ROULETTE_FORCE instead of CLAUDE_ROULETTE_FORCE for forced hits.
  3. Reinstall under the new name:
    /plugin uninstall claude-roulette
    /plugin marketplace remove claude-roulette
    /plugin marketplace add totigm/claude-game-roulette
    /plugin install claude-game-roulette@claude-game-roulette
    /reload-plugins
    
Ver o original no GitHub

Bom para

Relacionados