Logo von Course To Apk

Course To Apk

Community
sebastianhaba
course-to-apk

Verpackt einen vorhandenen interaktiven Kurs, der mit dem Skill zur Umwandlung von Büchern in Kurse erstellt wurde (einen Ordner mit index.html, assets/ und course/data.js oder die entsprechende .zip-Datei), als signierte Android-APK – eine schlanke Offline-WebView-App zur Installation auf einem Smartphone oder Tablet. Prüft die Build-Tools auf dem Rechner (JDK, Android SDK build-tools und platform), nennt genau, was fehlt und wo Sie es bekommen, und kann die fehlenden Tools für Sie herunterladen. Verwenden Sie diesen Skill immer dann, wenn Sie einen Kurs „na telefon/tablet“, „na Androida“, „jako aplikację“, „zrób z kursu APK“, „course to apk“ möchten, mit einem erstellten Kurs offline auf einem Mobilgerät lernen oder die Kurs-App nach dem Hinzufügen von Kapiteln neu erstellen/aktualisieren möchten – auch wenn Sie „APK“ nicht ausdrücklich erwähnen. Verwenden Sie ihn NICHT, um einen Kurs aus einem Buch zu erstellen (dafür ist book-to-course gedacht), für iOS-Apps oder für die allgemeine Android-App-Entwicklung.

Übersicht

Herausgebersebastianhaba
Repositorybook-to-course-skill
Skill-Namecourse-to-apk
Sterne
73
Forks
16
Mitgelieferte Dateien
13
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 13

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von sebastianhaba auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Course To Apk in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/sebastianhaba/book-to-course-skill/tree/main/course-to-apk
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Course To Apk in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Course To Apk automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Course To Apk nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Course To Apk?

Verpackt einen vorhandenen interaktiven Kurs, der mit dem Skill zur Umwandlung von Büchern in Kurse erstellt wurde (einen Ordner mit index.html, assets/ und course/data.js oder die entsprechende .zip-Datei), als signierte Android-APK – eine schlanke Offline-WebView-App zur Installation auf einem Smartphone oder Tablet. Prüft die Build-Tools auf dem Rechner (JDK, Android SDK build-tools und platform), nennt genau, was fehlt und wo Sie es bekommen, und kann die fehlenden Tools für Sie herunterladen. Verwenden Sie diesen Skill immer dann, wenn Sie einen Kurs „na telefon/tablet“, „na Androida“,...

Warum Course To Apk in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Course To Apk besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Course To Apk in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/sebastianhaba/book-to-course-skill/tree/main/course-to-apk ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Course To Apk nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Course To Apk verwenden?

So viele Sie möchten. In TypingMind können Sie Course To Apk mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Course To Apk kostenlos?

Ja. Der Skill wird von sebastianhaba auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇