saasmail: Instructions file for Claude Code

CLAUDE.md

saasmail CLAUDE.md is an instructions file for Claude Code from choyiny/saasmail. It costs 489 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for saasmail, a self-hosted email server running on Cloudflare Workers.

In plain words
What is it for?
Use them when developing saasmail, including its email API, React interface, database migrations, templates, onboarding, tests, and formatting.
Why use it?
They identify the required tools, code locations, checks, and available setup workflows. This helps avoid using the wrong package manager or skipping required validation.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions AGENTS.md.

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.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 saasmail CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/choyiny/saasmail/claude-md"><img src="https://agentmods.dev/badge/instructions/choyiny/saasmail/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 489 This file is loaded in full into every session.
When invoked 489 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00489 $0.00489
Opus 5.5 $0.00196 $0.00196
Sonnet 5.5 $0.00098 $0.00098
Haiku 4.5 $0.00049 $0.00049

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

Security

Grade A, and why

saasmail CLAUDE.md 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 19d 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.

CLAUDE.md · 27 lines

What it actually says

saasmail

Self-hosted email server on Cloudflare Workers. README.md is the overview; full documentation lives in docs/ (setup, configuration, architecture, and one page per feature).

Contributor and coding-agent conventions (CI gates, Prettier, PR semver labels, drizzle migrations including data-only --custom): see AGENTS.md.

Development

  • Use yarn for all dependency commands (not npm)
  • Backend: Hono + Zod OpenAPI routes in worker/src/routers/
  • Frontend: React + Tailwind in src/
  • Database: Drizzle ORM with D1 in worker/src/db/
  • Run yarn tsc -b to type-check before committing (yarn tsc --noEmit checks no files — the root tsconfig.json only holds project references)
  • Run yarn test for tests
  • Run yarn format / yarn format:check before pushing (CI enforces Prettier)

Installer

  • yarn saasmail install (scripts/saasmail/, docs/setup.md) provisions, configures and deploys an instance deterministically; yarn saasmail status checks it. Pure modules plus a Cloudflare REST port and a process runner, tested with fakes by yarn test (Node vitest config in scripts/saasmail/); yarn typecheck:cli type-checks it. State lives in the gitignored .saasmail/.

Skills

  • /saasmail-onboarding — Guides yarn saasmail install (plan, then the user applies it in their own terminal) to deploy a new saasmail instance
  • /use-saasmail — How to call a deployed saasmail instance's HTTP API to send emails (raw or via templates) and enroll recipients in sequences
  • /create-saasmail-template — Authoring email templates: the {{variable}} grammar, conditional and repeating {{#section}} rules, escaping, and the required-vs-optional send contract
  • /update-saasmail — Rebase a fork onto upstream/main (links the upstream remote if needed)
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. 19d ago Changed · +4 lines · +129 tokens per session 264a6d6ba71b
  2. 21d ago Changed · +23 tokens per session 43a8eb577830
  3. 2mo ago Changed · +27 tokens per session f91106b10b03
  4. 2mo ago First seen · 23 lines · 310 tokens per session scan A 1bce8c1c6ac2

Subscribe to this mod's changes

saasmail CLAUDE.md is an instructions file published in the GitHub repository choyiny/saasmail (274 stars, last pushed 4d ago), licensed Apache-2.0. It adds 489 tokens to every session, about $0.0020 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

saasmail CLAUDE.md compared with instructions from other repositories

saasmail CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
saasmail CLAUDE.mdchoyiny/saasmailInstructions file2744d agoApache-2.0A489Claude Code
plan-forge dapr.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA4,975GitHub Copilot
plan-forge landing-zone.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA2,239GitHub Copilot
plan-forge policy.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA2,019GitHub Copilot
plan-forge caf.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,476GitHub Copilot
plan-forge terraform.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,732GitHub Copilot
plan-forge waf.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,489GitHub Copilot