swift-code-review
Installation
SKILL.md
Swift Code Review
Lead with actionable findings ordered by severity. A review is not a narration of the diff.
Evidence workflow
- Read the change, surrounding contracts, callers, manifest, platform conditions, and relevant tests.
- Reproduce or statically trace each suspected defect.
- Check optionals, value/reference semantics, ARC cycles, errors, Codable shape, public ABI/API, actor isolation, Sendable crossings, cancellation, resources, and C/Objective-C boundaries.
- Confirm tests would fail for plausible defects and use production paths.
- Report location, trigger, impact, and the smallest credible remedy.
Severity
- Critical: data loss, exploitable security defect, broad outage, or irreversible compatibility break.
- High: common wrong result, race/leak, broken public contract, or migration parity failure.
- Medium: bounded correctness, resilience, performance, or maintainability risk.
- Low: concrete improvement with limited operational impact.