swift review
- Repo stars 0
- Author repo skills-registry
- Domain
- Engineering
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 88 / 100 · heuristic scan, not runtime safety proof
- Runtime evidence
- Not run; no isolated runtime test evidence is currently recorded
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No explicit requirements detected
- Detected file/system behavior
-
- Read-only
- Network behavior
- Local-only
- Install commands
- None (reference only)
Heads up: Tool permissions are not declared; actual access depends on the runtime.
# Swift / iOS Code Review
## When to Use
- Reviewing Swift/iOS code (SwiftUI, UIKit, Combine)
- Evaluating iOS architecture (MVVM, TCA, VIPER)
- App Store compliance review
- iOS performance and memory review
## Review Checklist
### Architecture
- [ ] MVVM or TCA architecture consistently applied
- [ ] View models don't import UIKit/SwiftUI
- [ ] Protocol-oriented design for dependencies
- [ ] Coordinator pattern for navigation (if UIKit)
- [ ] `@EnvironmentObject` / `@StateObject` used correctly
### Swift Best Practices
- [ ] Value types (`struct`) preferred over reference types (`class`)
- [ ] `let` preferred over `var` (immutability)
- [ ] Guard clauses for early returns
- [ ] `Result<Success, Failure>` for error handling
- [ ] `Codable` for JSON parsing (not manual parsing)
- [ ] `async/await` instead of completion handlers (iOS 15+)
- [ ] Property wrappers for common patterns
- [ ] Access control (`private`, `internal`, `public`) enforced
### SwiftUI
- [ ] Views are small and composable (< 50 lines body)
- [ ] `@State` for local, `@Binding` for parent-child, `@ObservedObject` for injected
- [ ] No heavy computation in `body` (use `.task {}` modifier)
- [ ] Preview providers for all views
- [ ] Accessibility modifiers (`.accessibilityLabel`, `.accessibilityHint`)
- [ ] Dark mode support verified
### Memory & Performance
- [ ] No retain cycles (`[weak self]` in closures)
- [ ] `Instruments` profiled for leaks
- [ ] Images resized to display size (not full resolution)
- [ ] TableView/CollectionView cell reuse
- [ ] Background tasks for heavy work (`DispatchQueue.global()`)
- [ ] Core Data batch operations for large datasets
### App Store Guidelines
- [ ] No private APIs used
- [ ] In-App Purchase for digital goods (not external links)
- [ ] Privacy manifest (`PrivacyInfo.xcprivacy`) included
- [ ] Required device capabilities declared
- [ ] App Transport Security exceptions justified
- [ ] No hardcoded test data in release builds
## Output Format
```markdown
## iOS Review: [Module]
**Health Score**: X/10
### Issues | Improvements | Architecture Notes
```
---
> Source: [camilooscargbaptista/cto-toolkit](https://github.com/camilooscargbaptista/cto-toolkit) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->
Sections and files
Listed in source order.
sections -> When to Use → Review Checklist → Architecture → Swift Best Practices → SwiftUI → Memory & Performance
terms -> Health Score
files/cmd -> @EnvironmentObject · @StateObject · struct · class · let · var · Result<Success, Failure> · Codable
body sha256 -> 0816e788331f
When to Use
Reviewing Swift/iOS code (SwiftUI, UIKit, Combine) Evaluating iOS architecture (MVVM, TCA, VIPER) App Store compliance review iOS performance and memory review
Architecture
[ ] MVVM or TCA architecture consistently applied [ ] View models don't import UIKit/SwiftUI [ ] Protocol-oriented design for dependencies [ ] Coordinator pattern for navigation (if UIKit) [ ]
@EnvironmentObject/@StateObjectused correctlySwift Best Practices
[ ] Value types (
struct) preferred over reference types (class) [ ]letpreferred overvar(immutability) [ ] Guard clauses for early returns [ ]Result<Success, Failure>for error handling [ ]Codablefor JSON parsing (not manual parsing)SwiftUI
[ ] Views are small and composable (< 50 lines body) [ ]
@Statefor local,@Bindingfor parent-child,@ObservedObjectfor injected [ ] No heavy computation inbody(use.task {}modifier) [ ] Preview providers for all views [ ] Accessibility modifiers (.accessibilityLabel,.accessibilityHint)Memory & Performance
[ ] No retain cycles (
[weak self]in closures) [ ]Instrumentsprofiled for leaks [ ] Images resized to display size (not full resolution) [ ] TableView/CollectionView cell reuse [ ] Background tasks for heavy work (DispatchQueue.global())