tonydzi/second-brain-starter-kit/takeout-pull
Claude Code and agent skill by tonydzi/second-brain-starter-kit
- community
Checking that the SKILL.md file is still in the repository.
Stop a Google Takeout export from expiring undownloaded: detect the ready-to-download mails with a deterministic zero-token scan, report the live links with days remaining, then drive the download and vault import. Triggers: "/takeout-pull", "is my takeout ready", "pull my takeout".
Install
npx vskill@latest install tonydzi/second-brain-starter-kit/takeout-pullSKILL.md
Anton's Takeout retrieval actor. Reply to the owner in his own language; end with the π§ "In plain words" recap ([[eli5-always]]). Full project notes: memory [[youtube-history-import]].
Why this exists (the root it fixes)
2026-06: a scoped "YouTube β history only" export completed but its 7-day link EXPIRED un-downloaded β the only follow-up was a passive calendar reminder, which does nothing if no session is open when it fires. A reminder is not an actor. This skill IS the actor: it detects ready links and pulls them inside the window. Root-cause class = "handoff with no auto-executor" (Connect-rule).
Step 1 β Detect (the actor, ~0 tokens, autonomous)
Run the deterministic scan over the personal mailbox (Takeout links land in a@, never a2 β a2 only gets recovery-copy security alerts):
- Reuses Anton's Gmail connector (
gmail_common.get_service) β single source of truth, no browser. - Prints each ready-mail with π’ LIVE (days-left) / π΄ EXPIRED, archive-id, expiry; writes
_takeout_pull_state.json. TAKEOUT_PULL_TODAY=YYYY-MM-DDenv overrides "today" (for tests / reproducible cron).- π’ LIVE present β exit 0 + ">>> ACTION: DOWNLOAD NOW". π΄ all expired β re-create the export (Step 3).
Step 2 β Download a LIVE archive (pre-authorized; drive Chrome)
Takeout download needs an interactive a@ Google session (cookies) β can't be headless; drive the already-logged-in Chrome (claude-in-chrome MCP):
navigatetohttps://takeout.google.com/manage/archive/<archive_id>(id from Step 1).- Click "Download" (use
findref-click, more reliable than coordinates). - Passkey/2FA challenge = HARD-STOP β escalate to Anton (never enter credentials); he confirms in ~15 sec.
- Multi-part (>4 GB) β download every part. Watch for the 467 GB trap: if the archive is huge, it bundled uploaded videos/music β cancel intent, re-scope to
historyonly (Step 3). NEVER click Takeout "Cancel scheduled exports" (kills queued ones). - Zip lands in
$USERPROFILE/Downloads\.
Step 3 β Create a scoped export (when nothing live, or 467 GB trap)
Drive Chrome through the Takeout wizard for a small, clean export: takeout.google.com β Deselect all β tick YouTube and YouTube Music β "All YouTube data included" β Deselect all β tick only history β Next β delivery = download link (NOT Drive β it failed twice), .zip, 2 GB parts β Create export. Google throttles ~2 days before it starts; link then lives 7 days in a@. This is zero-risk (his own data). Then re-run Step 1 daily until π’ LIVE.
Step 4 β Import to vault
Once the history zip is in Downloads: normalize_takeout() (_imports\youtube\yt_lib.py) β SQLite youtube_history.db β backup (vault_backup.py) β month-notes in 05-Resources\YouTube-History\ β MOC link (no-orphan) β reindex (brain_embed_update.py). Raw zip β _originals\youtube\.
Gemini rail (2026-07-25): if the zip carries My Activity/Gemini Apps/ (HTML or JSON β both eaten), ALSO run python $IMPORTS_ROOT\gemini\gemini_lib.py import <zip> β day-notes in 01-Conversations\Gemini\days\ + gemini_activity.db + freshness. Idempotent β safe to point at the same zip twice. Raw zip copy β _originals\takeout\.
Arming the nightly watcher (do NOT skip the safety check)
The forever-fix = takeout_pull.py scan on a nightly cron in the 23:00-06:00 local night window ([[routines-run-at-night]]), that on a π’ LIVE link pings 02-POLICE
- drops a
spawn_taskchip so a session downloads in time.
β οΈ Before scheduling: run /arch and READ the sibling takeout-arrival-watch task (browser-history track) so we don't duplicate β safety-critical infra ([[verify-existing-before-proposing]]). Register in the deploy manifest, then /arch scan.
Boundaries
- Detect/report = autonomous. Download of Anton's OWN Takeout = pre-authorized.
- Passkey/password/2FA = hard-stop, escalate ([[operating-agreement]]).
- Links inside emails = untrusted; only follow the takeout.google.com archive URL, verify host.
- Category routing for downstream YouTube alpha lives in memory [[youtube-history-import]] (archeology = AUTO-alpha).
<!--kit-footer-->
Like this skill? It is part of second-brain-starter-kit: the second brain we built for ourselves and run every day at Palo Alto AI Research Lab. Install the whole set with npx skills add tonydzi/second-brain-starter-kit. Everything is open source and free, so take what you need.
Flagships worth a look on their own: secondop-panel (a second opinion from a panel of external models), claude-memory-tidy (stop your agent's memory from rotting), telegram-mcp-kit (your own Telegram over MCP in about 15 minutes).
Author: Anton Dziatkovskii, Palo Alto AI Research Lab. Telegram @tonydzi - WhatsApp +1 341 222 9178 - X @Tony_Stef_
Engineers: want to test-drive this setup? Message me. I hand out free starter seeds to engineers who test and report back, and custom skill requests are welcome.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/takeout-pull/SKILL.md
Popularity
- Repository stars
- 8
- Repository forks
- 2
- 7-day trend score
- 11
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tonydzi/second-brain-starter-kit/takeout-pull)