ghost/africa-quiz

Africa Quiz (F-Droid): a 10 question quiz on the capitals of African countries. Start a round, read and answer questions, then read the score and the answer review. Offline, no account.

Runs 1.1× fewer tokens Score 36/100 Official hard skill python

Token savings

10% fewer tokens
Tokenswithout33,503with30,051 (10% fewer)
Timewithout13.5 swith41.6 s (208% more time)
Tool callswithout4with4 (0% fewer)

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.

Recorded: start_quiz · live agent session on a real phone

Control Africa Quiz on Android with an AI agent

Control Africa Quiz on Android with an AI agent. Quiz yourself on African capitals: an agent starts a round, answers the questions and reads the review.

Target search phrase: AI agent plays a geography quiz on Android

Demo shows: answer (option=1)

Ghost in the Droid seed skill for Africa Quiz (com.mufradat.africaquiz), an offline quiz on African capitals. Questions, options, the score and the answer review are plain text, so an agent can play and grade a whole round. Offline, no account.

ActionWhat it doesParams
start_quizRestart the app and start a new 10 question round.none
get_questionRead the current question: number, score, the prompt and the four options.none
answerPick an option by position (1-4) or by its text; the quiz moves on at once.option, expect_question
answer_manyAnswer several questions in a row, e.g. options=1,3,2.options
get_resultsAfter the last question: the percent, the score and the full answer review (country, correct capital, your answer).none

Toolkit

An agent can drive the whole app with these; compose them.

RoleAction
Entrystart_quiz
Primitivesanswer, answer_many
Read stateget_question, get_results

Install

The app: F-Droid, or https://f-droid.org/packages/com.mufradat.africaquiz/. 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/africa-quiz

Use

ghost skill run ghost/africa-quiz start_quiz --device <serial>
ghost skill run ghost/africa-quiz answer --param option=1 --device <serial>
run_skill(name="ghost/africa-quiz", action="answer", params={"option": "Kigali"})
# {"result": {"chosen": "Kigali", "state": {"number": 3, "score": 1}}}

Try asking: "Start the Africa capitals quiz, answer the first three questions and tell me my score."

Tested on

Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Africa Quiz 1. License: MIT.

Known failure modes and versions tested

Versions tested

App versionAndroidDeviceSkill versionDates
113Samsung real phone (720x1600, 300 dpi, en-GB)1.0.02026-11-02

Recorded failures

  • The default 15 s countdown skips a question that is not answered in time: pass expect_question to answer so a stale answer fails instead of hitting the next question.
  • There is no per-answer feedback; the score on screen and get_results show what was right.
  • get_results works only after question 10.

Popups and first-run screens handled

  • None.

Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.

start_quiz

Play demo

Try asking

  • Start the Africa capitals quiz
  • quiz me on African capitals
  • start a new Africa quiz round
ghost skill run ghost/africa-quiz start_quiz

get_question

Play demo

Try asking

  • What is the current Africa quiz question?
  • read me the quiz question
ghost skill run ghost/africa-quiz get_question

answer

Play demo

Try asking

  • Answer Kigali in the Africa quiz
  • pick option 2
  • answer Nairobi
ghost skill run ghost/africa-quiz answer

answer_many

Play demo

Try asking

  • Answer the next three Africa quiz questions with options 1, 1 and 2
  • answer 2,2,1
ghost skill run ghost/africa-quiz answer_many

get_results

Play demo

Try asking

  • Show the Africa quiz results
  • how did I do in the Africa quiz
ghost skill run ghost/africa-quiz get_results