shinyorg/shiny/shiny-calldirectory
Claude Code and agent skill by shinyorg/shiny
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install shinyorg/shiny/shiny-calldirectorySKILL.md
The same SKILL.md was published earlier as shinyorg/shiny/shiny-calldirectory.
Shiny Call Directory
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:
- iOS - the CallKit Call Directory. iOS reads the list through a Call Directory app extension that the
package builds during dotnet build (no Xcode project, Swift or Info.plist work).
- Android 10+ - the call screening role.
ShinyCallScreeningService(declared in the package, merged into
the manifest) checks every incoming call against the list.
When to Use This Skill
- The user wants to block phone numbers or label incoming calls (spam lists, company directories, "this is your
courier calling").
- The user mentions CallKit's Call Directory,
CXCallDirectoryManager, or Settings > Phone > Call Blocking &
Identification.
It is not VoIP calling (CallKit CXProvider) and not call screening of live audio.
Platform support - read this first
| 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 |
- Never generate
#if IOSaround calls - branch onIsSupportedonly to hide the UI. - On the iOS simulator
ReloadreturnsFailed. Blocking and caller ID can only be verified on a device; the
store methods (Set, Remove, Get, Count) work on the simulator.
Packages and namespaces
| 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;.
iOS project file (required)
ShinyCallDirectoryAppGroup is required - the build errors without it. The build then:
- compiles the extension into
PlugIns/ShinyCallDirectory.appex - adds the app group entitlement to the app and the extension
- stamps the group into the extension's Info.plist
- signs the extension on device builds
| 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.
Android setup
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.
Registration
Access
- iOS: no prompt. The user enables the extension in Settings > Apps > Phone > Call Blocking & Identification.
RequestAccess opens Settings (best effort) and returns the current state without waiting - re-check GetCurrentAccess() when the app resumes. Until enabled, Reload returns ExtensionDisabled.
- Android:
RequestAccessshows 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.
Managing the list
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. A number written with a national trunk 0 (04941 1234567) is always treated as national and gets defaultCountryCode, so it matches the same number written internationally (+49 4941 1234567).
| 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:
Blockblocks the number (Android: rejected silently, still in the call log).IdentifyshowsLabelas the caller ID (Android: a notification while it rings - apps cannot change the
dialer's caller ID; no label = it just rings).
Allowalways rings on Android, even withBlockUnlistedCalls. iOS has no allow list, so it is loaded as
Identify.
Code generation rules
- Batch edits and call
Reload()once after them. Each reload launches the extension, andCurrentlyLoading
means one is already running - retry later rather than in a tight loop.
- Use
ReplaceAllfor a server sync,Set/Removefor user edits. - Normalize every user-typed number with
PhoneNumbers.ToCallDirectory. Never store formatted strings or+. - Handle
ExtensionDisabledby callingRequestAccess()(iOS: Settings; Android: role dialog), not by retrying. - Never generate a Call Directory extension project, Swift code or Info.plist keys - the build makes them.
- Inject
ICallDirectoryManager.CallDirectoryManager.DatabasePath(platform class) exists for diagnostics only. - Always call
Reload()after edits even though Android doesn't need it - the same code must work on iOS. - Never declare
ShinyCallScreeningServiceor the call screening intent filter in the app's manifest - the
package does.
How it works (for debugging)
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:
- Storage. The list is
shiny_calldirectory.dbin the app group container. The app is the only writer; the
extension only reads.
- SQLite. Both sides use the system SQLite (no SQLitePCLRaw), so the package is trim/AOT safe.
- Change tracking.
- Every
Set/Removeis logged with the number's previous type, so a reload sends only changes since the last
load iOS accepted.
ReplaceAll/Clearbump a generation, which forces a full load.- The extension records what iOS accepted in the app group's
UserDefaults. - The app trims the change log on the next
Reload. - No open connections. Each store call opens, works in one transaction and closes. A suspended app holding a
lock on a shared-container file is killed by iOS (0xdead10cc).
- Diagnosing failures. A failed reload logs the CallKit error and the extension's own last error, so check the
app's logs when Reload returns Failed.
Security
- Security scanPassed, 90 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-calldirectory/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-calldirectory)