LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

swift-style

Swift code style conventions for clean, readable code. Use when writing Swift code to ensure consistent formatting, naming, organization, and idiomatic patterns.

225stars21forksUpdated 8/17/2026
Documentation#ios#conventions#documentation#swift#code-style

Security Assessment

Safe(97/100)
Security Score97/100

About swift-style

swift-style is a concise Swift code-style guide that encodes conventions for clean, readable, idiomatic Swift. It solves the problem of inconsistent formatting, naming, and organization across a Swift codebase by giving Claude a compact reference to apply whenever it writes or edits Swift. Its guiding principle is "Clarity > Brevity > Consistency," and it expects code to compile without warnings.

The guide covers naming (UpperCamelCase for types and protocols, lowerCamelCase for everything else, no abbreviations except URL/ID/UUID), the "golden path" of early returns and guards to keep the happy path left-aligned, code organization with extensions and MARK comments, spacing and brace conventions, when to omit `self`, computed-property shorthand, trailing-closure rules, type inference, access control (prefer `private`, omit the default `internal`), and memory management with `[weak self]` capture. It closes with a list of common mistakes to avoid, such as vague type names like `Manager` or `Helper`, unnecessary abbreviations, and inconsistent `self` usage. The entire skill is a single SKILL.md with no scripts or executable content.

Target users are Swift and iOS/macOS developers who want Claude to produce consistent, idiomatic code, and teams that want a shared house style applied automatically during code generation. Typical use cases include writing new Swift files, refactoring existing code to a consistent style, and reviewing code against these conventions.

FAQ

When does this skill apply?

Whenever Swift code is being written or edited, to keep formatting, naming, organization, and idiomatic patterns consistent.

What is the core principle?

"Clarity > Brevity > Consistency," and code should compile without warnings. Guidance flows from readability at the call site.

What naming rules does it enforce?

UpperCamelCase for types and protocols, lowerCamelCase for everything else, and no abbreviations except the universal URL, ID, and UUID. It also warns against overly generic type names like Manager, Handler, or Helper.

Does it cover memory management?

Yes, briefly — it shows the `[weak self]` capture pattern with a `guard let self else { return }` unwrap inside closures.

Does the skill run any code?

No. It is a single Markdown style guide with no scripts, commands, or executable content.

Install swift-style

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

johnrogers/claude-swift-engineering

Related Skills

short-form-video

14

multi-asset-morning-briefing

7,907

content-strategy

2,901

doherty-threshold

2,901