send-o365-email

send-o365-email is a skill for Claude Code from alexjmoore8/claude-code-tools. It costs 38 tokens per session (1,680 once invoked), scanned C, original, MIT.

An email-sending tool for Microsoft 365 accounts that uses Microsoft Graph, Microsoft's email service, and device-code sign-in.

In plain words
What is it for?
Use it to draft or send Microsoft 365 email, including messages to yourself, copied recipients, and file attachments.
Why use it?
It removes the need to manually construct API requests or switch between tools to prepare and send an email. It asks for missing recipients, subject, or message text before sending.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the o365-email plugin — 1 skill shipped together

Good fit Use it to draft or send Microsoft 365 email, including messages to yourself, copied recipients, and file attachments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexjmoore8/claude-code-tools/send-o365-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 alexjmoore8/claude-code-tools --skill send-o365-email
Clone the repo
git clone --depth 1 https://github.com/alexjmoore8/claude-code-tools

Made for: Claude Code.

Or install o365-email, the plugin that ships this one along with the rest of its 1 skill.

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 send-o365-email

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexjmoore8/claude-code-tools/send-o365-email/github.svg)](https://agentmods.dev/skills/alexjmoore8/claude-code-tools/send-o365-email)
Your own site
<a href="https://agentmods.dev/skills/alexjmoore8/claude-code-tools/send-o365-email"><img src="https://agentmods.dev/badge/skills/alexjmoore8/claude-code-tools/send-o365-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 send-o365-email

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexjmoore8/claude-code-tools/send-o365-email"><img src="https://agentmods.dev/badge/skills/alexjmoore8/claude-code-tools/send-o365-email.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,680 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 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.00038 $0.01680
Opus 5 $0.00019 $0.00840
Sonnet 5 $0.00008 $0.00336
Haiku 4.5 $0.00004 $0.00168

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

Security

Grade C, and why

send-o365-email scanned grade C with 3 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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (auth.sh, send.sh), 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Token stored at `~/.config/claude-o365/token.json` (chmod 600), same security model as AWS CLI

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Use the `Read` tool to read `~/.claude/settings.json` (it may not exist yet).

Makes network callslowCapability

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

Send email from your O365 account via Microsoft Graph API. No dependencies -- uses only `curl`, `awk`, `grep`, and standard POSIX tools pre-installed on Mac, Linux, WSL, and Git Bash.
plugins/o365-email/skills/send-o365-email/SKILL.md · 195 lines

How it starts

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

Send email from your O365 account via Microsoft Graph API. No dependencies -- uses only curl, awk, grep, and standard POSIX tools pre-installed on Mac, Linux, WSL, and Git Bash.

Configuration

TENANT_ID=YOUR_TENANT_ID
CLIENT_ID=YOUR_CLIENT_ID
TOKEN_PATH=~/.config/claude-o365/token.json
SKILL_DIR=~/.claude/skills/send-o365-email

Set O365_TENANT_ID and O365_CLIENT_ID as environment variables, or edit the values directly in auth.sh. See the README for Azure app registration instructions.

Usage

/send-o365-email [--to <addresses>] [--cc <addresses>] [--subject <subject>] [--body <body>] [--attach <file> ...]

All arguments optional -- ask for any missing required fields (to, subject, body) before proceeding. If the user says "send to myself", use send.sh --me to resolve their address. --to and --cc accept comma-separated addresses.


Workflow

Step 0: Ensure permissions

Use the Read tool to read ~/.claude/settings.json (it may not exist yet).

Check whether ALL of these are present in permissions.allow:

"Skill(send-o365-email)"
"Bash(~/.claude/skills/send-o365-email/auth.sh*)"
"Bash(~/.claude/skills/send-o365-email/send.sh*)"
"Bash(chmod +x ~/.claude/skills/send-o365-email/*.sh)"

If any are missing, present the following to the user and ask if they want to proceed:

One-time permission setup for send-o365-email

To run headlessly (e.g. for automation or scheduled sends), this skill needs to add the following entries to your ~/.claude/settings.json:

Permission What it allows
Skill(send-o365-email) Trust this skill to run
Bash(~/.claude/skills/send-o365-email/auth.sh*) Run the auth script
Bash(~/.claude/skills/send-o365-email/send.sh*) Run the send script
Bash(chmod +x ~/.claude/skills/send-o365-email/*.sh) Make scripts executable on first run

Pros: Fully headless after this -- no more prompts, works in automation and cron jobs. Permissions are narrowly scoped to this skill's scripts only. Cons: These are added to your global ~/.claude/settings.json and apply to all Claude sessions (due to a known Claude Code bug where skill-level permissions aren't enforced).

Want to add these permissions? (yes/no)

  • Yes: permissions added, restart Claude Code, all future runs are headless
  • No: skill still works, but you'll see approval prompts each run

Read the full file on GitHub · 195 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 · 195 lines · 38 tokens per session scan C c4a24052d789

Subscribe to this mod's changes

send-o365-email is a skill published in the GitHub repository alexjmoore8/claude-code-tools (2 stars, last pushed 4mo ago), licensed MIT. It adds 38 tokens to every session and 1,680 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 3 findings (asks for root, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.