Agent skill

Swift API Design Guidelines

by dpearson2699 in dpearson2699/swift-ios-skills

Apply Swift API Design Guidelines to name, label, and document Swift APIs.

Custom licenceAuto-check passedBackend & APIs

Install Swift API Design Guidelines

skills CLI
$ npx skills add dpearson2699/swift-ios-skills --skill swift-api-design-guidelines -a claude-code

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

GitHub CLI
$ gh skill install dpearson2699/swift-ios-skills swift-api-design-guidelines --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-api-design-guidelines .claude/skills/swift-api-design-guidelines && 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-api-design-guidelines
GitHub stars
1.2k
Token cost
~3.3k tokens
SKILL.md length
1,119 words
Files
6 (incl. references)
Skills in repo
86
Repo updated
First seen
Licence
Custom licence

At a glance

Apply Swift API Design Guidelines to name, label, and document Swift APIs.

  • Works in 3 steps: There is no obvious self — min(x, y) → The function is an unconstrained generic… → The function syntax is established…
  • Designing new Swift APIs
  • SKILL.md covers Contents, Argument Label Rules, Side-Effect Naming and Mutating and Nonmutating Pairs, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Swift API Design Guidelines is an agent skill from dpearson2699/swift-ios-skills. Apply Swift API Design Guidelines to name, label, and document Swift APIs. Covers argument label rules (prepositional phrase rule, grammatical phrase rule, first-label omission), mutating/nonmutating pair naming (-ed/-ing participle pattern, form- prefix, sort/sorted, formUnion/union), side-effect naming (noun for pure, verb for mutating), documentation comment structure (summary by declaration kind, O(1) complexity rule), clarity at call site, role-based naming, protocol naming (-able/-ible/-ing), default…

Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `evals/evals.json`, `references/argument-labels-and-parameters.md` and `references/conventions-and-special-rules.md`).

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

When your agent uses it

  • Designing new Swift APIs
  • Reviewing naming and argument labels
  • Writing documentation comments
  • Refactoring for call site clarity

Example prompts

  • “/swift-api-design-guidelines”

Workflow steps

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

  1. There is no obvious self — min(x, y)
  2. The function is an unconstrained generic — print(value)
  3. The function syntax is established domain notation — sin(x)

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 API Design Guidelines loads about 3.3k tokens when it runs, and up to ~8.6k if it reads all its reference files. Until then it costs about 188 tokens; SKILL.md has 1,119 words of instructions outside code blocks.

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

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,119 words (~3,282 tokens).

“Apply the Swift API Design Guidelines to naming, labels, documentation, and call-site clarity. For mixed requests, handle the API-design portion here and route language/type-system work to swift-language, concurrency to swift-concurrency, and lint configuration to swiftlint.”

— opening of SKILL.md by dpearson2699, Custom licence
name
swift-api-design-guidelines

Read the full SKILL.md on GitHub

Files

SKILL.md and 5 other files (references) in skills/swift-api-design-guidelines of dpearson2699/swift-ios-skills.

  • SKILL.md
  • evals/evals.json
  • references/argument-labels-and-parameters.md
  • references/conventions-and-special-rules.md
  • references/naming-and-clarity.md
  • references/side-effects-and-mutating-pairs.md

Open the folder on GitHubat commit 8d90fd1

Compare with similar skills

Swift API Design Guidelines 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 API Design Guidelines compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swift API Design Guidelines this skilldpearson2699/swift-ios-skills1.2k—~3.3kAutomated safety check: PassCustom licence
Integration PatternsJoelLewis/finance_skills205—~10kAutomated safety check: PassMIT
Build Nitro Modulesmargelo/react-native-skills175—~9.9kAutomated safety check: PassMIT
Stellar iOS Mac SDKSoneso/stellar-ios-mac-sdk132—~4.3kAutomated safety check: PassApache-2.0
Kkrpc Interopkunkunsh/kkrpc174—~1.8kAutomated safety check: PassMIT
Apollo iOSapollographql/skills117—~2kAutomated safety check: PassMIT

Similar skills

  • Integration Patterns

    JoelLewis/finance_skills

    Design and implement integration architectures connecting financial systems — APIs, FIX protocol, ISO 20022, event-driven patterns, batch feeds, idempotency, and resilience.

    205 GitHub stars~10k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • Build Nitro Modules

    margelo/react-native-skills

    Builds and designs React Native Nitro Modules with Nitrogen, HybridObject TypeScript specs, Nitro View components, generated native implementations, zero-copy and native-state APIs, Swift/Kotlin/C++…

    175 GitHub stars~9.9k tokensUpdated 1 mo ago
    MobileAuto-check passed
  • Stellar iOS Mac SDK

    Soneso/stellar-ios-mac-sdk

    Guides Stellar blockchain development in Swift using stellar-ios-mac-sdk.

    132 GitHub stars~4.3k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Kkrpc Interop

    kunkunsh/kkrpc

    A skill your agent uses when implementing kkrpc clients or servers in non-TypeScript languages, speaking the stable compact protocol, transports, and reference implementations in Go, Python, Rust…

    174 GitHub stars~1.8k tokensUpdated 27 days ago
    Backend & APIsAuto-check passed
  • Apollo iOS

    apollographql/skills

    Guide for building Apple-platform applications with Apollo iOS, the strongly-typed GraphQL client for Swift.

    117 GitHub stars~2k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Clerk

    geekskai/blog

    Clerk authentication router. An agent skill from geekskai/blog.

    103 GitHub starsUsed in 3 repos~1.5k tokens
    Backend & APIsAuto-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
  • 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
  • Alarmkit

    dpearson2699/swift-ios-skills

    Implement AlarmKit alarms and countdown timers for iOS and iPadOS with Lock Screen, Dynamic Island, StandBy, and paired Apple Watch system UI.

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

Questions about Swift API Design Guidelines

What does Swift API Design Guidelines do?

Apply Swift API Design Guidelines to name, label, and document Swift APIs. Swift API Design Guidelines is an agent skill from dpearson2699/swift-ios-skills. Apply Swift API Design Guidelines to name, label, and document Swift APIs.

When should I use Swift API Design Guidelines?

Swift API Design Guidelines fits situations like: designing new Swift APIs; reviewing naming and argument labels; writing documentation comments; refactoring for call site clarity.

How do I install Swift API Design Guidelines in Claude Code?

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

How do I install Swift API Design Guidelines in Codex?

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

Can I use Swift API Design Guidelines 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-api-design-guidelines -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-api-design-guidelines, .gemini/skills/swift-api-design-guidelines, .github/skills/swift-api-design-guidelines and .opencode/skills/swift-api-design-guidelines in your project.

What does Swift API Design Guidelines need to run?

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

Does Swift API Design Guidelines 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 API Design Guidelines 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 API Design Guidelines use?

Swift API Design Guidelines 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 API Design Guidelines use?

About 3.3k tokens (SKILL.md is roughly 13k 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 5.4k tokens, read only when the agent opens those files.

What are the alternatives to Swift API Design Guidelines?

Skills that share tags, products or a category with Swift API Design Guidelines: Integration Patterns (JoelLewis/finance_skills, 205 stars), Build Nitro Modules (margelo/react-native-skills, 175 stars), Stellar iOS Mac SDK (Soneso/stellar-ios-mac-sdk, 132 stars) and Kkrpc Interop (kunkunsh/kkrpc, 174 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swift API Design Guidelines?

dpearson2699 (a GitHub user) maintains it in dpearson2699/swift-ios-skills, which has 1,182 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.