/shiny:shiny-agesignalsfrom shiny
Generate 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
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.
You are an expert in Shiny.AgeSignals, a .NET library that reads the user's age range as the app store shares it,
through one IAgeSignals over Apple Declared Age Range and Google Play Age Signals.
Invoke this skill when the user wants to:
Documentation: https://shinylib.net/client/agesignals/
Package: Shiny.AgeSignals
Namespaces: Shiny.AgeSignals (types), Shiny (registration)
Platforms: iOS 26+ and macOS 26+ (Declared Age Range through a bundled Swift shim), Android (Play Age Signals 0.0.4,
bound inside the package). iOS / macOS before 26, Mac Catalyst, Windows, Linux and Blazor report NotSupported.
using Shiny;
builder.Services.AddAgeSignals();
Apple: the com.apple.developer.declared-age-range entitlement (boolean true), with the Declared Age Range
capability enabled on the App ID. Without it Apple's call never returns - the request hangs instead of failing.
Always generate the entitlement alongside any Apple code:
<!-- csproj -->
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
<CustomEntitlements Include="com.apple.developer.declared-age-range" Type="Boolean" Value="true" Visible="false" />
</ItemGroup>
Android: the app must be installed from Google Play (otherwise AgeSignalsErrorReason.AppNotOwned). Custom
minimum ages (up to three, at least two years apart) are set in Play Console, not at runtime.
namespace Shiny.AgeSignals;
public interface IAgeSignals
{
Task<AgeSignalsEligibility> GetEligibility(CancellationToken cancellationToken = default); // no UI
Task<AgeSignal> RequestAgeRange(int gate1, int? gate2 = null, int? gate3 = null, CancellationToken cancellationToken = default);
Task<bool> ShowSignificantUpdate(string updateDescription, CancellationToken cancellationToken = default); // iOS 26.4+, else false
}
public record AgeSignalsEligibility(
bool IsSupported,
bool? IsEligible = null, // Apple 26.2+ isEligibleForAgeFeatures; null on Android
bool? AgeRangeRequired = null, // Apple 26.4+ regulatory flags; null on Android
bool? SignificantChangeRequiresParentalConsent = null,
bool? SignificantChangeRequiresAdultNotification = null
);
public enum AgeSignalStatus { NotSupported, Declined, VerificationRequired, Shared }
public enum AgeRangeSource { Unknown, SelfDeclared, GuardianDeclared, Confirmed, IdVerified } // weakest first
public enum SignificantChangeStatus { Approved, Pending, Declined } // Google Play
public record AgeSignal(
AgeSignalStatus Status,
int? LowerBound = null, // inclusive; Apple leaves the lowest band's lower bound null
int? UpperBound = null, // inclusive; null for the top band (e.g. 18+)
AgeRangeSource Source = AgeRangeSource.Unknown,
bool CommunicationLimits = false, // Apple
SignificantChangeStatus? SignificantChange = null, // Google Play
DateTimeOffset? SignificantChangeApprovedThrough = null, // Google Play
string? InstallId = null // Google Play, supervised installs
)
{
public bool? IsAtLeast(int age); // null = the store can't tell
public bool? IsAdult { get; } // IsAtLeast(18)
}
public class AgeSignalsException : Exception
{
public AgeSignalsErrorReason Reason { get; } // NotAvailable, InvalidAccount, Network, Transient, StoreUnavailable, AppNotOwned, NoUserInterface, Unknown
public int? NativeCode { get; } // Play AgeSignalsErrorCode
}
| Apple Declared Age Range | Google Play Age Signals | |
|---|---|---|
| UI | RequestAgeRange may present a sheet | Play's prompt only outside the US law states; there users verify in the Play Store |
| Age gates | the gate1..3 arguments | ignored - bands are 0-12 / 13-15 / 16-17 / 18+ or the Play Console custom ages |
Source | selfDeclared → SelfDeclared, guardianDeclared → GuardianDeclared, confirmed (and the 26.2 *Checked cases) → Confirmed | TIER_A → SelfDeclared, TIER_B → GuardianDeclared, TIER_C → Confirmed, TIER_D → IdVerified |
VerificationRequired | never | user is in a mandatory jurisdiction with no verified age - send them to the Play Store |
| Significant changes | ShowSignificantUpdate (iOS 26.4+) + the eligibility flags | declare in Play Console, read SignificantChange / SignificantChangeApprovedThrough |
| Declined onboarding | Status = Declined | - |
using Shiny.AgeSignals; where IAgeSignals is injected and using Shiny; where AddAgeSignals() is called.RequestAgeRange(13, 16, 18). Never pass an array.IsAtLeast(age) / IsAdult and treat null as "unknown", never as false or true - fall back to
the app's most protective experience. Don't compute from LowerBound alone.Status before reading bounds. Handle VerificationRequired (tell the user to open the Play Store to
verify) separately from Declined.Source: signal.Source >= AgeRangeSource.Confirmed. Self-declared is the weakest.AgeSignal across launches - consent can be revoked and birthdays cross bands. Ask at first launch,
before a gated feature, and after an update.AgeSignalsException and branch on Reason (Network / Transient → retry later; StoreUnavailable /
AppNotOwned → treat as unknown age). ArgumentOutOfRangeException means bad gates.InstallId to your server for supervised Android installs - Play uses it to notify you of revoked approvals.GetEligibility() shows no UI and is safe to call at startup; RequestAgeRange may present UI, so call it from a
user-visible screen with a window / activity available (otherwise NoUserInterface).public class AgeGate(IAgeSignals ageSignals)
{
public async Task<bool> CanUseChat()
{
try
{
var signal = await ageSignals.RequestAgeRange(13, 16, 18);
return signal.Status switch
{
AgeSignalStatus.NotSupported => true, // no store age API - app's own policy applies
AgeSignalStatus.Shared => signal.IsAtLeast(16) == true, // null (unknown) => no
_ => false // Declined / VerificationRequired
};
}
catch (AgeSignalsException)
{
return false; // unknown age - most protective experience
}
}
}
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub shinyorg/skills --plugin shiny57 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.Other plugins' skills for the same job