/shiny:shiny-calldirectoryfrom shiny
Call blocking and caller identification on iOS and Android with Shiny.Mobile.CallDirectory - a CallKit Call Directory extension built during dotnet build (no Xcode project) and an Android CallScreeningService under the call screening role, both fed from one SQLite list the app owns.
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.
Shiny.Mobile.CallDirectory blocks calls, or shows the app's own caller ID label for them, from a list of phone
numbers the app keeps. One API, two platform mechanisms:
dotnet build (no Xcode project, Swift or Info.plist work).ShinyCallScreeningService (declared in the package, merged into
the manifest) checks every incoming call against the list.CXCallDirectoryManager, or Settings > Phone > Call Blocking &
Identification.It is not VoIP calling (CallKit CXProvider) and not call screening of live audio.
| Platform | Implementation |
|---|---|
| iOS 15+ | CallDirectoryManager - blocking + identification through the bundled extension |
| Android 10+ (API 29) | CallDirectoryManager - blocking, allow list, optional block-unlisted, caller ID notification, through ShinyCallScreeningService while the app holds the call screening role |
| Android 8-9 | CallDirectoryManager with IsSupported false (no call screening role) |
| Everything else (Mac Catalyst, macOS, Windows, Linux, Blazor) | NoOpCallDirectoryManager - IsSupported is false, every call is a safe no-op |
#if IOS around calls - branch on IsSupported only to hide the UI.Reload returns Failed. Blocking and caller ID can only be verified on a device; the
store methods (Set, Remove, Get, Count) work on the simulator.| Item | Value |
|---|---|
| NuGet | Shiny.Mobile.CallDirectory |
| Namespace | Shiny.CallDirectory (types); Shiny (AddCallDirectory) |
| Depends on | Shiny.Core - works in any Shiny host (MAUI UseShiny() or Shiny.Hosting.Native) |
The package name carries Mobile (like Shiny.Mobile.LiveActivities); the namespace does not. Generate
using Shiny.CallDirectory;, never using Shiny.Mobile.CallDirectory;.
<PropertyGroup>
<ShinyCallDirectoryExtension>true</ShinyCallDirectoryExtension>
<ShinyCallDirectoryAppGroup>group.com.mycompany.myapp</ShinyCallDirectoryAppGroup>
</PropertyGroup>
ShinyCallDirectoryAppGroup is required - the build errors without it. The build then:
PlugIns/ShinyCallDirectory.appex| Property | Default | Purpose |
|---|---|---|
ShinyCallDirectoryExtension | false | Build the extension (iOS app projects only) |
ShinyCallDirectoryAppGroup | required | App group shared by the app and the extension |
ShinyCallDirectoryBundleId | $(ApplicationId).CallDirectory | Extension bundle id |
ShinyCallDirectoryDisplayName | $(ApplicationTitle) | Name in Settings > Apps > Phone > Call Blocking & Identification |
ShinyCallDirectoryCodesignProvision | best match | Extension provisioning profile (name or UUID) |
ShinyCallDirectoryCodesignEntitlements | generated | Custom extension entitlements (must include the app group) |
ShinyCallDirectoryAddAppEntitlement | true | false when the app group is already in the app's Entitlements.plist |
ShinyCallDirectoryMinimumOSVersion | SupportedOSPlatformVersion (min 15.0) | Extension deployment target |
Device builds need two provisioning profiles, both with the App Groups capability and the group: one for the
app and one for the extension's bundle id. The extension is only built on macOS. Off a Mac the build warns,
IsSupported is false and Reload returns ExtensionNotFound.
Nothing in the project file: the service ships in the package. Add POST_NOTIFICATIONS (Android 13+) only if
caller ID notifications should show. The role request's result comes back through Shiny's activity result
forwarding - automatic with Shiny.Hosting.Maui; with Shiny.Hosting.Native the activity must derive from
ShinyAndroidActivity.
using Shiny;
builder.Services.AddCallDirectory();
builder.Services.AddCallDirectory(o =>
{
// iOS - rarely needed, both default to what the build stamped into the extension
o.AppGroup = "group.com.mycompany.myapp";
o.ExtensionBundleId = "com.mycompany.myapp.CallDirectory";
// Android
o.DefaultCountryCode = 1; // for incoming numbers in national format
o.BlockUnlistedCalls = false; // true = only listed Allow/Identify numbers ring (withheld numbers blocked too)
o.ShowCallerIdNotification = true; // Identify entries post a notification with the label while ringing
});
var access = await directory.GetCurrentAccess(); // Available | Disabled | Unknown | NotSupported
if (access != AccessState.Available)
access = await directory.RequestAccess();
RequestAccess opens Settings (best effort) and returns the current state without waiting - re-check
GetCurrentAccess() when the app resumes. Until enabled, Reload returns ExtensionDisabled.RequestAccess shows the system "default caller ID & spam app" dialog for the call screening role
and returns Available or Denied. Android stops showing it after repeated refusals (the user can still choose
the app in Settings > Apps > Default apps). Only one app holds the role; until it does, Reload returns
ExtensionDisabled and calls are not screened.Numbers are long: country code + digits, no + or formatting (18005550100). Always convert user input with
PhoneNumbers.ToCallDirectory(text, defaultCountryCode = 1). It throws FormatException for input with no digits
or more than 15 digits.
using Shiny.CallDirectory;
public class BlockListService(ICallDirectoryManager directory)
{
public async Task SyncFromServer(IEnumerable<ServerNumber> numbers)
{
// whole list from a server: one transaction, next load is a full replace
await directory.ReplaceAll(numbers.Select(n => new CallDirectoryEntry(
n.Number,
n.Label,
n.Spam ? CallDirectoryEntryType.Block : CallDirectoryEntryType.Identify
)));
await this.Apply();
}
public async Task Block(string typed)
{
await directory.Set([new(PhoneNumbers.ToCallDirectory(typed), null, CallDirectoryEntryType.Block)]);
await this.Apply();
}
async Task Apply()
{
var result = await directory.Reload();
// Success | NotSupported | ExtensionDisabled | ExtensionNotFound | CurrentlyLoading
// | MaximumEntriesExceeded | LoadingInterrupted | Failed
}
}
| Member | Behaviour |
|---|---|
Set(entries) | Add or replace; unchanged entries are not re-sent to iOS |
Remove(numbers) | Remove; unknown numbers are ignored |
ReplaceAll(entries) | Replace everything in one transaction; forces a full load |
Clear() | Remove everything |
Get(number) / Count() | Read the stored list |
Reload() | iOS: load the extension and apply the list - edits are invisible to iOS until this. Android: edits apply immediately; only reports whether screening is active |
CallDirectoryEntryType:
Block blocks the number (Android: rejected silently, still in the call log).Identify shows Label as the caller ID (Android: a notification while it rings - apps cannot change the
dialer's caller ID; no label = it just rings).Allow always rings on Android, even with BlockUnlistedCalls. iOS has no allow list, so it is loaded as
Identify.Reload() once after them. Each reload launches the extension, and CurrentlyLoading
means one is already running - retry later rather than in a tight loop.ReplaceAll for a server sync, Set/Remove for user edits.PhoneNumbers.ToCallDirectory. Never store formatted strings or +.ExtensionDisabled by calling RequestAccess() (iOS: Settings; Android: role dialog), not by retrying.ICallDirectoryManager. CallDirectoryManager.DatabasePath (platform class) exists for diagnostics only.Reload() after edits even though Android doesn't need it - the same code must work on iOS.ShinyCallScreeningService or the call screening intent filter in the app's manifest - the
package does.Android: ShinyCallScreeningService.OnScreenCall normalizes the caller (DefaultCountryCode), looks it up in
shiny_calldirectory.db (app files dir, no change log) and responds within Android's 5 second limit. Outgoing
calls are never touched; any exception allows the call.
iOS:
shiny_calldirectory.db in the app group container. The app is the only writer; the
extension only reads.Set/Remove is logged with the number's previous type, so a reload sends only changes since the last
load iOS accepted.ReplaceAll/Clear bump a generation, which forces a full load.UserDefaults.Reload.0xdead10cc).Reload returns Failed.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./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 clientsOther plugins' skills for the same job