Skip to main content
skill CX Codex

swift-api-design-guidelines — Claude Code skill: how to install

Applies Apple's official Swift API Design Guidelines to codebases. It guides argument labels, naming conventions for mutating methods, and structured documentation comments.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill swift-api-design-guidelines -a claude-code
Open on GitHub

What swift-api-design-guidelines does

This skill guides developers through naming Swift functions, parameters, and types. It clarifies when to drop argument labels, how to integrate prepositions into call sites, and why mutating operations take imperative verbs like sort() while nonmutating copies take participles like sorted().

A dedicated section covers documentation structure for public declarations. It expects summaries to state what a declaration creates or accesses, alongside symbol markup for parameters, errors, and algorithmic complexity. Because callers assume computed properties execute in O(1) time, the guidelines mandate explicit complexity notes for any property exceeding constant time.

Its scope centers strictly on naming ergonomics and call-site readability. When facing concurrency logic, deeper type-system mechanics, or linter configuration, the guide delegates to swift-concurrency, swift-language, or swiftlint.

What it helps with

  • choose argument labels that read naturally at the call site
  • name mutating and nonmutating method pairs following standard grammar patterns
  • write documentation comments with parameter tags and return descriptions
  • mark algorithmic complexity on computed properties that exceed O(1)

Example prompts for the agent

  • Review this Swift method signature and verify argument labels against the API guidelines.
  • Help me choose a nonmutating name for an operation that modifies a custom collection.
  • Draft a documentation comment for a computed property with O(n) complexity.

How to install swift-api-design-guidelines

1Skills CLI (Vercel)

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

2Manually: put the files in place

~/.claude/skills/swift-api-design-guidelines/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/swift-api-design-guidelines/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about swift-api-design-guidelines

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.

What does the swift-api-design-guidelines skill do?

It audits and designs Swift public APIs following official naming and clarity conventions. The skill helps refine parameter labels, method pairs, and documentation markup.

Does this skill handle Swift concurrency or linter setups?

No, it focuses solely on API surface design and call-site ergonomics. Concurrency patterns go to swift-concurrency, and linter configuration belongs in swiftlint.

Similar skills

All skills for Programming languages →

From the same set86

paperkit This skill guides PaperKit markup integration in iOS apps, from an editable canvas to saved annotations. Use it when adding drawings, shapes, or text to documents. CX Codex +1 3,000installs financekit Walks an agent through FinanceKit and FinanceKitUI in a Swift app: Wallet accounts, balances, transactions, the transaction picker and orders. CX Codex +1 3,000installs app-store-optimization Structures App Store Connect metadata to improve organic search ranking and download conversion. It balances keywords across titles, subtitles, and the indexed keyword field. CX Codex +1 2,900installs tabletopkit Guides work on visionOS spatial board games using TabletopKit, including game pieces, turns, participant sync, and RealityKit rendering. CX Codex +1 2,900installs core-data A skill for Core Data work in apps that have not moved to SwiftData: stack setup, concurrency, batch operations and migrations. CX Codex +1 2,700installs swift-formatstyle Teaches AI assistants to replace legacy Formatter subclasses with Foundation FormatStyle in Swift and SwiftUI. Useful for locale-safe numbers, dates, and currencies. CX Codex +1 2,700installs swiftlint Sets up SwiftLint for Swift projects, covering rules, suppressions, baselines and CI checks. Use it when adding linting to a build or bringing existing code under review. CX Codex +1 2,700installs focus-engine An AI-coding skill for focus handling in SwiftUI and UIKit: keyboard and directional movement, scene values, restoration after presentation changes. Useful when Siri Remote or Tab navigation lands on the wrong control. CX Codex +1 2,600installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor