# Roll Configurable Dice with Rust

Agents often need simple dice rolls for games, examples, or randomized test values. This skill runs a Rust dice roller through Enact and returns individual rolls with the total.

## Install

```bash
npx skillstore add enactprotocol/enact-dice-roll-rust
```

## Metadata

- Status: approved
- Slug: enactprotocol-enact-dice-roll-rust
- Version: 1.0.0
- Author version: 1.0.0
- Skillstore revision: r1
- Version status: valid
- Tree hash: 64641488f9856273508adcd6dc799dd31b72b2326f076281c404f4b198a00442
- Author: EnactProtocol
- GitHub username: EnactProtocol
- License: MIT
- Repository: https://github.com/EnactProtocol/enact/tree/main/examples/tools/dice-roll-rust
- Ref: 30c73eac2afe762f6aa9c4553158769369d47351
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands
- Quality score: 80
- Quality tier: silver
- Public page: https://skillstore.pages.dev/skills/enactprotocol-enact-dice-roll-rust
- Manifest: https://skillstore.pages.dev/api/skills/enactprotocol-enact-dice-roll-rust/manifest

## Capabilities

- Rolls between 1 and 100 dice in a single request.
- Supports dice with 2 to 100 sides, including common tabletop dice such as d6, d20, and d100.
- Returns individual roll values plus the total, side count, and dice count.
- Provides CLI examples for Enact users and MCP invocation guidance for agents.
- Builds and runs a small Rust executable inside the Enact tool flow.

## Use Cases

- Run Tabletop Rolls: Roll common dice combinations during lightweight role-playing sessions and summarize the individual results and total.
- Create Random Test Values: Generate bounded random integers for demos, examples, or simple testing workflows where reproducible security-grade randomness is not required.
- Study Enact Tool Patterns: Use a compact Rust implementation to understand Enact input schemas, output schemas, CLI invocation, and MCP-facing documentation.

## Prompt Templates

### Roll a Standard Die

```
Use the dice roll skill to roll one six-sided die and tell me the result.
```

### Roll Tabletop Damage

```
Use the dice roll skill to roll three eight-sided dice, then report each die and the total damage.
```

### Generate Stat Rolls

```
Call the dice roll skill six times with four six-sided dice each, then list the six totals in descending order.
```

### Check Bounded Random Samples

```
Run the dice roll skill with 20 sides and 10 dice, verify every value is within range, and summarize the individual rolls and total.
```

## Limitations

- Uses a simple time-seeded generator and is not suitable for cryptographic randomness or fairness-critical wagering.
- Clamps inputs to 2-100 sides and 1-100 dice rather than supporting arbitrary dice expressions.
- Returns numeric roll results only; it does not apply tabletop rules, modifiers, advantage, or success thresholds by itself.
- Requires an Enact-compatible runtime or MCP setup before agents can call it.

## Best Practices

- Specify both the number of sides and the dice count so the agent does not rely on defaults accidentally.
- Use the tool for games, demos, and simple bounded randomness rather than security-sensitive decisions.
- Ask the agent to report both individual rolls and totals when the distinction matters.

## Anti Patterns

- Do not use the output as cryptographic randomness, gambling fairness proof, or security token material.
- Do not expect the skill to parse compound dice notation, modifiers, or game rules unless the agent handles that logic separately.
- Do not request values outside the documented input limits and expect the exact out-of-range request to be preserved.

## Security Audit

- Audited at: 2026-07-05T15:44:47.67\+00:00
- Summary: All 14 static findings in SKILL.md are false positives caused by Markdown fenced bash examples and inline code spans, not Ruby or shell backtick execution. I found no evidence of prompt injection, data exfiltration intent, or business-logic abuse in the reviewed skill context.

## Stats

- Views: 143
- Downloads: 11
- Favorites: 0
- Popularity score: 0
