# shareplay-activities

Get guidance for building GroupActivities sessions, from shared media playback to syncing app state. Useful when adding collaborative features to Apple-platform apps.

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

## What it does

The skill covers Group Activities setup, defining a `GroupActivity`, and managing a session as participants join or leave. It explains how to pass small app-state messages with `GroupSessionMessenger`. Choose reliable delivery for state changes; fast-changing data such as cursor positions can use unreliable delivery.

For shared audio or video, it points to `AVPlaybackCoordinator` alongside `AVPlayer`. Activity data and messages must conform to `Codable`, and each message must stay below 256 KB. Group Activities must be enabled on the app target in Xcode; widgets, extensions, and App Clips cannot use them. That target restriction shapes where the feature can live.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

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

## When to use it
- sync app state across session participants
- handle SharePlay session changes and participant joins
- send small messages to other participants
- coordinate shared audio or video playback
- check group-session eligibility before showing a control

## Example prompts
- Help me add shared video playback with SharePlay and `AVPlayer`.
- Design game-state updates between participants using `GroupSessionMessenger`.
- Review the SharePlay session lifecycle and participant connection handling.

## 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
