neo-swift

neo-swift is a skill for Claude Code, Codex from Benknightdark/neo-skills. It costs 63 tokens per session (958 once invoked), scanned B, original, MIT.

A coding guide for writing, reviewing, debugging, and modernizing Swift, Apple's programming language, across Apple platforms and server applications.

In plain words
What is it for?
It helps build or improve Swift code for iOS, macOS, Swift packages, SwiftUI/UIKit apps, and server-side Swift projects.
Why use it?
It provides conventions for Swift features such as async/await, memory management, protocols, and SwiftUI so code changes fit the platform and language version.

Skill for Claude CodeCodex

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

Good fit It helps build or improve Swift code for iOS, macOS, Swift packages, SwiftUI/UIKit apps, and server-side Swift projects.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/benknightdark/neo-skills/neo-swift"><img src="https://agentmods.dev/badge/skills/benknightdark/neo-skills/neo-swift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 958 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00063 $0.00958
Opus 5.5 $0.00025 $0.00383
Sonnet 5.5 $0.00013 $0.00192
Haiku 4.5 $0.00006 $0.00096

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

Security

Grade B, and why

neo-swift scanned grade B 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 1mo 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- Ensure code compiles without warnings in the target Swift version.
skills/neo-swift/SKILL.md · 84 lines

How it starts

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

Modern Swift (5.0+) Expert Skill

Trigger On

  • The user asks to write, debug, refactor, or review Swift code.
  • The project directory contains *.swift, Package.swift, or *.xcodeproj.
  • Development involves iOS (SwiftUI/UIKit), macOS, or Server-side Swift (Vapor).
  • Code modernization is needed (e.g., migrating to Structured Concurrency or Swift 6 language mode).

Workflow

  1. Perceive (Version Awareness):
    • Identify the Swift version (e.g., check Package.swift or build settings).
    • Determine the platform (SwiftUI vs UIKit, Server vs App).
    • Assess dependency management (Swift Package Manager, CocoaPods).
  2. Reason (Planning Phase):
    • Evaluate the use of modern syntax (e.g., async/await, Result, @propertyWrapper).
    • Decide on memory management strategies (ARC, weak/unowned).
    • For UI tasks, prioritize SwiftUI for modern apps or UIKit for legacy support.
  3. Act (Execution Phase):
    • Write swifty, concise code following Apple's API Design Guidelines.
    • Implement type-safe and protocol-oriented solutions.
    • Leverage Structured Concurrency (Task, async let) for asynchronous operations.
  4. Validate (Standard Validation):
    • Check for memory leaks (retain cycles) using capture lists.
    • Verify Swift 6 concurrency safety (data race detection).
    • Ensure naming conventions follow the standard lowercamelCase for members and PascalCase for types.

Feature Roadmap (Swift 5.0 - 6+)

Swift 5.0 - 5.4 (Foundation)

  • Result Type: Standardized error handling.
  • Property Wrappers: Encapsulating property logic (e.g., @Published).
  • Opaque Types: Hiding implementation details (some View).
  • Result Builders: DSL support for SwiftUI.

Swift 5.5 - 5.10 (Modern Concurrency)

  • Async/Await: Linear asynchronous code.
  • Actors: Thread-safe state isolation.
  • Distributed Actors: Communicating across processes.
  • Non-copyable Types: Explicit control over object ownership.

Read the full file on GitHub · 84 lines

Files

What ships with it

3 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. 1mo ago First seen · 84 lines · 63 tokens per session scan B 52de40f01875

Subscribe to this mod's changes

neo-swift is a skill published in the GitHub repository Benknightdark/neo-skills (7 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 958 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

swift

Use when writing Swift for iOS, macOS, or server-side. Covers value semantics, optionals, protocol-oriented design, structured concurrency with async/await and actors, and SwiftUI state management. Trigger on "migrate this completion handler to async/await", "sendable warnings under strict concurrency", "retain cycle…

nimadorostkar/Claude-Skills-collection · 97 tokens

kmp-mvi-setup

Interactive skill for scaffolding a complete Kotlin Multiplatform (KMP) project using MVI architecture. Covers State/Event/Effect pattern, Compose Multiplatform, DI, type-safe navigation, and image loading. Asks user for preferences before generating any code.

iammohdzaki/kmp-skills · 60 tokens

swift-project-setup

Bootstraps a new Swift/SwiftUI/UIKit project with MVVM architecture, standard folder structure, testing targets, and CLAUDE.md configuration. Use when user says "create a new project", "setup a new app", "start a new iOS project", "scaffold a Swift project", "initialize an Xcode project", or "new SwiftUI app".

jeremieb/swift-unit-test-instructions · 80 tokens

wear-compose-m3

Guidance for Wear OS Compose Material3 (Wear Compose Material 3 / Wear Compose Material3) watch and wearable apps. Covers creating, updating, and migrating projects (Material 2.5 and Horologist migration) using androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3…

android/skills · 91 tokens

kotlin-specialist

Provides idiomatic Kotlin implementation patterns including coroutine concurrency, Flow stream handling, multiplatform architecture, Compose UI construction, Ktor server setup, and type-safe DSL design. Use when building Kotlin applications requiring coroutines, multiplatform development, or Android with Compose.…

Jeffallan/claude-skills · 86 tokens

swift-expert

Builds iOS/macOS/watchOS/tvOS applications, implements SwiftUI views and state management, designs protocol-oriented architectures, handles async/await concurrency, implements actors for thread safety, and debugs Swift-specific issues. Use when building iOS/macOS applications with Swift 5.9+, SwiftUI, or async/await…

Jeffallan/claude-skills · 98 tokens