graph-email

graph-email is a skill for Claude Code, Codex from saajunaid/caddis-plugin. It costs 21 tokens per session (885 once invoked), scanned A, original, MIT.

An email-sending skill that takes a Markdown file and sends it through Microsoft Graph or SMTP. Microsoft Graph is Microsoft's API for working with services such as Outlook; SMTP is the standard protocol used to send email.

In plain words
What is it for?
It helps send drafts or notes as simple HTML email, check the setup, and configure the sender and provider credentials.
Why use it?
It avoids manually copying a Markdown draft into an email and supports sending through either of the documented mail providers while keeping secrets out of the configuration file.

Skill for Claude CodeCodex

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

Good fit It helps send drafts or notes as simple HTML email, check the setup, and configure the sender and provider credentials.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saajunaid/caddis-plugin/graph-email
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 saajunaid/caddis-plugin --skill graph-email
Clone the repo
git clone --depth 1 https://github.com/saajunaid/caddis-plugin

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 graph-email

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/graph-email"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/graph-email.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 885 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.
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.00021 $0.00885
Opus 5.5 $0.00008 $0.00354
Sonnet 5.5 $0.00004 $0.00177
Haiku 4.5 $0.00002 $0.00089

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

Security

Grade A, and why

graph-email 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 26d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/send_email.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.github/skills/devops/graph-email/SKILL.md · 54 lines

How it starts

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

graph-email

Sends one email. The provider is graph (Microsoft Graph sendMail, client credentials) or smtp. The body is a Markdown file. The script turns it into simple HTML. It never prints a secret or a token.

One-time setup (per machine)

  1. Copy email.toml.example from this skill folder to ~/.caddis/email.toml.
  2. Set provider, sender and env_file. For SMTP also set the [smtp] table.
  3. Put the secrets in the env file, not in the config file:
    • graph: three keys. The default names are ALERT_GRAPH_TENANT_ID, ALERT_GRAPH_CLIENT_ID, ALERT_GRAPH_CLIENT_SECRET. Change the names in the [graph] table if your file uses other names.
    • smtp: one key. The default name is EMAIL_SMTP_PASSWORD. Change it with password_key.
  4. Check the setup. This sends nothing and prints no secret: python -I scripts/send_email.py --check

Every setting can be overridden. The order is: command-line flag, then environment variable, then the config file. The variables are CADDIS_EMAIL_PROVIDER, CADDIS_EMAIL_SENDER, CADDIS_EMAIL_ENV_FILE, CADDIS_EMAIL_CONFIG and CADDIS_EMAIL_SMTP_HOST, _PORT, _SECURITY, _USERNAME, _TIMEOUT. The flags are --provider, --sender, --env-file, --config, --smtp-host, --smtp-port, --smtp-security (starttls, ssl or none), --smtp-username, --smtp-timeout. The old names GRAPH_EMAIL_ENV_FILE and GRAPH_EMAIL_SENDER still work. Secrets can also be set as process environment variables. They win over the env file. With smtp security none, the script refuses a username or password and exits with code 2. Use starttls or ssl. For a local test relay only, set allow_insecure_auth = true (a boolean) in the [smtp] table.

Steps

  1. Write the email as a Markdown file in the project's comms/ folder (a copy stays in the repo).
    • Put <!-- email-start --> before the greeting and <!-- email-end --> after the sign-off. Only that part is sent.
    • Write plain, short sentences. No em dashes, no arrows, no emoji, no check marks.
  2. Subject line: caddis-<app-name> <short subject>, for example caddis-myapp Data request for the weekly report.
  3. Dry run. It sends nothing, needs no credentials and writes <file>.preview.html: python -I scripts/send_email.py --dry-run --to [email protected] --subject t --body-file <file.md> Read the preview, then delete it.
  4. Send: python -I scripts/send_email.py --to <address> --subject '<subject>' --body-file <file.md> [--attach <file> ...] --to can repeat. Graph HTTP 202 means Graph accepted the mail. An SMTP "accepted" means the server took it. Neither proves the inbox received it.
  5. Tell the owner what was sent, to whom, and the subject.

Read the full file on GitHub · 54 lines

Files

What ships with it

2 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. 26d ago First seen · 54 lines · 21 tokens per session scan A 3e5604d94a57

Subscribe to this mod's changes

graph-email is a skill published in the GitHub repository saajunaid/caddis-plugin (0 stars, last pushed 3d ago), licensed MIT. It adds 21 tokens to every session and 885 once invoked, about $0.0001 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-11-04.

Related

graph-email compared with skills from other repositories

graph-email next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
graph-emailsaajunaid/caddis-pluginSkill03d agoMITA21Claude Code, Codex
workflow-helpervixues/LeAgentSkill2483mo agoApache-2.0A41Claude Code
agent-user-toolsruvnet/rufloSkill83ktodayMITA16Claude Code
kb-setupBlackBeltTechnology/pi-agent-dashboardSkill357yesterdayMITA89Claude Code, Codex
goga-review-planqarium/gogaSkill468d agoBSD-3-ClauseA11Claude Code, Codex
goga-define-challengeqarium/gogaSkill468d agoBSD-3-ClauseA6Claude Code, Codex
skill-creatoreigent-ai/eigentSkill16kyesterdayApache-2.0A35Claude Code, Codex