Apple Notes Production Checklist
Overview
Before deploying Apple Notes automation to a production macOS machine, validate every dependency: TCC permissions, iCloud sync health, Notes.app availability, error handling robustness, and data security. Unlike cloud services where deployment is a push, Apple Notes automation requires physical or remote access to a Mac with a logged-in user session. This checklist ensures nothing is missed before going live.
Pre-Deployment Checklist
Permissions and Access
Application Configuration
Data and Sync
Reliability
Compatibility
Validation Script
#!/bin/bash
echo "=== Apple Notes Production Readiness ==="
PASS=0; FAIL=0; WARN=0
check() {
local label=$1 result=$2
if [ "$result" = "PASS" ]; then echo "[PASS] $label"; PASS=$((PASS+1))
elif [ "$result" = "WARN" ]; then echo "[WARN] $label"; WARN=$((WARN+1))
else echo "[FAIL] $label"; FAIL=$((FAIL+1)); fi
}
# macOS version
VER=$(sw_vers -productVersion)
check "macOS version ($VER)" "$(echo "$VER" | grep -qE '^1[3-9]|^[2-9]' && echo PASS || echo WARN)"
# Notes.app running
check "Notes.app running" "$(pgrep -x Notes > /dev/null && echo PASS || echo FAIL)"
# JXA access
NOTE_COUNT=$(osascript -l JavaScript -e 'Application("Notes").defaultAccount.notes.length' 2>/dev/null)
check "JXA access (${NOTE_COUNT:-0} notes)" "$([ -n "$NOTE_COUNT" ] && echo PASS || echo FAIL)"
# iCloud sync daemon
check "iCloud sync daemon (bird)" "$(pgrep -x bird > /dev/null && echo PASS || echo WARN)"
# Write test (create and delete a test note)
TEST_ID=$(osascript -l JavaScript -e '
const Notes = Application("Notes");
const n = Notes.Note({name: "__prod_check_" + Date.now(), body: "test"});
Notes.defaultAccount.folders[0].notes.push(n);
n.id();
' 2>/dev/null)
check "Write permission test" "$([ -n "$TEST_ID" ] && echo PASS || echo FAIL)"
# Clean up test note
[ -n "$TEST_ID" ] && osascript -l JavaScript -e "Application('Notes').notes.byId('$TEST_ID').delete()" 2>/dev/null
echo ""
echo "=== Results: $PASS passed, $WARN warnings, $FAIL failed ==="
[ "$FAIL" -gt 0 ] && echo "BLOCKED: Fix failures before deploying" && exit 1
[ "$WARN" -gt 0 ] && echo "READY with warnings" && exit 0
echo "READY for production" && exit 0
Error Handling
| Issue |
Cause |
Solution |
| Validation passes locally, fails on target Mac |
Different macOS version or Apple ID |
Run validation script on the exact production machine |
| Write test fails |
Account is read-only (Gmail IMAP) |
Switch to iCloud or "On My Mac" account |
| Notes.app not at login items |
Removed after macOS update |
Re-add via System Settings > General > Login Items |
| Health check does not alert |
Notification permissions denied for Terminal |
Grant notification permission in System Settings |
| iCloud sync lag in production |
Large attachment uploads |
Monitor with brctl status; set expectations for sync delay |
Resources
Next Steps
For deploying as a launchd service, see apple-notes-deploy-integration. For ongoing monitoring, see apple-notes-observability.
Source: jeremylongshore/claude-code-plugins-plus-skills → plugins/saas-packs/apple-notes-pack/skills/apple-notes-prod-checklist/SKILL.md
1---
2name: apple-notes-prod-checklist
3description: "'Production checklist for Apple Notes automation deployments. Trigger: \"apple notes production checklist\". '"
4allowed-tools: "Read, Write, Edit, Bash(osascript:*), Grep"
5category: productivity-and-workflow
6source_repo: jeremylongshore/claude-code-plugins-plus-skills
7source_path: "plugins/saas-packs/apple-notes-pack/skills/apple-notes-prod-checklist/SKILL.md"
8source_url: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/HEAD/plugins/saas-packs/apple-notes-pack/skills/apple-notes-prod-checklist/SKILL.md
9metadata:
10 source: https://skillmd.com/skills/thedixitjain/apple-notes-prod-checklist
11---
12
13# Apple Notes Production Checklist
14
15## Overview
16
17Before deploying Apple Notes automation to a production macOS machine, validate every dependency: TCC permissions, iCloud sync health, Notes.app availability, error handling robustness, and data security. Unlike cloud services where deployment is a push, Apple Notes automation requires physical or remote access to a Mac with a logged-in user session. This checklist ensures nothing is missed before going live.
18
19## Pre-Deployment Checklist
20
21### Permissions and Access
22
23- [ ] TCC automation permission granted (System Settings > Privacy > Automation)
24- [ ] Permission tested from the exact context that will run in production (Terminal, launchd, etc.)
25- [ ] Full Disk Access granted if reading Notes database directly (not recommended)
26- [ ] Script runs without interactive prompts (no "Allow" dialogs left)
27
28### Application Configuration
29
30- [ ] Notes.app configured to launch at login (System Settings > General > Login Items)
31- [ ] Target Apple ID / iCloud account signed in and syncing
32- [ ] "On My Mac" account enabled if local storage is needed
33- [ ] Correct default account set for automation scripts
34
35### Data and Sync
36
37- [ ] iCloud sync verified working (create note on Mac, verify on iPhone)
38- [ ] Backup strategy documented (JSON export on schedule)
39- [ ] Exported data files have restricted permissions (`chmod 600`)
40- [ ] No sensitive data written to logs or temp files
41
42### Reliability
43
44- [ ] Error handling for all AppleEvent failure codes (-1743, -1712, -609, -1728)
45- [ ] Retry logic with exponential backoff for transient failures
46- [ ] Write operations throttled (max 1 per second for iCloud sync)
47- [ ] Health check script deployed and running on schedule
48- [ ] Alerting configured for automation failures (macOS notification or webhook)
49
50### Compatibility
51
52- [ ] Script tested on target macOS version (`sw_vers`)
53- [ ] JXA API compatibility verified for target OS (Ventura/Sonoma/Sequoia)
54- [ ] Node.js version matches production (if using child_process for osascript)
55
56## Validation Script
57
58```bash
59#!/bin/bash
60echo "=== Apple Notes Production Readiness ==="
61PASS=0; FAIL=0; WARN=0
62
63check() {
64 local label=$1 result=$2
65 if [ "$result" = "PASS" ]; then echo "[PASS] $label"; PASS=$((PASS+1))
66 elif [ "$result" = "WARN" ]; then echo "[WARN] $label"; WARN=$((WARN+1))
67 else echo "[FAIL] $label"; FAIL=$((FAIL+1)); fi
68}
69
70# macOS version
71VER=$(sw_vers -productVersion)
72check "macOS version ($VER)" "$(echo "$VER" | grep -qE '^1[3-9]|^[2-9]' && echo PASS || echo WARN)"
73
74# Notes.app running
75check "Notes.app running" "$(pgrep -x Notes > /dev/null && echo PASS || echo FAIL)"
76
77# JXA access
78NOTE_COUNT=$(osascript -l JavaScript -e 'Application("Notes").defaultAccount.notes.length' 2>/dev/null)
79check "JXA access (${NOTE_COUNT:-0} notes)" "$([ -n "$NOTE_COUNT" ] && echo PASS || echo FAIL)"
80
81# iCloud sync daemon
82check "iCloud sync daemon (bird)" "$(pgrep -x bird > /dev/null && echo PASS || echo WARN)"
83
84# Write test (create and delete a test note)
85TEST_ID=$(osascript -l JavaScript -e '
86 const Notes = Application("Notes");
87 const n = Notes.Note({name: "__prod_check_" + Date.now(), body: "test"});
88 Notes.defaultAccount.folders[0].notes.push(n);
89 n.id();
90' 2>/dev/null)
91check "Write permission test" "$([ -n "$TEST_ID" ] && echo PASS || echo FAIL)"
92# Clean up test note
93[ -n "$TEST_ID" ] && osascript -l JavaScript -e "Application('Notes').notes.byId('$TEST_ID').delete()" 2>/dev/null
94
95echo ""
96echo "=== Results: $PASS passed, $WARN warnings, $FAIL failed ==="
97[ "$FAIL" -gt 0 ] && echo "BLOCKED: Fix failures before deploying" && exit 1
98[ "$WARN" -gt 0 ] && echo "READY with warnings" && exit 0
99echo "READY for production" && exit 0
100```
101
102## Error Handling
103
104| Issue | Cause | Solution |
105|-------|-------|----------|
106| Validation passes locally, fails on target Mac | Different macOS version or Apple ID | Run validation script on the exact production machine |
107| Write test fails | Account is read-only (Gmail IMAP) | Switch to iCloud or "On My Mac" account |
108| Notes.app not at login items | Removed after macOS update | Re-add via System Settings > General > Login Items |
109| Health check does not alert | Notification permissions denied for Terminal | Grant notification permission in System Settings |
110| iCloud sync lag in production | Large attachment uploads | Monitor with `brctl status`; set expectations for sync delay |
111
112## Resources
113
114- [Mac Automation Scripting Guide](https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/)
115- [macOS Login Items](https://support.apple.com/guide/mac-help/open-items-automatically-when-you-log-in-mh15189/mac)
116- [Apple System Status](https://www.apple.com/support/systemstatus/)
117
118## Next Steps
119
120For deploying as a launchd service, see `apple-notes-deploy-integration`. For ongoing monitoring, see `apple-notes-observability`.
121
122---
123
124**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `plugins/saas-packs/apple-notes-pack/skills/apple-notes-prod-checklist/SKILL.md`