apple-notes-sdk-patterns
Installation
SKILL.md
Apple Notes SDK Patterns
Overview
Production patterns for Apple Notes automation: JXA wrapper class, error handling, batch operations, and cross-account support.
Prerequisites
- A scoped account/folder configuration resolved outside the JXA source string.
- A safe process invocation boundary that passes source and data without shell interpolation.
- Durable idempotency tracking for writes and a synthetic local test corpus.
Instructions
- Treat names, bodies, queries, and folder identifiers as data—not template fragments or shell arguments.
- Resolve only explicitly configured accounts and folders, and fail if the target is absent rather than creating it implicitly.
- Keep list and search results scoped and minimize returned fields; never log note bodies by default.
- Serialize mutations, record an opaque idempotency key before the call, and reconcile timeouts before retrying.