# alarmkit

A skill that steers the agent through AlarmKit alarm and countdown timer code, from the Info.plist key to the schedule call and Live Activity states.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3600 installs · ★ 1237
- 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/alarmkit/SKILL.md
- Updated: 2026-07-31
- HTML: https://affpapa.org/en/nevibecode/skills/alarmkit

## What it does

Give the agent this skill and it follows a set order: add the Info.plist key, ask for authorization, build the presentation and attributes, call `AlarmManager.shared.schedule(id:configuration:)`, then watch `alarmUpdates` until the scheduled ID lands in the state you want. Firing alerts reach the Lock Screen, the Dynamic Island, StandBy and a paired Apple Watch, and they get past Focus and Silent mode.

One section covers the `.alarm` versus `.timer` choice: clock time with weekday repeat on one side, an always-visible countdown from a duration on the other. State transitions get the same treatment, including which calls throw when the alarm is not in the matching state.

Skip `NSAlarmKitUsageDescription` or lose the user's permission and nothing gets scheduled — the app needs recovery UI instead of a silent no-op. Countdown UI you can style lives only in a Widget Extension built on the same `AlarmAttributes<Metadata>`, because the ringing alert itself is system-drawn. Deployment target has to be iOS 26 or newer; older ones have no AlarmKit at all.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill alarmkit -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/alarmkit/SKILL.md

## When to use it
- schedule an alarm that still fires in Silent mode
- build a countdown timer with pause and resume
- show the remaining time on the Lock Screen and in the Dynamic Island
- attach a snooze button with system-handled behaviour
- catch a missing authorization request during review

## Example prompts
- Build an AlarmKit alarm that repeats on weekdays with a snooze button.
- Add a countdown timer and render it in the Dynamic Island through a Widget Extension.
- Check that the app asks for authorization before `AlarmManager.shared.schedule(id:configuration:)`.

## Similar
- [vercel-react-native-skills](https://affpapa.org/en/nevibecode/skills/vercel-react-native-skills.md) — skill · 255200 installs
- [animate-expo](https://affpapa.org/en/nevibecode/skills/animate-expo.md) — skill · 137900 installs
- [mobile-native](https://affpapa.org/en/nevibecode/skills/mobile-native.md) — skill · 86600 installs
- [aso](https://affpapa.org/en/nevibecode/skills/aso.md) — skill · 75400 installs
- [swiftui-pro](https://affpapa.org/en/nevibecode/skills/swiftui-pro.md) — skill · 35200 installs
- [orca-emulator](https://affpapa.org/en/nevibecode/skills/orca-emulator.md) — skill · 5800 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
