browser-extension
Installation
SKILL.md
Browser Extension
Workflow
- Identify manifest version, target browsers, extension surfaces, permissions, and packaging scripts.
- Separate content scripts, background logic, popup UI, options pages, and shared utilities.
- Request the narrowest permissions that satisfy the feature.
- Treat webpage DOM, injected content, and messages as untrusted.
- Preserve compatibility with the repo's bundler and extension loading workflow.
Implementation Guidance
- Use explicit message schemas between content, background, and UI contexts.
- Handle tab lifecycle, reloads, missing permissions, and unavailable pages.
- Avoid injecting remote scripts or unsafe HTML.
- Keep storage migrations safe and version-aware.