/apple-notes-pack:apple-notes-deploy-integrationfrom apple-notes-pack
Deploys Apple Notes automation as a local macOS service using launchd agents, Automator, or Shortcuts. Triggered by 'apple notes deploy'.
Ships in apple-notes-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Apple Notes automation runs exclusively on macOS — there is no cloud deployment path because Notes.app depends on the local Apple Events subsystem and TCC permissions. Deployment means packaging your JXA/osascript automation as a persistent local service. The three deployment models are: launchd agents for scheduled/recurring tasks, Automator workflows for user-triggered actions, and Apple Shortcuts for cross-app automation. Each has different permission requirements and lifecycle management.
<!-- ~/Library/LaunchAgents/com.yourorg.notes-automation.plist -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.yourorg.notes-automation</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/node</string>
<string>/Users/you/scripts/notes-sync.js</string>
</array>
<key>StartInterval</key>
<integer>3600</integer>
<key>StandardOutPath</key>
<string>/tmp/notes-automation.log</string>
<key>StandardErrorPath</key>
<string>/tmp/notes-automation-error.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin</string>
</dict>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
# Deploy and manage the launchd agent
cp com.yourorg.notes-automation.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/com.yourorg.notes-automation.plist
launchctl list | grep notes-automation
# View logs
tail -f /tmp/notes-automation.log
# Unload for updates
launchctl unload ~/Library/LaunchAgents/com.yourorg.notes-automation.plist
# Create a Shortcut that runs your JXA script
# 1. Open Shortcuts.app > New Shortcut
# 2. Add "Run Shell Script" action with:
osascript -l JavaScript /Users/you/scripts/notes-export.js
# Trigger shortcuts from CLI or other automations:
shortcuts run "Export Notes to Markdown"
shortcuts run "Daily Note Creator" --input-type text --input "$(date +%Y-%m-%d)"
# List available shortcuts
shortcuts list | grep -i note
#!/bin/bash
# scripts/install.sh — Deploy Notes automation to a macOS machine
set -euo pipefail
INSTALL_DIR="$HOME/.notes-automation"
PLIST_DIR="$HOME/Library/LaunchAgents"
LABEL="com.yourorg.notes-automation"
echo "Installing Apple Notes automation..."
mkdir -p "$INSTALL_DIR"
cp scripts/*.js "$INSTALL_DIR/"
cp config/*.json "$INSTALL_DIR/"
# Install launchd plist
envsubst < templates/launchd.plist.template > "$PLIST_DIR/$LABEL.plist"
launchctl load "$PLIST_DIR/$LABEL.plist"
# Verify
echo -n "Service status: "
launchctl list "$LABEL" 2>/dev/null && echo "Running" || echo "Failed to start"
# Test Notes access (will trigger TCC prompt on first run)
echo -n "Notes access: "
osascript -l JavaScript -e 'Application("Notes").defaultAccount.notes.length' && echo "OK" || echo "DENIED — approve in System Settings"
| Issue | Cause | Solution |
|---|---|---|
| launchd job starts but osascript fails | TCC not granted for launchd context | Run script manually first to trigger TCC prompt; approve in System Settings |
| Job runs but Notes.app not open | RunAtLoad fires before login complete | Add open -a Notes before osascript calls in your script |
| Logs show "connection invalid" | Screen locked or user switched | Add LimitLoadToSessionType: Aqua to plist for GUI session only |
| Shortcut not found from CLI | Shortcut name mismatch or not saved | shortcuts list to verify exact name |
| Agent runs twice | Both StartInterval and StartCalendarInterval set | Use only one scheduling mechanism per plist |
For production readiness validation, see apple-notes-prod-checklist. For monitoring deployed services, see apple-notes-observability.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
24 skills in this plugin
/apple-notes-ci-integrationRun Apple Notes automation in CI on macOS runners.
Trigger: "apple notes CI".
/apple-notes-common-errorsDiagnose and fix common Apple Notes automation errors.
Trigger: "apple notes error".
/apple-notes-core-workflow-aBuild automated note management workflows with Apple Notes JXA scripts.
Use when batch-creating notes, syncing content from external sources,
organizing notes into folder hierarchies, or building note templates.
Trigger: "apple notes workflow", "batch notes", "note templates",
"organize apple notes", "sync notes".
/apple-notes-core-workflow-bExport and convert Apple Notes to Markdown, JSON, HTML, and SQLite.
Use when backing up notes, exporting to other apps, converting HTML to Markdown,
or building searchable note archives from Apple Notes.
Trigger: "export apple notes", "apple notes to markdown", "backup apple notes",
"apple notes to JSON", "convert apple notes".
/apple-notes-cost-tuningApple Notes cost optimization — it is free, focus on iCloud storage management.
Trigger: "apple notes cost".
/apple-notes-data-handlingHandle Apple Notes data formats: HTML body, attachments, and rich content.
Trigger: "apple notes data handling".
npx claudepluginhub flight505/skill-forge --plugin apple-notes-packOther plugins' skills for the same job