Chrome Extension Service Worker Expert
Implements robust Manifest V3 service worker logic, focusing on lifecycle management, state persistence, and event-driven architecture.
The Chrome Extension Service Worker skill provides specialized guidance for developing Manifest V3 (MV3) background scripts. Because MV3 service workers are ephemeral and terminate after periods of inactivity, this skill ensures developers follow critical architectural patterns such as synchronous top-level listener registration and state rehydration via chrome.storage. It helps developers avoid common pitfalls like using unreliable setTimeout calls for long-running tasks or losing global variables, offering clear implementation strategies for chrome.alarms and offscreen documents when DOM access is required.