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'.
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin apple-notes-packThis skill is limited to using the following tools:
```bash
Diagnoses and fixes Apple Notes automation errors like permissions (-1743), timeouts (-1712), folder mismatches, and invalid connections. Includes bash diagnostics, osascript checks, and TCC resets.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
# 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"