# Roll Dice

> A skill that allows the agent to roll a dice and return the result.

- Skill: `mainmatter/roll-dice` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add mainmatter/roll-dice`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mainmatter/roll-dice/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: mainmatter (https://skillmd.com/u/mainmatter)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/mainmatter/roll-dice

---


Invoke the script in ./scripts/roll.js to roll a dice and return the result.

Example:

```bash
node ./scripts/roll.js # roll 6 faced dice
node ./scripts/roll.js 20 # roll 20 faced dice
```

