calendars

calendars is a command for Claude Code from omarshahine/apple-pim. It costs 18 tokens per session (1,501 once invoked), scanned A, original, MIT.

A command for managing events in macOS Calendar, Apple’s app for scheduling appointments and other events.

In plain words
What is it for?
Use it to list, search, view, create, update, delete, and batch-manage calendar events.
Why use it?
It avoids manually searching through calendars or entering event details in the app for each operation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the apple-pim plugin — 16 skills, 7 commands shipped together

Good fit Use it to list, search, view, create, update, delete, and batch-manage calendar events.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/omarshahine/apple-pim/calendars
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/omarshahine/apple-pim

Made for: Claude Code.

Or install apple-pim, the plugin that ships this one along with the rest of its 16 skills, 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for calendars

README.md
[![agentmods](https://agentmods.dev/badge/commands/omarshahine/apple-pim/calendars/github.svg)](https://agentmods.dev/commands/omarshahine/apple-pim/calendars)
Your own site
<a href="https://agentmods.dev/commands/omarshahine/apple-pim/calendars"><img src="https://agentmods.dev/badge/commands/omarshahine/apple-pim/calendars/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for calendars

Your own site · 80×15
<a href="https://agentmods.dev/commands/omarshahine/apple-pim/calendars"><img src="https://agentmods.dev/badge/commands/omarshahine/apple-pim/calendars.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,501 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.01501
Opus 5.5 $0.00007 $0.00600
Sonnet 5.5 $0.00004 $0.00300
Haiku 4.5 $0.00002 $0.00150

Measured 12d ago against content hash 74e5d03a4d82, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

calendars scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/calendars.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Calendar Management

Manage calendar events using the Apple EventKit framework.

Available Operations

When the user runs this command, determine which operation they need and use the calendar tool with the appropriate action:

List Calendars

Use calendar with action list to show all available calendars with their IDs and names.

List Events

Use calendar with action events to list events within a date range:

  • Default: today through next 7 days
  • Parameters: calendar (filter by calendar), from (start date), to (end date), limit
  • Convenience parameters: lastDays (N days ago), nextDays (N days ahead)
  • Each event includes availability: busy, free, tentative, unavailable, or notSupported
  • Subscribed calendars' availability is read from the local Calendar store, which needs Full Disk Access

Get Event

Use calendar with action get to get full details for a specific event:

  • Required: id (event ID)
  • Returns complete event with recurrence rules, alarms, attendees, availability

Search Events

Use calendar with action search to find events by title, notes, or location:

  • Required: query (search term)
  • Optional: calendar, from, to, limit
  • Default search range: 30 days ago to 1 year from now

Create Event

Use calendar with action create to create a new event:

  • Required: title, start (date/time)
  • Optional: end OR duration (minutes), calendar, location, notes, allDay, alarm (minutes before), url, recurrence

Batch Create

Use calendar with action batch_create to create multiple events in one transaction:

  • Required: events (array of event objects, each with at least title and start)
  • More efficient for bulk operations (e.g., scheduling a week of meetings)

Update Event

Use calendar with action update to modify an existing event:

  • Required: id (event ID from list/search)
  • Optional: title, start, end, location, notes, url, recurrence, futureEvents
  • For recurring events: use futureEvents: true to apply changes to all future occurrences
  • To remove recurrence: set recurrence.frequency to "none"

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +2 lines 74e5d03a4d82
  2. 1mo ago First seen · 136 lines · 18 tokens per session scan A 92a02270b72e

Subscribe to this mod's changes

calendars is a command published in the GitHub repository omarshahine/apple-pim (65 stars, last pushed 3d ago), licensed MIT. It adds 18 tokens to every session and 1,501 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.