swift-api-design-guidelines-skill

swift-api-design-guidelines-skill is a skill for Claude Code from Erikote04/Swift-API-Design-Guidelines-Agent-Skill. It costs 55 tokens per session (1,492 once invoked), scanned A, original, MIT.

A guide for designing and reviewing Swift programming interfaces, including names, parameter labels, documentation, and common conventions. Swift is Apple's programming language for apps and other software.

In plain words
What is it for?
Use it when creating, refactoring, or reviewing Swift APIs, especially their names, argument labels, documentation, and overloads.
Why use it?
It helps make APIs— the functions and types other code uses—clear at the place where developers call them and consistent with Swift conventions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the swift-api-design-guidelines plugin — 1 skill shipped together

Good fit Use it when creating, refactoring, or reviewing Swift APIs, especially their names, argument labels, documentation, and overloads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/erikote04/swift-api-design-guidelines-agent-skill/swift-api-design-guidelines-skill
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 Erikote04/Swift-API-Design-Guidelines-Agent-Skill --skill swift-api-design-guidelines-skill
Clone the repo
git clone --depth 1 https://github.com/Erikote04/Swift-API-Design-Guidelines-Agent-Skill

Made for: Claude Code.

Or install swift-api-design-guidelines, the plugin that ships this one along with the rest of its 1 skill.

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-api-design-guidelines-skill

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/erikote04/swift-api-design-guidelines-agent-skill/swift-api-design-guidelines-skill"><img src="https://agentmods.dev/badge/skills/erikote04/swift-api-design-guidelines-agent-skill/swift-api-design-guidelines-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,492 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. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 18 Feb 2026
How audits are shown
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.00055 $0.01492
Opus 5 $0.00028 $0.00746
Sonnet 5 $0.00011 $0.00298
Haiku 4.5 $0.00006 $0.00149

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

Security

Grade A, and why

swift-api-design-guidelines-skill 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 12d 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.

swift-api-design-guidelines-skill/SKILL.md · 149 lines

How it starts

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

Swift API Design Guidelines Skill

Overview

Use this skill to design and review Swift APIs that are clear at the point of use, fluent in call sites, and aligned with established Swift naming and labeling conventions. Prioritize readability, explicit intent, and consistency across declarations, call sites, and documentation comments.

Work Decision Tree

1) Review existing code

  • Inspect declarations and call sites together, not declarations alone.
  • Check naming clarity and fluency (see references/promote-clear-usage.md, references/strive-for-fluent-usage.md).
  • Check argument labels and parameter naming (see references/parameters.md, references/argument-labels.md).
  • Check documentation comments and symbol markup (see references/fundamentals.md).
  • Check conventions and overload safety (see references/general-conventions.md, references/special-instructions.md).

2) Improve existing code

  • Rename APIs that are ambiguous, redundant, or role-unclear.
  • Refactor labels to improve grammatical call-site reading.
  • Replace weakly named parameters with role-based names.
  • Resolve overload sets that become ambiguous with weak typing.
  • Strengthen documentation summaries to describe behavior and returns precisely.

3) Implement new feature

  • Start from use-site examples before finalizing declarations.
  • Choose base names and labels so calls read as clear English phrases.
  • Add defaults only when they simplify common usage.
  • Define mutating/nonmutating pairs with consistent naming.
  • Add concise documentation comments for every new declaration.

Core Guidelines

Fundamentals

  • Clarity at the point of use is the top priority.
  • Clarity is more important than brevity.
  • Every declaration should have a documentation comment.
  • Summaries should state what the declaration does, returns, accesses, creates, or is.
  • Use recognized Swift symbol markup (Parameter, Returns, Throws, Note, etc.).

Promote Clear Usage

  • Include all words needed to avoid ambiguity.
  • Omit needless words, especially type repetition.
  • Name parameters and associated types by role, not type.
  • Add role nouns when type information is weak (Any, NSObject, String, Int).

Read the full file on GitHub · 149 lines

Files

What ships with it

8 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. 12d ago First seen · 149 lines · 55 tokens per session scan A 24a07155184c

Subscribe to this mod's changes

swift-api-design-guidelines-skill is a skill published in the GitHub repository Erikote04/Swift-API-Design-Guidelines-Agent-Skill (29 stars, last pushed 6mo ago), licensed MIT. It adds 55 tokens to every session and 1,492 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-30.

Related

Other skills, from other repositories

generators

Code generator skills that produce production-ready Swift code for common app components. Use when user wants to add logging, analytics, onboarding, review prompts, networking, authentication, paywalls, settings, persistence, error monitoring, CI/CD pipelines, localization, push notifications, deep linking, testing…

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

attributed-string

AttributedString patterns for rich text formatting, alignment, selection, and SwiftUI integration. Use when working with styled text, text editing, or AttributedString APIs.

rshankras/claude-code-apple-skills · 37 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

networking-layer

Generates a protocol-based networking layer with async/await, error handling, and swappable implementations. Use when user wants to add API client, networking, or HTTP layer.

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

swift-expert

Expert-level Swift development for iOS, macOS with SwiftUI, Combine, and modern Swift 5.9+. Use when the user mentions iOS, macOS, SwiftUI, Combine, async await, or Apple platforms, or when the task involves Modern Swift Features, Basics and Optionals, Functions and Closures, or Structs and Classes.

personamanagmentlayer/pcl · 76 tokens

app-intents

Writes and reviews Swift App Intents code that exposes app actions and data to Siri, Shortcuts, Spotlight, widgets, Control Center, and Apple Intelligence. Use when adding AppIntent, AppEntity, OpenIntent, AppShortcutsProvider, EntityQuery, Focus Filters, AssistantEntity/AssistantIntent schemas, on-screen awareness…

n0an/App-Intents-Agent-Skill · 99 tokens