swift-style

Installation
Summary

Swift code style conventions for clean, readable, and idiomatic code.

  • Enforces naming conventions (UpperCamelCase for types, lowerCamelCase for everything else) and prioritizes clarity over brevity
  • Advocates the "golden path" pattern: early returns and guards to keep happy-path logic left-aligned, avoiding deep nesting
  • Covers code organization with extensions and MARK comments, memory management with weak captures, and access control best practices
  • Identifies five common mistakes: unnecessary abbreviations, nested conditionals, inconsistent self usage, vague type names, and implicit access control
SKILL.md

Swift Style Guide

Code style conventions for clean, readable Swift code.

Core Principles

Clarity > Brevity > Consistency

Code should compile without warnings.

Naming

  • UpperCamelCase — Types, protocols
  • lowerCamelCase — Everything else
  • Clarity at call site
  • No abbreviations except universal (URL, ID)
Related skills
Installs
1.5K
GitHub Stars
205
First Seen
Jan 23, 2026