book-to-course
Turn a book into an interactive course you can run locally in a browser. This Claude skill uses the source material to build beginner-friendly lessons, then adds ways to practise and check what you have learned. It accepts EPUB, PDF, HTML, DOCX, Markdown, and plain text.
What a course can include
- Short lessons with step-by-step explanations, worked examples, diagrams, and animated walkthroughs.
- Interactive quizzes with hints and explanations, chapter tests, and flashcards.
- Programming exercises with starter code, examples, and unit tests. Learners write code in their editor, run the tests from the course page, and see whether their solution passes.
- Progress tracking for lessons, quiz answers, and exercises, saved locally so learners can pick up where they left off.
For coding exercises, the skill checks that the tests fail on the starter code and pass on a reference solution before packaging the course. When a book does not call for code, the course can use other practice activities, such as self-check exercises.
Demo
A Go programming course: an animated code walkthrough, a quiz, flashcards, and an exercise whose unit tests run from the page.

A math course: formulas written in LaTeX render in lesson text, tables, quizzes, and flashcards.

Installation
This repository is a Claude Code plugin marketplace. In Claude Code, add the marketplace and install the plugin:
/plugin marketplace add sebastianhaba/book-to-course-skill
/plugin install book-to-course@book-to-course
Then attach a book and ask Claude to turn it into a course, for example: "Turn this book into an interactive course."
To update to the latest version later, run /plugin marketplace update book-to-course.
Example course
These screenshots show a course generated from a Go programming book:
Course overview and progress

Interactive quiz

Coding exercise and test results

How it works
- Give the skill a book or document and ask it to create a course. You can specify the course language and scope.
- The skill extracts the source, plans lessons by chapter, and builds the course as a folder of local web files.
- Open the generated course with
start.sh (macOS/Linux) or start.bat (Windows). The local server saves progress to progress/progress.json and lets the Run tests button execute the exercise's test command on your computer.
Starting the course this way requires Python 3. Programming exercises also require the relevant language and test tools, such as Go for a Go course. You can open index.html directly without the server; quizzes and lessons still work, while progress stays in the browser and code tests must be run in a terminal.
The skill and its supporting scripts, templates, and references are in book-to-course/. Generated courses are self-contained folders that can be packaged and shared.
Course on a phone or tablet (Android)
The second skill in this plugin, course-to-apk, packages a generated course as a small offline Android app. Ask, for example: "Make an APK of this course for my tablet."
- The app is a lightweight WebView wrapper: the course is bundled inside the APK, works without internet access, and keeps progress on the device across updates. It runs on Android 7.0 and newer.
- The APK is built straight from the Android SDK tools with no Gradle or Android Studio project, and signed with the Android debug key (
~/.android/debug.keystore). You can also sign it with your own keystore.
- Building requires JDK 17+ and Android SDK build-tools plus a platform package. The skill checks for them first. If something is missing, it tells you what to download and where to get it, then either waits for you to install it or downloads it into
~/.local/share/course-to-apk with your consent (no sudo).
- The output goes next to the course, in
<course>-android/. Copy the APK to the device and open it, or install it over USB with adb.
Code exercises can't run their unit tests on a phone, so use the computer version for those. Lessons, quizzes, tests, and flashcards all work in the app.
Course as a Linux desktop app (AppImage)