swiftui-coding-guideline
Installation
SKILL.md
SwiftUI Coding Guideline
Overview
Apply these guidelines when working on SwiftUI code. Prefer minimal, readable, and maintainable changes with explicit, testable state transitions.
Use swift-coding-guideline as the baseline for cross-cutting Swift language/tooling rules (import hygiene, mutation semantics, enum/file rules, naming, and general formatting). This skill defines SwiftUI- and UI-architecture-specific rules on top of that baseline.
Priorities (In Order)
- Minimal changes that solve the problem directly.
- Readability over cleverness.
- Maintainability over short-term shortcuts.
- Clear architecture: each layer owns one responsibility.
- Pure, explicit logic with minimal side effects.
- Testability via small, injectable dependencies.