CC Dice — Development skill for Claude Code
Probabilistic dice trigger system for Claude Code hooks.
How to install CC Dice
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open pro-vi/cc-dice and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What CC Dice does
Probabilistic dice trigger system for Claude Code hooks.
Alternatives in Development
- Root Cause Tracing — Use when errors occur deep in execution and you need to trace back to find the original trigger 102.5k ★
- Run Daily — Trigger the daily digest now (background via OS scheduler) and monitor until completion 355 ★
- Learn Review — Manually trigger a learning review of the current session 172 ★
README
CC-Dice
Probabilistic dice trigger system for Claude Code hooks.
Project Layout
src/— Core library (index.ts is the public API)bin/cc-dice.ts— CLI entrypointhooks/— Claude Code hook scripts (stop, session-start)install.sh— Installer (symlinks, hook registration, dependency checks)tests/unit/test_cc_dice.bats— BATS test suitedocs/architecture.md— Architecture, design decisions, origin story
Development
bun install # install dev dependencies
bun test # run test suite
./install.sh check # verify installation
DEBUG=1 bun hooks/stop.ts # run stop hook with verbose logging
Key Concepts
- Slots: Named dice configurations persisted to
~/.claude/dice/slots.json - Shared pools:
checkAllSlots()groups slots by die size, rolls one base die per group - Session isolation: State is per-slot AND per-session via
CC_DICE_SESSION_ID - Hook exit codes:
0= silent,2= stderr shown to Claude
Testing
Tests use BATS with git submodules. All tests are isolated via `CC_DICE_BASE` temp directories.
git submodule update --init --recursive # if submodules missing
bun test
Environment Variables
| Variable | Purpose |
|---|---|
CC_DICE_BASE |
Override base directory (default: ~/.claude/dice/) |
CC_DICE_SESSION_ID |
Override session ID |
DEBUG=1 |
Verbose logging to stderr |
Related Skills
Agent Dice
Probabilistic dice triggers for Claude Code hooks
Superforecasting Skill
Turn vague concerns into resolvable, updatable, scoreable probabilistic forecasts. A Claude Code / Codex skill
REST
Process short or long rests for the party. Handles hit dice, HP recovery, feature recharges, and spell slot re
Roll
Roll dice for D&D 5e. Supports XdY+Z notation, advantage, disadvantage, ability checks, saves, and attacks.
Mythx MCP
MythX Engine — open TTRPG game engine + MCP server: dice, combat, clocks, investigations, and 4 complete world
Humanizar Es
Reescribe texto en español generado por IA para que los detectores dejen de marcarlo sin cambiar lo que dice:
Related Agents
Automation Sentinel
Use this agent to monitor, analyze, and optimize the automation ecosystem (agents, commands, hooks). This is a
WordPress Expert
Expert WordPress/PHP developer. Use for WordPress theme development, plugin development, GeneratePress customi
Original Games Engineer
オリジナルゲームエンジニアはProvably Fair自社開発ゲーム(Crash, Dice, Mines, Plinko, Limbo等)の設計・実装を担当。Stake Originalsレベルの高RTP・高速ゲーム開