What the agent does
The welcome, verification, receipt and reset emails are often the first thing a new user of the production site sees after signing up. Review every email the app sends and make them consistent, readable in Gmail, Outlook and Apple Mail (light and dark), and safe from common template bugs.
1. Inventory
List every email the app sends, what triggers it, the template file and the sending code. Note duplicates, emails with no plain-text part, and emails built by string concatenation.
2. One template system
Move emails to one shared layout (the project's email library if it has one, such as React Email, MJML or the framework's mailer views): header, body, one clear button, footer with the company name and address where the law asks for it. Escape every value that comes from users (names, product names) so it cannot inject markup.
3. Readable everywhere
Use table-based or library-generated HTML that survives Outlook, inline styles, a max width near 600px, readable font sizes, and colors that work in dark mode (avoid pure black text on transparent backgrounds and logos that disappear on dark). Always include a plain-text part.
4. Senders and links
From addresses on the site's domain with a recognizable name, a Reply-To that reaches a person, absolute HTTPS links, and subject lines that say what the email is. Add a way to preview each template locally with sample data.
Done means
- Every email the app sends is listed with its trigger and template.
- All emails share one layout, escape user values and include a plain-text part.
- Templates render well in light and dark mode at mobile width.
- From and Reply-To addresses are on the domain, and every template can be previewed locally.
Questions
Why does Outlook break my email?
Outlook on Windows renders email with an old engine that ignores much modern CSS. Table layouts and inline styles, or a library that generates them, are the reliable fix.
Do I need a plain-text version?
Yes. Some clients and many spam filters prefer it, and it is what screen readers and watches often show.
Why escape user values in emails?
A user can name their product or profile with HTML. Unescaped, that markup lands in emails other people receive.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.