apple-notes-observability

Featured

Monitor Apple Notes automation health and performance metrics. Trigger: "apple notes monitoring".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Apple Notes Observability ## Overview Apple Notes has no built-in metrics API or health endpoint. Observability must be built from the outside: polling note counts and folder states via JXA, monitoring iCloud sync daemon health, tracking osascript response latency, and watching system logs for Notes-related errors. This guide sets up a lightweight monitoring stack using bash scripts, structured JSON logs, and macOS notifications for alerting. For persistent monitoring, deploy the health check as a launchd agent that runs on a schedule. ## Health Check Script ```bash #!/bin/bash # scripts/notes-health-check.sh — Deploy via launchd (every 5 minutes) LOG_FILE="${NOTES_LOG_DIR:-/tmp}/notes-health.jsonl" timestamp=$(date -Iseconds) notes_running=$(pgrep -x Notes > /dev/null && echo "true" || echo "false") # Measure JXA latency start_ms=$(($(date +%s%N)/1000000)) note_count=$(osascript -l JavaScript -e 'Application("Notes").defaultAccount.notes.length' 2>/dev/null || echo "-1") folder_count=$(osascript -l JavaScript -e 'Application("Notes").defaultAccount.folders.length' 2>/dev/null || echo "-1") account_count=$(osascript -l JavaScript -e 'Application("Notes").accounts().length' 2>/dev/null || echo "-1") end_ms=$(($(date +%s%N)/1000000)) latency_ms=$((end_ms - start_ms)) # iCloud sync daemon status bird_running=$(pgrep -x bird > /dev/null && echo "true" || echo "false") cloudd_running=$(pgrep -x cloudd > /dev/null && echo "true" || echo "false") # Determine health healthy...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category