swift-development

swift-development is a skill for Claude Code, Codex from sammcj/agentic-coding. It costs 13 tokens per session (2,062 once invoked), scanned A, original, Apache-2.0.

A set of practices for developing Swift 6 and newer applications on recent Apple operating systems, with emphasis on safe concurrent code and clear APIs.

In plain words
What is it for?
It guides writing and reviewing Swift code, designing public interfaces, using async code, and migrating older Swift code.
Why use it?
It helps prevent concurrency errors and keeps Swift code easier to understand, document, and maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit It guides writing and reviewing Swift code, designing public interfaces, using async code, and migrating older Swift code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sammcj/agentic-coding/swift-development
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 sammcj/agentic-coding --skill swift-development
Clone the repo
git clone --depth 1 https://github.com/sammcj/agentic-coding

Made for: Claude Code, Codex.

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 swift-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/sammcj/agentic-coding/swift-development/github.svg)](https://agentmods.dev/skills/sammcj/agentic-coding/swift-development)
Your own site
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/swift-development"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/swift-development/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 swift-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/swift-development"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/swift-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,062 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 38
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00013 $0.02062
Opus 5.5 $0.00005 $0.00825
Sonnet 5.5 $0.00003 $0.00412
Haiku 4.5 $0.00001 $0.00206

Measured yesterday against content hash 1eac9c703bfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swift-development 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 yesterday.

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.

Skills/swift-development/SKILL.md · 247 lines

How it starts

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

Swift Best Practices Skill

Overview

Apply modern Swift development best practices focusing on Swift 6+ features, concurrency safety, API design principles, and code quality guidelines for iOS and macOS projects targeting macOS 15.7+.

Core Guidelines

Fundamental Principles

  1. Clarity at point of use is paramount - evaluate designs by examining use cases, not just declarations
  2. Clarity over brevity - compact code comes from the type system, not minimal characters
  3. Write documentation for every public declaration - if you can't describe functionality simply, the API may be poorly designed
  4. Name by role, not type - var greeting = "Hello" not var string = "Hello"
  5. Favour elegance through simplicity - avoid over-engineering unless complexity genuinely warrants it

Swift 6 Concurrency Model

Swift 6 enables complete concurrency checking by default with region-based isolation (SE-0414). The compiler now proves code safety, eliminating many false positives whilst catching real concurrency issues at compile time.

Critical understanding:

  • Async ≠ background - async functions can suspend but don't automatically run on background threads
  • Actors protect mutable shared state through automatic synchronisation
  • @MainActor ensures UI-related code executes on the main thread
  • Global actor-isolated types are automatically Sendable

Essential Patterns

Async/Await
// Parallel execution with async let
func fetchData() async -> (String, Int) {
    async let stringData = fetchString()
    async let intData = fetchInt()
    return await (stringData, intData)
}

// Always check cancellation in long-running operations
func process(_ items: [Item]) async throws -> [Result] {
    var results: [Result] = []
    for item in items {
        try Task.checkCancellation()
        results.append(await process(item))
    }
    return results
}
MainActor for UI Code
// Apply at type level for consistent isolation
@MainActor
class ContentViewModel: ObservableObject {
    @Published var images: [UIImage] = []

    func fetchData() async throws {
        self.images = try await fetchImages()
    }
}

// Avoid MainActor.run when direct await works
await doMainActorStuff()  // Good
await MainActor.run { doMainActorStuff() }  // Unnecessary

Read the full file on GitHub · 247 lines

Files

What ships with it

4 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. yesterday Changed · -10 lines 1eac9c703bfa
  2. 3mo ago First seen · 257 lines · 13 tokens per session scan A 8287054a0174

Subscribe to this mod's changes

swift-development is a skill published in the GitHub repository sammcj/agentic-coding (175 stars, last pushed today), licensed Apache-2.0. It adds 13 tokens to every session and 2,062 once invoked, about $0.0001 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-30.

Related

swift-development compared with skills from other repositories

swift-development next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swift-developmentsammcj/agentic-codingSkill175todayApache-2.0A13Claude Code, Codex
kotlin-code-reviewbeel-collab/presets.devSkill38d agoMITA38Claude Code, Codex
swiftui-code-reviewbeel-collab/presets.devSkill38d agoMITA45Claude Code, Codex
ios-developmentAnastasiyaW/codex-claude-code-configSkill218todayMITA188Claude Code
tauri-expertroedyrustam/vibes-plugSkill1315d agoMITA44Cursor
flutter-dart-expertroedyrustam/vibes-plugSkill1315d agoMITA51Cursor
kotlin-patternssoftspark/ai-toolkitSkill18014d agoApache-2.0A51Claude Code