Skills for Real Engineers. Straight from my .agents directory.
mailpit-integration
Agent skill fromAaronontheweb/dotnet-skills
Test email sending locally using Mailpit with .NET Aspire. Captures all outgoing emails without sending them. View rendered HTML, inspect headers, and verify delivery in integration tests.
How to install mailpit-integration
npx skills add Aaronontheweb/dotnet-skills# or add only this skill to Claude Code: copy the folder
skills/aspire-mailpit-integration/
# into
~/.claude/skills/aspire-mailpit-integration/ (all projects)
.claude/skills/aspire-mailpit-integration/ (one project)
1# Email Testing with Mailpit and .NET Aspire23## When to Use This Skill45Use this skill when:6- Testing email delivery locally without sending real emails7- Setting up email infrastructure in .NET Aspire8- Writing integration tests that verify emails are sent9- Debugging email rendering and headers1011**Related skills:**12- `aspnetcore/mjml-email-templates` - MJML template authoring13- `testing/verify-email-snapshots` - Snapshot test rendered HTML14- `aspire/integration-testing` - General Aspire testing patterns1516---1718## What is Mailpit?1920[Mailpit](https://github.com/axllent/mailpit) is a lightweight email testing tool that:21- Captures all SMTP traffic without delivering emails22- Provides a web UI to view captured emails23- Exposes an API for programmatic access24- Supports HTML rendering, headers, and attachments2526Perfect for development and integration testing.2728---2930## Aspire AppHost Configuration3132Add Mailpit as a container in your AppHost:3334```csharp35// AppHost/Program.cs36var builder = DistributedApplication.CreateBuilder(args);3738// Add Mailpit for email testing39var mailpit = builder.AddContainer("mailpit", "axllent/mailpit")40 .WithHttpEndpoint(port: 8025, targetPort: 8025, name: "ui")41 .WithEndpoint(port: 1025, targetPort: 1025, name: "smtp");4243// Reference in your API project44var api = builder.AddProject<Projects.MyApp_Api>("api")45 .WithReference(mailpit.GetEndpoint("smtp"))46 .WithEnvironment("Smtp__Host", mailpit.GetEndpoint("smtp"));4748builder.Build().Run();49```50…
Excerpt shown under the repository's MIT license.
More skills in dotnet-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Production-grade engineering skills for AI coding agents.
