dice-roller

star 1

Roll virtual dice in various combinations using standard RPG notation (1d20, 3d6+4, etc.). Perfect for tabletop gaming, random number generation, or making decisions. Use when the user asks to roll dice.

annthurium By annthurium schedule Updated 1/21/2026

name: dice-roller description: Roll virtual dice in various combinations using standard RPG notation (1d20, 3d6+4, etc.). Perfect for tabletop gaming, random number generation, or making decisions. Use when the user asks to roll dice. argument-hint: <XdY+Z>

When this skill is invoked with $ARGUMENTS:

  1. Parse the dice notation (e.g., "2d6+3"):

    • Number of dice (before 'd')
    • Die size (after 'd', before '+' or '-')
    • Modifier (optional, after '+' or '-')
  2. Validate the input:

    • Number of dice should be 1-100
    • Die size should be reasonable (d2, d4, d6, d8, d10, d12, d20, d100)
    • If invalid, explain the correct format
  3. Roll the dice:

    • Generate random numbers for each die
    • Show individual rolls in brackets
    • Apply any modifiers
    • Calculate and show the total
  4. Format the output clearly:

    • Show the dice notation
    • Display individual die results
    • Show the modifier if present
    • Present the final total
  5. Add a dice emoji 🎲 to make it fun!

Examples

User: /dice-roller 1d20
Result: 🎲 Rolling 1d20: [17] = 17
User: /dice-roller 3d6+4
Result: 🎲 Rolling 3d6+4: [4, 2, 5] + 4 = 15
Install via CLI
npx skills add https://github.com/annthurium/simple-agent-demo --skill dice-roller
Repository Details
star Stars 1
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator