browser-extension

Develop Manifest V3 browser extensions with persistent state management.

Updated Oct 30, 2025
One-click install
npx skills add https://github.com/HexAI-inc/v0-futuristic-website-design --skill browser-extension-hexai-inc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: browser-extension
Source: https://github.com/HexAI-inc/v0-futuristic-website-design/tree/main/.agents/skills/maestro/skills/browser-extension
Command: npx skills add https://github.com/HexAI-inc/v0-futuristic-website-design --skill browser-extension-hexai-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a robust framework and strict guidelines for developing advanced, secure, and persistent browser extensions, specifically addressing common pitfalls like Service Worker termination and state management in Manifest V3.

Core Features & Use Cases

  • Manifest V3 Compliance: Ensures all extensions adhere to the latest security and architecture standards.
  • State Persistence: Implements strategies (Alarms, Offscreen API, chrome.storage, IndexedDB) to prevent data loss in ephemeral Service Workers.
  • Security Best Practices: Enforces least privilege permissions, secure content script communication, and declarative network request rules.
  • Use Case: Develop a browser extension that monitors website changes, saves user preferences persistently, and provides a seamless side panel interface, all while maintaining high security and reliability.

Quick Start

Use the browser-extension skill to create a Manifest V3 compliant extension with a persistent service worker that saves user preferences to chrome.storage.local.

Frequently Asked Questions about browser-extension

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent a Manifest V3 service worker from losing state when it terminates?▼

Prevent state loss in a Manifest V3 service worker by persisting data using chrome.storage, IndexedDB, and the Offscreen API. You can also utilize Alarms to schedule periodic tasks and ensure robust state management across service worker lifecycles.

What is the best way to build a secure browser extension with least privilege permissions?▼

The best way to build a secure browser extension is by enforcing least privilege permissions and using declarative net requests for network rules. Secure content script communication is also essential to adhere to strict Manifest V3 security standards.

How do I save user preferences persistently in a Chrome extension side panel?▼

To save user preferences persistently in a Chrome extension, write them to chrome.storage.local. This ensures data remains available across browser sessions even when the background service worker becomes inactive or terminates.

Does the Offscreen API work with Manifest V3 service workers for DOM processing?▼

Yes, the Offscreen API works with Manifest V3 service workers to handle DOM processing and complex tasks off the main thread. It enables persistent background logic by interacting with offscreen documents without blocking extension performance.

When do I need declarative net requests in a browser extension?▼

You need declarative net requests in a browser extension when modifying or blocking network traffic securely. This Manifest V3 approach replaces imperative background event listeners, ensuring network rules are evaluated efficiently without persistent service workers.