shinyorg/shiny/shiny-gamecenter
Claude Code and agent skill by shinyorg/shiny
- community
Checking that the SKILL.md file is still in the repository.
Generate code using Shiny.GameCenter for cross-platform achievements, leaderboards and friends over Apple Game Center (iOS, Mac Catalyst, macOS) and Google Play Games Services v2 (Android) - unlocking and incrementing achievements, submitting and loading scores, friends-only leaderboards, the friends list, sign-in, and the durable offline queue
Install
npx vskill@latest install shinyorg/shiny/shiny-gamecenterSKILL.md
The same SKILL.md was published earlier as shinyorg/shiny/shiny-gamecenter.
Shiny.GameCenter
Achievements, leaderboards and friends over Apple Game Center (GameKit - iOS 15+, Mac Catalyst 15+, macOS) and Google Play Games Services v2 (Android API 26+), behind one IGameCenterManager. The net11.0 target registers a manager that records locally and never sends (no service there).
Namespace Shiny.GameCenter; AddGameCenter lives in Shiny.
Rules - always follow
- Use logical keys. Register every achievement and leaderboard once with both platform ids, then use the key
everywhere. An unregistered key is passed through as the platform id itself.
- Incremental achievements must be registered with `totalSteps`, matching the step count in the Play Console.
Apple counts in percent, so the total has to be known on the device. IncrementAsync/SetProgressAsync on an unregistered key throws ArgumentException. Progress read back from Game Center (a percentage) is converted to the nearest step: exact for totalSteps <= 100 whatever precision Apple keeps. Above 100 steps it is exact at full precision, but if Apple rounds to a whole percent the read-back can be off by up to totalSteps / 200 steps either way (e.g. 5 of 1000) - prefer totalSteps <= 100 for Apple.
- Do not wrap progress calls in try/catch or retry loops.
UnlockAsync,SetProgressAsync,IncrementAsync,
RevealAsync and SubmitScoreAsync record to a persisted queue and do not throw for offline / signed-out. The queue flushes on sign-in, on connectivity returning, and after every call.
- Progress is absolute and only moves forward. Calls that would not raise progress are skipped. Increments made
offline count from this device's last known progress (refreshed from the service once per sign-in).
GetAchievementsAsync,GetScoresAsyncandGetFriendsAsyncneed a signed-in player - they throw
GameCenterException(NotAuthenticated) otherwise. Check manager.IsAuthenticated or call SignInAsync() first.
- Library code uses Shiny.Core only - no MAUI Essentials APIs.
Registration
Registers an IShinyStartupTask, so on MAUI it needs .UseShiny().
IGameCenterManager
Achievement: Key, PlatformId, Title, Description, CurrentSteps, TotalSteps, PercentComplete, IsUnlocked, IsHidden. LeaderboardEntry: Player, Score, FormattedScore, Rank, IsLocalPlayer.
Usage
Friends and friends' scores
Errors
GameCenterException.ErrorCode: NotAuthenticated, Network, InvalidId, NotConfigured, Unavailable, NoUserInterface, Unknown (+ NativeErrorCode). Queued work that fails with InvalidId is dropped (logged as an error); anything else stays queued.
Platform setup
Apple
- Entitlement
com.apple.developer.game-center= true (Platforms/iOS/Entitlements.plist); Game Center capability on the App ID. - App Store Connect: create achievements/leaderboards under Features -> Game Center, and tick Game Center on the app version.
NSGKFriendListUsageDescriptionin Info.plist forGetFriendsAsync(it throwsNotConfiguredwithout it, rather than GameKit terminating the app).- Sandboxed macOS:
com.apple.security.network.client. - UI opens through
GKAccessPoint(GKGameCenterViewController is deprecated in the 26 SDKs).
Android
- Register the SHA-1 of the debug, upload and Play App Signing keys as OAuth Android credentials. A missing one fails sign-in (status 10 ->
NotConfigured). - Until Play Games Services is published, only accounts on its Testers tab can sign in.
Custom providers
Register an IGameServicesProvider before AddGameCenter() to plug in another service (Steam, a test double). The manager keeps the key mapping, queue and de-duplication; the provider only translates calls and throws GameCenterException with the closest code.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/shiny-gamecenter/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shinyorg/shiny/shiny-gamecenter)