browser-extension-developer
Build cross-browser extensions with WXT
Browser extension projects often struggle with cross-browser compatibility and proper internationalization setup. This skill provides clear guidance for WXT-based extension development supporting Chrome, Firefox, and Edge with proper i18n structure.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "browser-extension-developer". How do I structure a WXT browser extension project?
Expected outcome:
- Create browser/entrypoints/ for background.ts and content.ts files
- Place i18n files in browser/public/_locales/[language]/messages.json
- Configure WXT in browser/wxt.config.ts
- Built extensions output to browser/.output/chrome-mv3 and firefox-mv2
Using "browser-extension-developer". Add Spanish locale to my extension
Expected outcome:
- Create folder browser/public/_locales/es/
- Add messages.json with keys: appDescription and openWithRepomix
- Run npm run build-all to regenerate locales
- Test in Chrome and Firefox for compatibility
Using "browser-extension-developer". What commands do I use for Firefox development?
Expected outcome:
- Use npm run dev:firefox for live development with hot reload
- Firefox uses MV2 manifest while Chrome uses MV3
- Run npm run build:firefox to build for Firefox store submission
- Polyfills may be needed for Firefox-specific APIs
Security Audit
SafeThis skill contains only documentation files with no executable code, network calls, or filesystem access. The static analysis flagged markdown code fences and JSON content as security issues, but evaluation confirms these are false positives. SKILL.md provides guidance for WXT-based browser extension development.
Risk Factors
⚙️ External commands (11)
🌐 Network access (1)
📁 Filesystem access (2)
Quality Score
What You Can Build
Set up cross-browser workflow
Configure WXT-based extension project with proper entrypoints for Chrome, Firefox, and Edge compatibility.
Manage multi-language support
Add new language locales following the documented i18n structure and required message keys.
Standardize build process
Establish consistent development and build commands across the team for browser extension projects.
Try These Prompts
Explain the browser/ directory structure for WXT extensions and where to place background scripts, content scripts, and configuration files.
Show me how to add a new language locale to the extension, including the required folder structure and message keys needed.
What commands build the extension for Chrome, Firefox, and Edge, and what are the key differences I should know?
List the essential npm commands for developing, testing, and linting WXT-based browser extensions.
Best Practices
- Keep background and content script responsibilities clearly separated
- Update all locale files when adding new message keys
- Test in both Chrome and Firefox during development
Avoid
- Modifying files in the .output directory directly
- Using browser-specific APIs without compatibility checks
- Adding incomplete locale files with missing required keys
Frequently Asked Questions
Which browsers does this skill support?
What are the main limitations?
Can I use this with existing extension projects?
Does this skill access my code or data?
How do I troubleshoot build failures?
How is this different from general extension tutorials?
Developer Details
Author
yamadashyLicense
MIT
Repository
https://github.com/yamadashy/repomix/tree/main/.claude/skills/browser-extension-developerRef
main
File structure
📄 SKILL.md