Ns setup email

From Melvynx/saveit.now · View interactive version

Ns setup email is an AI agent skill from the GitHub repository Melvynx/saveit.now. Configure and verify NowStack Mobile transactional email with Resend and Convex. Use for sender/domain setup, OTP delivery, password/reset messages, production email credentials, or deliverability failures.

How to use this skill

Skill file

Setup Email - NowStack Mobile

<objective>

Configure a deployment-specific verified sender and prove a real transactional email from the actual Better Auth/Convex path.

</objective>

<required_reads>

Read convex/auth.ts, convex/emailActions.ts, convex/emailTemplates.ts, convex/siteConfig.ts, site-config.ts, and .agents/rules/auth-payments-storage.md before editing.

</required_reads>

<workflow>

  1. Choose development or production explicitly. Never copy a dev API key into production.
  2. Confirm the sender domain and From address belong to the product. Obtain DNS values from Resend and present exact records; DNS mutation needs separate authorization.
  3. Create a least-privilege deployment-specific Resend key. Read it silently and set it through stdin:
read -rsp "Resend API key: " RESEND_API_KEY; echo
printf '%s' "$RESEND_API_KEY" | npx convex env set <optional --prod> RESEND_API_KEY
unset RESEND_API_KEY
printf '%s' 'Product <hello@example.com>' | npx convex env set <optional --prod> EMAIL_FROM
  1. Wait for provider DNS verification and read it back. Do not claim propagation from local DNS alone.
  2. Trigger email OTP through the real signed-out app/web flow to a controlled inbox. Verify provider event, Convex logs, inbox delivery, links/code, sender, subject, and no secret/PII logging.
  3. Run ns-check-setup for the target deployment.

</workflow>

<boundaries>

App Review credentials are a separate private no-delivery path and must not reuse an email delivery key. Production proof without Resend/provider access is NOT VERIFIABLE.

</boundaries>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.