How-to · Business Operations · By Resend

How to use Email Best Practices in your AI agent

Install and use the Email Best Practices skill in Claude Code, Cursor, Codex, Gemini CLI, OpenCode, and Windsurf — with sample prompts.

What you'll get

This skill helps you set up and manage email features in your product — from password resets and user confirmations to newsletters and promotions. It covers authentication setup (SPF/DKIM/DMARC), legal compliance (GDPR, CAN-SPAM), email capture best practices, and how to handle bounces and delivery tracking. Whether you're launching your first transactional emails or fixing spam issues, this skill guides you through the technical and legal essentials.

Step 1 — Get the skill source URL

The Email Best Practices skill lives at:

Step 2 — Add it to your AI agent

Copy one of these prompts and paste it into your AI tool. The agent will fetch and install the skill for you.

Claude Code

Add the agent skill from https://github.com/resend/resend-skills/tree/main/skills/email-best-practices to my project.

Cursor

Install this agent skill: https://github.com/resend/resend-skills/tree/main/skills/email-best-practices

Codex

Add this skill to .codex/skills/: https://github.com/resend/resend-skills/tree/main/skills/email-best-practices

Gemini CLI

Add the skill at https://github.com/resend/resend-skills/tree/main/skills/email-best-practices to my .gemini/skills/ directory.

OpenCode

Install this agent skill from https://github.com/resend/resend-skills/tree/main/skills/email-best-practices

Windsurf

Add this skill: https://github.com/resend/resend-skills/tree/main/skills/email-best-practices

Step 3 — Try these prompts

Once the skill is installed, ask your AI things like:

  • Adding email features to your product and need to understand what emails to build
  • Your emails are landing in spam and you need to fix deliverability
  • Launching a newsletter or marketing emails and need to stay compliant
  • Set up password resets, email verification, or other user notifications

What this skill does

  • Guides you through setting up email authentication (SPF/DKIM/DMARC) to prevent emails from going to spam
  • Explains how to build compliant email capture forms with proper consent and double opt-in
  • Provides a catalog of common transactional emails (password resets, confirmations, receipts) your app might need
  • Helps you understand legal requirements for marketing emails (GDPR, CAN-SPAM, CASL)
  • Shows you how to handle bounces, complaints, and maintain clean email lists
Made byResend
CategoryBusiness Operations