mail

mail is a skill for Claude Code from filipebraida/adonisjs-starter-kit. It costs 107 tokens per session (2,343 once invoked), scanned A, original, MIT.

A set of rules for sending transactional email from an AdonisJS application, including mail classes, MJML templates, shared layouts, and test fakes. Transactional email means automatic messages such as notifications or password-reset emails.

In plain words
What is it for?
Use it when adding or editing an email, testing mail delivery, creating time-limited links, or connecting email sending to application events.
Why use it?
It keeps email structure and styling consistent and avoids hand-written HTML and CSS in every message. It also separates email sending from application actions, making tests easier to control.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when adding or editing an email, testing mail delivery, creating time-limited links, or connecting email sending to application events.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/filipebraida/adonisjs-starter-kit/mail
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 filipebraida/adonisjs-starter-kit --skill mail
Clone the repo
git clone --depth 1 https://github.com/filipebraida/adonisjs-starter-kit

Made for: Claude Code.

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 mail

README.md
[![agentmods](https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/mail/github.svg)](https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/mail)
Your own site
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/mail"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/mail/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 mail

Your own site · 80×15
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/mail"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/mail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00107 $0.02343
Opus 5.5 $0.00043 $0.00937
Sonnet 5.5 $0.00021 $0.00469
Haiku 4.5 $0.00011 $0.00234

Measured 12d ago against content hash b1a76c2ae143, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mail scanned grade A with 0 findings 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 12d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skills/mail/SKILL.md · 144 lines

How it starts

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

Mail

Emails are classes that extend @adonisjs/mail's BaseMail. The prepare() method sets recipients, subject, and calls this.message.htmlView('<mod>::emails/<template>', {...}). Templates are .edge files at app/<mod>/ui/emails/<name>.edge that consume a shared @email.layout component. The layout owns fonts, colors, button styles, header, and footer; each template only fills the body slot. Raw <html><head><style> blocks are never authored — MJML with the shared layout is mandatory. Emails are never sent from actions or listeners: the action emits a domain event, its listener schedules a durable workflow, and the workflow calls mail.send(...) inside a checkpointed ctx.localStep that retries while the provider is down (see [[actions-events]]).

Rules

  • Mail class location: app/<mod>/mails/<name>_notification.ts — one file per email.
  • Class shape: extends BaseMail, declares from = env.get('EMAIL_FROM'), sets subject either as a class field or dynamically in prepare() from a translations field.
  • prepare() does all the work: build any URL with urlFor(..., { prefixUrl: env.get('APP_URL') }), call this.message.to(recipient).subject(...), then render with htmlView('<mod>::emails/<template>', props). Always spread ...mailContext() into props so the layout has appName + appUrl.
  • Templates live at app/<mod>/ui/emails/<name>.edge. Every template opens with @email.layout({ title, preview: subtitle }) and closes with @end. Between them, only <mj-section> markup — body, button, text.
  • Shared MJML layout is the single source of truth for typography, colors, header, footer. Change once, all emails update.
  • mailContext() returns { appName, appUrl } from env with a fallback name. Every mail class spreads it into htmlView props so the layout can render brand chrome.
  • Env: EMAIL_FROM required; APP_NAME optional (has a fallback); APP_URL required. SMTP vars for local dev (typically Mailpit) and the prod driver's API key (e.g. RESEND_API_KEY).
  • i18n is resolved before the mail is built. The action translates with the request's i18n into a MailBasicTranslation (#core/types/mail: subject, title, subtitle, actionBtn, defaultMessage) — plain strings that travel in the event and the workflow input. The mail class never looks up keys, so the run replays with the same text. Keys live per module under <mod>.emails.<name>.{subject,title,subtitle,action_btn,default_message} in every locale JSON — see [[i18n]].
  • Sent from a workflow step: await mail.send(new XNotification(...)) inside ctx.localStep('mail', ..., { retries: 5, backoff: 'exp', backoffMs: 1000 }), after reloading the recipient by id. Workflows whose input carries a secret (reset token, invite link) are listed in MAIL_WORKFLOWS in config/durable.ts so retention purges their runs quickly.

Read the full file on GitHub · 144 lines

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. 12d ago Changed b1a76c2ae143
  2. 20d ago Changed · +16 lines 488488b32949
  3. 3mo ago First seen · 128 lines · 107 tokens per session scan A b85891001d7b

Subscribe to this mod's changes

mail is a skill published in the GitHub repository filipebraida/adonisjs-starter-kit (99 stars, last pushed 6d ago), licensed MIT. It adds 107 tokens to every session and 2,343 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mail compared with skills from other repositories

mail next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mailfilipebraida/adonisjs-starter-kitSkill996d agoMITA107Claude Code
calendarcnvmnog/calendarcnSkill1685d agoMITA76Claude Code, Codex
ui-beatsnikhils4/ui-beatsSkill2363mo agoMITA62Claude Code, Codex
declare-typesone-ie/oneSkill1353d agononeA49Claude Code, Codex
sdkone-ie/oneSkill1353d agononeA34Claude Code
react-doctorshipkit-io/bonesSkill213d agononeA31Claude Code, Codex
auth-setupfirtoz/cf-multiworker-starter-kitSkill121mo agononeA39Claude Code, Codex