# eventkit

A skill that walks your agent through EventKit and EventKitUI code: calendar events, reminders, recurrence rules and the system editors.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3100 installs · ★ 1238
- Author: dpearson2699
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/eventkit/SKILL.md
- Updated: 2026-07-31
- HTML: https://affpapa.org/en/nevibecode/skills/eventkit

## What it does

The skill covers EventKit work in an iOS app: asking for access, creating and fetching events, reminders, recurrence rules, alarms, and the EventKitUI controllers. Sections come with Swift samples built on `EKEventStore`, `EKEvent`, `EKReminder`, `EKRecurrenceRule`, `EKEventEditViewController` and `EKCalendarChooser`. There is also a list of common mistakes and a review checklist.

Permissions are where this gets fiddly. On iOS 17 and later the legacy `requestAccess(to:)` call no longer prompts and throws instead, so the skill points you at the granular methods: `requestFullAccessToEvents()`, `requestWriteOnlyAccessToEvents()`, `requestFullAccessToReminders()`. Write-only access creates events but cannot fetch calendars or events — if you plan to look up or edit what you saved, you need full access. For iOS 10–16 the older request path still applies and belongs behind a version guard.

Your `Info.plist` needs the usage string that matches the chosen path: `NSCalendarsFullAccessUsageDescription`, `NSCalendarsWriteOnlyAccessUsageDescription` or `NSRemindersFullAccessUsageDescription`. The system event editor can create an event with no calendar access at all. Keep one `EKEventStore` instance and reuse it; objects from separate stores do not mix. Event queries run synchronously and are capped at a four-year span.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill eventkit -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/eventkit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/eventkit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill eventkit -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/eventkit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill eventkit -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/eventkit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dpearson2699/swift-ios-skills eventkit
```

2. **Manually: put the files in place**
- File: `.github/skills/eventkit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill eventkit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dpearson2699/swift-ios-skills --path skills/eventkit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/eventkit/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill eventkit -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/eventkit/SKILL.md

## When to use it
- request calendar and reminder access the iOS 17 way
- save a new event into a chosen calendar
- set up a repeating event with `EKRecurrenceRule`
- list writable calendars and pick one for saving
- present the system event editor with `EKEventEditViewController`

## Example prompts
- Add full calendar access and a Swift function that creates an event
- Create a reminder with a due date using `EKReminder` and save it
- Check this EventKit code for permission mistakes

## Similar
- [intents-mcp](https://affpapa.org/en/nevibecode/mcp/intents-mcp.md) — MCP server · ★ 6
- [swiftdata-pro](https://affpapa.org/en/nevibecode/skills/swiftdata-pro.md) — skill · 9300 installs
- [swift-testing-expert](https://affpapa.org/en/nevibecode/skills/swift-testing-expert.md) — skill · 5300 installs
- [cmux-architecture](https://affpapa.org/en/nevibecode/skills/cmux-architecture.md) — skill · 4900 installs
- [swiftui-patterns](https://affpapa.org/en/nevibecode/skills/affaan-m-swiftui-patterns.md) — skill · 4600 installs
- [swift-expert](https://affpapa.org/en/nevibecode/skills/swift-expert.md) — skill · 4100 installs

## Other versions with the same name
- [eventkit · prisma-labs-dev](https://affpapa.org/en/nevibecode/skills/prisma-labs-dev-eventkit.md) — 461 installs

From the same set: [dpearson2699/swift-ios-skills](https://affpapa.org/en/nevibecode/by/dpearson2699/swift-ios-skills.md) — 86 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
