Master specialized skill for building 2025/2026-grade browser extensions. Deep expertise in Manifest v3, Service Worker persistence (Alarms, Offscreen API), Side Panel API, and Cross-Browser compatibility.
<domain_overview>
Philosophy: Extensions are ephemeral, restricted, yet powerful. Persistence is an Art. Security is a Mandate. Design Constraint: For UI/UX, Aesthetics, and Layout, YOU MUST REFER TO THE
frontend-designSKILL. PERSISTENCE PARADOX GUARD (CRITICAL): Never rely on global variables or in-memory state in background scripts. AI-generated code frequently fails by assuming Manifest V3 service workers are persistent. They are NOT; they terminate after 30 seconds of inactivity. You MUST backup every piece of state tochrome.storageorIndexedDBimmediately upon change. This skill aims to eliminate "volatile-state" bugs typical of generic AI implementations. If data is not in durable storage, it does not exist. </domain_overview> <manifest_architecture>
All extensions must be built on Manifest v3. No exceptions.
"background": { "service_worker": "background.js" }.unsafe-eval is forbidden.optional_permissions where possible.action over browser_action or page_action.chrome.sidePanel for persistent, non-intrusive experiences.chrome.sidePanel.setOptions({ path: 'sidepanel.html', enabled: true }).
</manifest_architecture>
<persistence_engine>Service Workers sleep. You must keep the logic alive.
chrome.alarms to wake up the Service Worker every 1-5 minutes for background sync.offscreen API for tasks like DOM parsing, heavy calculations, or keeping the SW alive via periodic messaging.chrome.storage.session for transient session-only secrets.IndexedDB or chrome.storage.local for large datasets and persistent user data.
</persistence_engine>
<security_fortress>chrome.runtime.sendMessage.declarativeNetRequest for blocking/modifying headers. Only use webRequest as a fallback for Firefox if dynamic rules are critical.
</security_fortress>
<design_integration>Direct Instruction: You are an extension developer, not a designer. You must outsource the "Soul" of the UI.
frontend-design.Every extension build MUST pass the high-tier audit suite.
node scripts/js/manifest-auditor.js -> Clean?node scripts/js/persistence-check.js -> Heartbeat detected?node scripts/js/asset-master.js -> Assets optimized?playwright test -> All paths pass?frontend-design?Link: frontend-design </audit_and_reference>
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer