by elhajahmadj
One command downloads a complete offline, no-internet emergency library: local AI (CPU/GPU), document Q&A, full Wikipedia, offline maps for any country/region (default US), survival/repair/medical archives, and public-domain manuals. Asks only where to save.
# Add to your Claude Code skills
git clone https://github.com/elhajahmadj/offline-emergency-libraryGuides for using ai agents skills like offline-emergency-library.
See how offline-emergency-library compares with popular alternatives.
offline-emergency-library is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by elhajahmadj. One command downloads a complete offline, no-internet emergency library: local AI (CPU/GPU), document Q&A, full Wikipedia, offline maps for any country/region (default US), survival/repair/medical archives, and public-domain manuals. Asks only where to save. It has 100 GitHub stars.
offline-emergency-library's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/elhajahmadj/offline-emergency-library" and add it to your Claude Code skills directory (see the Installation section above).
offline-emergency-library is primarily written in PowerShell. It is open-source under elhajahmadj on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh offline-emergency-library against similar tools.
No comments yet. Be the first to share your thoughts!
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
See comparison
A complete, offline, no-internet "survival knowledge" kit you can download with a single command. Built for emergencies, grid-down scenarios, remote areas, or anyone who wants a self-contained offline reference + AI on a drive.
One command asks you only one thing — where to save the files — then downloads everything and writes all the documentation (Markdown and HTML). After that, it all works with no internet.
| Component | What it is | Size (approx) | Needs to run |
|---|---|---|---|
| Offline AI chat | 3 local AI models (Llama 3.2 3B, Llama 3.1 8B, Qwen2.5 7B) + CPU & GPU engines (llama.cpp) | ~11 GB | CPU only (GPU optional) |
| Offline doc-Q&A | GPT4All — ask an AI questions about your PDFs, with citations | ~0.7 GB | CPU, one-time install |
| Wikipedia | Full English Wikipedia article text (compressed) | ~24 GB | Kiwix (or archival) |
| Offline maps | Maps for the region you pick (default US; any country/region/continent — see below) + bundled desktop viewer (OsmAndMapCreator + portable Java) + bundled Android app (APK) | US ≈17 GB; varies by region (+~0.4 GB tools) | PC (no phone) or phone |
| Repair archive | iFixit — cars, appliances, electronics, phones | ~3.4 GB | Kiwix |
| DIY archive | Appropedia — plumbing, electrical, construction, energy, water, food | ~0.6 GB | Kiwix |
| Medical | Offline medical Wikipedia (WikiMed) + curated medical guide | ~1.8 GB | Kiwix |
| Survival | Post-disaster, water, food prep, knots (zimgit) | ~0.8 GB | Kiwix |
| Education (opt-in) | Khan Academy archive (one file, all videos) or Kolibri app (pick subjects/low-res) | KA ZIM ~168 GB; Kolibri = your choice | Kiwix / Kolibri app |
| Army manuals | Public-domain US Army field/technical manuals (survival, first aid, hand tools, carpentry, auto mechanics, rigging, field cooking) | ~0.2 GB | Any browser (PDF) |
| Medical books | Where There Is No Doctor / No Dentist, Ship's Medicine Chest | ~45 MB | Any browser (PDF) |
| Radio guide | How ham/CB/shortwave/GMRS radio works + emergency comms | tiny | Any browser |
| Kiwix reader | Portable app to read all .zim archives (no install) |
~0.15 GB | — |
| Phone apps | Bundled Android APKs (Kiwix + OsmAnd) to port the library to a phone offline | ~0.4 GB | sideload on Android |
| Total | ≈ 60 GB |
Everything is free and legally redistributable — open-weight AI models, openly-licensed Kiwix archives, and public-domain US-government manuals. No piracy.
The full library is ~60 GB. Always leave headroom (for the AI's temp files, GPT4All install, and future updates), so plan for more than 60 GB.
| Drive | Recommendation |
|---|---|
| Minimum | 128 GB drive (full library + working room) |
| Comfortable | 256 GB drive (room to add your own files, Survivor Library, etc.) |
| USB flash drive | Works for storage + reading PDFs/Wikipedia/maps. Use USB 3.0+ / 128 GB+. Cheap flash drives are slow — fine for reading, slow for AI. |
| External SSD ⭐ | Best choice. Running the AI models from an SSD is far faster than from a flash drive or spinning disk. A 256 GB+ USB-C SSD is ideal. |
| Internal HDD/SSD | Perfect if you're keeping it on a PC. |
Tip: If you only want the reference material (no AI), you can skip the big pieces with
-SkipModelsand still get Wikipedia, maps, and all manuals in ~30 GB. If you also skip Wikipedia and maps (-SkipWikipedia -SkipMaps), the AI + manuals fit in ~20 GB.Adding Khan Academy? It's opt-in and ~168 GB with videos — budget for a 256 GB+ (ideally 512 GB) drive if you include
-Education.
To download: any 64-bit Windows, macOS, or Linux computer with internet.
curl + PowerShell (both built in).curl + tar (built in); unzip enables the desktop map viewer.Downloading ~60 GB can take a few hours.
To use it afterward (offline):
| Task | Needs |
|---|---|
| Read PDFs, HTML guides, Wikipedia, maps | Any computer with a web browser. Even an old/weak PC. |
Read .zim archives |
Kiwix — bundled portable on Windows & Linux; on macOS install Kiwix (App Store/kiwix.org). |
| Offline AI — small model (3B) | Any 64-bit PC, ~4 GB RAM. Works on CPU; no graphics card needed. |
| Offline AI — big model (8B) | ~8 GB RAM recommended. CPU only. |
| Offline AI — GPU model (Qwen 7B) | A graphics card with ~6 GB VRAM (NVIDIA/AMD/Intel) for a big speed boost. Optional. |
| GPT4All doc-Q&A | 64-bit PC, ~8 GB RAM recommended. CPU only. Self-contained (no Python/CUDA). |
| Maps on a computer | No phone needed — bundled desktop viewer (OsmAndMapCreator) + bundled portable Java. First use unzips maps (~30 GB). |
| Maps on a phone | Android: bundled OsmAnd~ APK (sideload offline). iPhone/iPad: install OsmAnd from the App Store while online. |
Key points:
OfflineLibrary folder to any PC and use it.install.batDownload/clone the repo, then double-click install.bat. It opens a window, asks you
where to save, and downloads everything. No commands, no PowerShell knowledge needed.
(If Windows SmartScreen warns, click More info → Run anyway.)
Install this repo's skill, then say:
/offline-emergency-library
It will ask only: "Where would you like to save these files?" — then download everything.
irm https://raw.githubusercontent.com/elhajahmadj/offline-emergency-library/main/Get-OfflineLibrary.ps1 | iex
It will prompt you for the save location, then download everything.
curl -fsSL https://raw.githubusercontent.com/elhajahmadj/offline-emergency-library/main/get-offline-library.sh | bash
It will prompt you for the save location, then download everything.
(Requires curl and tar; unzip enables the desktop map viewer. All are standard.)
git clone https://github.com/elhajahmadj/offline-emergency-library.git
cd offline-emergency-library
# Windows:
./Get-OfflineLibrary.ps1 -Destination "E:\"
# macOS / Linux:
./get-offline-library.sh -d /path/to/drive
All methods are resumable — if the download is interrupted, run the same command again and it continues where it left off.
| Windows | macOS | Linux | |
|---|---|---|---|
| Installer | Get-OfflineLibrary.ps1 / install.bat |
get-offline-library.sh |
get-offline-library.sh |
| Offline AI chat | ✅ (x64/ARM + Vulkan GPU) | ✅ (Metal GPU) | ✅ (x64/ARM + Vulkan GPU) |
| GPT4All doc-Q&A | ✅ .exe |
✅ .dmg |
✅ .run |
| Kiwix desktop | ✅ bundled portable | App Store / kiwix.org | ✅ bundled AppImage (x64) |
| Maps on PC | ✅ bundled viewer+Java | ✅ bundled viewer+Java | ✅ bundled viewer+Java |
| All content (Wikipedia, ZIM, PDF, maps, APKs) | ✅ | ✅ | ✅ |
This project hosts nothing — it downloads from the official upstream sources below and runs 100% offline afterward:
| What | From |
|---|---|
| AI models (GGUF) | huggingface.co (bartowski) |
| AI engine (llama.cpp) | github.com/ggml-org/llama.cpp |
| GPT4All | github.com/nomic-ai/gpt4all |
| Kiwix reader + ZIM archives | download.kiwix.org |
| Wikipedia | dumps.wikimedia.org |
| Maps + desktop viewer | download.osmand.net |
| Portable Java | api.adoptium.net (Eclipse Temurin) |
| Manuals (PDF) | archive.org |
| Phone apps (APK) | github.com/kiwix/kiwix-android, f-droid.org |
| Education (optional) | download.kiwix.org (Khan Academy ZIM), github.com/learningequality/kolibri (Kolibri app) |
Verify the installer before running it. Each script's SHA-256 is published in
SHA256SUMS.txt and CI checks they stay in sync.
# macOS / Linux
curl -fsSLO https://raw.githubusercontent.com/elhajahmadj/offline-emergency-library/main/get-offline-library.sh
sha256sum get-offline-library.sh # compare against SHA256SUMS.txt
bash get-offline-library.sh
# Windows
irm https://raw.githubusercontent.com/elhajahmadj/offline-emergency-library/main/Get-OfflineLibrary.ps1 -OutFile Get-OfflineLibrary.ps1
Get-FileHash Get-OfflineLibrary.ps1 -Algorithm SHA256 # compare against SHA256SUMS.txt
./Get-OfflineLibrary.ps1
The scripts are plain Bash/PowerShell — you're encouraged to read them first. (Hashes match
the files served by GitHub raw and the release assets; a git clone on Wind