AGENT SKILL

quantum-dice

Quantum dice roller for tabletop RPGs — supports d4 through d100, Fate dice, coin flips, dice pools, advantage/disadvantage, and an AI-powered oracle mode.

License 许可
MIT
最近更新
2026-09-04
Stars
★ 0
Forks
0

01 前言 Front Matter

name
quantum-dice
author
rabbit-r1-skillz
version
1.1.0
description
Quantum dice roller for tabletop RPGs — supports d4 through d100, Fate dice, coin flips, dice pools, advantage/disadvantage, and an AI-powered oracle mode.

02 资源文件 3

03 SKILL.md 正文

QuantumDice

A full-featured tabletop dice roller for the Rabbit R1. Rolls use crypto.getRandomValues for genuine randomness. Genre-flavored flavor text (High Fantasy, Sci-Fi, Noir, Horror, Comedy, Cosmic Horror) reacts to your roll quality.

Modes

Mode How to enter How to exit
Roll (default) — —
Dice Pool Long-press PTT Long-press PTT twice
Oracle Double-tap PTT Double-tap PTT again, or long-press
Advantage/Disadvantage (from Oracle exit → re-enters roll) Long-press PTT
Dice type selector Scroll up/down in Roll mode PTT to confirm

Controls

  • PTT — roll the current die
  • Double-tap PTT — enter Oracle mode (speak a yes/no question)
  • Long-press PTT — enter Dice Pool mode; second long-press clears pool and exits
  • Scroll up/down — change dice type in Roll mode; add/remove dice in Pool mode
  • Shake — roll the current die

Oracle Mode

Double-tap PTT to enter Oracle mode. Press PTT and speak your question. The R1 rolls a d20, then sends your question and the roll result to the R1 built-in AI. The AI returns a cryptic, genre-flavored answer which is spoken aloud and displayed on screen.

How it works

  1. Player double-taps PTT — Oracle overlay appears.
  2. Player presses PTT and speaks their question — STT captures it.
  3. R1 rolls a d20 and builds a prompt: question + roll result + genre + instructions.
  4. Prompt is sent to the R1 built-in LLM via PluginMessageHandler.postMessage.
  5. The LLM answer is spoken by the R1 (TTS is automatic with wantsR1Response: true) and displayed in the overlay.

No external server, no local setup, no API keys required. Oracle mode works for all users out of the box.

Fallback behavior

If the built-in LLM call throws (e.g., messaging bridge unavailable), Oracle mode falls back to locally pre-written flavor text that matches the roll quality. The player experience degrades gracefully with no error shown.

Dice Pool mode

Long-press PTT to enter pool mode. Scroll to add dice (up to 20). Press PTT to roll the full pool. Long-press once to toggle modifier editing (scroll changes the modifier). Long-press twice to clear the pool and return to Roll mode.

Supported dice

d4, d6, d8, d10, d12, d20, d100, Fate (4dF), Coin (Yes/No/Maybe), Custom (choose any number of sides).

Persistent settings

Last selected dice type, genre, and custom sides are saved via R1.storageSet and restored on next launch.

No external dependencies

QuantumDice uses only R1 built-in APIs: R1.speak, R1.setLED, R1.blinkLED, R1.onShake, R1.storageGet, R1.storageSet, and PluginMessageHandler for AI oracle responses. No OpenClaw, no local server, no API keys needed.

04 同仓库更多 Skills

ajohnsonnow
ajohnsonnow/r1-warren

whisper-quiz

WhisperQuiz — voice-answered trivia game for Rabbit R1. Generates questions via the R1's built-in LLM, captures spoken answers via STT, and evaluates correctness with flexible LLM-based matching.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

walk-cast

Walking podcast production skill. Receives raw audio metadata and transcript from the R1, removes long pauses, applies noise reduction and normalization, generates AI chapter titles and episode metadata via LLM, and uploads the final episode to your configured podcast RSS host (Spotify for Podcasters / Anchor, Podbean, Buzzsprout, RSS.com, or any FTP-accessible feed).

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-novel

Local machine skill for VoiceNovel — handles story export to disk.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-guide

Environment description and navigation assistant for blind and low-vision users. Analyzes camera frames via a vision LLM, reads visible text, identifies scene categories (people/vehicles/food/hazards/exits), performs 360° scans, retrieves GPS position, and sends emergency SMS alerts — all via audio feedback with zero screen dependency.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-draft

Voice-driven document drafting for the Rabbit R1. Dictate stream-of-consciousness speech; the R1 formats it into Email, Blog Post, Report, Proposal, Meeting Notes, Creative Writing, Code Comments, Cover Letter, or Tweet Thread — then saves the result to a configured folder on your local machine via OpenClaw.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-commit

Hands-free git and CI workflow voice controller for the Rabbit R1. Speak git/CI commands and hear results — commit, push, status, PR management, test runs, and deploy, all voice-driven via OpenClaw.

★ 0