swift

swift is a skill for Claude Code, Codex from hmj1026/dhpk. It costs 71 tokens per session (929 once invoked), scanned A, original, MIT.

A development guide for Swift, the programming language used for Apple platforms, and for iOS apps built with it. It covers SwiftUI interfaces, asynchronous tests, privacy settings, Xcode and Swift Package Manager builds, and app icons.

In plain words
What is it for?
Use it to implement or review Swift and iOS features, configure builds and tests, handle privacy or concurrency settings, or prepare asset-catalog icons.
Why use it?
Swift and iOS behaviour depends on the project’s deployment target, language settings, and package or Xcode configuration. This checks those constraints before suggesting code or build changes.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the dhpk plugin — 39 skills, 1 command, 1 agent, 3 hooks shipped together

Good fit Use it to implement or review Swift and iOS features, configure builds and tests, handle privacy or concurrency settings, or prepare asset-catalog icons.

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

Made for: Claude Code, Codex.

Or install dhpk, the plugin that ships this one along with the rest of its 39 skills, 1 command, 1 agent, 3 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmj1026/dhpk/swift"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/swift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 929 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.00071 $0.00929
Opus 5.5 $0.00028 $0.00372
Sonnet 5.5 $0.00014 $0.00186
Haiku 4.5 $0.00007 $0.00093

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

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/iconify_gen.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

(network + curl + a rasterizer) or `scripts/generate_icons.swift` for SF Symbols
generated/claude-marketplace/package/skills/flow-drive/references/swift/SKILL.md · 73 lines

How it starts

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

Swift

Use $swift <task>; optional test, build, and icon actions select the same internal task paths. Complete the requested task with the smallest local reference set; specialist references are procedures, not independent skills.

Resolve the target before loading

  1. Establish the target package, Xcode project/scheme, or asset catalog from the request and project evidence. Ask and wait when a monorepo has several plausible targets. An intentional explicit target/version override wins; report the override separately from the observed configuration.
  2. For version-sensitive work read the target's SWIFT_VERSION, SWIFT_STRICT_CONCURRENCY, deployment target, and applicable Package.swift tools version. The installed swift --version is execution-environment evidence, not target compatibility. Preserve the precision of the evidence.
  3. Missing, conflicting, or broad incompatible constraints require a question and an answer before version-specific references or dependent actions. A migration needs an explicit destination version. For several destinations, group resources, changes, and verification by target.

Select only the task's resources

Task Local procedure Load additional references when needed
Swift language/concurrency/errors language concurrency, value/reference, error handling; approachable-concurrency only for resolved Swift 6.2+
SwiftUI state/navigation/interop UI observation-state, navigation, mvvm-coordinator, interop
Test authoring and strategy (test) testing swift-testing-api, xctest-bridging, xcuitest, snapshot-testing, test-taxonomy, protocol-di-host-testing
iOS SDK persistence/privacy/crypto/OCR platform matching SDK reference only
Xcode/SPM/lint/CI (build) build swiftlint-config, xcodebuild-spm, scheme-signing
In-app symbol imageset (icon) icon local icon scripts below

Read the full file on GitHub · 73 lines

Files

What ships with it

37 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 First seen · 73 lines · 71 tokens per session scan A 8eadc32e8b7d

Subscribe to this mod's changes

swift is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 929 once invoked, about $0.0003 per session on Opus 5.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-10-16.

Related

Other skills, from other repositories

build-android-binary

Compile a PAM control's Android Kotlin module into the runtime-loadable DEX for a .ppmplugin. Creates a staged Gradle build with the pinned wrapper and react-android compile dependency, verifies manifest/module/package alignment and runtime-loading constraints, builds the release AAR, then runs d8 --min-api 24. Writes…

microsoft/power-platform-skills · 150 tokens

build-ios-binary

Compile a PAM control's iOS Obj-C/Swift module into the FLAT device-slice .framework for a .ppmplugin bundle (never an .xcframework — the wrap CI won't descend into one). Mac-only (Xcode). Builds from a throwaway staged copy so canonical ios/ and the podspec stay untouched, references React-Core headers only (React is…

microsoft/power-platform-skills · 200 tokens

jetpack-compose-expert

Use when working in a native Android Jetpack Compose project - build.gradle.kts with androidx.compose BOM or org.jetbrains.kotlin.plugin.compose, .kt files containing @Composable functions, MainActivity with setContent, or mentions of Compose, Material 3, recomposition, ViewModel, StateFlow, Hilt, Room, or Navigation…

Aarvion-AI/stackwise-skills · 145 tokens

swiftui-expert

Use when working in a native iOS/SwiftUI project - .swift files, an .xcodeproj or Package.swift, Xcode schemes, or mentions of SwiftUI, Swift 6, @Observable, SwiftData, NavigationStack, actors, or Swift Testing. Builds views and features, wires Observation-based state, fixes Swift 6 strict-concurrency errors, models…

Aarvion-AI/stackwise-skills · 151 tokens

swiftui-expert

This skill should be used when the user is building, reviewing, or debugging SwiftUI views and apps. Detects iOS and Swift version from the project. Covers creating views, state management with @Observable, NavigationStack routing, animations, accessibility, performance optimization, Liquid Glass adoption, design…

mathisk2095/jko-claude-plugins · 162 tokens

bootstrap-xcode-workspace

Create, adopt, extend, and align one Swift product workspace with app, extension, package, and service components under one permanent Xcode entrypoint.

gaelic-ghost/socket · 36 tokens