ios-swift-api-design-reviewer

ios-swift-api-design-reviewer is a skill for Claude Code, Codex from Desquared/agents-rules-skills. It costs 64 tokens per session (1,342 once invoked), scanned A, original, MIT.

A review guide for Swift interfaces—the names and inputs developers use when calling functions, types, and protocols. It checks them against common Swift conventions, including async and error-reporting patterns.

In plain words
What is it for?
Use it to review SDKs, reusable components, public APIs, or shared Swift modules. It covers naming, parameter labels, mutability, Boolean properties, and modern async and throws usage.
Why use it?
It helps prevent confusing names, unclear call sites, and interfaces that feel inconsistent with the Swift standard library. This makes shared code and public APIs easier to understand and reuse.

Skill for Claude CodeCodex

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

Good fit Use it to review SDKs, reusable components, public APIs, or shared Swift modules. It covers naming, parameter labels, mutability, Boolean properties, and modern async and throws usage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desquared/agents-rules-skills/ios-swift-api-design-reviewer
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 Desquared/agents-rules-skills --skill ios-swift-api-design-reviewer
Clone the repo
git clone --depth 1 https://github.com/Desquared/agents-rules-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 ios-swift-api-design-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/desquared/agents-rules-skills/ios-swift-api-design-reviewer/github.svg)](https://agentmods.dev/skills/desquared/agents-rules-skills/ios-swift-api-design-reviewer)
Your own site
<a href="https://agentmods.dev/skills/desquared/agents-rules-skills/ios-swift-api-design-reviewer"><img src="https://agentmods.dev/badge/skills/desquared/agents-rules-skills/ios-swift-api-design-reviewer/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 ios-swift-api-design-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/skills/desquared/agents-rules-skills/ios-swift-api-design-reviewer"><img src="https://agentmods.dev/badge/skills/desquared/agents-rules-skills/ios-swift-api-design-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,342 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.00064 $0.01342
Opus 5 $0.00032 $0.00671
Sonnet 5 $0.00013 $0.00268
Haiku 4.5 $0.00006 $0.00134

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

Security

Grade A, and why

ios-swift-api-design-reviewer 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 11d 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.

skills/ios-swift-api-design-reviewer/SKILL.md · 127 lines

How it starts

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

Swift API Design Review

What “good” looks like

  • Prioritize clarity at the call site, even if the declaration becomes a bit longer.
  • Follow established standard library conventions so your API “feels Swift”.
  • Prefer precise words over generic ones (data, info, manager, handler, util).

Naming Rules (Types, Properties, Methods)

  • Clear at point of use, not at declaration.
  • Omit needless words, but do not remove words that carry meaning.
  • lowerCamelCase: functions, methods, properties, enum cases.
  • UpperCamelCase: types, protocols.
  • Avoid “noise” suffixes like String, Array, Data unless they add meaning.

Boolean naming

  • Prefer predicates: is, has, can, should, did.
  • Match the natural reading of the call site.
    • if user.isEligible { … }
    • if cache.hasValue(forKey: k) { … }

Verbs and mutability

  • Mutating methods are verbs: sort(), append(_), removeAll().
  • Non-mutating counterparts use “-ed”: sorted(), appending(_), removingAll() when appropriate.

Common Issues (with better fixes)

Issue Better Fix
var visible var isVisible
func get() Use a precise verb or a noun that reads well at the call site: func userName(), func loadUserName(), func fetchUserName()
var nameString var name
func add(item: x, to: y) func add(_ item: Item, to collection: Collection)
func doStuff() Name the domain action: func refresh(), func rebuildIndex(), func startSession()
func handle(_ x: …) Be specific: func handleDeepLink(_:) or func route(_:)

Parameter & Label Design (call-site first)

  • The first argument label should be omitted when it forms a natural phrase:
    • add(_ item:to:)
    • contains(_:)
  • Use labels to clarify roles, units, and semantics:
    • move(from:to:)
    • setDeadline(_:, for:)
    • resize(to:) (size), resize(by:) (scale factor)
  • Keep default parameters last when it improves scanning and discoverability.
  • Closure parameters are usually last, but:
    • If there are multiple closures, label them clearly.
    • If a closure is configuration rather than action, it may be clearer earlier.

Read the full file on GitHub · 127 lines

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. 11d ago First seen · 127 lines · 64 tokens per session scan A 0dae78ab446b

Subscribe to this mod's changes

ios-swift-api-design-reviewer is a skill published in the GitHub repository Desquared/agents-rules-skills (4 stars, last pushed 28d ago), licensed MIT. It adds 64 tokens to every session and 1,342 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

axiom-audit-codable

Use when the user mentions Codable review, JSON encoding/decoding issues, data serialization audit, or modernizing legacy code.

CharlesWiltgen/Axiom · 32 tokens

axiom-swift-simplifier

Use when the user wants to simplify Swift code, reduce boilerplate, or make Swift more readable and idiomatic without changing behavior.

CharlesWiltgen/Axiom · 34 tokens

kotlin-concurrency-and-flow

Use when writing or reviewing Kotlin coroutine scope ownership, raw Thread or Executor work, init launches, non-suspending launch APIs, runBlocking, cancellation, StateFlow, SharedFlow, Channel, stateIn, SharingStarted, state updates, or one-shot events.

chrisbanes/skills · 60 tokens

kotlin-api-design

Use when designing or reviewing Kotlin function ownership, member or extension functions, factories, single-field domain types, value classes, data classes, Kotlin Multiplatform expect/actual declarations, or platform service boundaries.

chrisbanes/skills · 46 tokens

coding-best-practices

Reviews Swift/iOS code for adherence to modern Swift idioms, Apple platform best practices, architecture patterns, and code quality standards. Use when user mentions best practices, code review, clean code, refactoring, or wants to improve code quality.

rshankras/claude-code-apple-skills · 55 tokens

swift-concurrency-review

Review Swift 6 strict-concurrency and SwiftUI code for idiom and build-breaking issues - non-Sendable across actor boundaries, @MainActor witness vs nonisolated protocol requirements, Combine/ObservableObject usage, force-unwraps, #Predicate macro limits, the 6.3.x Binding IRGen crash, missing #if os() guards, and…

charlesjones-dev/claude-code-plugins-dev · 94 tokens