Content rescue

From SimHacker/moollm · View interactive version

Content rescue is an AI agent skill from the GitHub repository SimHacker/moollm. > Rescue your content from enshittified platforms. Own it as clean, git-committed,

How to use this skill

Skill file

content-rescue ๐Ÿ›Ÿ

Rescue your content from enshittified platforms. Own it as clean, git-committed,

universal Markdown + local assets you control and republish.

Part of MOOLLM. Glance: GLANCE.yml ยท Interface: CARD.yml ยท Scripts: scripts/

Why

Platforms enshittify; your writing, images, and talks shouldn't be hostage to them.

This skill repatriates your own content (and clearly public material โ€” HN is still

good) into local, diffable, universal Markdown + assets under version control.

If it's not on git, it don't exist.

The core trick

The page may be walled; the asset CDN usually isn't.

A curl of a Medium article is often bot-walled to a ~5KB stub. But:

  1. the image CDN (miro.medium.com) serves assets freely, and
  2. the rendered page embeds window.__APOLLO_STATE__ โ€” every image id + caption, in

paragraph order, independent of lazy-loading.

So we extract the manifest from embedded page state in a real browser, then **fetch

assets directly from the open CDN**. (Born from the 2026-06-27 Will-Wright rescue: 167

images pulled in order, captioned, and wired into the local transcript.)

Protocol

EXTRACT-MANIFEST `FROM <url> [VIA browser]`

When curl is walled, open the page in a real browser. The Cursor browser MCP is

ideal headless:

scripts/medium_extract_manifest.js (image block) โ†’ ordered index|id|caption lines;

run the video block for embedded YouTube ids.

Save the image lines to manifest.psv. (Generic sites: derive id|caption from

<figure>/srcset/JSON-LD, or put full asset URLs in column 2.)

FETCH-ASSETS `FROM <manifest.psv> TO <dir>`

python3 scripts/fetch_images.py manifest.psv images --source-url '<article url>'

Downloads each asset in order as NNN-slug.ext (extension auto-detected), and emits

images/INDEX.md (a captioned, ordered gallery = an illustrated transcript) and

images/map.tsv. Re-runnable (skips existing).

WIRE-MARKDOWN `<text-capture> WITH <gallery>`

Localize a text capture into clean universal Markdown:

SCRAPE-HN `<user|thread>`

Harvest a user's HN comments/threads (HN's API/site are scrape-friendly) into

YAML/Markdown capture files. (HN is one of the good ones โ€” preserve, don't fight it.)

Ethics

others' copyright; credit third-party assets (the gallery caption carries it).

Roadmap (sibling skills, planned โ€” see `CARD.yml` related_planned_skills)

ingest interviews โ†’ STT โ†’ cleanup, publish via the Data API.

via GitHub Action workflows.

Part of MOOLLM

A standalone, publishable skill. Related: skills/card (a rescued page can become a

CARD), skills/cursor-mirror (introspection sibling, same scripts/ pattern).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.