شعار Course To Appimage

Course To Appimage

المجتمع
sebastianhaba
course-to-appimage

حوّل دورة تفاعلية موجودة أنشأتها مهارة book-to-course (مجلد يحتوي على index.html وassets/ وcourse/data.js، أو ملفها المضغوط .zip) إلى AppImage مستقل لـ Linux — ملف واحد يضم محرك WebView الخاص به (Electron)، ليعمل على أي توزيعة سطح مكتب من دون تثبيت أي شيء، ويحفظ التقدم في ملف، ويشغّل اختبارات تمارين البرمجة. تتحقق المهارة من أدوات البناء على جهازك (appimagetool وElectron وAppImage runtime)، وتخبرك بدقة بما ينقصك ومن أين تحصل عليه، ويمكنها تنزيله لك. استخدمها عندما تريد دورة «على Linux» أو «كتطبيق لسطح المكتب»، أو تريدها «في قائمة التطبيقات»، أو تطلب «تحويل الدورة إلى AppImage» أو «course to appimage»، أو تريد تطبيقًا للدورة يمكنك نسخه إلى جهاز Linux آخر، أو فتح دورتك المُنشأة كبرنامج عادي بدلًا من تشغيل start.sh، أو إعادة بناء تطبيق الدورة أو تحديثه بعد إضافة فصول — حتى إن لم تذكر «AppImage» صراحةً. لا تستخدمها لإنشاء دورة من كتاب (فهذه مهمة book-to-course)، أو لنظام Android (course-to-apk)، أو لإنشاء حزم تثبيت Windows/macOS أو Flatpak/Snap/.deb، أو لتطوير تطبيقات Linux/Electron عامة.

Add to TypingMind

نظرة عامة

الناشرsebastianhaba
المستودعbook-to-course-skill
اسم المهارةcourse-to-appimage
النجوم
73
التفريعات
16
الملفات المرفقة
8
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 8

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها sebastianhaba على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Course To Appimage في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/sebastianhaba/book-to-course-skill/tree/main/course-to-appimage
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Course To Appimage في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Course To Appimage تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Course To Appimage بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Course To Appimage؟

حوّل دورة تفاعلية موجودة أنشأتها مهارة book-to-course (مجلد يحتوي على index.html وassets/ وcourse/data.js، أو ملفها المضغوط .zip) إلى AppImage مستقل لـ Linux — ملف واحد يضم محرك WebView الخاص به (Electron)، ليعمل على أي توزيعة سطح مكتب من دون تثبيت أي شيء، ويحفظ التقدم في ملف، ويشغّل اختبارات تمارين البرمجة. تتحقق المهارة من أدوات البناء على جهازك (appimagetool وElectron وAppImage runtime)، وتخبرك بدقة بما ينقصك ومن أين تحصل عليه، ويمكنها تنزيله لك. استخدمها عندما تريد دورة «على Linux» أو «كتطبيق لسطح المكتب»، أو تريدها «في قائمة التطبيقات»، أو تطلب «تحويل الدورة إلى AppImage» أو «course to...

لماذا تستخدم Course To Appimage على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Course To Appimage عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Course To Appimage في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/sebastianhaba/book-to-course-skill/tree/main/course-to-appimage. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Course To Appimage؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Course To Appimage؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Course To Appimage معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Course To Appimage مجانية؟

نعم. نشرها sebastianhaba على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇