# gamekit

Guides Apple GameKit integration in Swift projects. Useful when implementing Game Center authentication, leaderboards, and achievements.

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

## What it does

The skill provides reference Swift patterns for integrating GameKit and Game Center services. It covers early player sign-in using `GKLocalPlayer.local.authenticateHandler` alongside player restriction checks for age and multiplayer permissions. Calling any GameKit API requires verifying `isAuthenticated` first.

Inside, it details how to manage `GKAccessPoint`, present `GKGameCenterViewController`, submit leaderboard entries, and report achievement increments. Specific leaderboard triggers via the access point require iOS 18+.

All leaderboard IDs and achievements must be set up in App Store Connect beforehand, or reporting calls will fail.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

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

## When to use it
- authenticate local players and verify account restrictions
- configure and toggle GKAccessPoint across game scenes
- submit player scores and fetch leaderboard rankings
- report achievement progress using integer percentage values

## Example prompts
- Show how to handle GKLocalPlayer authentication and restrictions in Swift
- Implement GKLeaderboard score submission with async/await
- Configure GKAccessPoint to display the Game Center dashboard

## Similar
- [xcode-project-setup](https://affpapa.org/en/nevibecode/skills/xcode-project-setup.md) — skill · 130700 installs
- [expo-migrate-module](https://affpapa.org/en/nevibecode/skills/expo-migrate-module.md) — skill · 19400 installs
- [clerk-swift](https://affpapa.org/en/nevibecode/skills/clerk-swift.md) — skill · 14500 installs
- [swiftdata-pro](https://affpapa.org/en/nevibecode/skills/swiftdata-pro.md) — skill · 9300 installs
- [cmux-architecture](https://affpapa.org/en/nevibecode/skills/cmux-architecture.md) — skill · 4900 installs
- [mobile-apps-create](https://affpapa.org/en/nevibecode/skills/mobile-apps-create.md) — skill · 4800 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
