dual-edition-module-migration
Installation
SKILL.md
Dual Edition Module Migration
When to apply
- A module must exist in both open-source and enterprise editions
- The user mentions
src/opensource,enterprise/, Vite overlay, or edition-specific behavior - A shared module needs to stay under
src/opensource/..., but enterprise behavior must override it - Old
src/variant/...orsrc/opensource/variant/...facades need to be removed - A migration must preserve the
src/opensourceimport boundary
Core invariants
1. src/opensource is the shared source of truth
- Code under
src/opensource/is the default implementation src/opensource/must not import commercial code- If open-source needs a dependency, migrate that dependency too or degrade the feature
- If a file under
src/opensource/orenterprise/src/opensource/imports a module outside theopensourcetree, move that dependency into the currentopensourceclosure instead of keeping a shim - Do not pull private infrastructure such as
keewoodClientorteamshareClientintosrc/opensource