background-processing

Featured

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.

AI & Automation 719 stars 68 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
95
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Background Processing Generator 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. ## When This Skill Activates Use this skill when the user: - Asks to "add background processing" or "background tasks" - Mentions "BGTaskScheduler" or "BGAppRefreshTask" or "BGProcessingTask" - Wants "background refresh" or "periodic background updates" - Asks about "background downloads" or "background uploads" - Mentions "silent push" or "content-available push notifications" - Wants data to sync or update while the app is in the background - Asks about "background fetch" or "background execution" ## Pre-Generation Checks ### 1. Project Context Detection - [ ] Check deployment target (BGTaskScheduler requires iOS 13+) - [ ] Check Swift version (requires Swift 5.9+) - [ ] Check for @Observable support (iOS 17+ / macOS 14+) - [ ] Identify source file locations ### 2. Existing Background Task Detection 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: - Ask if user wants to replace or augment it - If augmenting, identify what is missing and generate only those pieces ### 3. Info.plist C...

Details

Author
rshankras
Repository
rshankras/claude-code-apple-skills
Created
10 months ago
Last Updated
1 months ago
Language
Swift
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

background-processing

Schedule and execute background work on iOS using BGTaskScheduler. Use when registering BGAppRefreshTask for short background fetches, BGProcessingTask for long-running maintenance, BGContinuedProcessingTask (iOS 26+) for foreground-started work that continues in background, background URLSession downloads, or background push notifications. Covers Info.plist configuration, expiration handling, task completion, and debugging with simulated launches.

3 Updated 5 days ago
thiennc-tesoglobal
AI & Automation Listed

backgroundtasks

Route BackgroundTasks implementation tasks to the correct Knowledge Contracts -- background task registration and scheduling, task execution and expiration handling, processing task constraints and conditions, and background refresh and widget timeline hookup. Use when registering a task identifier with BGTaskScheduler.register(forTaskWithIdentifier:using:launchHandler:), declaring BGTaskSchedulerPermittedIdentifiers, submitting a BGAppRefreshTaskRequest/BGProcessingTaskRequest, reading earliestBeginDate, handling a BGTask/BGAppRefreshTask/BGProcessingTask in a launch handler, setting expirationHandler, calling setTaskCompleted(success:), setting requiresNetworkConnectivity/requiresExternalPower, or scheduling background refresh that feeds a widget. v1 is BGTaskScheduler-based scheduling and execution only -- no BGContinuedProcessingTask, no legacy Background Fetch (setMinimumBackgroundFetchInterval, performFetchWithCompletionHandler), no unrelated background modes (background audio, background location, VoIP

1 Updated today
caglarbaranbora
Code & Development Solid

background-execution

Writes and reviews Swift code for background execution on Apple platforms - BGTaskScheduler (app refresh, processing, continued processing), beginBackgroundTask assertions, background URLSession downloads/uploads, silent and VoIP push, background modes (audio, location, BLE), the SwiftUI .backgroundTask modifier, and macOS schedulers. Use when scheduling deferred work, finishing work after the app backgrounds, transferring files in the background, waking the app via push, or debugging background tasks that never run.

10 Updated 3 days ago
n0an