build-chrome-extension
Installation
SKILL.md
Build Chrome Extension
Build, debug, package, and ship Chrome Manifest V3 extensions. Optimize for restart-safe service workers, isolated content scripts, least-privilege permissions, and Web Store review readiness.
When To Use
Trigger when the request matches any of:
- creating a new Chrome MV3 extension or scaffolding from a framework (WXT, Plasmo, CRXJS, Vite)
- editing or generating
manifest.jsonwithmanifest_version: 3,service_worker,content_scripts,host_permissions,action, orside_panelfields - implementing or debugging
chrome.runtime,chrome.storage,chrome.alarms,chrome.scripting,chrome.tabs,chrome.declarativeNetRequest,chrome.sidePanel, orchrome.offscreenAPIs - fixing MV3 service-worker lifecycle issues: idle termination, top-level listener registration, async
onMessagereturns,chrome.alarmsvssetInterval - bridging content scripts between ISOLATED and MAIN worlds, or routing fetches through the service worker for cross-origin host permissions
- migrating an MV2 extension to MV3 (background page → service worker, blocking
webRequest→declarativeNetRequest, browser_action → action) - validating a built
dist/or.output/chrome-mv3/folder, packaging the Web Store zip, writing privacy/permission justifications, or preparing review notes - choosing or comparing Chrome MV3 frameworks for a new project
Do NOT use this skill when: