
hot reloading for chrome extensions
Set up hot-reloading for chrome extensions. Provides a zero-dependency solution for automatic extension refreshing during development.
- Installs
- 39
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/paulirish/dotfiles --skill hot-reloading-for-chrome-extensions- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads hot reloading for chrome extensions automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Hot Reloading for Chrome Extension Development
Provide a zero-dependency hot-reloading system for Manifest V3 (MV3) extensions. This system enables automatic extension and tab refreshing whenever source files change, eliminating the need for manual reloads in chrome://extensions.
How It Works
The system consists of a server-side watcher and a client-side listener:
- The Watcher (Node.js): Runs on the developer's machine. It uses native
fs.watchto monitor the project directory and exposes a Server-Sent Events (SSE) endpoint (/events). When a file change is detected, it broadcasts a "reload" signal. - The Client (JavaScript): Injected into the extension's background service worker. It connects to the watcher server using
EventSource. Upon receiving a "reload" signal, it reloads any open extension tabs (options pages, popups) and then callschrome.runtime.reload()to refresh the extension itself.
Implementation Guide for the Agent
To implement hot reloading in the current project, follow these steps:
1. Copy the Source Files
Copy the following files from the skill's examples/ directory into the project root or a designated tools/ directory:
examples/hot-reload-server.mjs->hot-reload-server.mjsexamples/hot-reload-client.js->hot-reload-client.js
2. Configure the Background Script
Update the extension's background service worker (e.g., service-worker.js) to import the client script. This should be the first line in the file:
importScripts('hot-reload-client.js');
3. Update Permissions
Ensure the manifest.json includes management (to detect development mode) and tabs (to refresh open extension pages):
{
"permissions": [
"management",
"tabs"
]
}
4. Provide Execution Instructions to the User
Inform the user to start the watcher server in their terminal:
node hot-reload-server.mjs
Additional Resources
Examples
Working configuration and implementation scripts in examples/:
examples/hot-reload-server.mjs- The Node.js watcher server (to be copied to the project).examples/hot-reload-client.js- The extension-side client (to be copied to the project).
FAQ
What does the hot reloading for chrome extensions skill do?
Set up hot-reloading for chrome extensions. Provides a zero-dependency solution for automatic extension refreshing during development.
How do I install hot reloading for chrome extensions?
Run npx skills add https://github.com/paulirish/dotfiles --skill hot-reloading-for-chrome-extensions in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/hot-reloading-for-chrome-extensions/ (personal) or .claude/skills/hot-reloading-for-chrome-extensions/ (project).
Which AI agents can use hot reloading for chrome extensions?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is hot reloading for chrome extensions safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains hot reloading for chrome extensions?
It is published by paulirish in paulirish/dotfiles. It has 39 recorded installs.
More from paulirish/dotfiles
modern-css
paulirish/dotfiles
Specialized knowledge for writing modern high-quality CSS. Trigger this skill when starting a new CSS project/file, when the user asks about new CSS features (e.g. Masonry, View Transitions, Container Queries, Scroll-driven animations), or requests refactoring of legacy styles to modern standards.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.