app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive promotional strategy. Use when user…
Generates an offline operation queue with persistence, automatic retry on connectivity, and conflict resolution. Use when user needs offline-first behavior, queued mutations, or pending operations that sync when back online.
$ npx -y skills add rshankras/claude-code-apple-skills --skill offline-queue --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/offline-queueContext preview
The summary Claude sees to decide when to auto-load this skill.
Generates an offline operation queue with persistence, automatic retry on connectivity, and conflict resolution. Use when user needs offline-first behavior, queued mutations, or pending operations that sync when back online.
name: offline-queue description: Generates an offline operation queue with persistence, automatic retry on connectivity, and conflict resolution. Use when user needs offline-first behavior, queued mutations, or pending operations that sync when back online. allowed-tools: [Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion] last_verified: 2026-07-16 review_by: 2027-06-22 os_version: iOS 27 / macOS 27
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:
1. **Operation types?**
2. **Persistence strategy?**
3. **Retry strategy?**
4. **Conflict resolution?**
Read `patterns.md` for architecture guidance and conflict resolution strategies. Read `templates.md` for production Swift code.
Generate these files: 1. `OfflineOperation.swift` — Codable model for queued operations 2. `OfflineQueueManager.swift` — Actor managing enqueue, dequeue, process, retry 3. `QueuePersistence.swift` — Protocol + file-based implementation for saving operations 4. `NetworkMonitor.swift` — @Observable wrapper around NWPathMonitor
5. `RetryPolicy.swift` — Configurable backoff strategy with jitter
6. `OfflineQueueDashboardView.swift` — Debug view showing queue state and manual controls 7. `OfflineQueueModifier.swift` — ViewModifier showing "Offline" banner when disconnected
Check project structure:
After generation, provide:
OfflineQueue/ ├── OfflineOperation.swift # Codable operation model ├── OfflineQueueManager.swift # Actor-based queue manager ├── QueuePersistence.swift # Protocol + file-based persistence ├── NetworkMonitor.swift # NWPathMonitor wrapper ├── RetryPolicy.swift # Exponential backoff with jitter ├── OfflineQueueDashboardView.swift # Debug dashboard view └── OfflineQueueModifier.swift # Offline banner modifier
**Enqueue an operation when offline:**
// In your networking layer or repository
func createPost(_ post: Post) async throws {
guard networkMonitor.isConnected else {
let operation = OfflineOperation(
endpoint: "/api/posts",
httpMethod: .post,
body: try JSONEncoder().encode(post),
headers: ["Content-Type": "application/json"]
)
await queueManager.enqueue(operation)
return
}
// Normal online request
try await apiClient.post("/api/posts", body: post)
}**Transparent offline support with a wrapper:**
func performOrQueue<T: Codable>(
endpoint: String,
method: HTTPMethod,
body: T
) async throws {
let data = try JSONEncoder().encode(body)
if networkMonitor.isConnected {
try await apiClient.request(endpoint: endpoint, method: method, body: data)
} else {
let operation = OfflineOperation(
endpoint: endpoint,
httpMethod: method,
body: data
)
await queueManager.enqueue(operation)
}
}**Show offline banner in your app:**
struct ContentView: View {
var body: some View {
NavigationStack {
FeedView()
}
.offlineQueueBanner() // Shows "Offline — changes will sync" when disconnected
}
}**Add dashboard for debugging:**
#if DEBUG
NavigationLink("Offline Queue") {
OfflineQueueDashboardView()
}
#endif@Test
func operationEnqueuedWhenOffline() async throws {
let persistence = MockQueuePersistence()
let monitor = MockNetworkMoA collection of Claude Code skills for iOS, macOS, watchOS, visionOS, and Apple platform development. These skills help you plan and build apps, maintain code quality, ensure HIG compliance, and guide you from idea to App Store.
Repo: rshankras/claude-code-apple-skills
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive promotional strategy. Use when user…
Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution, conversion-value strategy under…
Generate compelling App Store descriptions that convert browsers into users. Use when writing initial descriptions, improving existing copy, or drafting…
Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budget planning, and ROAS optimization. Use when user asks about…
Take a one-time in-app purchase from MISSING_METADATA to READY_TO_SUBMIT in App Store Connect — set its price schedule and localized display name/description…
Optimize app title, subtitle, and keywords for maximum App Store discoverability. Use when launching a new app, improving search rankings, entering new…