chrome-extension

Develop browser extensions with Manifest V3 and the WXT framework.

6|1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill chrome-extension-repairyourtech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chrome-extension
Source: https://github.com/RepairYourTech/cfsa-antigravity/tree/main/.agent/skill-library/stack/extensions/chrome-extension
Command: npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill chrome-extension-repairyourtech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and patterns for developing robust, production-ready browser extensions, particularly for Chrome's Manifest V3, while also supporting cross-browser compatibility.

Core Features & Use Cases

  • Manifest V3 Architecture: Covers service workers, content scripts, popups, side panels, and options pages.
  • Chrome APIs: Details usage of storage, tabs, messaging, alarms, and permissions.
  • WXT Framework: Demonstrates modern development patterns with hot module replacement and multi-browser builds.
  • Cross-Browser Compatibility: Addresses differences and best practices for Chrome, Firefox, Edge, and Safari.
  • Use Case: Develop a new Chrome extension that injects a custom UI into specific websites, communicates with a background service worker for data processing, and saves user preferences using chrome.storage.

Quick Start

Use the chrome-extension skill to create a new browser extension project using the WXT framework.

Frequently Asked Questions about chrome-extension

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

FAQPage Schema
How do I build a Chrome extension using Manifest V3 and a service worker?

To build a Chrome extension using Manifest V3, you implement a background service worker for event handling, define content scripts for DOM manipulation, and configure the manifest for required permissions. This approach supports cross-browser compatibility across Firefox, Edge, and Safari.

What is the best way to inject UI into a webpage without CSS conflicts?

The best way to inject UI without CSS conflicts is using Shadow DOM. By attaching a Shadow DOM root to your injected content script elements, you isolate the extension's styles from the host website's CSS, ensuring consistent rendering.

How do I use chrome.storage to save user preferences in a browser extension?

To save user preferences, use the chrome.storage API within your extension's service worker or options page. You configure the storage permission in your Manifest V3 file, allowing your extension to sync or locally persist user settings across browser sessions.

Does WXT framework support cross-browser extension development for Firefox and Safari?

Yes, the WXT framework supports cross-browser extension development for Firefox, Edge, and Safari. It provides multi-browser build configurations and abstractions over Manifest V3 differences, enabling a single codebase to compile for multiple browser targets.

How do content scripts and background service workers communicate in a WebExtension?

Content scripts and background service workers communicate using the chrome.runtime and chrome.tabs messaging APIs. The content script sends a message with user data or DOM events to the service worker, which processes the request and returns a response.

Can I use modern web development patterns like hot module replacement for browser extensions?

Yes, you can use modern web development patterns like hot module replacement for browser extensions by utilizing the WXT framework. WXT integrates HMR into the extension development workflow, automatically reloading content scripts and service workers upon code changes.