app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive promotional strategy. Use when user…
Generates background processing infrastructure with BGTaskScheduler, background refresh, background downloads, and silent push handling. Use when user needs background tasks, periodic refresh, background URLSession downloads, or silent push notification processing.
$ npx -y skills add rshankras/claude-code-apple-skills --skill background-processing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/background-processingContext preview
The summary Claude sees to decide when to auto-load this skill.
Generates background processing infrastructure with BGTaskScheduler, background refresh, background downloads, and silent push handling. Use when user needs background tasks, periodic refresh, background URLSession downloads, or silent push notification processing.
name: background-processing description: Generates background processing infrastructure with BGTaskScheduler, background refresh, background downloads, and silent push handling. Use when user needs background tasks, periodic refresh, background URLSession downloads, or silent push notification processing. 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 production background processing infrastructure -- BGTaskScheduler for periodic refresh and long-running tasks, background URLSession for downloads/uploads that survive app termination, and silent push handling for server-triggered updates.
Use this skill when the user:
Search for existing background task code:
Glob: **/*BackgroundTask*.swift, **/*BGTask*.swift, **/*BackgroundDownload*.swift Grep: "BGTaskScheduler" or "BGAppRefreshTask" or "BGProcessingTask" or "backgroundSession"
If existing background code found:
Search for existing background modes configuration:
Grep: "BGTaskSchedulerPermittedIdentifiers" or "UIBackgroundModes"
Check for push notification entitlements if silent push is needed:
Glob: **/*.entitlements Grep: "aps-environment"
Ask user via AskUserQuestion:
1. **What background processing do you need?**
2. **How often should background tasks run?**
3. **Does the task need network access?**
Read `templates.md` for production Swift code.
Generate these files: 1. `BackgroundTaskManager.swift` -- Central manager for registering and scheduling all background tasks 2. `BackgroundTaskConfiguration.swift` -- Info.plist keys, entitlements, and task identifier constants
Based on configuration: 3. `BackgroundDownloadManager.swift` -- If background downloads selected 4. `SilentPushHandler.swift` -- If silent push selected
Check project structure:
After generation, provide:
BackgroundProcessing/ ├── BackgroundTaskManager.swift # BGTaskScheduler registration & scheduling ├── BackgroundTaskConfiguration.swift # Task identifiers and Info.plist config ├── BackgroundDownloadManager.swift # Background URLSession downloads (optional) └── SilentPushHandler.swift # Silent push handling (optional)
**Register tasks at app launch (must happen before app finishes launching):**
@main
struct MyApp: App {
@UIApplicationDelegateAdaptor private var appDelegate: AppDelegate
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
class AppDelegate: NSObject, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
BackgroundTaskManager.shared.registerTasks()
return true
}
}**Schedule refresh when app enters background:**
struct ContentView: View {
@Environment(\.scenePhase) private var scenePhase
var body: some View {
NavigationStack {
FeedView()
}
.onChange(of: scenePhase) { _, newPhase in
if newPhase == .background {
BackgroundTaskManager.shared.scheduleAppRefresh()
}
}
}
}**Start a background download:**
func downloadAsset(from url: URL) {
BackgroundDownloadManager.shared.startDownload(from: url)
}**Handle silent push in AppDelegate:**
func application(
_ application: UIApplication,
didReceiveRemoteNotification userInfo: [AnyHashable: Any]
) async -> UIBackgroundFetchResult {
await SilentPushHandler.shared.handle(userInfo: userInfo)
}**Simulate background task in Xcode debugger (LLDB):**
e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"com.app.refresh"]
**Simulate expiration:**
e -l objc -- (void)[[BGTaskSchedule
A 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…