From apple-notes-pack
Troubleshoots Apple Notes automation failures on macOS: app crashes, iCloud sync stalls, permissions resets using bash and osascript. Triggers on 'apple notes incident'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/apple-notes-pack:apple-notes-incident-runbookThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
```bash
# 1. Check if Notes is running
pgrep -x Notes || echo "Notes not running"
# 2. Restart Notes
killall Notes 2>/dev/null; sleep 2; open -a Notes; sleep 3
# 3. Verify access
osascript -l JavaScript -e "Application(\"Notes\").defaultAccount.notes.length"
# 4. Resume automation
# Check iCloud status
defaults read MobileMeAccounts
# Force sync
killall bird; sleep 5; killall cloudd; sleep 5
# Verify notes are syncing
osascript -l JavaScript -e "Application(\"Notes\").defaultAccount.notes.length"
# Reset automation permissions
tccutil reset AppleEvents
# Re-run script to trigger permission prompt
osascript -l JavaScript -e "Application(\"Notes\").defaultAccount.notes.length"
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin apple-notes-packDiagnoses and fixes Apple Notes automation errors like permissions (-1743), timeouts (-1712), folder mismatches, and invalid connections. Includes bash diagnostics, osascript checks, and TCC resets.
Automates Apple Notes via JXA. Use when asked to "create notes programmatically", "automate Notes app", "JXA notes scripting", or "organize notes with automation". Covers accounts/folders/notes, HTML bodies, queries, moves, and Objective-C/UI fallbacks for Notes.app automation on macOS.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.