ios-standards

ios-standards is a skill for Claude Code from markdavidgan/apple-dev-skills. It costs 90 tokens per session (4,399 once invoked), scanned A, original, MIT.

A set of Swift 6 and SwiftUI coding standards for building iPhone and iPad apps with modern Apple tools. It covers safe concurrent code, which means work that runs at the same time without causing data races, and current app structure.

In plain words
What is it for?
Use it when writing or reviewing Swift code, organising view models and services, or deciding how to structure SwiftUI features and concurrency.
Why use it?
It helps avoid concurrency errors, outdated SwiftUI patterns, and unnecessary complexity when replacing or designing app features.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the apple-dev-skills plugin — 62 skills, 25 commands, 7 agents shipped together

Good fit Use it when writing or reviewing Swift code, organising view models and…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/markdavidgan/apple-dev-skills/ios-standards
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 markdavidgan/apple-dev-skills --skill ios-standards
Clone the repo
git clone --depth 1 https://github.com/markdavidgan/apple-dev-skills

Made for: Claude Code.

Or install apple-dev-skills, the plugin that ships this one along with the rest of its 62 skills, 25 commands, 7 agents.

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 ios-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/markdavidgan/apple-dev-skills/ios-standards.svg)](https://agentmods.dev/skills/markdavidgan/apple-dev-skills/ios-standards)
Your own site
<a href="https://agentmods.dev/skills/markdavidgan/apple-dev-skills/ios-standards"><img src="https://agentmods.dev/badge/skills/markdavidgan/apple-dev-skills/ios-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,399 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00090 $0.04399
Opus 5 $0.00045 $0.02200
Sonnet 5 $0.00018 $0.00880
Haiku 4.5 $0.00009 $0.00440

Measured 3d ago against content hash ccb780f7e8cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ios-standards scanned grade A with 1 finding 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 3d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

sessions = try modelContext.fetch(descriptor)
platforms/claude/skills/ios-standards/SKILL.md · 694 lines

How it starts

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

iOS Standards

Swift 6.0+ patterns, strict concurrency, and modern SwiftUI architecture. Apply these patterns to all iOS code.

☠️ ULTIMATE RULE

NEVER KEEP MULTIPLE VERSIONS OF A FEATURE IN CODE (v2Enabled, legacyMode, newFlow, etc.). When replacing a feature, replace it. Delete the old path. Systematic modular variants (enum injection, DI, strategy protocols) are allowed; inline boolean forks are forbidden.


☠️ FIT THE PRIMITIVE TO THE PROBLEM

Match the tool to the problem's actual shape, not to an elegant invariant. Before adopting a powerful or opaque Apple framework (CloudKit sharing/CKShare, NSPersistentCloudKitContainer mirroring, NSFileCoordinator, App Intents graphs, widget timelines), name the one job it exists for and confirm your problem needs exactly that. Don't buy a property you want — privacy, safety — that ordinary app logic keeps for free with a heavyweight, unobservable mechanism. Prefer the simplest primitive that ships, is debuggable in production, and fails legibly.

Wrong-primitive signal: you keep fighting a framework's opaque internals and each fix surfaces a new break elsewhere. That is not "one more fix" — it is the platform refusing the wrong primitive. Stop and question the foundation. (Real case: CKShare bent to deliver append-only one-way messages → three weeks of NSCocoaError 134406 wedges; the fix was the right primitive, an encrypted public-DB mailbox — not a better share path.)

Run /fit-check (skill architecture-fit-check) before committing to any such framework.


Swift 6 Concurrency

@MainActor Isolation

All UI-related code must be @MainActor isolated.

// WRONG — not MainActor isolated
class TimerViewModel: ObservableObject {
    @Published var timeRemaining: TimeInterval = 0
}

// RIGHT — @MainActor isolated
@MainActor
@Observable
class TimerViewModel {
    var timeRemaining: TimeInterval = 0
}
Common Patterns
// ViewModels — always @MainActor
@MainActor
@Observable
class MyViewModel {
    var state: AppState = .idle
    
    func updateUI() {
        // Safe to touch UI state
    }
}

// Services that touch UI — @MainActor
@MainActor
final class NotificationService {
    func showNotification() {
        // UIKit calls require MainActor
    }
}

// Services that don't touch UI — no annotation needed
final class AnalyticsService {
    func track(event: String) async {
        // Background-safe work
    }
}

Read the full file on GitHub · 694 lines

Files

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.

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. 3d ago First seen · 694 lines · 90 tokens per session scan A ccb780f7e8cd

Subscribe to this mod's changes

ios-standards is a skill published in the GitHub repository markdavidgan/apple-dev-skills (5 stars, last pushed 8d ago), licensed MIT. It adds 90 tokens to every session and 4,399 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

asc-revenuecat-catalog-sync

Reconcile App Store Connect subscriptions and in-app purchases with RevenueCat products, entitlements, offerings, and packages using asc and RevenueCat MCP. Use when setting up or syncing subscription catalogs across ASC and RevenueCat.

rorkai/app-store-connect-cli-skills · 51 tokens

asc-localize-metadata

Automatically translate and sync App Store metadata (description, keywords, what's new, subtitle) to multiple languages using LLM translation and asc CLI. Use when asked to localize an app's App Store listing, translate app descriptions, or add new languages to App Store Connect.

rorkai/app-store-connect-cli-skills · 60 tokens

asc-shots-pipeline

Orchestrate iOS screenshot automation with xcodebuild/simctl for build-run, AXe for UI actions, JSON settings and plan files, Koubou-based framing (asc screenshots frame), and screenshot upload (asc screenshots upload). Use when users ask for automated screenshot capture, AXe-driven simulator flows, frame composition…

rorkai/app-store-connect-cli-skills · 79 tokens

asc-metadata-sync

Sync, validate, and apply App Store metadata with the current asc canonical metadata workflow. Use when updating metadata, localizations, keywords, or migrating legacy fastlane metadata.

rorkai/app-store-connect-cli-skills · 39 tokens

asc-submission-health

Diagnose App Store submission blockers and operate review health with asc, including readiness validation, repair routing, status monitoring, cancellation, and retry decisions. Use when validation fails, a version is not in a valid state, review status is unclear or stuck, or a failed submission must be repaired and…

rorkai/app-store-connect-cli-skills · 82 tokens

asc-xcode-build

Build, archive, generate export options, export, upload, and manage Xcode version/build numbers with the current asc xcode helpers. Use when creating an IPA or PKG for App Store Connect, TestFlight, or registered-device release testing.

rorkai/app-store-connect-cli-skills · 54 tokens