askill
swift-api-design-reviewer

swift-api-design-reviewerSafety 95Repository

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.

1 stars
1.2k downloads
Updated 2/3/2026

Package Files

Loading files...
SKILL.md

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

Install

Download ZIP
Requires askill CLI v1.0+β–Ά

AI Quality Score

77/100Analyzed 2/18/2026

Well-structured Swift API design reference skill with clear naming rules, common issues table, parameter design guidance, and severity levels. Includes explicit when-to-use description and tags for discoverability. Located in proper skills folder. Provides high-density technical content useful for reviewing public APIs, though lacks executable steps - serves better as a reference guide than a procedural skill.

95
82
75
65
70

Metadata

Licenseunknown
Version-
Updated2/3/2026
PublisherDesquared

Tags

api