# apple calendar jxa

> A high-performance macOS Calendar skill using JXA, EventKit, and SQLite for fast agendas, search, and event management.

apple calendar jxa is a subscription AI agent skill on Agensi by Roman Pinchuk, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5/mo (subscription, cancel anytime)
- Creator: [Roman Pinchuk](https://www.agensi.io/creators/roman-pinchuk)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/apple-calendar-jxa
- Tags: ai-agents, macos, javascript-automation, sqlite3, productivity

## About this skill

Managing a macOS calendar via an agent often fails due to slow AppleScript execution, permission hurdles, or imprecise searches. This skill provides a high-performance bridge to Apple Calendar using a hybrid backend strategy that combines EventKit JXA, Calendar.app scripting, and direct SQLite metadata lookups.

### What it does
- **High-speed agendas** uses native EventKit to fetch date-range event lists without sequential scanning.
- **SQLite keyword search** performs instant read-only metadata lookups across all calendars for specific events.
- **Event management** handles creation, updates, and deletion of non-recurring events with verification steps.
- **Cross-timezone travel** creates complex flight events with separate departure and arrival time zones using private selectors.
- **MapKit integration** resolves airport locations to structured data for rich calendar location cards.
- **Permission handling** detects and explains macOS Automation, Full Disk Access, and EventKit authorization requirements.

### How it works
1. The agent discovers available calendars using a lightweight JXA discovery script.
2. For broad date ranges, it executes an EventKit template to retrieve up to 1000 events in a 20-second window.
3. For specific searches, it queries `Calendar.sqlitedb` to find candidate IDs before resolving them via Calendar.app.
4. For updates, it assigns UTC ISO 8601 timestamps and verifies the modification by re-reading the event ID.

### Frameworks & tools
This skill uses `/usr/bin/osascript` with the JavaScript (JXA) language flag. It interacts with the `Foundation`, `EventKit`, and `MapKit` Apple frameworks. It requires access to the host SQLite database at `~/Library/Group Containers/group.com.apple.calendar/Calendar.sqlitedb`.

### Why this beats prompting it yourself
Writing raw JXA often leads to timeout errors or silent failures when dealing with large calendars. This skill implements a sophisticated hybrid architecture that bypasses the slowness of `cal.events().filter()` by using faster lower-level APIs while maintaining the safety of the official application layer for writes.

### Use cases
- Generate a summary of all meetings scheduled for the upcoming month across multiple calendars.
- Find an old appointment by searching for a specific keyword in the event notes or location.
- Batch create travel itineraries with precise local times and structured airport locations.
- Safely clean up duplicate events by resolving unique SQLite identifiers to JXA objects.

### Known limitations
Full Disk Access is required for SQLite searches. EventKit requires specific macOS calendar permissions. Recurring event exceptions and complex recurrence rules are not supported for mutation.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the apple calendar jxa skill from Agensi" and describe your task.
3. Subscribe on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill solve the performance issues typical of standard Apple Calendar automation?

This skill uses a hybrid architecture that combines EventKit JXA and SQLite lookups, bypassing the slow sequential scanning of standard AppleScript to provide near-instant agenda views and keyword searches even in large databases.

### What specific macOS permissions are required for the skill to work?

To function correctly, you must grant your AI agent host permissions for 'Automation' (to control Calendar.app) and 'Full Disk Access' (to allow the high-speed SQLite metadata searches).

### Can this skill handle complex travel itineraries involving multiple time zones?

Yes, this skill uses MapKit integration and private selectors to correctly handle events with different departure and arrival time zones, which is often a pain point for standard automation tools.

### Are there any limitations when it comes to managing recurring events?

The skill allows for the creation, update, and deletion of single-instance events; however, it does not currently support modifying complex recurrence rules or individual exceptions within a recurring series.

### What is included in the purchase of this skill?

The package includes the optimized JXA scripts, the SQLite query templates for metadata lookups, and the integration configuration necessary to bridge your AI agent to the macOS Calendar system.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
