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.
npx skills add gaelic-ghost/socket --skill diagnose-apple-entitlementsgit clone --depth 1 https://github.com/gaelic-ghost/socketWrote 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.
[](https://agentmods.dev/skills/gaelic-ghost/socket/diagnose-apple-entitlements)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- Define the desired operation, target, platform/OS, distribution channel, artifact, and exact runtime error. Apply the Apple docs gate through
explore-apple-swift-docsand establish whether current Apple documentation requires or permits the capability. - Create the five-state record in
references/five-state-entitlement-comparison.md: desired behavior, tracked source, account/profile authorization, signed result, and runtime result. - 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. - 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.
- Treat the actual built/exported artifact as source of truth for signed state. Follow
references/artifact-and-nested-code-inspection.mdfor the main executable, helpers, extensions, XPC services, frameworks, daemons/tools, and embedded profiles. - 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. - 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.
- 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.
- 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. - Report every state, exact mismatch, owner, evidence/confidence, validation result, and what remains unproven.
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.
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.
- 3mo ago First seen · 70 lines · 51 tokens per session scan A 340f81b3b06d
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.
diagnose-apple-entitlements compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnose-apple-entitlementsgaelic-ghost/socket | Skill | 12 | 3mo ago | Apache-2.0 | A | 51 | Claude Code, Codex |
| app-store-optimizationcbrock84/headcount | Skill | 2.6k | 3d ago | MIT | A | 64 | Claude Code |
| flutter-screenshotsdatit309/supergraph | Skill | 23 | 9d ago | MIT | A | 68 | Claude Code |
| mobile-agentdatit309/supergraph | Skill | 23 | 9d ago | MIT | A | 46 | Claude Code |
| flutter-uidatit309/supergraph | Skill | 23 | 9d ago | MIT | A | 48 | Claude Code |
| flutter-dart-code-reviewdatit309/supergraph | Skill | 23 | 9d ago | MIT | A | 56 | Claude Code |
| craftkardebadas/claude-plugin | Skill | 3 | 17d ago | Apache-2.0 | A | 83 | Claude Code |