swift_expert

swift_expert is a skill for Claude Code, Codex from ApexIQ/skillsmith. It costs 20 tokens per session (274 once invoked), scanned A, original, MIT.

A set of guidelines for Swift development on Apple platforms such as iOS and macOS. It covers SwiftUI interfaces, safe optional handling, asynchronous code, memory management, and testing.

In plain words
What is it for?
Use it to build or review Swift apps, structure SwiftUI screens, manage asynchronous work, control object access, and write XCTest tests.
Why use it?
It helps avoid common Swift problems such as crashes from missing values, memory-retention cycles, and poorly separated UI logic.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build or review Swift apps, structure SwiftUI screens, manage asynchronous work, control object access, and write XCTest tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/apexiq/skillsmith/swift_expert
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 ApexIQ/skillsmith --skill swift_expert
Clone the repo
git clone --depth 1 https://github.com/ApexIQ/skillsmith

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_expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/apexiq/skillsmith/swift_expert/github.svg)](https://agentmods.dev/skills/apexiq/skillsmith/swift_expert)
Your own site
<a href="https://agentmods.dev/skills/apexiq/skillsmith/swift_expert"><img src="https://agentmods.dev/badge/skills/apexiq/skillsmith/swift_expert/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_expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/apexiq/skillsmith/swift_expert"><img src="https://agentmods.dev/badge/skills/apexiq/skillsmith/swift_expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 274 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.00020 $0.00274
Opus 5 $0.00010 $0.00137
Sonnet 5 $0.00004 $0.00055
Haiku 4.5 $0.00002 $0.00027

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

Security

Grade A, and why

swift_expert 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 5d 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.

src/skillsmith/templates/.agent/skills/swift_expert/SKILL.md · 36 lines

What it actually says

Swift Expert

Professional guidelines for Swift and Apple platform development.

Philosophy

  • Safety: Leverage Swift's type system and optionals to prevent crashes.
  • Clarity: Write code that is expressive and clearly communicates intent.
  • Performance: High-performance apps for Apple platforms.

Patterns

  • POP (Protocol-Oriented Programming): Use protocols to define behavior and composition.
  • SwiftUI: Declarative UI development with state and data flow management.
  • Combine/Async-Await: Handle asynchronous events and data streams efficiently.
  • MVVM: Separation of concerns for testable UI logic.

Best Practices

  • Optionals: Use if let and guard let safely; avoid force unwrapping (!).
  • Memory Management: Understand ARC (Automatic Reference Counting) and avoid retain cycles with weak.
  • Unit Testing: Use XCTest to ensure logic correctness.
  • Access Control: Use private and internal to hide implementation details.
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. 5d ago First seen · 36 lines · 20 tokens per session scan A 699b48dac7f5

Subscribe to this mod's changes

swift_expert is a skill published in the GitHub repository ApexIQ/skillsmith (5 stars, last pushed 5mo ago), licensed MIT. It adds 20 tokens to every session and 274 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

Swift Patterns

Use this skill when working on Swift projects (SwiftPM packages, iOS/macOS apps) and you want consistent patterns for concurrency, structure, and safety.

AmariahAK/atlarix-skills · 2 tokens

swift-expert

Expert-level Swift development for iOS, macOS with SwiftUI, Combine, and modern Swift 5.9+. Use when the user mentions iOS, macOS, SwiftUI, Combine, async await, or Apple platforms, or when the task involves Modern Swift Features, Basics and Optionals, Functions and Closures, or Structs and Classes.

personamanagmentlayer/pcl · 76 tokens

swift

Swift programming patterns for iOS and macOS.

miles990/claude-software-skills · 11 tokens

moai-lang-swift

Swift 6.0 enterprise development with async/await, SwiftUI, Combine, and Swift Concurrency. Advanced patterns for iOS, macOS, server-side Swift, and enterprise mobile applications with Context7 MCP integration.

mosif16/codex-Skills · 51 tokens

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…

ericrisco/rsc-harness · 80 tokens

ios-expert

Expert in iOS development with SwiftUI, UIKit, Combine, and Apple ecosystem integration. Use when the user mentions mobile, Swift, SwiftUI, UIKit, Apple platforms, or Xcode, or when the task involves iOS App Architecture, SwiftUI Fundamentals, UIKit Essentials, or Combine Framework.

personamanagmentlayer/pcl · 64 tokens