actionmailer-baseline
CommunityProduction-grade ActionMailer setup for Rails 8 apps.
System Documentation
What problem does it solve?
AI coding agents frequently implement ActionMailer incorrectly for Rails applications, leading to blocked request threads from synchronous email sends, duplicate emails on job retries, poor sender reputation from unhandled bounces, and broken email templates that fail spam checks. This skill provides senior Rails developer-approved patterns to eliminate these common production failures.
Core Features & Use Cases
- Async Default Delivery: Enforces
deliver_laterfor all user-facing request paths to avoid blocking user responses, with clear guidance on when synchronousdeliver_nowis appropriate. - Production Vendor Integration: Pre-configured setup for Postmark, SendGrid, AWS SES, and Mailgun with decision matrices to match your app's scale and compliance needs.
- Bounce & Complaint Handling: Webhook routing and mailer interceptor patterns to suppress sends to undeliverable addresses and protect your domain's sender reputation.
- Idempotent Transactional Sends: Guard patterns to prevent duplicate password reset and welcome emails on job retries, using sent-at tracking columns.
- Development Tooling: Mailer previews and Letter Opener configuration to inspect rendered emails locally without sending real messages.
- Test Coverage: RSpec patterns for mailer specs, job specs, and request specs using
have_enqueued_mailmatchers to validate email behavior. - i18n Support: Locale-aware subject and body rendering for multi-language user bases. Use case: A SaaS app sending password reset emails can use this skill to implement async delivery, bounce handling, and idempotent tokens to avoid duplicate resets and maintain deliverability.
Quick Start
Use the actionmailer-baseline skill to configure async transactional email delivery with bounce handling and mailer previews for your Rails 8 application.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: actionmailer-baseline Download link: https://github.com/sandeepmvl/rails-skills/archive/main.zip#actionmailer-baseline Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.