ghost/kotlin-quiz

Kotlin Quiz (F-Droid): a 10 question multiple choice quiz about the Kotlin language with a final score. Offline, only a display name, no account.

Runs 10.3× fewer tokens Score 37/100 Official hard skill python

Token savings

90% fewer tokens
Tokenswithout668,303with64,614 (90% fewer)
Timewithout122 swith73.4 s (40% less time)
Tool callswithout45with7 (84% 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 Kotlin Quiz on Android with an AI agent

Control Kotlin Quiz on Android with an AI agent. Want to see how well an AI knows Kotlin? Your agent takes the quiz on your phone and reports the score.

Target search phrase: AI agent takes a Kotlin quiz on Android

Demo shows: start_quiz (name=Ghost)

Ghost in the Droid seed skill for Kotlin Quiz (com.example.kotlinquiz), an offline 10 question Kotlin quiz. The question, the three options and the final score are text nodes, so an agent can take the quiz and report the result. Offline, no account.

ActionWhat it doesParams
start_quizRestart the app, enter a display name and start the quiz; return the first question with its three options.name
get_questionRead the current question and its three options.none
answerChoose option 1, 2 or 3, submit it and move on to the next question (or the result after the last one).option
answer_manyAnswer several questions in a row (up to 10 option numbers, comma separated), stopping at the result screen.options
get_resultRead the final result screen: name and score (10 points per right answer).none
finish_quizClose the result screen and return to the welcome form.none

Toolkit

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

RoleAction
Entrystart_quiz
Primitivesanswer, answer_many, finish_quiz
Read stateget_question, get_result

Install

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

Use

ghost skill run ghost/kotlin-quiz answer --param option=2 --device <serial>
run_skill(name="ghost/kotlin-quiz", action="answer", params={"option": 2})
# {"result": {"question": "...", "chosen": "...", "next": {"screen": "quiz", ...}}}

Try asking: "Start the Kotlin quiz, read each question and answer the first three questions with the options you think are right, then tell me the questions."

Tested on

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

Known failure modes and versions tested

Versions tested

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

Recorded failures

  • Right or wrong per question is not readable (colour only).
  • Going back to a question is not possible in the app.

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 Kotlin quiz
  • quiz me on Kotlin
ghost skill run ghost/kotlin-quiz start_quiz

get_question

Play demo

Try asking

  • What is the Kotlin quiz question now?
  • read the quiz question
ghost skill run ghost/kotlin-quiz get_question

answer

Play demo

Try asking

  • Answer the Kotlin quiz question with option 2
  • pick the third answer
ghost skill run ghost/kotlin-quiz answer

answer_many

Play demo

Try asking

  • Answer the next three Kotlin quiz questions with 3, 1 and 2
  • answer the quiz questions 2,2,1
ghost skill run ghost/kotlin-quiz answer_many

get_result

Play demo

Try asking

  • What is my Kotlin quiz score?
  • show my quiz score
ghost skill run ghost/kotlin-quiz get_result

finish_quiz

Play demo

Try asking

  • Finish the Kotlin quiz
  • close the quiz result
ghost skill run ghost/kotlin-quiz finish_quiz