Logo: Web Archiving

Web Archiving

Organisatioun
buriedsignals
web-archiving

Archive evidence before it disappears — first-party snapshot (MHTML + screenshot, content-addressed) by default, plus third-party archives, with chain of custody for editorial accountability and legal defensibility

Iwwersiicht

Editeurburiedsignals
Repositoryspotlight
Skill-Nummweb-archiving
Stären
60
Forks
11
Matgeliwwert Dateien
2
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    buriedsignals huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Web Archiving an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/buriedsignals/spotlight/tree/main/skills/web-archiving
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/buriedsignals/spotlight.git /tmp/spotlight
mkdir -p .claude/skills
cp -r /tmp/spotlight/skills/web-archiving .claude/skills/web-archiving
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Web Archiving an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Web Archiving automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Web Archiving net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Web Archiving

Methodology inspired by OpenSanctions evidence-preservation practice.

Archive evidence sources as you find them, before they disappear. This skill is for investigators and fact-checkers who need to preserve sources for editorial accountability, legal defensibility, and reproducibility.

When to Archive

  • Before citing any URL — Archive immediately on discovery. Sources vanish. A finding without an archived copy is a finding that can be challenged.
  • When a source is the only evidence for a claim — Capture a first-party snapshot (Tier 0) AND a third-party copy (Wayback or Archive.today).
  • When a page is JS-rendered, bot-blocking, or likely to change/vanish — the first-party snapshot (Tier 0) captures what Wayback/Archive.today often miss.
  • When a page has changed during the investigation window — Archive each version with a timestamp note.

Archive Service Hierarchy

Capture a first-party snapshot (Tier 0) by default, then a third-party copy for independent verifiability. Tier 0 never replaces the third-party tiers — it is a higher-fidelity, self-held record; independent verifiability still comes from Tier 1/2.

Before any execute-shell call that uses a URL, timestamp, filename, or path, invoke shell-safety and validate values with scripts/spotlight_safe.py. Use curl --get --data-urlencode for URL parameters; do not interpolate untrusted values into shell strings.

0. First-party snapshot — DEFAULT (dev-browser)

Capture the page as a content-addressed MHTML archive + full-page screenshot + response headers using the local dev-browser CLI. Full recipe: references/capture-dev-browser.md; record schema: references/snapshot-record.md. In brief:

  1. execute-shell: scripts/spotlight-python scripts/spotlight_safe.py validate-url "{URL}"
  2. Write + run the capture script (dev-browser --headless --timeout 90 run …) → JSON with the temp MHTML/PNG paths, status, headers, and an access_wall flag.
  3. Hash each artifact (spotlight_safe.py sha256) and copy it to {CASE_DIR}/evidence/snapshots/<sha>.{mhtml,png} (filename == hash; identical bytes dedup).
  4. Record it as an evidence-bundle.json item (acquisition_method: dev_browser).

Guards:

  • Sensitive mode — this skill is disabled in sensitive mode and dev-browser must not hit live external sites without explicit egress approval. Skip Tier 0; for surveilled targets a third-party Wayback save (issued from Internet-Archive infra, not your IP) is the safer lead.

  • Access wall — a no-session headless capture of a paywalled/authed page records the wall, not the content. If access_wall is true, mark the item human_verification_required and do not present it as content evidence.

  • No dev-browser for this capture? dev-browser and the Crawl4AI scraping seam are distinct native capabilities, not substitutes — dev-browser produces chain-of-custody MHTML; Crawl4AI extracts content only. Without dev-browser you cannot produce a provenance-grade Tier-0 archive; you may still extract the content via the Crawl4AI seam (no API key; on a bot-block it escalates to Firecrawl only when FIRECRAWL_API_KEY is set), record acquisition_method: crawl4ai (or firecrawl if it escalated — the CLI reports which via --json .provider) — but it is content-only, no MHTML; mark it accordingly and continue to Tier 1.

    execute-shell: scripts/spotlight-python -m integrations.scraping "{URL}" --out {CASE_DIR}/evidence/snapshots/{slug}.md

1. Wayback Machine (Internet Archive)

Check if already archived:

execute-shell: scripts/spotlight-python scripts/spotlight_safe.py validate-url "{URL}"
execute-shell: curl -s --get "https://archive.org/wayback/available" --data-urlencode "url={URL}"

Submit for archiving:

execute-shell: scripts/spotlight-python scripts/spotlight_safe.py validate-url "{URL}"
execute-shell: curl -s -I "https://web.archive.org/save/{URL}"

The response Location header contains the new snapshot URL.

Find all snapshots (CDX API):

execute-shell: scripts/spotlight-python scripts/spotlight_safe.py validate-url "{URL}"
execute-shell: curl --get "http://web.archive.org/cdx/search/cdx" \
  --data-urlencode "url={URL}" \
  --data-urlencode "output=json" \
  --data-urlencode "limit=5" \
  --data-urlencode "fl=timestamp,statuscode,original"

2. Archive.today

Submit via form:

execute-shell: curl -s -L -X POST "https://archive.ph/submit/" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "url={URL}" \
  -d "anyway=1"

Follow redirects — the final URL is the archived copy.

Check for existing copy:

execute-shell: scripts/spotlight-python scripts/spotlight_safe.py validate-url "{URL}"
execute-shell: curl -s "https://archive.ph/newest/" --get --data-urlencode "url={URL}"

The old standalone "local markdown scrape" tier is removed — it is subsumed by the Tier-0 first-party snapshot (and its Crawl4AI fallback), which is higher fidelity.

Evidence Storage

  • Tier-0 snapshot artifacts (content-addressed): {CASE_DIR}/evidence/snapshots/<sha>.{mhtml,png,html}.
  • Chain-of-custody / third-party copies: {CASE_DIR}/research/archived/, naming {domain}-{slug}-archived-{YYYYMMDD}.md.

Examples:

cases/project-name/evidence/snapshots/9f2c…ab.mhtml
cases/project-name/research/archived/reuters-ukraine-ceasefire-archived-20260315.md

Chain of Custody Block

Embed this header in every archived file. It is the provenance record.

---
archived_at: 2026-03-15T14:22:00Z
original_url: https://example.com/article/path
capturer: dev_browser                                  # Tier 0: dev_browser | crawl4ai
snapshot_sha256: 9f2c…ab                               # Tier-0 MHTML artifact (content-addressed)
snapshot_path: evidence/snapshots/9f2c…ab.mhtml
access_wall: false                                     # true ⇒ wall captured, not content
archive_url: https://web.archive.org/web/20260315142200/https://example.com/article/path
archive_service: Wayback Machine                       # third-party (Tier 1/2), when obtained
archived_by: investigator | fact-checker
case: {project}
---

Without this block, the file is not a valid archived source — it is just a local copy.

Write the archived file with the chain of custody block:

write-file: path={CASE_DIR}/research/archived/{domain}-{slug}-archived-{YYYYMMDD}.md, content=<chain of custody block + page content>

Dead Pages

If the original URL returns 404 or is otherwise gone, check Wayback Machine before marking the source as unavailable:

execute-shell: scripts/spotlight-python scripts/spotlight_safe.py validate-url "{URL}"
execute-shell: curl --get "http://web.archive.org/cdx/search/cdx" \
  --data-urlencode "url={URL}" \
  --data-urlencode "output=json" \
  --data-urlencode "limit=1" \
  --data-urlencode "fl=timestamp,statuscode"

If a snapshot exists, retrieve it:

execute-shell: scripts/spotlight-python scripts/spotlight_safe.py validate-timestamp "{TIMESTAMP}"
execute-shell: scripts/spotlight-python scripts/spotlight_safe.py validate-url "{URL}"
fetch: url=https://web.archive.org/web/{TIMESTAMP}/{URL}, output_path={CASE_DIR}/research/archived/{filename}.md

Only mark a source as unavailable after checking all three services.

Integration with Findings

Add archive_url to every source entry in findings.json and fact-check.json:

json
{
  "url": "https://example.com/article",
  "type": "news",
  "accessed": "2026-03-15T14:20:00Z",
  "archive_url": "https://web.archive.org/web/20260315142200/https://example.com/article",
  "local_file": "{CASE_DIR}/research/archived/example-article-archived-20260315.md"
}

If the page could not be archived, set archive_url to null and note why in the finding's confidence_rationale.

Evidence bundle (Tier-0 snapshots)

Each Tier-0 snapshot is also recorded as an evidence-bundle.json item so its hashes are carried into the C2PA-signed provenance-manifest.json. Map onto existing schema fields (see references/snapshot-record.md) — do not invent new keys:

json
{
  "id": "snap-9f2cab01",
  "query_or_task": "web-archiving Tier-0 snapshot: https://example.com/article",
  "acquisition_method": "dev_browser",
  "source_url": "https://example.com/article",
  "accessed": "2026-03-15T14:22:00Z",
  "sha256": "9f2c…ab",
  "raw_path": "evidence/snapshots/9f2c…ab.mhtml",
  "screenshot_path": "evidence/snapshots/7a10…cd.png",
  "extraction_confidence": "high",
  "human_verification_required": false,
  "notes": "MHTML+screenshot; condition=load; screenshot_sha256=7a10…cd"
}

Run scripts/validate-case.py after writing. build-provenance-manifest.py hashes the files at raw_path/screenshot_path, so both artifacts are tamper-evident in the signed manifest.

Rules

  • First-party snapshot (Tier 0) is the default. Then a third-party copy (Tier 1/2) for independent verifiability. For surveilled/hostile targets, lead with Tier 1 (third-party) — a self-capture exposes your own IP/fingerprint to the target.
  • Content-addressing is mandatory. A Tier-0 artifact's stored filename equals the SHA-256 of its bytes; identical bytes dedup to one file.
  • Never store an access wall as evidence. Flag access_wall + human_verification_required.
  • Sensitive mode: no live Tier-0 capture without explicit egress approval (skill is disabled there).
  • Archive before you cite. Not after.
  • Never delete archived files. Even if the finding they support is later disproven — keep the file. It documents what existed at the time.
  • One URL = one archive attempt per service. Don't spam archive services.
  • Timestamping is mandatory. The investigation-log.json already tracks access time per source — ensure it matches the archived copy's timestamp.

Credits

Methodology inspired by OpenSanctions evidence-preservation practice. An early version of this skill was adapted from Joe Amditis's web-archiving skill (MIT); the current version is a full rewrite with no upstream text remaining (verified by diff, 2026-07-06).

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Web Archiving?

Archive evidence before it disappears — first-party snapshot (MHTML + screenshot, content-addressed) by default, plus third-party archives, with chain of custody for editorial accountability and legal defensibility

Firwat Web Archiving op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Web Archiving besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Web Archiving an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/buriedsignals/spotlight/tree/main/skills/web-archiving an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Web Archiving benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Web Archiving benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Web Archiving domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Web Archiving gratis?

buriedsignals huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇