open_setup
Play demoTry asking
- Open the Quick Calculation app
- open the quick maths game
ghost skill run ghost/quick-calculation open_setup Quick Calculation (F-Droid): a timed multiple choice mental maths game with addition, subtraction, multiplication, division and mixed series, with a results screen. 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.
2.7× fewer tokens, 2.2× slower 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 | 41.2 s | 246,643 | 15 | finished |
| With skill: find_skill, run_skill | 89.0 s | 91,931 | 9 | finished |
Prompt: Start a Quick Calculation addition game, solve the first three questions by picking the right option each time, then end the game and tell me the score. 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 Quick Calculation on Android with an AI agent. How fast can an AI do mental maths? Your agent plays a timed game on your phone and reports the score.
Target search phrase: AI agent plays a quick mental maths game on Android
Demo shows: start_game (operator=Addition, timer=120)
Ghost in the Droid seed skill for Quick Calculation (
io.github.subhamtyagi.quickcalculation), an offline timed mental maths game. The question, the four answer buttons, the running score and the results are text nodes, so an agent can play and see its score. Offline, no account.
| Action | What it does | Params |
|---|---|---|
open_setup | Restart the app and read the setup form (operator, number ranges). | none |
start_game | Pick an operator and a timer (30, 45, 60, 90, 120, 300 or 600 seconds), start the game and return the first question with its four options. | operator, timer |
get_question | Read the current question, its four options, the time left and the score. | none |
answer | Answer the current question by option text (value) or button position 1-4 (option); returns right or wrong and the next question. Tapping an option answers at once. | value, option |
answer_many | Answer several questions in a row (up to 8), by answer texts (values) or button positions (options), comma separated. | values, options |
finish_game | End the game with Submit and read the results (correct answers and attempts). | none |
get_result | Read the results screen: total correct and total attempts. | none |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | open_setup, start_game |
| Primitives | answer, answer_many, finish_game |
| Read state | get_question, get_result |
The app: F-Droid, or https://f-droid.org/packages/io.github.subhamtyagi.quickcalculation/. 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/quick-calculation
ghost skill run ghost/quick-calculation answer --param option=2 --device <serial>
run_skill(name="ghost/quick-calculation", action="answer", params={"value": "148"})
# {"result": {"question": "74 + 74", "chosen": "148", "correct": true, "feedback": "CORRECT!", ...}}
Try asking: "Start a Quick Calculation addition game, solve the first three questions by picking the right option each time, then end the game and tell me the score."
Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Quick Calculation 5. License: MIT.
| App version | Android | Device | Skill version | Dates |
|---|---|---|---|---|
| 5 | 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: io.github.subhamtyagi.quickcalculation (Quick Calculation, GPL-3.0-or-later, version 5 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_setup()Force-stops and relaunches.
start_game(operator, timer)Chooses both spinner entries from their popup lists and taps Starts Now!.
get_question()Reads the question, the four answer buttons, the timer and the correct/attempts score.
answer(value, option)Taps the matching answer button, waits for the score to change and reads the RIGHT/WRONG label.
answer_many(values, options)Repeats answer and returns a right or wrong flag per question.
finish_game()Taps Submit, which ends the game and shows the results screen.
get_result()Reads the two result counters.
Tapping an answer button answers at once; Submit ends the game (it is not an answer confirmation). The timer keeps running while idle, so use a long timer (default 120 s) and finish within it; when it expires the app shows the results by itself. The number ranges are not driven. The app keeps hidden view groups in its tree, so the skill recognises the results screen by the DONE! label.
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
open_setupTry asking
ghost skill run ghost/quick-calculation open_setup start_gameTry asking
ghost skill run ghost/quick-calculation start_game get_questionTry asking
ghost skill run ghost/quick-calculation get_question answerTry asking
ghost skill run ghost/quick-calculation answer answer_manyTry asking
ghost skill run ghost/quick-calculation answer_many finish_gameTry asking
ghost skill run ghost/quick-calculation finish_game get_resultTry asking
ghost skill run ghost/quick-calculation get_result 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 | 22.2 KB | untagged |