Logo van Course To Apk

Course To Apk

Community
sebastianhaba
course-to-apk

Verpak een bestaande interactieve cursus die met de skill book-to-course is gemaakt (een map met index.html, assets/ en course/data.js, of het bijbehorende .zip-bestand) als een ondertekende Android APK: een lichte offline WebView-app om op een telefoon of tablet te installeren. Controleert of de benodigde buildtools op de machine aanwezig zijn (JDK, Android SDK build-tools en platform), vertelt de gebruiker precies wat er ontbreekt en waar die het kan vinden, en kan de bestanden voor de gebruiker downloaden. Gebruik deze wanneer de gebruiker een cursus "na telefon/tablet", "na Androida", "jako aplikację", "zrób z kursu APK", "course to apk" wil, offline op een mobiel apparaat wil leren met een gegenereerde cursus of een cursusapp opnieuw wil bouwen/bijwerken nadat er hoofdstukken zijn toegevoegd — ook als die niet expliciet "APK" zegt. Gebruik deze NIET om een cursus van een boek te maken (daarvoor is book-to-course), voor iOS-apps of voor algemene Android-appontwikkeling.

Overzicht

Uitgeversebastianhaba
Repositorybook-to-course-skill
Skillnaamcourse-to-apk
Sterren
73
Forks
16
Meegeleverde bestanden
13
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 13

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door sebastianhaba op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Course To Apk in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/sebastianhaba/book-to-course-skill/tree/main/course-to-apk
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sebastianhaba/book-to-course-skill.git /tmp/book-to-course-skill
mkdir -p .claude/skills
cp -r /tmp/book-to-course-skill/course-to-apk .claude/skills/course-to-apk
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Course To Apk in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Course To Apk automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Course To Apk niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Course → Android APK

Wraps a finished book-to-course course into a small Android app: one Activity with a WebView that serves the course files from inside the APK. No Gradle, no Android Studio project, no network permission — the build calls the SDK tools directly (aapt2 → javac → d8 → zipalign → apksigner), so the APK is roughly the size of the course plus ~10 KB.

The app wrapper (assets/android/) and the scripts are fixed and tested — your job is the conversation around them: find the course, get the toolchain in place with the user's consent, build, and explain how to put it on the device.

script (in scripts/)purpose
toolchain.py [--json]what is installed, what is missing, where to download it; exit 0 = ready
setup_toolchain.py --dry-runlist exactly what would be downloaded (name, size, URL) — downloads nothing
setup_toolchain.py --show-licenseprint the Android SDK licence text
setup_toolchain.py --accept-licensesdownload only the missing parts into ~/.local/share/course-to-apk (no sudo)
build_apk.py COURSE_DIR [--install]build the signed APK into <COURSE_DIR>-android/

All scripts are Python 3 standard library only.

Workflow

1. Find the course

A course folder has index.html, assets/app.js and course/data.js. Look where the user points, in the current directory, or among recent book-to-course output. If they give a .zip (from pack_course.py), unzip it next to the zip first — it contains one top folder named after the course; that folder is COURSE_DIR. If content/ exists but course/data.js is missing or older than the lessons, the course was not rebuilt — run book-to-course's build_course.py COURSE_DIR first (when that skill is available), otherwise ask the user to.

2. Check the toolchain

bash
python3 scripts/toolchain.py

It searches well beyond PATH (JAVA_HOME, ANDROID_HOME, ~/Android/Sdk, ~/.jdks, Android Studio's bundled JBR, /usr/lib/jvm, …), so a JDK that which java does not see is still found. If it prints READY, go to step 4.

3. Something is missing → ask, don't assume

Tell the user, in their language, what is missing — use the report's lines, they already contain the official download links and package-manager commands for their OS. Then run setup_toolchain.py --dry-run so you can quote the real sizes and URLs, and ask them to choose (AskUserQuestion works well here):

  • "I'll install it myself" — give the list again as a short checklist (what, where from, and that a non-standard location needs JAVA_HOME / ANDROID_HOME). Then stop and wait. Do not poll, do not build, do not download anything. When they write that it's installed, rerun toolchain.py; if something is still missing, say exactly what and wait again.
  • "Download it for me" — the Android SDK packages are under the Android SDK License Agreement (https://developer.android.com/studio/terms; full text via --show-license). Their choice of this option must include agreeing to it — say so in the question. Only then run python3 scripts/setup_toolchain.py --accept-licenses (≈320 MB if the JDK is also missing, ≈125 MB otherwise; it verifies checksums and installs only into ~/.local/share/course-to-apk, nothing system-wide, no sudo).

Why the care: downloading hundreds of megabytes and accepting a licence are the user's decisions, not yours, and a user who said they'd install things themselves is mid-installation — building or downloading behind their back collides with that.

4. Build

bash
python3 scripts/build_apk.py "<COURSE_DIR>"

Defaults that are right for almost everyone — mention them, don't ask:

  • Output <COURSE_DIR>-android/<course-id>.apk, next to the course folder; apk.json there remembers the package id, label, icon colour and an auto-incremented versionCode.
  • Signing with the Android debug key ~/.android/debug.keystore (the standard developer certificate; created with keytool if it doesn't exist). Fine for installing on your own devices; it is not a Play Store release key. If the user has their own keystore: --keystore FILE --key-alias A --ks-pass P (or APK_KS_PASS env var so the password doesn't land in shell history); it's remembered in apk.json.
  • Package id net.booktocourse.<course_id>, label = course title. Override with --package / --label only when asked — changing the package later makes Android treat it as a different app and the learner loses progress.
  • Android 7.0+ (minSdk 24); targetSdk = the newest platform installed.

If the build fails, the error names the tool and shows its output; see references/troubleshooting.md.

5. Hand it over

Tell the user in a few lines: where the APK is (absolute path), its size, and how to install it:

  • Copy to the device (USB cable, cloud drive, e-mail to yourself), open the file on the device, allow "install unknown apps" for the app that opens it when Android asks; Play Protect may warn about an unknown developer → "Install anyway".
  • Or over USB with adb: enable Developer options → USB debugging, connect, then build_apk.py … --install (or adb install -r <apk>). Offer this if toolchain.py showed adb and a device is connected (adb devices).

Also say, briefly:

  • Progress is stored inside the app on the device (not in progress/progress.json of the computer copy) and survives updates — rebuild with the same folder and key after adding chapters and install over the old app. Uninstalling deletes it.
  • Code exercises: the "Run tests" button needs the computer version (start.sh/start.bat); on the phone the page shows the test command instead. Lessons, quizzes, tests and flashcards all work offline.

What the app does (so you can answer questions)

  • Serves the course from https://appassets.androidplatform.net/ via shouldInterceptRequest — a reserved host that never hits the network, giving the page a stable origin for localStorage. No INTERNET permission; links to other sites open in the user's browser.
  • Back button/gesture goes back through the course's history, then closes the app; edge-to-edge insets (status bar, cutouts, keyboard) are handled; dark/light follows the system on first launch, then the course's own theme toggle.
  • alert()/confirm() show real dialogs (the player avoids them anyway).

To change the wrapper itself (e.g. lock orientation), edit assets/android/ — MainActivity.java, AndroidManifest.xml (placeholders {{PACKAGE}}, {{LABEL}}), res/. Keep it framework-only: there is no Gradle, so AndroidX libraries can't be added.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Course To Apk?

Verpak een bestaande interactieve cursus die met de skill book-to-course is gemaakt (een map met index.html, assets/ en course/data.js, of het bijbehorende .zip-bestand) als een ondertekende Android APK: een lichte offline WebView-app om op een telefoon of tablet te installeren. Controleert of de benodigde buildtools op de machine aanwezig zijn (JDK, Android SDK build-tools en platform), vertelt de gebruiker precies wat er ontbreekt en waar die het kan vinden, en kan de bestanden voor de gebruiker downloaden. Gebruik deze wanneer de gebruiker een cursus "na telefon/tablet", "na Androida", "...

Waarom Course To Apk gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Course To Apk bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Course To Apk in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/sebastianhaba/book-to-course-skill/tree/main/course-to-apk. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Course To Apk gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Course To Apk gebruiken?

Zoveel als je wilt. Je kunt Course To Apk gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Course To Apk gratis?

Ja. Deze skill is door sebastianhaba op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇