gemini-pull
Skill1 starsChanged 6 months agoMITView on GitHub
Pull a shared Gemini conversation (share.gemini.google/* or gemini.google.com/share/*) to a markdown transcript. Use IMMEDIATELY when the user shares a Gemini link — do NOT try WebFetch, curl, or --dump-dom first; they are known dead ends that waste tokens every session.
- Installs packages
In this repository16 other files it gives its agents.
- audit-unused-depSkill
- checkpointSkill
- double-checkSkill
- file-adrSkill
- fleetSkill
- fmt-sweepSkill
- forge-mirror-scaffoldSkill
- forgeSkill
- loop-from-taskSkill
- loop-healthSkill
- loop-onSkill
- loopSkill
- loopsSkill
- regression-guardSkill
- restoreSkill
- workspace-testsSkill
The file
Files
/gemini-pull — extract a shared Gemini conversation
One command. Do not re-derive this; every naive approach fails for a different reason (list below).
Steps
Run the bundled script (playwright chromium; ~30–60s):
HOME=/home/paul node ~/.claude/skills/gemini-pull/gemini-pull.js "<share-url>" /tmp/gemini-out.mdEither URL form works — the script follows the
share.gemini.google301 togemini.google.com/share/<hex>?skid=….- Verify:
grep -c '(no response text)' out.mdmust print0. Non-zero means responses didn't render — re-run once; if it persists, the share page structure changed (see trap 5).
Why nothing else works (do not retry these)
- WebFetch dies with
Parse Error: Header overflowon Google's oversized response headers. Always. - curl / raw fetch returns only the JS shell (title "Gemini - direct
access to Google AI", no conversation, no
AF_initDataCallbackblobs). Content loads client-side via RPC. - Headless rendering without cookies blocks forever on Google's
consent wall ("Before you continue to Google"). The script pre-sets
cookie
SOCS=CAISHAgBEhJnd3NfMjAyNDA4MDYtMF9SQzIaAmVuIAEaBgiAo_CmBgon.google.com, which skips it. chromium-shell --headless=new --virtual-time-budget --dump-domhangs until killed (the page never settles). The script instead waits for the conversation selector, scrolls until the turn count is stable, then extracts.- Share pages ≠ chat UI: turns are
<share-turn-viewer>elements containing<user-query-content>+<message-content>. There is NO<model-response>on share pages — waiting on it yields user turns only. Bare<user-query>innerText duplicates text via an a11y "You said …" prefix; useuser-query-content.
Requirements
Playwright's node package + chromium (present on prime at
/home/paul/e2e-probe/node_modules/playwright with browsers in
/home/paul/.cache/ms-playwright — hence HOME=/home/paul). On another
host: npm i playwright && npx playwright install chromium, then edit
the require() path at the top of the script.
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
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.

