better-result Migrate v2 Upgrade error definitions from the v1 API to the v2 factory-based API. When to Use Use this skill when the user: - is upgrading from v1 to v2 - has classes that directly - still uses , , or - needs help rewriting constructor calls to the new object-based form Reading Order | Task | Files to Read | | ------------------------------------ | ---------------------------------- | | Plan and execute the migration | This file | | See concrete before/after transforms | | | Verify current library behavior | if present | Quick API Diff | v1 | v2 | | -----------------------------…