AGENT SKILL
apple-notes-debug-bundle
Collect Apple Notes automation debug evidence for troubleshooting. Trigger: "apple notes debug".
- License 许可
- MIT
- 最近更新
- 2026-06-24
- Stars
- ★ 67
- Forks
- 24
01 前言 Front Matter
- name
- apple-notes-debug-bundle
- tags
- [ "saas", "macos", "apple-notes", "automation" ]
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Collect Apple Notes automation debug evidence for troubleshooting. Trigger: "apple notes debug".
- allowed-tools
- Read, Write, Edit, Bash(osascript:*), Grep
- compatible-with
- claude-code
03 SKILL.md 正文
Apple Notes Debug Bundle
Diagnostic Script
#!/bin/bash
echo "=== Apple Notes Debug Bundle $(date -Iseconds) ==="
echo "macOS: $(sw_vers -productVersion)"
echo "Notes.app running: $(pgrep -x Notes > /dev/null && echo Yes || echo No)"
echo "Accounts: $(osascript -l JavaScript -e "Application(\"Notes\").accounts().map(a => a.name()).join(\", \")" 2>/dev/null || echo "ERROR")"
echo "Note count: $(osascript -l JavaScript -e "Application(\"Notes\").defaultAccount.notes.length" 2>/dev/null || echo "ERROR")"
echo "Folder count: $(osascript -l JavaScript -e "Application(\"Notes\").defaultAccount.folders.length" 2>/dev/null || echo "ERROR")"
echo "TCC status: $(sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "SELECT client,allowed FROM access WHERE service='kTCCServiceAppleEvents'" 2>/dev/null || echo "Cannot read TCC")"
echo "=== Done ==="