agentsclimarketplace

Apple notes migration deep dive

Skill ComeOnOliver/skillshub/skills/jeremylongshore/claude-code-plugins-plus-skills/apple-notes-migration-deep-dive

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill apple-notes-migration-deep-dive

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Migrate notes between Apple Notes, Obsidian, Notion, and other platforms. Trigger: "apple notes migration".

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

2.5 KB, as published. Nobody here has run it

Apple Notes Migration Deep Dive

Migration Paths

FromToMethod
Apple NotesObsidianExport HTML → convert to Markdown → copy to vault
Apple NotesNotionExport JSON → Notion API import
ObsidianApple NotesRead .md → convert to HTML → JXA create
EvernoteApple NotesFile > Import from Evernote (built-in)

Apple Notes → Obsidian Migration

#!/bin/bash
# Export all Apple Notes to Obsidian vault
VAULT_DIR="$HOME/obsidian-vault/Apple Notes Import"
mkdir -p "$VAULT_DIR"

osascript -l JavaScript -e "
  const Notes = Application(\"Notes\");
  Notes.defaultAccount.notes().map(n => JSON.stringify({
    title: n.name(),
    body: n.body(),
    folder: n.container().name(),
    created: n.creationDate().toISOString(),
  })).join(\"\\n---SEP---\\n\");
" | while IFS= read -r line; do
  [ "$line" = "---SEP---" ] && continue
  title=$(echo "$line" | jq -r ".title" 2>/dev/null || continue)
  body=$(echo "$line" | jq -r ".body" 2>/dev/null)
  folder=$(echo "$line" | jq -r ".folder" 2>/dev/null)
  created=$(echo "$line" | jq -r ".created" 2>/dev/null)

  # Convert HTML to Markdown (basic)
  md=$(echo "$body" | sed "s/<h1>/# /g; s/<\/h1>//g; s/<h2>/## /g; s/<\/h2>//g; s/<br>/\\n/g; s/<[^>]*>//g")

  safe_title=$(echo "$title" | tr "/:*?\"<>|" "-" | head -c 100)
  mkdir -p "$VAULT_DIR/$folder"
  echo -e "---\ncreated: $created\nsource: apple-notes\n---\n\n# $title\n\n$md" > "$VAULT_DIR/$folder/$safe_title.md"
done
echo "Migration complete: $VAULT_DIR"

Obsidian → Apple Notes Import

#!/bin/bash
for md_file in "$VAULT_DIR"/*.md; do
  title=$(head -1 "$md_file" | sed "s/^#\s*//")
  body=$(cat "$md_file" | sed "s/^# /<h1>/;s/$/<\/h1>/" | sed "s/\n/<br>/g")
  osascript -l JavaScript -e "
    const Notes = Application(\"Notes\");
    const note = Notes.Note({name: \"$title\", body: \"$body\"});
    Notes.defaultAccount.folders[0].notes.push(note);
  "
  sleep 1
done

Resources

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.