email-testing

email-testing is a skill for Claude Code, Codex from petrkindlmann/qa-skills. It costs 241 tokens per session (4,585 once invoked), scanned A, original, MIT.

A testing guide for email-based user flows, such as signup confirmation, password resets, magic-link login, one-time codes, and notifications. It explains how to capture test emails and extract links or codes for Playwright tests.

In plain words
What is it for?
Use it to test confirmation emails, password resets, magic links, OTP or MFA codes, local or hosted test inboxes, email previews, and basic SPF, DKIM, and DMARC checks.
Why use it?
Email-dependent tests often fail when they use fixed waiting times or the wrong inbox setup, especially in continuous integration. This guide helps choose an appropriate inbox and wait for messages reliably.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test confirmation emails, password resets, magic links, OTP or MFA codes, local or hosted test inboxes, email previews, and basic SPF, DKIM, and DMARC checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/petrkindlmann/qa-skills/email-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add petrkindlmann/qa-skills --skill email-testing
Clone the repo
git clone --depth 1 https://github.com/petrkindlmann/qa-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for email-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/email-testing/github.svg)](https://agentmods.dev/skills/petrkindlmann/qa-skills/email-testing)
Your own site
<a href="https://agentmods.dev/skills/petrkindlmann/qa-skills/email-testing"><img src="https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/email-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for email-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/petrkindlmann/qa-skills/email-testing"><img src="https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/email-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 241 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 13 Jun 2026
  • Snyk pass 13 Jun 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 166
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00241 $0.04585
Opus 5 $0.00120 $0.02292
Sonnet 5 $0.00048 $0.00917
Haiku 4.5 $0.00024 $0.00458

Measured 9d ago against content hash 698f97f4684e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

email-testing scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Capture is wired:** `curl -s localhost:8025/api/v1/messages | jq '.total'` returns a
skills/email-testing/SKILL.md · 349 lines

How it starts

The opening of the file, as written. The whole thing — 349 lines — stays where its author put it; the contents beside it link to each section on GitHub.


Quick Route

Situation Go to
Pick a capture tool "Capture-inbox decision tree" below
Poll an inbox without a sleep references/mailpit-playwright.md (polling helper)
Pull an OTP / link out of the body references/mailpit-playwright.md (extraction)
Full password-reset / signup / magic-link E2E references/mailpit-playwright.md
Real addresses on staging references/hosted-inboxes.md (Mailosaur)
Per-test throwaway inbox references/hosted-inboxes.md (MailSlurp)
Just preview a template locally references/hosted-inboxes.md (Ethereal)
Flag SPF/DKIM/DMARC problems references/deliverability.md
Tests pass locally, "no email yet" in CI "Flaky email in CI" below

Discovery Questions

Check .agents/qa-project-context.md first — if it exists, use it and skip anything answered there.

  • Where does the email need to be received? Local capture (Mailpit) covers most functional flows for free. A real, externally-deliverable address (staging, a third- party ESP, real DNS) means a hosted inbox (Mailosaur / MailSlurp). This is the single biggest tool-selection driver.
  • How parallel is the suite? High parallelism makes "the latest email" ambiguous — you need per-test unique addresses or per-test inboxes, not a shared mailbox.
  • Which flows? Signup confirmation, password reset, magic-link login, OTP/MFA, notification emails — they share one shape (capture, extract, complete) but differ in what you extract (link vs 6-digit code).
  • Is deliverability in scope? "Lands in inbox / passes SPF, DKIM, DMARC" is a separate non-blocking suite, not part of the functional OTP test. Decide upfront.
  • Local-only preview, or CI assertions? Previewing a template during dev is Ethereal; asserting in CI is Mailpit/Mailosaur/MailSlurp. Don't confuse the two.

Read the full file on GitHub · 349 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 349 lines · 241 tokens per session scan A 698f97f4684e

Subscribe to this mod's changes

email-testing is a skill published in the GitHub repository petrkindlmann/qa-skills (114 stars, last pushed 3mo ago), licensed MIT. It adds 241 tokens to every session and 4,585 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.