saasmail: Skill for Claude Code

.claude/skills/use-saasmail/SKILL.md

use-saasmail is a skill for Claude Code from choyiny/saasmail. It costs 112 tokens per session (2,903 once invoked), scanned A, original, Apache-2.0.

Instructions for sending transactional emails and managing drip sequences through a deployed saasmail HTTP API.

In plain words
What is it for?
Use it to send one-off or template-based emails, start recipient sequences, and manage existing enrollments.
Why use it?
It provides the requests and credentials needed to send messages or enroll recipients after a saasmail instance is running.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is choyiny/saasmail's own configuration. It tells Claude Code how to work on saasmail itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything saasmail configures →

Reuse

Borrowing it

Nothing to install: this file belongs to choyiny/saasmail. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/choyiny/saasmail/main/.claude/skills/use-saasmail/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/choyiny/saasmail

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 use-saasmail

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/choyiny/saasmail/use-saasmail"><img src="https://agentmods.dev/badge/skills/choyiny/saasmail/use-saasmail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,903 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
  • 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 Data Exfiltration · line 58
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00112 $0.02903
Opus 5.5 $0.00045 $0.01161
Sonnet 5.5 $0.00022 $0.00581
Haiku 4.5 $0.00011 $0.00290

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

Security

Grade A, and why

use-saasmail 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 21d 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.

**curl, no attachments:**
.claude/skills/use-saasmail/SKILL.md · 232 lines

How it starts

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

Using the saasmail HTTP API

saasmail is a self-hosted email server on Cloudflare Workers. Once a user has a deployed instance, they interact with it from their own apps over HTTP. This skill covers the three things callers do most:

  1. Send a one-off email (with or without attachments).
  2. Send an email rendered from a saved template.
  3. Enroll a person in a sequence (a multi-step drip campaign), and manage that enrollment.

If the user hasn't deployed saasmail yet, point them at /saasmail-onboarding first — without a running instance there's no API to call.

Two pieces of info you always need

Before writing any request, get these from the user (or confirm them):

  • Base URL — the host their instance is deployed at, e.g. https://mail.example.com. There is no shared SaaS endpoint; every instance is the user's own Worker.
  • API key — a string like sk_abc123.... Generated in the saasmail UI under Settings → API Keys (or POST /api/api-keys). It's shown once at creation. Send it as Authorization: Bearer sk_... on every request.

If the user hasn't created a key yet, tell them where to do it rather than guessing. Keys are gated behind a passkey in non-dev environments, so they may need to register a passkey first.

The other parameter that comes up in nearly every request is fromAddress. It must be one of the sender identities configured in that instance (the addresses the user verified during onboarding, like [email protected]). Sending from an unverified address returns a permission error — don't invent one.

1. Send a one-off email

POST /api/send — content type multipart/form-data (not JSON). The body has:

  • A payload field whose value is a JSON-encoded string of the email body.
  • Zero or more files fields, each an attachment.

This shape is unusual but deliberate: it lets the same endpoint handle plain sends and sends with attached files without a separate route.

Minimum payload

{
  "to": "[email protected]",
  "fromAddress": "[email protected]",
  "subject": "Welcome",
  "bodyHtml": "<p>Hello!</p>"
}

Read the full file on GitHub · 232 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. 21d ago Changed d1f4ee220cf9
  2. 2mo ago First seen · 232 lines · 112 tokens per session scan A 80ad461743b0

Subscribe to this mod's changes

use-saasmail is a skill published in the GitHub repository choyiny/saasmail (274 stars, last pushed 4d ago), licensed Apache-2.0. It adds 112 tokens to every session and 2,903 once invoked, about $0.0004 per session on Opus 5.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.

Related

use-saasmail compared with skills from other repositories

use-saasmail next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
use-saasmailchoyiny/saasmailSkill2744d agoApache-2.0A112Claude Code
moemailbeilunyang/moemailSkill2.8k2mo agoMITA37Claude Code, Codex
agent-mailboxstumct/agent-mailboxSkill12d agoMITA52Codex
brand-and-content-systemheymegabyte/claude-skillsSkill221mo agononeA65Claude Code
site-generationheymegabyte/claude-skillsSkill221mo agononeA112Claude Code
cinematic-website-prime-directiveheymegabyte/claude-skillsSkill221mo agononeA113Claude Code
experience-and-design-systemheymegabyte/claude-skillsSkill221mo agononeA60Claude Code