gamekit
Integrate Game Center features using GameKit. Use when authenticating GKLocalPlayer, checking player restrictions, submitting leaderboard scores, reporting achievements, implementing real-time or turn-based matchmaking, handling GKMatch data, showing the Game Center dashboard or access point, adding challenges and friend invitations, saving game data, or verifying player identity on a server.
npx skills add dpearson2699/swift-ios-skills --skill gamekit --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# GameKit Use GameKit for Game Center authentication, competition, matchmaking, social surfaces, and saved-game handoffs; keep rendering, board logic, and full SharePlay group-activity design in their owning framework skills. ## Contents - [Authentication](#authentication) - [Access Point](#access-point) - [Dashboard](#dashboard) - [Leaderboards](#leaderboards) - [Achievements](#achievements) - [Real-Time Multiplayer](#real-time-multiplayer) - [Turn-Based Multiplayer](#turn-based-multiplayer) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Authentication All GameKit features require the local player to authenticate first. Set the `authenticateHandler` on `GKLocalPlayer.local` early in the app lifecycle. GameKit calls the handler multiple times during initialization. ```swift import GameKit func authenticatePlayer() { GKLocalPlayer.local.authenticateHandler = { viewController, error in if let viewController { // Present so the player can sign in or create an account. present(viewController, animated: true) return } if let error { // Player could not sign in. Disable Game Center features. disableGameCenter() return } // Pla
- Contents
- Authentication
- Access Point
- Dashboard
- Leaderboards
- Submitting Scores
- Loading Entries
- Achievements
- Reporting Progress
- Loading Player Achievements
- Real-Time Multiplayer
- Matchmaking with GameKit UI
- Exchanging Data
- Turn-Based Multiplayer
What does the gamekit skill do?
Integrate Game Center features using GameKit. Use when authenticating GKLocalPlayer, checking player restrictions, submitting leaderboard scores, reporting achievements, implementing real-time or turn-based matchmaking, handling GKMatch data, showing the Game Center dashboard or access point, adding challenges and friend invitations, saving game data, or verifying player identity on a server.
How do I install it?
Run `npx skills add dpearson2699/swift-ios-skills --skill gamekit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From dpearson2699/swift-ios-skills, a repository with 963 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.