background-tasks
БесплатноБез исполняемых скриптовНе проверенApple BackgroundTasks framework for iOS/iPadOS background processing. Use when scheduling background work, refreshing app content, running long processing…
от nonameplum★ 17 звёзд на GitHubОб этом скилле
Background Tasks
Apple's BackgroundTasks framework for scheduling and running work while your app is suspended or backgrounded.
Choose the right task type
| Goal | Task class | Time limit | Trigger |
|---|---|---|---|
| Short content refresh | BGAppRefreshTask |
~30 seconds | System-decided |
| Heavy processing (ML, DB, sync) | BGProcessingTask |
Minutes | System-decided, device idle |
| Foreground job that must survive backgrounding | BGContinuedProcessingTask |
Unlimited | User action only |
| Health research data processing | BGHealthResearchTask |
Minutes | System-decided, device idle |
Limits: max 1 refresh task + 10 processing tasks schedulable at any time.
Decision tree
Setting up for the first time? →
references/setup.md(Info.plist keys, UIBackgroundModes, registration)Refreshing content periodically? →
references/app-refresh.md(BGAppRefreshTask, reschedule pattern)Running heavy background work? →
references/processing.md(BGProcessingTask, power/network requirements)Foreground task that must survive backgrounding? →
references/continued-processing.md(BGContinuedProcessingTask, GPU, progress, Live Activity)Managing task lifecycle (cancel, limits, pending tasks)? →
references/scheduling.mdHandling submit errors? →
references/error-handling.md(notPermitted, tooManyPendingTaskRequests, unavailable)Testing during development? →
references/testing.md(LLDB debugger commands, device-only limitation)
Key rules
- Register all launch handlers before
applicationDidFinishLaunchingreturns. - Always set
expirationHandler— missing it causes the system to silently mark the task failed. - Always call
setTaskCompleted(success:)— missing it may cause the system to kill your app. - Reschedule inside the launch handler, not after it returns.
BGContinuedProcessingTaskmust be submitted as a result of a user action; it starts in the foreground.
Reference files
references/setup.md— Info.plist, UIBackgroundModes, registrationreferences/app-refresh.md— BGAppRefreshTask patternreferences/processing.md— BGProcessingTask patternreferences/continued-processing.md— BGContinuedProcessingTask, GPU, progress reportingreferences/scheduling.md— earliestBeginDate, cancel, limits, pending task inspectionreferences/error-handling.md— BGTaskScheduler.Error codes and causesreferences/testing.md— LLDB simulation commandsreferences/_index.md— Full navigation indexbackgroundtasks.md— Full Apple API reference (raw docs)
Установить background-tasks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл background-tasks?
Apple BackgroundTasks framework for iOS/iPadOS background processing. Use when scheduling background work, refreshing app content, running long processing tasks, implementing BGAppRefreshTask, BGProcessingTask, BGContinuedProcessingTask, or dealing with BGTaskScheduler setup, registration, submission, expiration handlers, and debugger testing commands.
Как установить скилл background-tasks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл background-tasks запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic