Android background work
Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/android-background-work
Standards for WorkManager and Background Processing. Use when creating Worker classes, scheduling tasks with WorkManager, choosing between WorkManager and Foreground Services, or setting up Hilt in workers. (triggers: **/*Worker.kt, CoroutineWorker, WorkManager, doWork, PeriodicWorkRequest, OneTimeWorkRequest, @HiltWorker)From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill android-background-workAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.2 KB, 174 tokens by cl100k_base, as published. Nobody here has run it
Android Background Work Standards
Priority: P1
Implementation Guidelines
WorkManager
- CoroutineWorker: Use for all background tasks.
- Constraints: Be explicit (Require Network, Charging).
- Hilt: Use
@HiltWorkerfor DI integration. Inject dependencies via@AssistedInjectconstructor; bind withHiltWorkerFactoryinWorkManagerconfiguration.
Foreground Services
- Only When Necessary: Use generating visible notifications only for tasks the user is actively aware of (Playback, Calls, Active Navigation). Otherwise use WorkManager.
Anti-Patterns
- No IntentService: Deprecated. Use WorkManager for all background tasks.
- No Short Background Jobs: Use Coroutines in ViewModel scope instead.
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.