Agent Skills
› NeverSight/learn-skills.dev
› migrate-to-addfox
migrate-to-addfox
GitHub指导将现有浏览器扩展(如WXT、Plasmo等)迁移至Addfox框架,通过增量验证确保功能正常,提供入口映射及后续最佳实践与调试技能。
Trigger Scenarios
从 WXT、Plasmo 或 Vite 迁移到 Addfox
配置 addfox.config.ts
处理扩展入口文件映射
Install
npx skills add NeverSight/learn-skills.dev --skill migrate-to-addfox -g -y
SKILL.md
Frontmatter
{
"name": "migrate-to-addfox",
"version": "0.1.1",
"metadata": {
"tags": "addfox, migration, wxt, plasmo, extension-js, crxjs, browser-extension"
},
"description": "Migrate existing browser extensions from WXT, Plasmo, Extension.js\/CRXJS, or vanilla setups to Addfox with incremental validation."
}
Migrate to Addfox
Use this skill when moving an existing extension codebase to Addfox.
When to use
- Migrating from
wxt.config.tstoaddfox.config.ts - Migrating from Plasmo
contents/,popup.tsx,options.tsx - Migrating from Vite + custom manifest workflows
- Porting entry layout into Addfox
app/reserved folders
Migration workflow
- Keep behavior first, refactor later.
- Create
addfox.config.tswith minimal working manifest. - Map source entries to
app/background,app/content,app/popup,app/options. - Run
addfox buildafter each major step. - Validate extension loading in browser before optimization.
Entry mapping (quick view)
| Source | Target in Addfox |
|---|---|
| background entry | app/background/index.ts |
| content script | app/content/index.ts |
| popup page | app/popup/index.tsx |
| options page | app/options/index.tsx |
Follow-up skills
addfox-best-practicesfor ongoing architecture and config decisionsaddfox-debuggingfor build/runtime failures after migrationaddfox-testingfor regression test setup
Version History
- e0220ca Current 2026-07-05 23:17


