Logo Course To Appimage

Course To Appimage

Cộng đồng
sebastianhaba
course-to-appimage

Đóng gói khóa học tương tác hiện có được tạo bằng kỹ năng book-to-course (thư mục chứa index.html, assets/ và course/data.js hoặc tệp .zip của thư mục đó) thành một Linux AppImage độc lập — một tệp duy nhất có sẵn bộ máy WebView (Electron), chạy được trên mọi bản phân phối desktop Linux mà không cần cài đặt gì, lưu tiến độ vào một tệp và có thể chạy các bài kiểm tra của bài tập lập trình. Kiểm tra các công cụ dựng trên máy (appimagetool, Electron, AppImage runtime), cho bạn biết chính xác còn thiếu gì và tải ở đâu, đồng thời có thể tải về giúp bạn. Dùng kỹ năng này bất cứ khi nào bạn muốn khóa học chạy “na Linuxa” (trên Linux), “jako aplikację na pulpit/desktop” (như ứng dụng desktop), “w menu aplikacji” (trong menu ứng dụng), “zrób z kursu AppImage” (chuyển khóa học thành AppImage), “course to appimage”, muốn có ứng dụng khóa học để sao chép sang máy tính Linux khác, muốn mở khóa học đã tạo như một chương trình thông thường thay vì chạy start.sh, hoặc muốn dựng lại/cập nhật ứng dụng khóa học sau khi thêm chương — kể cả khi bạn không nói rõ “AppImage”. KHÔNG dùng kỹ năng này để tạo khóa học từ sách (dùng book-to-course), đóng gói cho Android (course-to-apk), tạo bộ cài Windows/macOS, đóng gói Flatpak/Snap/.deb hoặc phát triển ứng dụng Linux/Electron nói chung.

Add to TypingMind

Tổng quan

Nhà phát hànhsebastianhaba
Kho mãbook-to-course-skill
Tên kỹ năngcourse-to-appimage
Sao
73
Bản fork
16
Tệp đi kèm
8
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 8 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được sebastianhaba công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Course To Appimage trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/sebastianhaba/book-to-course-skill/tree/main/course-to-appimage
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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-appimage .claude/skills/course-to-appimage
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Course To Appimage trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Course To Appimage ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Course To Appimage với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Course → Linux AppImage

Wraps a finished book-to-course course into one executable file for Linux, self-contained like the APK: copy it to any desktop Linux computer and start it — no Python, no WebKitGTK, nothing to install. Inside: the official Electron build (Chromium + Node), a small main.js, the course, an icon and the Noto Color Emoji font (the player's UI uses emoji, and many distros ship no emoji font). main.js does what the course's serve.py does — serves the page on 127.0.0.1, saves progress to a file and runs code exercises' tests — so the "Run tests" button works on the desktop (unlike the phone app). Nothing is compiled; the AppImage is ~105 MB + the course (that's Chromium; unused Chromium translations are left out) + ~9 MB for the emoji font.

Why Electron and not the system WebView: Linux has no WebView every computer is guaranteed to have, and bundling this machine's WebKitGTK would tie the file to this distro's glibc. Official Electron builds run on any current desktop distro.

The wrapper 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 start and install the app.

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 --downloaddownload only the missing parts into ~/.local/share/course-to-appimage (no sudo, SHA-256 verified)
build_appimage.py COURSE_DIR [--install]build the AppImage into <COURSE_DIR>-appimage/; --install adds it to the app menu
build_appimage.py COURSE_DIR --uninstallremove the menu entry, icon and ~/Applications copy (progress stays)

All scripts are Python 3 standard library only (Python is needed on the build machine, not in the app).

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

Needed: appimagetool (packs the file), Electron 30+ (the engine, ~115 MB official zip — an unpacked folder or the zip itself, found in Downloads, ~/.cache/electron, $ELECTRON_DIST or the skill's own folder) and the Noto Color Emoji font (taken from the system's fonts when installed — usually it is — otherwise a pinned ~10 MB download). The runtime file is optional. It checks that appimagetool actually starts. If it prints READY, go to step 4 (if only the runtime is missing, mention in one line that the build will fetch it from GitHub — don't stop for it).

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 (GitHub releases of AppImage/appimagetool, electron/electron and AppImage/type2-runtime, googlefonts/noto-emoji) and package-manager commands. Run setup_toolchain.py --dry-run so you can quote the real sizes, versions and URLs, then ask them to choose (AskUserQuestion works well here):

  • "I'll install it myself" — give a short checklist: what to download, from where, and where to put it (appimagetool: chmod +x, e.g. as ~/.local/bin/appimagetool; Electron: the electron-vX.Y.Z-linux-x64.zip — arm64 on ARM — can simply stay in Downloads, the build unpacks it). Warn that the distro's electron package is not suitable (built against this system's libraries). Then stop and wait — end your turn. Do not poll, do not build, do not download anything. When they write that it's done, rerun toolchain.py; if something is still missing or "found but unusable", say exactly what and wait again.
  • "Download it for me" — run python3 scripts/setup_toolchain.py --download (~140 MB when everything is missing; official GitHub releases — MIT, the font OFL — checksums verified; installs only into ~/.local/share/course-to-appimage, no sudo). It is a one-time download — later builds reuse it.

Why the care: downloading over 100 MB and running a binary are the user's decisions, not yours, and a user who said they'd install it themselves is mid-installation — building or downloading behind their back collides with that.

4. Build

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

Takes a few seconds. Defaults that are right for almost everyone — mention them, don't ask:

  • Output <COURSE_DIR>-appimage/<course-id>-<arch>.AppImage, next to the course folder; appimage.json there remembers the app id, name, icon colour and an auto-incremented version.
  • App id net.booktocourse.<course_id>, name = course title. Override with --app-id / --name only when asked — the app id names the learner's data folder, so changing it later starts with empty progress.
  • Built for this machine's architecture (x86_64 or aarch64 — Electron has no 32-bit Linux build).

Offer --install (copies the AppImage to ~/Applications, adds a menu entry with icon under Education, no sudo) — ask in the same message as the hand-over if the user hasn't said; it's quick to do afterwards by rerunning with --install. Once installed, every later build refreshes the installed copy automatically.

The build ends with a self-test (it starts the AppImage with --paths, which loads Electron and main.js). If the build or the self-test fails, the output says what failed; see references/troubleshooting.md.

5. Hand it over

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

  • double-click it in the file manager, or ./<file>.AppImage in a terminal. On another computer: copy the one file (USB stick, cloud drive, network); if it lost the executable bit, chmod +x / Properties → "Allow executing as program".
  • with --install: from the application menu (Education), with its own icon.

Also say, briefly:

  • Progress lives in ~/.local/share/<app-id>/progress/progress.json of whoever runs the app (not in the course folder's progress/ — the page's footer wording comes from the folder version). It survives updates: rebuild after adding chapters and start the new file.
  • Code exercises (if the course has them) work fully, unlike on the phone: the AppImage is an ordinary program on the computer, so "Run tests" runs the exercise's command (e.g. go test) with the compiler installed there — exactly like start.sh. The learner edits the files in their own editor; editable copies live in ~/.local/share/<app-id>/exercises/, and each exercise in the app shows that full path, an "Open folder" button and a ready cd … command. The language toolchain (e.g. Go) must be installed on that computer — without it the page says the program is not installed. Bundling compilers is not done: hundreds of MB per language. Lessons, quizzes, tests and flashcards need nothing.
  • Requirements of the target: a desktop Linux (x86_64/arm64 as built) — the usual desktop libraries (GTK 3, NSS, X11/ Wayland, ALSA) that every GNOME/KDE/XFCE/Cinnamon install has, as for any Electron app. A bare server/container without a desktop lacks them.

What the app does (so you can answer questions)

  • AppRun starts the bundled Electron; where unprivileged user namespaces are blocked (e.g. Ubuntu 24.04's AppArmor default) or when run as root, it adds --no-sandbox, because an AppImage cannot carry Chromium's setuid sandbox helper. The window only shows the bundled course; links to other sites open in the user's own browser.
  • main.js serves the course on 127.0.0.1 with the same API as serve.py (/api/ping, /api/progress, /api/run-tests; host check; the test command comes from exercise.json, only the folder name from the page), on a port derived from the app id so the page's localStorage (theme) survives restarts.
  • In exercise blocks it replaces the player's relative "exercises//" and "cd exercises/" (meant for the course folder) with the real path, adds an "Open folder" button (/api/open-exercise) and makes the copy button copy the fixed command.
  • AppRun points fontconfig at a config that includes the system's /etc/fonts/fonts.conf plus the bundled emoji font as a fallback; the system's own emoji font still wins where installed.
  • On start it copies new exercises and refreshes each exercise's exercise.json and test files; the learner's own files are never overwritten. _solution/ folders are not packed, and the starter files are taken from course/data.js (what the page shows as start files), because the course folder's exercises/ may hold someone's solved versions. It adds common toolchain dirs (~/go/bin, /usr/local/go/bin, ~/.cargo/bin, …) to PATH, since a desktop session's PATH often lacks them.
  • One instance per app (a second start focuses the window). Ctrl +/−/0 zoom, Ctrl+R reload, F11 full screen; window size and zoom are remembered. Chromium's data lives in ~/.local/share/<app-id>/electron.
  • Options: --paths, --open-exercises.

To change the wrapper, edit assets/app/main.js (Electron main process, Node standard library only — there is no npm step) or assets/appdir/AppRun.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Course To Appimage làm được gì?

Đóng gói khóa học tương tác hiện có được tạo bằng kỹ năng book-to-course (thư mục chứa index.html, assets/ và course/data.js hoặc tệp .zip của thư mục đó) thành một Linux AppImage độc lập — một tệp duy nhất có sẵn bộ máy WebView (Electron), chạy được trên mọi bản phân phối desktop Linux mà không cần cài đặt gì, lưu tiến độ vào một tệp và có thể chạy các bài kiểm tra của bài tập lập trình. Kiểm tra các công cụ dựng trên máy (appimagetool, Electron, AppImage runtime), cho bạn biết chính xác còn thiếu gì và tải ở đâu, đồng thời có thể tải về giúp bạn. Dùng kỹ năng này bất cứ khi nào bạn muốn k...

Vì sao nên dùng Course To Appimage trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Course To Appimage là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Course To Appimage trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/sebastianhaba/book-to-course-skill/tree/main/course-to-appimage. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Course To Appimage?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Course To Appimage với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Course To Appimage với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Course To Appimage có miễn phí không?

Có. Kỹ năng này được sebastianhaba phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇