Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates a Swift offline operation queue that persists mutations to disk and retries with exponential backoff on reconnect.
64% 86%+23 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 14 of 22 without it.
In a Swift project root that contains neither a `Sources/` nor an `App/` directory, into which output folder should offline queue files be generated?
Place generated files in a top-level `OfflineQueue/` directory
3 of 3 safety checks passed
Generate a production offline operation queue that persists API requests/mutations when offline, stores them to disk, and retries with exponential backoff when connectivity returns. Essential for apps that need offline-first behavior.
Use this skill when the user:
Search for existing networking/offline code:
Glob: **/*OfflineQueue*.swift, **/*OfflineOperation*.swift, **/*NetworkMonitor*.swift, **/*RetryPolicy*.swift
Grep: "NWPathMonitor" or "OfflineQueue" or "pendingOperations" or "offlineQueue"
If existing offline handling found:
Check for Network framework availability (required for NWPathMonitor). Available on iOS 12+ / macOS 10.14+, so effectively always available for our iOS 16+ / macOS 13+ targets.
Ask user via AskUserQuestion:
Next to this one in the catalogue, plus more from the same author.