takeout-pull

takeout-pull is a skill for Claude Code from tonydzi/second-brain-starter-kit. It costs 69 tokens per session (1,525 once invoked), scanned A, original, MIT.

An automated Google Takeout downloader and importer. Google Takeout is Google's service for exporting data, and its download links can expire if they are not used in time.

In plain words
What is it for?
Use it to scan email for ready Takeout links, report their status, download the export, and import it into the vault.
Why use it?
It detects ready exports and downloads them before their links expire instead of relying on a reminder that may not be acted on.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the second-brain-skills plugin — 100 skills shipped together

Good fit Use it to scan email for ready Takeout links, report their status, download the export, and import it into the vault.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonydzi/second-brain-starter-kit/takeout-pull
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tonydzi/second-brain-starter-kit --skill takeout-pull
Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code.

Or install second-brain-skills, the plugin that ships this one along with the rest of its 100 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for takeout-pull

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/takeout-pull/github.svg)](https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/takeout-pull)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/takeout-pull"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/takeout-pull/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for takeout-pull

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/takeout-pull"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/takeout-pull.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.01525
Opus 5 $0.00034 $0.00763
Sonnet 5 $0.00014 $0.00305
Haiku 4.5 $0.00007 $0.00153

Measured today against content hash 1aa8035942ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

takeout-pull scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/takeout-pull/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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):

cd "$IMPORTS_ROOT/youtube"
python takeout_pull.py scan --label a --days 21        # Bash dangerouslyDisableSandbox:true (needs network)
  • 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-DD env 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):

  1. navigate to https://takeout.google.com/manage/archive/<archive_id> (id from Step 1).
  2. Click "Download" (use find ref-click, more reliable than coordinates).
  3. Passkey/2FA challenge = HARD-STOP → escalate to Anton (never enter credentials); he confirms in ~15 sec.
  4. 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 history only (Step 3). NEVER click Takeout "Cancel scheduled exports" (kills queued ones).
  5. Zip lands in $USERPROFILE/Downloads\.

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 88 lines · 69 tokens per session scan A 1aa8035942ee

Subscribe to this mod's changes

takeout-pull is a skill published in the GitHub repository tonydzi/second-brain-starter-kit (6 stars, last pushed today), licensed MIT. It adds 69 tokens to every session and 1,525 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-09.

Related

Other skills, from other repositories

ingest

A tool for adding a URL, file, text, or Inbox item to the LLM Wiki. It checks the material's purpose, preserves the original source, compiles a wiki page, updates indexes and logs, and reviews the result.

johnfkoo951/cmds-llm-wiki · 56 tokens

wiki-ingest

Ingest supplied source material into an Obsidian vault with provenance and claim tracking: pasted text, files staged in the selected vault's inbox or .raw archive, or explicitly approved URLs. Use for a single source or bounded batch, not for saving an assistant answer. Triggers: ingest, ingest this file, ingest this…

AgriciDaniel/claude-obsidian · 88 tokens

autoresearch

Run a bounded, source-grounded research loop, draft a cited dossier, and optionally propose a separately reviewed canonical vault merge. Use when the user wants autonomous or deep research that may access the public web. Triggers: /autoresearch, autoresearch, research this topic, deep dive into, investigate, find…

AgriciDaniel/claude-obsidian · 80 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

canvas

Create, inspect, and update Obsidian JSON Canvas boards with text, file, link, group, and edge nodes. Use for canvas status, canvas lists, visual maps, zones, spatial layouts, adding vault notes or media to a .canvas file, and requests such as create canvas, add to canvas, or put this on the canvas.

AgriciDaniel/claude-obsidian · 72 tokens

defuddle

Plan and, with explicit network consent, use an optional external Defuddle cleaner to extract article-like HTTPS pages as Markdown. Use for defuddle, clean this URL, strip page clutter, readable Markdown from a web page, or preparing a web source for later wiki ingestion.

AgriciDaniel/claude-obsidian · 57 tokens