Skip to content
OpenSmartRoute
Skillv1.0.0

enact-dice-roll-rust

Roll dice with configurable sides and count - a simple Rust example tool

by aiskillstore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from aiskillstore/marketplace (skills/enactprotocol/enact-dice-roll-rust/SKILL.md). Install upstream with npx skills add aiskillstore/marketplace --skill enact-dice-roll-rust. Copyright stays with the author (MIT).

Dice Roll (Rust)

A simple dice rolling tool written in Rust. Demonstrates how to create an Enact tool with Rust.

Features

  • Roll any number of dice with configurable sides
  • Returns individual rolls and total sum
  • Supports common dice types: d4, d6, d8, d10, d12, d20, d100

Usage Examples

CLI

Roll a single d6

enact run enact/dice-roll-rust

Roll 2d6 (two six-sided dice)

enact run enact/dice-roll-rust -a '{"sides": 6, "count": 2}'

Roll a d20

enact run enact/dice-roll-rust -a '{"sides": 20}'

Roll 4d6 for D&D stats

enact run enact/dice-roll-rust -a '{"sides": 6, "count": 4}'

MCP (for LLMs/Agents)

When using via MCP, call enact__dice-roll-rust with:

  • sides: Number of sides per die (default: 6)
  • count: Number of dice to roll (default: 1)

Output

Returns JSON with:

  • rolls: Array of individual die results
  • total: Sum of all rolls
  • sides: The die type used
  • count: Number of dice rolled

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/aiskillstore-marketplace-enact-dice-roll-rust/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

aiskillstore-marketplace-enact-dice-roll-rust.ocm.jsonjson
{
  "ocm": "1",
  "id": "aiskillstore-marketplace-enact-dice-roll-rust",
  "kind": "skill",
  "name": "enact-dice-roll-rust",
  "description": "Roll dice with configurable sides and count - a simple Rust example tool",
  "publisher": "aiskillstore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "dice",
      "random",
      "rust",
      "example",
      "games",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Roll dice with configurable sides and count - a simple Rust example tool"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/aiskillstore/marketplace",
      "path": "skills/enactprotocol/enact-dice-roll-rust/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/aiskillstore/marketplace/blob/HEAD/skills/enactprotocol/enact-dice-roll-rust/SKILL.md",
      "key": "aiskillstore/marketplace/skills/enactprotocol/enact-dice-roll-rust/SKILL.md"
    },
    "license": "MIT"
  },
  "instructions": "# Dice Roll (Rust)\n\nA simple dice rolling tool written in Rust. Demonstrates how to create an Enact tool with Rust.\n\n## Features\n\n- Roll any number of dice with configurable sides\n- Returns individual rolls and total sum\n- Supports common dice types: d4, d6, d8, d10, d12, d20, d100\n\n## Usage Examples\n\n### CLI\n\n#### Roll a single d6\n```bash\nenact run enact/dice-roll-rust\n```\n\n#### Roll 2d6 (two six-sided dice)\n```bash\nenact run enact/dice-roll-rust -a '{\"sides\": 6, \"count\": 2}'\n```\n\n#### Roll a d20\n```bash\nenact run enact/dice-roll-rust -a '{\"sides\": 20}'\n```\n\n#### Roll 4d6 for D&D stats\n```bas",
  "cost": {
    "context_tokens": 252
  }
}

Fetch it by URL: GET /api/v1/registry/aiskillstore-marketplace-enact-dice-roll-rust/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.