AGENT SKILL
Rust 骰子投掷工具
dice-roll-rust
用可配置的面数和数量掷骰子——一个简单的 Rust 示例工具。
- License 许可
- Apache-2.0
- 最近更新
- 2026-03-18
- Stars
- ★ 19
- Forks
- 3
01 前言 Front Matter
- name
- dice-roll-rust
- description
- Roll dice with configurable sides and count - a simple Rust example tool
02 资源文件 2
- 脚本dice.rs1.9 KB
- 参考文档skill.package.yml242 B
03 SKILL.md 正文
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
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 resultstotal: Sum of all rollssides: The die type usedcount: Number of dice rolled
04 同仓库更多 Skills
网站技术栈指纹识别
whatweb
Web 扫描器,可识别网站、CMS、框架、Web 服务器和嵌入式设备
★ 19
Playwright 浏览器自动化
playwright
使用 Playwright 的浏览器自动化工具 - 可截取屏幕截图并从网页提取内容
★ 19
Rust 入门问候工具
hello-rust
一个简单的 Rust 问候工具
★ 19
Ruby 问候工具
hello-ruby
一个简单的 Ruby 问候工具。
★ 19
JavaScript 问候工具
hello-js
一个简单的 JavaScript 问候工具。
★ 19
Go 语言问候工具
hello-go
一个简单的 Go 语言问候工具。
★ 19