Agent skill

Swift Language

by dpearson2699 in dpearson2699/swift-ios-skills

Apply modern Swift language patterns and idioms for non-concurrency, non-SwiftUI code.

Custom licenceAuto-check passedMobile

Install Swift Language

skills CLI
$ npx skills add dpearson2699/swift-ios-skills --skill swift-language -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dpearson2699/swift-ios-skills swift-language --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dpearson2699/swift-ios-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/swift-language .claude/skills/swift-language && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
swift-language
GitHub stars
1.2k
Token cost
~3.8k tokens
SKILL.md length
1,068 words
Files
4 (incl. references)
Skills in repo
86
Repo updated
First seen
Licence
Custom licence

At a glance

Apply modern Swift language patterns and idioms for non-concurrency, non-SwiftUI code.

  • Works in 10 steps: Using any when some works. Default to… → Manual loops or .filter { }.count… → DateFormatter instead of FormatStyle.… → …
  • Writing core Swift code involving generics
  • SKILL.md covers Contents, If/Switch Expressions, Typed Throws and Result Builders, plus 12 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Swift Language is an agent skill from dpearson2699/swift-ios-skills. Apply modern Swift language patterns and idioms for non-concurrency, non-SwiftUI code. Covers if/switch expressions (Swift 5.9+), typed throws (Swift 6+), result builders, property wrappers, opaque and existential types (some vs any), guard patterns, Never type, Regex builders (Swift 5.7+), basic Codable shaping (CodingKeys, custom decoding, nested containers), modern collection APIs (count(where:), contains(where:), replacing()), basic FormatStyle usage, and string interpolation patterns. Use when writing core…

Its SKILL.md is about 3.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `evals/evals.json`, `references/swift-attributes-interop.md` and `references/swift-patterns-extended.md`).

It sits in Mobile, covering iOS development, API design and Internationalization. It works with Swift and SwiftUI. The repository describes itself as: Agent Skills for iOS 26+, Swift 6.3, SwiftUI, and modern Apple frameworks.

When your agent uses it

  • Writing core Swift code involving generics
  • Modern language features
  • Route deep Codable to swift-codable
  • Detailed formatting/localization to swift-formatstyle

Example prompts

  • “/swift-language”

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Using any when some works. Default to some for return types and
  2. Manual loops or .filter { }.count instead of collection APIs. Use
  3. DateFormatter instead of FormatStyle. .formatted() is simpler,
  4. Force-unwrapping Codable decodes. Use decodeIfPresent with defaults
  5. Reordering preconditions during modernization. Use guard without moving
  6. Invalid @c signatures. Say UnsafeBufferPointer is a Swift struct/value
  7. Ignoring typed throws. When a function has a single, clear error type,
  8. Overusing property wrappers. A computed property is simpler when there
  9. Underspecifying Never. For Result or throws(Never), write the caveat explicitly: Never does not implicitly conform to arbitrary protocols…
  10. Owning sibling implementation. Name the owner skill and stop. Avoid

What it can do on your machine

Read from SKILL.md and the folder at commit 8d90fd1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are swift).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Swift Language loads about 3.8k tokens when it runs, and up to ~8.1k if it reads all its reference files. Until then it costs about 190 tokens; SKILL.md has 1,068 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~190
When it runs · the whole SKILL.md, loaded when a task matches
~3.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,068 words (~3,801 tokens).

“Apply current Swift language syntax without changing behavior or evaluation order. Route deep decoding to swift-codable, formatting to swift-formatstyle, naming to swift-api-design-guidelines, concurrency to swift-concurrency, and SwiftUI state/view work to swiftui-patterns.”

— opening of SKILL.md by dpearson2699, Custom licence
name
swift-language

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in skills/swift-language of dpearson2699/swift-ios-skills.

  • SKILL.md
  • evals/evals.json
  • references/swift-attributes-interop.md
  • references/swift-patterns-extended.md

Open the folder on GitHubat commit 8d90fd1

Compare with similar skills

Swift Language next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Swift Language compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swift Language this skilldpearson2699/swift-ios-skills1.2k—~3.8kAutomated safety check: PassCustom licence
Swiftui Expert SkillAFK-surf/OpenBridge4302 repos~3.9kAutomated safety check: PassMIT
macOS DevelopmentKartikLabhshetwar/better-shot2.4k2 repos~735Automated safety check: PassCustom licence
Implement Featuretddworks/SkillsManager169—~2.6kAutomated safety check: PassNone
Swiftui AnimationAstraFoundry/KumoApp290—~4.1kAutomated safety check: PassAGPL-3.0
Implement Featuretddworks/ClaudeBar1.5k—~4.1kAutomated safety check: PassApache-2.0

Similar skills

  • Swiftui Expert Skill

    AFK-surf/OpenBridge

    Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, modern APIs, Swift concurrency, and iOS 26+ Liquid Glass adoption.

    430 GitHub starsUsed in 2 repos~3.9k tokens
    MobileAuto-check passed
  • macOS Development

    KartikLabhshetwar/better-shot

    Comprehensive macOS development guidance including Swift 6+, SwiftUI, SwiftData, architecture patterns, AppKit bridging, and macOS 26 Tahoe APIs.

    2.4k GitHub starsUsed in 2 repos~735 tokens
    MobileAuto-check passed
  • Implement Feature

    tddworks/SkillsManager

    Guide for implementing features following architecture-first design, TDD, rich domain models, and Swift 6.2 patterns.

    169 GitHub stars~2.6k tokensUpdated 4 mo ago
    MobileAuto-check passed
  • Swiftui Animation

    AstraFoundry/KumoApp

    Implement, review, or improve SwiftUI animations and transitions.

    290 GitHub stars~4.1k tokensUpdated 4 mo ago
    MobileAuto-check passed
  • Implement Feature

    tddworks/ClaudeBar

    Guide for implementing features in ClaudeBar following architecture-first design, TDD, rich domain models, and Swift 6.2 patterns.

    1.5k GitHub stars~4.1k tokensUpdated today
    MobileAuto-check passed
  • Snapshot Tests

    microsoft/SwiftStreamingMarkdown

    Official

    Record and validate swift-snapshot-testing snapshots in the SwiftStreamingMarkdown package: regenerate reference PNGs, run snapshot tests, and diff failed snapshots.

    378 GitHub stars~2.2k tokensUpdated 13 days ago
    MobileAuto-check passed

More from dpearson2699/swift-ios-skills

All 86 skills in this repo
  • iOS Memgraph Analysis

    dpearson2699/swift-ios-skills

    A skill your agent uses when capturing or analyzing an iOS .memgraph, especially when the task mentions a memory leak, heap growth, persistent memory increase, ownership path, or matched-capture…

    1.2k GitHub stars~2.4k tokensUpdated 2 mo ago
    Auto-check passed
  • Natural Language

    dpearson2699/swift-ios-skills

    Tokenize, tag, and analyze natural language text using Apple's NaturalLanguage framework and translate between languages with the Translation framework.

    1.2k GitHub starsUsed in 1 repo~3.5k tokens
    Auto-check passed
  • iOS Ettrace Performance

    dpearson2699/swift-ios-skills

    A skill your agent uses when capturing or analyzing ETTrace profiles for a focused iOS launch or runtime flow, including exact-build dSYM UUID matching, Simulator or device capture, processed…

    1.2k GitHub stars~2.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Accessorysetupkit

    dpearson2699/swift-ios-skills

    Discover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit.

    1.2k GitHub stars~3.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Activitykit

    dpearson2699/swift-ios-skills

    Implement, review, or improve Live Activities and Dynamic Island experiences in iOS apps using ActivityKit.

    1.2k GitHub stars~4.6k tokensUpdated 2 mo ago
    Auto-check passed
  • Adattributionkit

    dpearson2699/swift-ios-skills

    Measure ad effectiveness with privacy-preserving attribution using AdAttributionKit.

    1.2k GitHub stars~3.5k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Categories

Questions about Swift Language

What does Swift Language do?

Apply modern Swift language patterns and idioms for non-concurrency, non-SwiftUI code. Swift Language is an agent skill from dpearson2699/swift-ios-skills. Apply modern Swift language patterns and idioms for non-concurrency, non-SwiftUI code.

When should I use Swift Language?

Swift Language fits situations like: writing core Swift code involving generics; modern language features; route deep Codable to swift-codable; detailed formatting/localization to swift-formatstyle.

How do I install Swift Language in Claude Code?

Run `npx skills add dpearson2699/swift-ios-skills --skill swift-language -a claude-code`. Or copy the skill folder (skills/swift-language in dpearson2699/swift-ios-skills) into .claude/skills/swift-language in your project. Claude Code loads it when a task matches its description.

How do I install Swift Language in Codex?

Run `npx skills add dpearson2699/swift-ios-skills --skill swift-language -a codex`. Or copy the skill folder (skills/swift-language in dpearson2699/swift-ios-skills) into .agents/skills/swift-language in your project. Codex loads it when a task matches its description.

Can I use Swift Language in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dpearson2699/swift-ios-skills --skill swift-language -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swift-language, .gemini/skills/swift-language, .github/skills/swift-language and .opencode/skills/swift-language in your project.

What does Swift Language need to run?

SKILL.md names no scripts, command-line tools or credentials: Swift Language is instructions for the agent only.

Does Swift Language access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Swift Language safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Swift Language use?

Swift Language has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Swift Language use?

About 3.8k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.3k tokens, read only when the agent opens those files.

What are the alternatives to Swift Language?

Skills that share tags, products or a category with Swift Language: Swiftui Expert Skill (AFK-surf/OpenBridge, 430 stars), macOS Development (KartikLabhshetwar/better-shot, 2.4k stars), Implement Feature (tddworks/SkillsManager, 169 stars) and Swiftui Animation (AstraFoundry/KumoApp, 290 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swift Language?

dpearson2699 (a GitHub user) maintains it in dpearson2699/swift-ios-skills, which has 1,175 GitHub stars. The repository holds 86 skills in this directory. The repository was last updated on July 31, 2026.

Source: dpearson2699/swift-ios-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.