open_dice
Play demoTry asking
- Open the Easy Dice app
- open the dice roller
ghost skill run ghost/easy-dice open_dice Easy Dice (F-Droid): roll any hand of d2, d4, d6, d8, d10, d100, d12, d20 and d30 dice for tabletop games and read the total. Offline, no account.
Agent run: finished without the skill, finished with it (not independently checked).
One recorded run each way, claude-haiku-5-5, same phone and same prompt. Watch it in the Before / after tab.
41× fewer tokens, 3.1× faster with the skill. Agent run: finished without the skill, finished with it (not independently checked).
| Run | Time | Tokens | Tool calls | Result |
|---|---|---|---|---|
| No skill: agent drives by hand | 94.8 s | 844,242 | 32 | finished |
| With skill: find_skill, run_skill | 30.7 s | 20,778 | 3 | finished |
Prompt: Roll 2d6 and a d20 for my D&D attack and tell me the total. Do not use the Play Store, no installs, no sign-in.
Same prompt, same phone, clean app state per side. Left: no skill, the agent drives the UI by hand. Right: find_skill + run_skill. 'ok' means the agent finished its turn; the result was not independently checked.
One recorded pair on samsung-a03s, claude-haiku-5-5; tokens count every input, cache and output token once per assistant message. Not a signed run: it adds no run evidence.
Control Easy Dice on Android with an AI agent. Your agent rolls the dice for your tabletop game: say 2d6 plus a d20 and get the total.
Target search phrase: AI agent rolls dice for D&D on Android with a polyhedral dice roller
Demo shows: add_dice (sides=20, count=2)
Ghost in the Droid seed skill for Easy Dice (
net.pejici.easydice), an offline polyhedral dice roller. The ROLL and RESET buttons and the total text are readable, so an agent can build a hand, roll it and report the sum. Offline, no account.
| Action | What it does | Params |
|---|---|---|
open_dice | Restart the app and read the hand. | none |
add_dice | Add dice of one size to the hand. | sides, count |
roll | Roll the dice in the hand and return the total. | none |
reset_hand | Remove all dice from the hand. | none |
roll_dice | Clear the hand, add the dice in a notation like 2d6+d20, roll and return the total. | spec |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | open_dice |
| Primitives | add_dice, roll, reset_hand, roll_dice |
| Read state | roll (returns the sum and dice count) |
The app: F-Droid, or https://f-droid.org/packages/net.pejici.easydice/. The skill:
pip install "ghost-in-the-droid>=1.6.0" # 1.6.0 is not on PyPI yet: until it ships, git clone the repo and `pip install -e .`
ghost skill install ghost/easy-dice
ghost skill run ghost/easy-dice roll_dice --param spec=2d6+d20 --device <serial>
run_skill(name='ghost/easy-dice', action='roll_dice', params={'spec': '2d6+d20'})
# {"result": {"spec": "2d6+d20", "dice": [6, 6, 20], "sum": 20}}
Try asking: "Roll 2d6 and a d20 for my D&D attack and tell me the total."
Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Easy Dice 11. License: MIT.
| App version | Android | Device | Skill version | Dates |
|---|---|---|---|---|
| 11 | 13 | Samsung real phone (720x1600, 300 dpi, en-GB) | 1.0.0 | 2026-11-02 |
SOFT.md is the narrative an agent reads when the exact steps no longer match your app version and it has to adapt the skill.
What each action means, which UI landmarks it relies on and how success is recognised, so an agent can adapt it to another app of this kind or another version.
Package: net.pejici.easydice (Easy Dice, GPL-3.0-or-later, version 11 from the official F-Droid repository, sha256-verified)
Verified: 2026-11-02 on a real Samsung phone, Android 13, 720x1600 @ 300 dpi, en-GB. Offline, no account.
Skill class: HARD. No login, no checkpoints.
open_dice()Force-stops and relaunches.
add_dice(sides, count)Taps the die in the palette.
roll()Taps ROLL and waits for the total to settle.
reset_hand()Taps RESET.
roll_dice(spec)Resets, taps each die, then ROLL.
Individual faces are drawn, not text, so only the total is returned, never each die. A freshly added die counts at its maximum until it is rolled. Up to 12 dice per add; the Add and Remove hand buttons and settings are not driven.
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
open_diceTry asking
ghost skill run ghost/easy-dice open_dice add_diceTry asking
ghost skill run ghost/easy-dice add_dice rollTry asking
ghost skill run ghost/easy-dice roll reset_handTry asking
ghost skill run ghost/easy-dice reset_hand roll_diceTry asking
ghost skill run ghost/easy-dice roll_dice Each release is an immutable git tag. The tree hash pins the exact skill directory the installer verifies.
| Version | Released | App versions | Tree | Size | Provenance |
|---|---|---|---|---|---|
1.0.0latest | never | * | pending | 14.4 KB | untagged |