From apple-notes-pack
Provides reference architecture for Apple Notes automation on macOS using osascript/JXA from Node.js apps, including project structure, constraints, and workarounds.
How this skill is triggered — by the user, by Claude, or both
Slash command
/apple-notes-pack:apple-notes-reference-architectureThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
```
┌────────────────────────────────────────────────┐
│ macOS Machine │
│ │
│ ┌──────────┐ ┌───────────┐ ┌────────────┐ │
│ │ Your App │──▶│ osascript │──▶│ Notes.app │ │
│ │ (Node.js)│ │ (JXA/AS) │ │ (iCloud) │ │
│ └──────────┘ └───────────┘ └────────────┘ │
│ │ │ │
│ ┌────▼─────┐ ┌──────▼───────┐ │
│ │ SQLite │ │ iCloud Sync │ │
│ │ Cache │ │ (automatic) │ │
│ └──────────┘ └──────────────┘ │
└────────────────────────────────────────────────┘
apple-notes-automation/
├── src/
│ ├── notes-client.ts # JXA wrapper class
│ ├── templates/ # Note templates
│ ├── export/ # Export to MD/JSON/SQLite
│ ├── events/ # Change detection polling
│ └── server.ts # Optional: local API server
├── scripts/
│ ├── notes-cli.sh # CLI wrapper
│ ├── export-all.sh # Full export script
│ └── template-create.js # JXA template engine
├── tests/
│ ├── mocks/ # Mock client for CI
│ └── unit/ # Unit tests
└── package.json
| Constraint | Impact | Workaround |
|---|---|---|
| macOS only | No Linux/Windows | Run on Mac; export for cross-platform |
| No REST API | Cannot access remotely | Local-only; export to portable format |
| iCloud sync lag | Writes may not appear instantly | Poll with delay |
| No webhooks | Cannot push events | Poll for changes |
| HTML-only body | No native Markdown | Convert on export |
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin apple-notes-packSets up macOS permissions for Apple Notes automation with AppleScript, JXA, osascript, and Shortcuts. Includes access tests, CLI wrapper script, and Shortcuts verification.
Automates Apple Notes via JXA. Use when asked to "create notes programmatically", "automate Notes app", "JXA notes scripting", or "organize notes with automation". Covers accounts/folders/notes, HTML bodies, queries, moves, and Objective-C/UI fallbacks for Notes.app automation on macOS.
Manages Apple Notes on macOS: create, search, read, update, delete and organize notes and folders via natural language commands.