ship-email
Installation
SKILL.md
Scaffold complete email infrastructure — Resend setup, transactional templates, user segmentation, and an admin send UI. Reads the project first, plugs into existing auth and database.
Three things that silently break Resend integrations
- Domain not verified before going live. Resend sends from
@resend.devby default. Emails land in spam or get blocked entirely. Verify your domain in the Resend dashboard and confirm thefromaddress matches the verified domain before any emails go to real users. - Throwing on email failure. If
sendEmailthrows and you don't catch it, a welcome email failure crashes the signup flow. Email is fire-and-forget — always catch, always return{ success, error }, never throw. - Sending from a
noreplyaddress with noreply-to. Users hit reply when they have questions. If there's no monitored inbox on the other end, you lose them. SetreplyToto a real inbox even iffromisnoreply@.
Phase 1: Detect the Project
Before writing anything, read the codebase:
1.1 Stack Detection
- Framework: Next.js / Express / FastAPI / other?
- Database: Supabase / Prisma / Drizzle / Mongoose / raw SQL?
- Auth: What fields identify a user? (
clerk_user_id,email,id) - User table schema: What fields exist? (
email,name,credits,plan,created_at,last_active_at)