calendars

calendars is a command for Claude Code from omarshahine/apple-pim. It costs 18 tokens per session (1,453 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, 1 agent shipped together

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.

agentmods
npx agentmods add commands/omarshahine/apple-pim/calendars
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, 1 agent.

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.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.svg" alt="Measured on agentmods" 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,453 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.01453
Opus 5 $0.00009 $0.00727
Sonnet 5 $0.00004 $0.00291
Haiku 4.5 $0.00002 $0.00145

Measured 5d ago against content hash 92a02270b72e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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 · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 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)

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

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"

Delete Event

Use calendar with action delete to remove an event:

  • Required: id (event ID)
  • Optional: futureEvents (default: false, only deletes single occurrence)
  • Safe for recurring events: default only removes one occurrence

Read the full file on GitHub · 136 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. 5d 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 (51 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 1,453 once invoked, about $0.0001 per session on Opus 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.