ios-swift-api-design-reviewer

Review function and class interfaces for Swift API Design Guidelines compliance. Use when creating public APIs, reusable components, library interfaces, or when the user asks for API design review or Swift naming conventions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ios-swift-api-design-reviewer" with this command: npx skills add desquared/agents-rules-skills/desquared-agents-rules-skills-ios-swift-api-design-reviewer

Swift API Design Review

Naming Rules

  • Clear at point of use, not declaration
  • Omit needless words
  • lowerCamelCase: properties, methods
  • UpperCamelCase: types, protocols
  • Booleans: is, has, can, should
  • Mutating: verb (sort()), Non-mutating: noun (sorted())

Common Issues

IssueFix
var visiblevar isVisible
func get()func getUserName()
var nameStringvar name
add(item: x, to: y)add(_ item: x, to: y)

Parameter Design

  • Closure parameters: last
  • Default parameters: at end
  • First label: omit when forming phrase with function
  • Labels clarify purpose

Return Types

  • Optional when nil is meaningful
  • Result for failable operations
  • Tuples max 3 elements (else use struct)

Severity

  • 🔴 Critical: Violates guidelines
  • 🟡 Improvement: Could be clearer
  • 🟢 Enhancement: Optional polish

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

shared-bug-investigation

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

ios-accessibility-validator

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

android-accessibility-validator

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

android-compose-architecture-review

No summary provided by upstream source.

Repository SourceNeeds Review