Exports all macOS Notes to markdown files and a JSON manifest. Run before reorganizing notes to create a safety snapshot.
Ships in notes-commander. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Self-Evolving skill — if export behavior drifts (AE size caps, chunk failures, encoding), fix this SKILL.md and
scripts/notes.tsOSA_EXPORT(+ a test innotes-core.test.tsfor any pure helper change); see the Post-Execution Reflection at the bottom.
One command captures everything Notes holds into a timestamped local snapshot:
NC="$HOME/.claude/plugins/marketplaces/cc-skills/plugins/notes-commander/scripts/notes.ts"
bun "$NC" export # → ~/.local/share/notes-commander/export/<stamp>/
bun "$NC" export --out /path/to/dir # explicit destination
What a snapshot contains:
<account>/<folder>/… mirroring the Notes hierarchy. Each file has YAML frontmatter (account, folder, id, modified) and the note body as plain text (decoded via textutil, UTF-8-safe, CJK-safe).manifest.json — every folder (with counts) and every note (id, name, modified, relative file path, char count). This is the machine-readable index for audits and diffs. It also carries complete (false when anything was skipped) and skipped.folders / skipped.notes with the reason for each, so the manifest alone tells a full backup from a partial one — check complete before trusting a snapshot, not just that manifest.json exists.safeFilename) and suffixed with the note's core-data id (.p1234.md), so same-titled notes never collide.notes-organize operation — it is the undo story. Notes has no API-level undo; a snapshot does.~/.local/share/notes-commander/export/) is deliberately OUTSIDE any git repo so note content can never be accidentally committed. Don't redirect --out into a repo.Recently Deleted is deliberately skipped (restore a note in the Notes UI first if you want it captured).-1741). A failed chunk degrades to per-note fetches; a still-failing note becomes a warning + exit code 3 (partial export is LOUD, never silent). The same holds for a note whose text conversion fails (⚠ note skipped (text conversion failed)): it is skipped, the rest of the snapshot and manifest.json are still written. Transient -600/-1712 launch races retry automatically.After an export, check: (1) exit code 0, manifest.json complete: true, and note count ≈ live inventory total? Exit 3 / complete: false means some notes were skipped — read skipped (or the ⚠ lines) and investigate before trusting the snapshot as a backup. (2) Spot-check one CJK/emoji-titled file — mojibake means the <meta charset="utf-8"> textutil prefix or safeFilename drifted. (3) New -1741s despite chunking → shrink the chunk size in OSA_EXPORT. Update this SKILL.md only for real, reproducible drift.
⚠ note skipped (text conversion failed) … exit null. Measured: that note is 1.7 KB of plain HTML and converted 80 of 80 times in isolation, so textutil had been killed by a signal once in over 600 conversions. Before v32.3.1 the same death returned "", and the note went into the backup as an empty file with no warning. v32.3.1 made that loud, but the manifest still named only the notes it wrote, so a caller trusting manifest.json could not see the gap. Fix: htmlToText() makes two attempts (not for ENOBUFS, which is deterministic) and names the signal when a run is killed. manifest.json gains complete and skipped.folders / skipped.notes, each with a reason. Evidence: a second full export returned 638 notes, complete: true, exit 0, with the previously skipped note exported with its text.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/notes-commander:notes-exportfrom notes-commander
npx claudepluginhub terrylica/cc-skills --plugin notes-commander5 skills in this plugin
/draft-parkPark a draft message/text in macOS Notes for the operator to review and edit, then read it back before acting (e.g. before sending to a real person). Notes is the source of truth (AppleScript CRUD, iCloud-synced, provenance-stamped with the Claude Code session UUID); Stickies is a best-effort view-only desktop mirror. Use whenever you draft something a human should confirm/edit before it is sent or committed — messages, replies, announcements, anything outbound. TRIGGERS - park this draft, park the message, hold this draft, let me edit first, draft for my approval, save to notes for review, read back the draft./notes-auditAnalyze the macOS Notes folder taxonomy and propose a better organization - find empty/near-empty folders, oversized dumping grounds, duplicate-purpose folders, mixed-language naming, and stale content; then present a target hierarchy for operator approval BEFORE any moves. Use when notes feel sporadic/messy, before a big cleanup, or to review organization health periodically. TRIGGERS - audit my notes, notes are a mess, propose notes organization, analyze notes folders, notes cleanup plan./notes-inventoryList every macOS Notes account, folder (including nested subfolders), and per-folder note count — the sidebar as machine-readable data. Use to see what exists before organizing, to answer "how many notes are in X", or as the first step of an audit/export. Read-only, safe. TRIGGERS - list my notes folders, notes inventory, how many notes, what folders do I have, show my notes structure.Other plugins' skills for the same job