Agent skill · software engineering · jeremylongshore
apple-notes-core-workflow-b
Export and convert Apple Notes to Markdown, JSON, HTML, and SQLite.
Why this skill is useful
Adds multiple executable scripts for exporting and converting Apple Notes to various formats, which the AI cannot generate on its own.
What it needs
Requires jq, python, sqlite3 installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Apple Notes Core Workflow B — Export & Conversion Overview Export Apple Notes to portable formats: Markdown, JSON, HTML files, and SQLite databases. Apple Notes stores content as HTML internally — these workflows convert it to developer-friendly formats. Prerequisites Authorization for exact folders and fields, an encrypted owner-only destination, and a retention/deletion policy. A test export of synthetic notes and a checksum/reconciliation method. A decision on attachment handling; do not infer that content or attachment export is complete from JXA metadata. Instructions 1. Export one named scope at a time, minimize fields, and keep note content out of command history and console output. 2. Create the destination with restrictive permissions before export; sanitize filenames and HTML before writing derived files. 3. Verify record count and checksum, then encrypt or move the artifact according to the approved handling policy. 4. Keep SQLite or search indexes private and time-bounded; they replicate sensitive note data. Procedure Step 1: Export All Notes to JSON Step 2: Export Notes as Markdown Files Step 3: Export to SQLite Database Step 4: Full-Text Search on Exported Notes Output JSON export of all notes with metadata Markdown files organized by folder SQLite database with full note content Full-text search across notes Error Handling Error Cause Solution ------- ------- ---------- Slow export Thousands of notes Export in batches by folder HTML artifacts in Markdown Complex formatting Use a proper HTML-to-MD library (turndown) Missing attachments Images not exported Attachments need separate export path Encoding issues Unicode in note titles Use safe filename sanitization Examples For a rehearsal, export a synthetic folder to a temporary encrypted workspace, compare the expected count and checksum, then remove it. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/apple-notes-core-workflow-b