Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Chrome Extensions?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-chrome-extensions)
---
description: Build Chrome extensions on Manifest V3 with least permissions, service-worker lifecycle and safe messaging
profile: full
tags: chrome-extension, browser, frontend, security
---
# Chrome extensions
Use in projects with a `manifest.json` declaring `manifest_version: 3`.
## Manifest
- Request the narrowest permissions and host permissions; prefer `activeTab` and optional permissions.
- No remote code: all scripts are bundled.
## Architecture
- Background service workers are ephemeral: persist state in `chrome.storage`, not globals.
- Content scripts talk to the page only via messages; validate every message and sender.
## Security
- Never inject untrusted HTML; use a strict extension CSP.
- Treat page data as hostile.
## Verify
Load the unpacked build in Chrome, exercise the feature after the service worker has been stopped (chrome://serviceworker-internals) and confirm no console errors.