cyberneticlibrary

Roll dice for tabletop RPG mechanics

dice-rollerskillsetup L1381
majiayu000/claude-skill-registry
What it does

Roll dice for tabletop RPG mechanics with JSON output

Best for

Resolving skill checks, attack rolls, damage, initiative, and saving throws in tabletop RPG adventures with deterministic outcomes.

Inputs
  • · Dice expression: 1d20, 2d6+3, 3d8-2, 4dF, d100
Outputs
  • · JSON: {expression, rolls[], modifier, total}
  • · Narrative outcome tied to mechanical result
Requires
  • · roll.sh script (bash)
Preconditions
  • · RPG rules system defined (indicated by System.md or adventure context)
  • · Dice expression valid (NdM±offset, supports Fudge dice)
Failure modes
  • · Invalid expression syntax → script returns error
  • · Outcome narration missing → mechanical result only (loses narrative flow)
  • · GM forgets to roll for hidden checks → results are public (reroll and narrate as retroactive)
Trust signals
  • · Deterministic execution (same seed = same result if needed)
  • · Supports standard dice pools and Fudge dice
  • · JSON output for programmatic use
  • · Narrative coupling: outcomes tied to story consequences