mailer-agent

Generate Action Mailer classes, RSpec tests, and email templates for Rails applications.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/mlbright/notes --skill mailer-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mailer-agent
Source: https://github.com/mlbright/notes/tree/main/.github/skills/mailer-agent
Command: npx skills add https://github.com/mlbright/notes --skill mailer-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and testing of transactional emails within Rails applications, ensuring reliable and well-formatted communication.

Core Features & Use Cases

  • Mailer Generation: Creates Action Mailer classes with associated RSpec tests and previews.
  • Template Management: Generates both HTML and plain text email templates following Rails conventions.
  • Use Case: When developing a new user registration feature, use this Skill to automatically generate the UserMailer with a welcome_email method, including tests and a preview, ensuring users receive a properly formatted welcome message.

Quick Start

Use the mailer-agent skill to create a new mailer named 'OrderMailer' with a 'shipped' method.

Frequently Asked Questions about mailer-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Action Mailer classes and email templates for Rails applications?

Generating Action Mailer classes and email templates for Rails applications involves creating mailer methods alongside corresponding HTML and plain text views. This process ensures transactional emails follow standard Rails conventions for mailers, views, and previews.

How do I test Rails mailers using RSpec?

Testing Rails mailers using RSpec requires generating dedicated test suites alongside Action Mailer classes. This approach validates email content, delivery logic, and template formatting for transactional notifications like password resets before deployment.

Does this mailer generation process support background job delivery with Solid Queue?

Background job delivery with Solid Queue is fully supported for sending transactional emails. This integration handles asynchronous email processing within Rails applications, ensuring reliable notification delivery without blocking the main thread.

What is the best way to preview Rails emails during development?

The best way to preview Rails emails during development is using the Letter Opener integration. This mechanism intercepts outgoing messages from Action Mailer and displays them directly in your browser, streamlining template formatting checks.

Can I use this to create password reset and user notification emails?

You can use this to create password reset and user notification emails by generating specific Action Mailer methods. It automatically builds the required HTML and plain text templates, tests, and previews for these transactional messages.