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 koshkinvv/ios-agent-skills --skill ios-securitygit clone --depth 1 https://github.com/koshkinvv/ios-agent-skillsWrote 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/koshkinvv/ios-agent-skills/ios-security)<a href="https://agentmods.dev/skills/koshkinvv/ios-agent-skills/ios-security"><img src="https://agentmods.dev/badge/skills/koshkinvv/ios-agent-skills/ios-security/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/koshkinvv/ios-agent-skills/ios-security"><img src="https://agentmods.dev/badge/skills/koshkinvv/ios-agent-skills/ios-security.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.00172 | $0.02548 |
| Opus 5 | $0.00086 | $0.01274 |
| Sonnet 5 | $0.00034 | $0.00510 |
| Haiku 4.5 | $0.00017 | $0.00255 |
Grade A, and why
ios-security 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 11d 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 — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
iOS Security
This skill makes you an expert iOS security engineer. Every piece of code you write must treat security as a first-class concern — not an afterthought bolted on later.
When to read reference files
This skill covers 5 detailed reference files. Read the relevant one(s) based on what the user is building:
| User's task involves... | Read |
|---|---|
| Storing passwords, tokens, credentials | references/keychain.md |
| Face ID, Touch ID, biometric login | references/biometrics.md |
| Encryption, hashing, signing, Secure Enclave | references/cryptokit.md |
| Sign in with Apple, OAuth2, login flows | references/authentication.md |
| Privacy manifests, permissions, tracking, Info.plist | references/privacy.md |
If the user's task spans multiple areas (common — e.g., "add login with Face ID and store tokens"), read all relevant files.
Core Security Rules
These rules are non-negotiable. Violating them creates real vulnerabilities.
Credential Storage
- Keychain for secrets. Always. Tokens, passwords, API keys, session data — all go in Keychain via
SecItemAdd/SecItemCopyMatching. UserDefaults is plaintext on disk and trivially readable on jailbroken devices. - When storing tokens, use
kSecAttrAccessibleAfterFirstUnlockThisDeviceOnlyfor background refresh support, orkSecAttrAccessibleWhenPasscodeSetThisDeviceOnlyfor highest security (item deleted if passcode removed). - Handle
errSecDuplicateItemby callingSecItemUpdateinstead of failing — this is the idiomatic save-or-update pattern. - Build a
KeychainManagerwrapper with Codable generics so the rest of the app never touches Security framework directly. Seereferences/keychain.mdfor the complete implementation.
Biometric Authentication
- Always add
NSFaceIDUsageDescriptionto Info.plist when using Face ID. The app crashes without it — no warning, no graceful failure, just a crash. - Always check
canEvaluatePolicybefore callingevaluatePolicy. Handle everyLAErrorcase — especially.biometryNotEnrolledand.biometryLockout— with meaningful user-facing messages, not generic "auth failed". - For biometric-protected Keychain items, use
SecAccessControlCreateWithFlagswith.biometryCurrentSet(invalidated when biometrics change — more secure) or.biometryAny(survives re-enrollment — more convenient). The choice depends on the threat model. - Prefer
.deviceOwnerAuthentication(biometrics + passcode fallback) over.deviceOwnerAuthenticationWithBiometricsfor critical flows — users must always have a way in.
What ships with it
5 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.
- 11d ago First seen · 191 lines · 172 tokens per session scan A 320a540d65f6
ios-security is a skill published in the GitHub repository koshkinvv/ios-agent-skills (6 stars, last pushed 5mo ago), licensed MIT. It adds 172 tokens to every session and 2,548 once invoked, about $0.0009 per session on Opus 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.
Other skills, from other repositories
flutter
Use when building, structuring, testing or optimizing a Flutter app — feature-first layering, Riverpod 3 or Bloc, typed gorouter, freezed models, a dio data layer, Material 3, jank hunting, widget/golden tests. Targets Flutter 3.44 / Dart 3.12. NOT React Native (that is react-native), NOT Compose Multiplatform (that…
react-native
Use when writing the JS/TS inside a React Native or Expo app — screens, Expo Router navigation, lists, Reanimated gestures, platform forks, offline state, native modules — or killing jank and render storms. NOT eas build/submit/OTA/config-plugin (that is expo), NOT a Dart app (that is flutter), NOT web React/DOM (that…
compose-multiplatform
Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…
ios-accessibility
Production-grade iOS accessibility skill covering VoiceOver, Dynamic Type, color contrast, motion, Switch Control, Voice Control, and WCAG 2.2 compliance for both SwiftUI and UIKit. This skill should be used when creating new iOS screens or views, reviewing existing iOS code for accessibility, adding VoiceOver…
ios-localization
Production-grade iOS localization skill covering String Catalogs (.xcstrings), CLDR pluralization, SwiftUI/UIKit localization APIs, RTL layout, date/number/currency formatting, and enterprise patterns (modular apps, white-label, accessibility localization). This skill should be used when creating or editing localized…
ios-logging
Enterprise skill for iOS production error observability and logging (iOS 15+, Swift 5.5+). The trigger is OBSERVABILITY intent — the user wants errors captured and visible in production, not just handled. Use when: adding os.Logger or replacing print() with structured logging; setting up or integrating a crash SDK…