browser-extension

Installation
SKILL.md

Browser Extension

Workflow

  1. Identify manifest version, target browsers, extension surfaces, permissions, and packaging scripts.
  2. Separate content scripts, background logic, popup UI, options pages, and shared utilities.
  3. Request the narrowest permissions that satisfy the feature.
  4. Treat webpage DOM, injected content, and messages as untrusted.
  5. 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.

Verification

Installs
2
Repository
yiweiwan/skills
GitHub Stars
1
First Seen
May 13, 2026
browser-extension — yiweiwan/skills