/spotlight:web-archivingfrom spotlight
Archives web evidence via first-party MHTML/screenshot snapshots and third-party services (Wayback, Archive.today) with chain-of-custody tracking. For investigators and fact-checkers preserving sources.
Ships in spotlight. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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.
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:
execute-shell: scripts/spotlight-python scripts/spotlight_safe.py validate-url "{URL}"dev-browser --headless --timeout 90 run …) → JSON with the
temp MHTML/PNG paths, status, headers, and an access_wall flag.spotlight_safe.py sha256) and copy it to
{CASE_DIR}/evidence/snapshots/<sha>.{mhtml,png} (filename == hash; identical bytes dedup).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
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"
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.
{CASE_DIR}/evidence/snapshots/<sha>.{mhtml,png,html}.{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
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>
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.
Add archive_url to every source entry in findings.json and fact-check.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.
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:
{
"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.
access_wall + human_verification_required.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).
What SKILL.md sets; muted values are Claude Code's defaults
26 skills in this plugin
/acquisition-graduationConvert repeated dev-browser acquisition successes into durable Spotlight acquisition guidance. Use after a non-trivial browser acquisition works repeatedly and should become a reusable source/domain path without storing secrets, cookies, or fragile session details./arbiterUse the native Arbiter HTTPS API to browse or create bounded social-media case studies and attach its analytics to a Spotlight report./content-accessWork through the legal access hierarchy for paywalled or restricted sources before marking them inaccessible and downgrading confidenceGenerated from the plugin's indexed repository (buriedsignals/spotlight) — no native marketplace selected
npx claudepluginhub p/buriedsignals-spotlightOther plugins' skills for the same job