Install
openclaw skills install review-iosComprehensive iOS/SwiftUI code review with optional parallel agents
openclaw skills install review-ios--parallel: If the agent supports subagents, dispatch one specialized subagent per technology areaComplete in order before writing Issues in the output (empty scope is allowed; fabricated findings are not).
.swift paths under review (from Step 1 or a user-provided path). Pass: List captured in working notes or one line: No Swift files in scope — then stop with no Issues..swiftlint.yml / .swiftlint.yaml, note that in one line. Pass: You do not report a style issue that SwiftLint would already enforce for that line when config exists and swiftlint succeeds.Protocol applied; no issues in Review Summary.FILE:LINE (full surrounding context, not only the diff hunk). Pass: The Issue text matches observable code at that location.Do not begin Step 6 until Gates 1–3 are satisfied (skills load order stays Steps 4–5).
git diff --name-only $(git merge-base HEAD main)..HEAD | grep -E '\.swift$'
CRITICAL: Run SwiftLint BEFORE flagging any style issues.
# Check if SwiftLint config exists and run it
if [ -f ".swiftlint.yml" ] || [ -f ".swiftlint.yaml" ]; then
swiftlint lint --quiet <changed_files>
fi
Rules:
# SwiftUI (always with swift files that import it)
grep -r "import SwiftUI" --include="*.swift" -l | head -3
# SwiftData
grep -r "import SwiftData\|@Model\|@Query" --include="*.swift" -l | head -3
# Swift Testing
grep -r "import Testing\|@Test\|#expect" --include="*.swift" -l | head -3
# Combine
grep -r "import Combine\|AnyPublisher\|@Published" --include="*.swift" -l | head -3
# URLSession (explicit async patterns)
grep -r "URLSession\.shared\|\.data(from:\|\.download(from:" --include="*.swift" -l | head -3
# CloudKit
grep -r "import CloudKit\|CKContainer\|CKRecord" --include="*.swift" -l | head -3
# WidgetKit
grep -r "import WidgetKit\|TimelineProvider\|WidgetFamily" --include="*.swift" -l | head -3
# App Intents
grep -r "import AppIntents\|@AppIntent\|AppEntity" --include="*.swift" -l | head -3
# HealthKit
grep -r "import HealthKit\|HKHealthStore\|HKQuery" --include="*.swift" -l | head -3
# WatchKit
grep -r "import WatchKit\|WKExtension\|WKInterfaceController" --include="*.swift" -l | head -3
# Animations (beyond basic withAnimation)
grep -r "PhaseAnimator\|KeyframeAnimator\|matchedGeometryEffect\|navigationTransition\|scrollTransition\|CABasicAnimation\|CASpringAnimation\|CAKeyframeAnimation\|UIViewPropertyAnimator\|UIDynamicAnimator\|\.symbolEffect\|\.contentTransition\|CustomAnimation\|MeshGradient" --include="*.swift" -l | head -3
Load the review-verification-protocol skill and keep its checklist in mind throughout the review.
Load each applicable skill below (read its SKILL.md).
Always load:
Conditionally load based on detection:
| Condition | Skill |
|---|---|
| SwiftData detected | swiftdata-code-review |
| Swift Testing detected | swift-testing-code-review |
| Combine detected | combine-code-review |
| URLSession detected | urlsession-code-review |
| CloudKit detected | cloudkit-code-review |
| WidgetKit detected | widgetkit-code-review |
| App Intents detected | app-intents-code-review |
| HealthKit detected | healthkit-code-review |
| WatchKit detected | watchos-code-review |
| Animation code detected | ios-animation-code-review |
If the agent supports subagents (and --parallel is requested), dispatch one subagent per technology area in parallel; otherwise run sequentially. Both paths produce identical output — the same consolidated findings.
Sequential (default):
Parallel (when supported, via --parallel):
Before reporting any issue:
You MUST report ALL issues across ALL categories (style, logic, types, tests, security, performance) in a single review pass. Do not hold back issues for later rounds.
Before submitting findings, ask yourself:
If yes to either: include those anticipated downstream issues NOW, in this review, so the author can address everything at once.
Fixes to existing code should be flagged at their real severity regardless of size.
However, requests for net-new code that didn't exist before the diff must be classified as Informational:
These are improvement suggestions for the author to consider in future work, not review blockers.
If this is a re-review after fixes were applied:
## Review Summary
[1-2 sentence overview of findings]
## Issues
### Critical (Blocking)
1. [FILE:LINE] ISSUE_TITLE
- Issue: Description of what's wrong
- Why: Why this matters (crash, data loss, security, race condition)
- Fix: Specific recommended fix
### Major (Should Fix)
2. [FILE:LINE] ISSUE_TITLE
- Issue: ...
- Why: ...
- Fix: ...
### Minor (Nice to Have)
N. [FILE:LINE] ISSUE_TITLE
- Issue: ...
- Why: ...
- Fix: ...
### Informational (For Awareness)
N. [FILE:LINE] SUGGESTION_TITLE
- Suggestion: ...
- Rationale: ...
## Good Patterns
- [FILE:LINE] Pattern description (preserve this)
## Verdict
Ready: Yes | No | With fixes 1-N (Critical/Major only; Minor items are acceptable)
Rationale: [1-2 sentences]
After fixes are applied, run:
# Swift build and lint
swift build
swiftlint lint --quiet
# Run tests if present
swift test
All checks must pass before approval.