opencoredev/email-sdk/email-sdk-migrate
Claude Code and agent skill by opencoredev/email-sdk
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "migrate Email SDK", "upgrade email-sdk to v1", "replace provider APIs with adapters", "fix sendBatch or recipientVariables", or wants an agent to inspect an application and perform an Email SDK version migration from current source and docs.
Install
npx vskill@latest install opencoredev/email-sdk/email-sdk-migrateSKILL.md
Email SDK Migration
Migrate an application from its installed Email SDK API to the target version using the exact package declarations and current migration docs. Treat this skill as a discovery-and-edit workflow, not a static codemod.
Establish the migration boundary
- Read the application package manifest and lockfile to identify the installed
@opencoredev/email-sdkversion. - Inspect the installed package exports, README, and
dist/*.d.ts. When working inside the Email SDK repository, inspectpackages/email-sdk/src/index.ts,types.ts,core.ts,errors.ts, andapps/fumadocs/content/docs/guides/migrate/instead. - Identify the target version requested by the user. Default to the latest stable version, not an unreleased local tree, unless the task explicitly targets repository source.
- Read the migration guide for every crossed major version. Prefer the exact installed declarations when prose and code disagree.
Audit before editing
Run the bundled scanner from the target application root:
Use its findings as leads, then inspect each call site. Do not blindly replace generic words such as provider in unrelated application code.
Also search for:
- wrapper modules that re-export Email SDK types
- queue payloads that persist old message shapes
- tests that assert legacy result aliases or error classes
- hooks, middleware, and plugins that read
event.provider - runtime validation schemas that duplicate old SDK fields
- docs and examples copied into the application
Plan the change in dependency order
Apply changes in this order:
- Update imports and explicit public types.
- Update client construction and adapter terminology.
- Update retry, fallback, idempotency, headers, and date shapes.
- Replace independent batches with
sendMany. - Replace per-recipient variables with
sendPersonalized. - Update result handling and the closed error union.
- Update hooks, middleware, plugins, queue payloads, tests, and local docs.
- Remove temporary compatibility imports after all callers use the new root API.
Use @opencoredev/email-sdk/compat only when the application cannot migrate atomically. Record every remaining compatibility warning as migration debt. Do not leave the compat subpath as the permanent integration.
Preserve delivery semantics
- Keep unknown-delivery fallback stopped unless duplicate delivery is explicitly acceptable.
- Preserve idempotency keys across queue retries and adapter fallback.
- Verify every fallback adapter supports all used fields and capabilities.
- Keep durable scheduling, queueing, cancellation, and persisted deduplication in the host application or a durable integration.
- Do not turn a provider-native
sendAtmigration into an in-process timer. - Do not send live email during migration unless the user separately approves a named test recipient.
Validate each migration phase
- Run the application typecheck after import/type changes.
- Run focused email tests after each behavior change.
- Run
email-sdk doctorfor configuration checks andemail-sdk send --dry-runfor no-network message validation. - Add or update tests with
memoryAdapter,failingAdapter, andcapturePluginfor retry, fallback, and lifecycle behavior. - Finish with the repository's full build/test gate.
Report:
- installed and target versions
- files changed
- every legacy surface removed
- any remaining
/compatusage - behavior changes requiring product review
- validation commands and results
- live checks intentionally not run
Resources
scripts/audit.mjsscans common v0 API spellings with file and line evidence.- The current hosted migration index is
https://email-sdk.dev/docs/guides/migrate. - The current package skill is
skills/email-sdk/SKILL.md.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/email-sdk-migrate/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/opencoredev/email-sdk/email-sdk-migrate)