ical-cli

A command-line tool for managing events in Apple Calendar on macOS.

In plain words
What is it for?
Use it to create, find, view, update, and delete calendar events, including recurring events.
Why use it?
It avoids manually navigating the Calendar app for common event searches and changes.

Skill for Claude CodeCodex

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 skills/fredchu/claude-dotfiles/ical-cli
Any agent
npx skills add fredchu/claude-dotfiles --skill ical-cli
Clone the repo
git clone --depth 1 https://github.com/fredchu/claude-dotfiles

Made for: Claude Code, Codex.

Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,298 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 $0.00166 $0.01298
Opus 5 $0.00083 $0.00649
Sonnet 5 $0.00033 $0.00260
Haiku 4.5 $0.00017 $0.00130

Measured 2d ago against content hash 403173c13587, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ical-cli 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 2d 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.

skills/ical-cli/SKILL.md · 106 lines

How it starts

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

ical CLI — macOS Calendar

Binary: /Users/fredchu/bin/ical — always use full path.

Gotchas (Read First)

  1. delete needs --force — without it, blocks on interactive confirmation and hangs
  2. update has NO --force flag — changes apply immediately, just run it
  3. --id and positional arg are mutually exclusive — never pass both
  4. Calendar JSON field is title, not name
  5. Never use -i (interactive mode) — it requires terminal input, use flags instead
  6. Row numbers reset on every list/today/upcoming command

Commands

Querying

/Users/fredchu/bin/ical today                                    # Today's events
/Users/fredchu/bin/ical today -o json                            # JSON for parsing
/Users/fredchu/bin/ical list --from today --to "next friday"     # Date range
/Users/fredchu/bin/ical upcoming --days 7                        # Next N days
/Users/fredchu/bin/ical show 2                                   # Details for row #2
/Users/fredchu/bin/ical search "meeting" --from "jan 1" --to "dec 31"
/Users/fredchu/bin/ical calendars -o json                        # List calendars

Creating

/Users/fredchu/bin/ical add "會議" \
  --start "tomorrow at 2pm" --end "tomorrow at 3pm" \
  --calendar Work --alert 15m --location "Office"

# Recurring
/Users/fredchu/bin/ical add "Standup" \
  --start "next monday at 9am" --end "next monday at 9:30am" \
  --repeat weekly --repeat-days mon,wed,fri

Updating

# By row number (NO --force needed, changes apply immediately)
/Users/fredchu/bin/ical update 1 --title "新標題"
/Users/fredchu/bin/ical update 2 --start "tomorrow at 3pm" --end "tomorrow at 4pm"
/Users/fredchu/bin/ical update 1 --location ""        # Clear a field
/Users/fredchu/bin/ical update 1 --alert none          # Clear alerts
/Users/fredchu/bin/ical update 1 --repeat none         # Remove recurrence

# By exact ID (for scripts)
/Users/fredchu/bin/ical update --id "FULL_EVENT_ID" --title "New"

# Recurring: update this + future occurrences
/Users/fredchu/bin/ical update 2 --span future --start "next monday at 9am"

Read the full file on GitHub · 106 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. 2d ago First seen · 106 lines · 166 tokens per session scan A 403173c13587

Subscribe to this mod's changes

ical-cli is a skill published in the GitHub repository fredchu/claude-dotfiles (2 stars, last pushed 19d ago), licensed MIT. It adds 166 tokens to every session and 1,298 once invoked, about $0.0008 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.