mailer-patterns

Generate Action Mailer classes with notification patterns and email templates.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/arthun01/achados-uesc --skill mailer-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mailer-patterns
Source: https://github.com/arthun01/achados-uesc/tree/main/.opencode/skills/mailer-patterns
Command: npx skills add https://github.com/arthun01/achados-uesc --skill mailer-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires solidqueue, actionmailer, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of minimal Action Mailer classes with notification patterns, simplifying the process of sending emails and managing notifications in Ruby on Rails applications.

Core Features & Use Cases

  • Minimal Mailers: Generates plain-text Action Mailer classes for transactional emails with inline CSS.
  • Notification Patterns: Bundles notifications into digest emails, reducing email fatigue.
  • Email Templates: Provides templates for creating .text.erb and .html.erb versions of emails.
  • Background Delivery: Utilizes deliver_later for asynchronous email delivery.
  • Use Case: A Rails developer can quickly create a mailer for sending notifications to users, such as comment mentions or new comment alerts.

Quick Start

Generate a new mailer for comment mentions with the command: rails generate mailer Comment mentioned.

Frequently Asked Questions about mailer-patterns

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

FAQPage Schema
How do I generate Action Mailer classes for email notifications in Ruby on Rails?

You can generate Action Mailer classes for email notifications by running a Rails generator command like `rails generate mailer Comment mentioned`. This creates minimal mailer classes with plain-text templates and inline CSS for transactional emails.

How do I bundle Rails email notifications into a digest to reduce email fatigue?

To reduce email fatigue, you can bundle Rails email notifications into digest emails using notification patterns. This approach groups multiple alerts, such as comment mentions, into a single email rather than sending individual messages for each event.

How does asynchronous email delivery work with Action Mailer and Solid Queue?

Asynchronous email delivery with Action Mailer and Solid Queue uses the `deliver_later` method to process emails in the background. This prevents email processing from blocking the main application thread and improves response times.

Do I need Ruby 3.3 and Rails 8.0 to use Solid Queue for background email delivery?

Yes, configuring Solid Queue for background email delivery requires Ruby 3.3+ and Rails 8.0+. These versions provide the necessary framework support for Solid Queue integration with Action Mailer's asynchronous delivery methods.

What is the best way to create text and HTML email templates in a Rails application?

The best way to create text and HTML email templates in a Rails application is by generating `.text.erb` and `.html.erb` files within the mailer views directory. This Skill provides templates to quickly scaffold these files for Action Mailer classes.

Why use plain-text Action Mailer classes with inline CSS for transactional emails?

Plain-text Action Mailer classes with inline CSS are used for transactional emails to ensure maximum compatibility across email clients. This minimal approach focuses on core content delivery without relying on complex external stylesheets.