/shiny:shiny-gamecenterfrom shiny
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
Ships in shiny. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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 net10.0 target registers a
manager that records locally and never sends (no service there).
Namespace Shiny.GameCenter; AddGameCenter lives in Shiny.
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.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.GetAchievementsAsync, GetScoresAsync and GetFriendsAsync need a signed-in player - they throw
GameCenterException(NotAuthenticated) otherwise. Check manager.IsAuthenticated or call SignInAsync() first.using Shiny;
builder.Services.AddGameCenter(opts =>
{
opts.AddAchievement("first_win", appleId: "com.mygame.firstwin", googleId: "CgkIxxxxxxxxEAIQAQ");
opts.AddAchievement("play_100", appleId: "com.mygame.play100", googleId: "CgkIxxxxxxxxEAIQAg", totalSteps: 100);
opts.AddLeaderboard("high_score", appleId: "com.mygame.highscore", googleId: "CgkIxxxxxxxxEAIQAw");
opts.SignInOnStartup = true; // default - silent sign-in at launch
opts.PresentSignInOnStartup = false; // Apple: show the Game Center sheet at launch (Apple's recommendation for games)
opts.ShowCompletionBanner = true; // Apple completion banner
opts.MaxQueuedScores = 100;
});
Registers an IShinyStartupTask, so on MAUI it needs .UseShiny().
public interface IGameCenterManager
{
GameServicePlatform Platform { get; } // None | AppleGameCenter | GooglePlayGames | Custom
GamePlayer? Player { get; } // Id, DisplayName, Platform
bool IsAuthenticated { get; }
event EventHandler<GamePlayer?>? PlayerChanged;
int PendingCount { get; }
Task<GamePlayer?> SignInAsync(CancellationToken ct = default); // null = declined
Task<IReadOnlyList<Achievement>> GetAchievementsAsync(bool forceReload = false, CancellationToken ct = default);
Task UnlockAsync(string achievementKey, CancellationToken ct = default);
Task SetProgressAsync(string achievementKey, int steps, CancellationToken ct = default);
Task IncrementAsync(string achievementKey, int steps = 1, CancellationToken ct = default);
Task RevealAsync(string achievementKey, CancellationToken ct = default); // Google only; no-op on Apple
Task SubmitScoreAsync(string leaderboardKey, long score, CancellationToken ct = default);
Task ShowAchievementsAsync(CancellationToken ct = default);
Task ShowLeaderboardAsync(string? leaderboardKey = null, CancellationToken ct = default);
Task<IReadOnlyList<LeaderboardEntry>> GetScoresAsync(string leaderboardKey,
LeaderboardScope scope = LeaderboardScope.Global, // Global | Friends
LeaderboardTimeScope timeScope = LeaderboardTimeScope.AllTime, // Today | Week | AllTime
int maxResults = 25, CancellationToken ct = default); // Google caps at 25
Task<FriendsResult> GetFriendsAsync(CancellationToken ct = default);
Task FlushAsync(CancellationToken ct = default);
}
Achievement: Key, PlatformId, Title, Description, CurrentSteps, TotalSteps, PercentComplete,
IsUnlocked, IsHidden. LeaderboardEntry: Player, Score, FormattedScore, Rank, IsLocalPlayer.
public class GameOverViewModel(IGameCenterManager gameCenter)
{
public async Task OnGameOver(int score, bool won)
{
await gameCenter.SubmitScoreAsync("high_score", score);
await gameCenter.IncrementAsync("play_100");
if (won)
await gameCenter.UnlockAsync("first_win");
}
}
if (!gameCenter.IsAuthenticated && await gameCenter.SignInAsync() == null)
return;
var friends = await gameCenter.GetFriendsAsync();
switch (friends.Status)
{
case FriendsAccessStatus.Granted: // friends.Friends populated
break;
case FriendsAccessStatus.ConsentRequested: // Google showed its consent dialog - call again when the app resumes
break;
case FriendsAccessStatus.Denied: // Apple: player must change it in Settings
case FriendsAccessStatus.Restricted:
break;
}
var friendScores = await gameCenter.GetScoresAsync("high_score", LeaderboardScope.Friends, LeaderboardTimeScope.Week);
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.
Apple
com.apple.developer.game-center = true (Platforms/iOS/Entitlements.plist); Game Center capability on the App ID.NSGKFriendListUsageDescription in Info.plist for GetFriendsAsync (it throws NotConfigured without it, rather than GameKit terminating the app).com.apple.security.network.client.GKAccessPoint (GKGameCenterViewController is deprecated in the 26 SDKs).Android
<!-- AndroidManifest.xml, inside <application> -->
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/game_services_project_id" />
<!-- Platforms/Android/Resources/values/strings.xml -->
<string name="game_services_project_id" translatable="false">123456789012</string>
NotConfigured).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.
What SKILL.md sets; muted values are Claude Code's defaults
57 skills in this plugin
/localizegenGenerate strongly-typed localization classes from .resx resource files using Shiny.Extensions.Localization.Generator for .NET applications/shiny-accessorysetupGenerate code using Shiny.BluetoothLE.AccessorySetup - the system accessory pairing sheet for BLE devices (AccessorySetupKit on iOS 18+, CompanionDeviceManager on Android) with no MFi, no location prompt and no general Bluetooth prompt on iOS; picked accessories open as Shiny.BluetoothLE peripherals, and Android adds background presence (device appeared / disappeared) events/shiny-actorsGenerate code using Shiny.Actors — Orleans-style virtual actors without the ceremony, AOT/trim-clean, running anywhere .NET runs including .NET MAUI and Blazor WebAssembly. Covers actor interfaces and source-generated proxies, the ShinyActorBuilder (AddShinyActors), persistent state with ETags, named states and auto-save, event-sourced JournaledActor with snapshots, state and event migrations, typed streams (durable, implicit consumers), timers and persistent reminders (background jobs via Shiny.Jobs, on-time OS notifications via Shiny.Notifications), concurrency control ([Reentrant], [AlwaysInterleave], [ReadOnly], [StatelessWorker]), call filters and request context, OpenTelemetry traces and metrics, remoting over HTTP (Shiny.Net.HttpServer server, RemoteActorSystem client), mDNS discovery of actor servers, Shiny.DocumentDb storage (SQLite, PostgreSQL, IndexedDB...), and the ActorTestHost testing kit./shiny-agesignalsGenerate code using Shiny.AgeSignals to read the user's age range as the app store shares it - Apple Declared Age Range (iOS / macOS 26+) and Google Play Age Signals (Android) - for app store accountability laws (Texas SB 2420, Utah, Louisiana, California AB 1043) and age-gated features/shiny-aiconversationGenerate code for Shiny.AiConversation v3 - session-based AI conversations for .NET over Microsoft.Extensions.AI with persisted, resumable sessions (IAiSessionManager / IAiSession / IAiTurn), streaming replies, the built-in ask_user tool for typed questions and multiple-choice answers, interruption and supersession, usage and context-window pressure tracking, rolling context compaction, silent assistant memory, conversation search, session titles and long-term memory, session interceptors for tools and prompts, pluggable session/memory stores (in-memory or SQLite via Shiny.AiConversation.Stores.SqliteDocDb), and voice conversations via Shiny.AiConversation.Voice (wake word, push-to-talk, follow-up, quiet-word/barge-in interruption, sentence-streamed text-to-speech over Shiny.Speech, acknowledgement modes, sounds, voice selection tools), the MAUI chat UI via Shiny.AiConversation.Maui (AiChatView bound to a session with streaming bubbles, choice chips, push-to-talk and an AiMemoryView), image attachments with retention, and the use_camera tool via Shiny.AiConversation.Maui.Camera, and AG-UI via Shiny.AiConversation.AgUi (a session as an AG-UI event stream for the Shiny AgentView with ask_user questions as interrupts, the render_ui tool for A2UI surfaces, and a remote AG-UI agent as the chat client)/shiny-appdevicebridgeGenerate code using Shiny.AppDeviceBridge, device bridges on your app's own Shiny.Net.HttpServer that also host a web app (Blazor WebAssembly, React, Vue, any static build) inside a .NET MAUI app on Android, iOS, Mac Catalyst, Windows and the maui-labs macOS and Linux heads — served from a loopback HTTP server, updated over the air from a signed release server, GitHub releases or a provider of your own, and given device access through bridges with typed C# and TypeScript clientsnpx claudepluginhub shinyorg/skills --plugin shinyOther plugins' skills for the same job