firefox-extension
Installation
SKILL.md
Objective: Use this skill to reduce CSP-violation rejections, manifest-schema breakages, AMO-review failures, and cross-browser compat bugs by enforcing manifest-version discipline, CSP-safe patterns, and web-ext-verification rules below.
Firefox WebExtension Development
Core Rules (do X because Y)
- Use
browsernamespace because it is Promise-based natively in Firefox, avoiding callback boilerplate. - Pin
manifest_version: 3for new extensions because MV2 is sunsetting and AMO warns on new MV2 submissions. - Always include
browser_specific_settings.gecko.idbecause AMO rejects extensions without a unique ID. - Set
strict_min_version: "109.0"for MV3 because service workers and theactionAPI require Firefox 109+. - Use
web-ext run --profile-create-newfor testing because stale profile state causes false positives.
See references/apis.md for the complete WebExtension API namespace list (51 APIs) and usage patterns.
Manifest V3 Rules
See references/manifest-v3.md for the full MV3 manifest schema reference.