agentleFS
t1mericksont1merickson/skills/offline-archive/SKILL.md

offline-archive

Skill1 starsChanged 3 months agoMITView on GitHub

Preserve a legitimately accessible web page, tool, or bounded site as a self-contained personal-use archive with polite acquisition, provenance, and network-blocked replay.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a request plan and manifest before a whole-site crawl:

    line 16
  2. Distinctive:

    Prefer rebuilding from source when available and record the relationship between source commit, production asset hashes, and archive build.

    line 34
  3. Very specific:

    Place SOURCE.md beside the archive with original URL, retrieval date, scope, request policy, capture tool/version, source commit when …

    line 40
  4. Distinctive:

    If the user later wants to extend the archived tool, look for the narrowest dependency-free seam in the original engine before patching …

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Offline archive

Web archives usually begin with a broad “keep this URL” and then reveal a second question: what should survive besides the core experience? Ask once, up front: keep it whole, or strip anything such as tracking, promotional chrome, or unrelated integrations? Confirm the URL, output location, breadth, and fidelity needs. Treat authenticated or blocked material as a stop, not an invitation to invent a bypass.

Plan before fetching

Identify the site architecture first; strategy follows from what the site is. Prefer an available source repository over scraping deployed bundles, then compare source commit and built asset hashes when possible. A static mirror, an ES-module toy, a Vite SPA, and a Next.js application fail offline for different reasons.

For a bounded crawl, inspect sitemaps and robots.txt as planning evidence. Stop on access denial, sustained throttling, or a scope that expands materially beyond the approved request.

Create a request plan and manifest before a whole-site crawl:

  • allowed origins and paths;
  • sitemap or known inventory;
  • estimated pages/assets/bytes;
  • concurrency, delay, retry/backoff, and maximum request budget;
  • resume state and deduplication key;
  • user agent/contact convention where appropriate;
  • capture date and tool versions.

Use low concurrency, server-directed retry delays, capped exponential backoff, and resumability. Add jitter: a perfectly regular request cadence is conspicuously automated even when slow. Build resume state before the long run; a crawl that dies at 80% and refetches everything is the impolite outcome. Avoid refetching unchanged assets. For evidentiary or long-lived captures, consider WARC alongside the browsable derivative.

Preserve behavior deliberately

Capture HTML, styles, fonts, media, modules, JSON payloads, service-worker references, and runtime-generated assets within scope. URLs hide inside CSS, serialized hydration data, template literals, and copied public assets—not only in HTML attributes. Rewrite them to relative paths or data URLs.

Preserve the logic, not only the first paint. Live API behavior becomes an explicit captured snapshot or a clearly disabled feature; install a deny-by-default network shim before application chunks run. A page that quietly falls back to production is not an offline archive.

Prefer rebuilding from source when available and record the relationship between source commit, production asset hashes, and archive build. Do not patch opaque minified code unless a smaller, testable seam is unavailable.

Architecture-specific traps belong in references/site-recipes.md. Verify them against the current site rather than assuming a framework from old filenames. When a new architecture costs real debugging, add the smallest reusable recipe so the trap is not paid for twice.

Provenance

Place SOURCE.md beside the archive with original URL, retrieval date, scope, request policy, capture tool/version, source commit when known, transformations, omitted features/content, licenses, integrity hashes, known failures, and replay instructions. Preserve superseded captures by project policy; do not accumulate them blindly.

Verify offline

Serve or open the archive through its supported local route with all HTTP, HTTPS, and WebSocket traffic blocked. Clear or isolate browser caches first; otherwise a broken archive can look complete because the live site's service worker is helping. The verifier exits non-zero for any attempted network access, missing asset, broken image/font, console error that affects function, failed route, or required interaction/export that no longer works.

Exercise lazy content after scrolling through its loading boundary, navigation, keyboard paths, forms that are meant to remain local, downloads/exports, canvas/WebGL rendering through compositor screenshots, and refresh/deep-link behavior. Do not trust a pleasant screenshot: placeholder images, dead export buttons, and live dependencies can all look fine. Record what was not reproducible.

If the user later wants to extend the archived tool, look for the narrowest dependency-free seam in the original engine before patching opaque minified application code. A small verbatim engine behind a fresh local front end is usually easier to verify and keep offline.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.