diagnose-apple-entitlements

diagnose-apple-entitlements is a skill for Claude Code, Codex from gaelic-ghost/socket. It costs 51 tokens per session (1,094 once invoked), scanned A, original, Apache-2.0.

A guide for tracing Apple entitlements from project settings through developer-account authorisation, provisioning profiles, signed app code, and runtime policy. An entitlement is a signed permission that can enable a platform capability, but it is not the same as user consent.

In plain words
What is it for?
Use it to diagnose capability and profile mismatches, inspect signed main apps and helpers, understand export failures, and distinguish signing permissions from runtime policy or the user's decision.
Why use it?
It identifies which layer actually caused a missing, rejected, export-only, nested-code, or re-signing failure instead of changing project settings blindly.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the apple-dev-skills plugin — 65 skills, 2 MCP servers shipped together

Good fit Use it to diagnose capability and profile mismatches, inspect signed main apps and helpers, understand export failures, and distinguish signing permissions from runtime policy or the user's decision.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gaelic-ghost/socket/diagnose-apple-entitlements
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gaelic-ghost/socket --skill diagnose-apple-entitlements
Clone the repo
git clone --depth 1 https://github.com/gaelic-ghost/socket

Made for: Claude Code, Codex.

Or install apple-dev-skills, the plugin that ships this one along with the rest of its 65 skills, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagnose-apple-entitlements

README.md
[![agentmods](https://agentmods.dev/badge/skills/gaelic-ghost/socket/diagnose-apple-entitlements/github.svg)](https://agentmods.dev/skills/gaelic-ghost/socket/diagnose-apple-entitlements)
Your own site
<a href="https://agentmods.dev/skills/gaelic-ghost/socket/diagnose-apple-entitlements"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/diagnose-apple-entitlements/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diagnose-apple-entitlements

Your own site · 80×15
<a href="https://agentmods.dev/skills/gaelic-ghost/socket/diagnose-apple-entitlements"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/diagnose-apple-entitlements.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01094
Opus 5.5 $0.00020 $0.00438
Sonnet 5.5 $0.00010 $0.00219
Haiku 4.5 $0.00005 $0.00109

Measured 3mo ago against content hash 340f81b3b06d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagnose-apple-entitlements scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/apple-dev-skills/skills/diagnose-apple-entitlements/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diagnose Apple Entitlements

Purpose

Trace one desired behavior through tracked project source, developer-account/profile authorization, the final signed artifact and all nested code, and the observed runtime result. Identify the owner that must change without treating an entitlement as user consent or successful access.

When To Use

  • Use for capability/entitlement/profile mismatches, export-only failures, nested-code differences, restricted entitlement questions, and re-signed artifacts.
  • Use before editing project settings when the actual owner could be the developer account, profile, signer, export transform, runtime policy, or user decision.
  • Do not use to invent or recommend private entitlements for ordinary third-party products.

Single-Path Workflow

  1. Define the desired operation, target, platform/OS, distribution channel, artifact, and exact runtime error. Apply the Apple docs gate through explore-apple-swift-docs and establish whether current Apple documentation requires or permits the capability.
  2. Create the five-state record in references/five-state-entitlement-comparison.md: desired behavior, tracked source, account/profile authorization, signed result, and runtime result.
  3. Inspect tracked source: Xcode capability, .entitlements, Info.plist usage description, build settings, target membership, helper/extension/XPC configuration, generated-project source, configuration, and archive/export settings.
  4. Inspect account authorization: Team/App ID, capability enablement, restricted-entitlement approval, certificate, provisioning profile entitlements, environment/device scope, and whether the change is portal-only or API-supported.
  5. Treat the actual built/exported artifact as source of truth for signed state. Follow references/artifact-and-nested-code-inspection.md for the main executable, helpers, extensions, XPC services, frameworks, daemons/tools, and embedded profiles.
  6. Compare exact keys and values. Preserve public, restricted, private/undocumented, development-only, environment, and exception classifications only when supported by current evidence. Read references/restricted-and-private-entitlements.md.
  7. Evaluate runtime controls separately: App Sandbox, Hardened Runtime, library validation, TCC/user consent, service authorization, Gatekeeper/notarization, Data Vault/SIP/platform policy, and responsible process identity.
  8. If the artifact was re-signed, patched, exported differently, or otherwise transformed, record a new artifact identity and invalidate assumptions about the original signature/notarization behavior.
  9. Classify the mismatch and select exactly one next owner using references/routing-and-validation.md. Make the source/account/build change through that owner's workflow, rebuild/export, and repeat the signed and runtime comparisons.
  10. Report every state, exact mismatch, owner, evidence/confidence, validation result, and what remains unproven.

Read the full file on GitHub · 70 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 70 lines · 51 tokens per session scan A 340f81b3b06d

Subscribe to this mod's changes

diagnose-apple-entitlements is a skill published in the GitHub repository gaelic-ghost/socket (12 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 1,094 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

diagnose-apple-entitlements compared with skills from other repositories

diagnose-apple-entitlements next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnose-apple-entitlementsgaelic-ghost/socketSkill123mo agoApache-2.0A51Claude Code, Codex
app-store-optimizationcbrock84/headcountSkill2.6k3d agoMITA64Claude Code
flutter-screenshotsdatit309/supergraphSkill239d agoMITA68Claude Code
mobile-agentdatit309/supergraphSkill239d agoMITA46Claude Code
flutter-uidatit309/supergraphSkill239d agoMITA48Claude Code
flutter-dart-code-reviewdatit309/supergraphSkill239d agoMITA56Claude Code
craftkardebadas/claude-pluginSkill317d agoApache-2.0A83Claude Code