mac-export

mac-export is a skill for Claude Code from tonydzi/second-brain-starter-kit. It costs 224 tokens per session (1,937 once invoked), scanned A, original, MIT.

A macOS data export procedure that copies Contacts, Notes, Reminders, or Calendar data into an Obsidian vault as Markdown and JSON files. Obsidian is a tool for storing linked notes in a local folder.

In plain words
What is it for?
It is for exporting native Apple data from the Mac that owns it, creating files for later use, and leaving a short handoff note for the next session.
Why use it?
It makes Mac-only data available to other coding-agent sessions without copying it by hand. Repeated exports refresh the same data instead of creating needless duplicates.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the second-brain-skills plugin — 248 skills, 1 plugin shipped together

Good fit It is for exporting native Apple data from the Mac that owns it, creating files for later use, and leaving a short handoff note for the next session.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonydzi/second-brain-starter-kit/local-mac-export
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 local-mac-export
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 248 skills, 1 plugin.

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 mac-export

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/local-mac-export/github.svg)](https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/local-mac-export)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/local-mac-export"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/local-mac-export/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 mac-export

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/local-mac-export"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/local-mac-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 224 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,937 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.00224 $0.01937
Opus 5.5 $0.00090 $0.00775
Sonnet 5.5 $0.00045 $0.00387
Haiku 4.5 $0.00022 $0.00194

Measured 17d ago against content hash d66fbf8efd12, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mac-export 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 17d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (adapters/contacts_extract_allsources.py, adapters/imessage_export.py, adapters/safari_calendar_reminders_export.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/local-mac-export/SKILL.md · 55 lines

How it starts

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

/mac-export <источник> — тащим родные данные Мака в волт

🧒 When reporting to Anton: end with a child-simple «Простыми словами» recap.

Один паттерн для всех: родная база .app (SQLite / AppleScript) → MD + JSON в известный путь волта → короткий README_FOR_CLAUDE.md для следующей сессии. Меняется только адаптер под источник. Детерминированно, 0 токенов LLM (чистое извлечение). Работает на той машине, что владеет данными (этот Мак) — с ПК эти источники недоступны, в этом весь смысл.

Когда сюда

«выкачай контакты/заметки/напоминания/календарь с мака» · «что ещё можно достать с мака, чего нет на ПК» · любой родной источник macOS в волт. НЕ сюда: уже готовый файл/URL/артефакт → /obsidian-ingest; Gmail/Telegram/WhatsApp → их коннекторы.

Источники и адаптеры

Источник Родная база (копировать в tmp перед чтением!) Выход в волте Движок Статус
contacts ~/Library/Application Support/AddressBook/**/AddressBook-v22.abcddb (+-wal,-shm); контакты = ZABCDRECORD where Z_ENT=22 ⚠️ КАНОН с 2026-08-20 = волт 07-People/Contacts/ (8 542, CRM-обогащены) + _imports/apple-contacts/ (json/vcf/db, конвейер хаба); GDrive-копия [машина флота]usa-Apr26/Contacts/ = legacy (GDrive-app выключен). Обновление карточек = merge (merge_cards.py), НЕ перезапись — иначе стираются crm-поля .../Contacts/_tools/extract_contacts.py ✅ ПРОВЕРЕН (12 495 контактов, 2026-06-11) [[contacts-export]]
notes ~/Library/Group Containers/group.com.apple.notes/NoteStore.sqlite !_Claude_[машина флота]/Apple Notes Export &lt;дата&gt;/ (notes_export.json+Notes/+attachments/+_INDEX.md) экспортёр рядом с выходом (см. README_FOR_CLAUDE.md) ✅ ПРОВЕРЕН (649 заметок, 2026-06-11)
reminders ~/Library/Group Containers/group.com.apple.reminders/Container_v1/Stores/Data-*.sqlite (ZREMCDREMINDER; списки ZREMCDBASELIST) !_Claude_[машина флота]/Reminders Export <дата>/ (Reminders.md чекбоксы + JSON) adapters/safari_calendar_reminders_export.py ✅ ПРОВЕРЕН (57 шт, 2026-08-20)
calendar ~/Library/Group Containers/group.com.apple.calendar/Calendar.sqlitedb (⚠️ НЕ ~/Library/Calendars/**.ics — там бэкапы 2018-2022!) !_Claude_[машина флота]/Calendar Export <дата>/ (ics/ по календарю + JSON) adapters/safari_calendar_reminders_export.py ✅ ПРОВЕРЕН (27 476 событий, 15 .ics, 2026-08-20)
imessage ~/Library/Messages/chat.db (+wal/shm; нужен Full Disk Access у Claude.app) !_Claude_[машина флота]/iMessage Export <дата>/ (MD по диалогу + messages.json + attachments/) adapters/imessage_export.py (декодер attributedBody: NSString→0x2b→varint→UTF-8; имена из name_map контактов) ✅ ПРОВЕРЕН (39 052 сообщ / 3 376 диалогов / 1 645 вложений, 2026-08-20)
safari ~/Library/Safari/Bookmarks.plist + History.db + CloudTabs.db (FDA) !_Claude_[машина флота]/Safari Export <дата>/ (Bookmarks/ReadingList/History .md + JSON) adapters/safari_calendar_reminders_export.py ✅ ПРОВЕРЕН (3 301 закладка / 196 RL / 851 история, 2026-08-20)

Read the full file on GitHub · 55 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 17d ago Changed d66fbf8efd12
  2. 25d ago First seen · 55 lines · 224 tokens per session scan A 7a059fb8c136

Subscribe to this mod's changes

mac-export is a skill published in the GitHub repository tonydzi/second-brain-starter-kit (9 stars, last pushed today), licensed MIT. It adds 224 tokens to every session and 1,937 once invoked, about $0.0009 per session on Opus 5.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-24.

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

wiki

Initialize, adopt, and route work for a separate Obsidian knowledge vault through the portable claude-obsidian core. Use for vault setup, scaffolding, workspace selection, cross-project configuration, or choosing the correct wiki sub-skill. Triggers: /wiki, set up wiki, scaffold vault, create knowledge base, adopt…

AgriciDaniel/claude-obsidian · 84 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

obsidian-markdown

Explain, draft, or validate Obsidian Flavored Markdown syntax: properties, wikilinks, embeds, callouts, tags, comments, highlights, block references, math, and Mermaid. Use when the user explicitly requests Obsidian note formatting or syntax help, not for general Markdown or broad vault operations.

AgriciDaniel/claude-obsidian · 68 tokens

wiki-fold

Create a bounded, extractive, structurally idempotent rollup of recent Obsidian wiki log entries, with dry-run preview by default and one optional transaction apply. Use for manual log compression without modifying child pages. Triggers: fold the log, run a fold, run wiki-fold, log rollup, roll up log entries, commit…

AgriciDaniel/claude-obsidian · 76 tokens