CC-Dice
Description
Probabilistic dice trigger system for Claude Code hooks.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11