swift-clean-types

Installation
SKILL.md

Swift Clean Types

Audit and refactor Swift types (classes, structs, enums, protocols, extensions) per Clean Code (Robert Martin) + Swift Protocol-Oriented Programming.

Arguments

The user provided: $ARGUMENTS

If a file path is given — read it. If no arguments — ask the user to paste the code or specify a file.

Checklist to Apply

1. Single Responsibility Principle (SRP)

  • A type should have one reason to change
  • A class that handles networking, parsing, AND storage violates SRP
  • Count the nouns in a type's description: "handles users AND manages sessions AND formats dates" = 3 classes
Installs
26
GitHub Stars
26
First Seen
Apr 27, 2026
swift-clean-types — levabond/ios-clean-code-skills