outlook-scan

outlook-scan is a skill for Claude Code, Codex from crux/outlook-scan. It costs 52 tokens per session (1,508 once invoked), scanned A, original, MIT.

A read-only command-line tool for searching and reading Microsoft 365 work email through Microsoft Graph, including message threads and attachments.

In plain words
What is it for?
Use it to list inbox messages, search mail, read conversations, and list or download attachments when explicitly requested.
Why use it?
It lets an agent inspect the mailbox without storing messages locally or changing the mailbox.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to list inbox messages, search mail, read conversations, and list or download attachments when explicitly requested.

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

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 outlook-scan

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/crux/outlook-scan/skill"><img src="https://agentmods.dev/badge/skills/crux/outlook-scan/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,508 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.00052 $0.01508
Opus 5.5 $0.00021 $0.00603
Sonnet 5.5 $0.00010 $0.00302
Haiku 4.5 $0.00005 $0.00151

Measured 2mo ago against content hash 3867279c8384, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

outlook-scan 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 2mo 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.

skill/SKILL.md · 133 lines

How it starts

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

outlook-scan — on-demand mailbox access via Microsoft Graph

A CLI (outlook-scan, expected on PATH) that queries the mailbox live - read-only unless write mode is enabled (drafts only). Nothing is stored locally unless --save is passed.

Ground rules

  • Stdout first. Print results into the session; use --save DIR only when the user explicitly wants files kept (extraction, archiving, attachments). Confirm or choose an obvious target directory.
  • Message ids start with AAMk, conversation ids with AAQk. Both are long — always quote them in commands. thread accepts either kind.
  • The tool can never send, move, delete, or mark mail. With write mode on it can only create drafts for the user to review (see below).

Commands

outlook-scan list [--folder NAME] [--unread] [--since 24h|7d|2w|YYYY-MM-DD] [--max N]
    # metadata, newest first: "N. [date] ● sender — subject 📎" + id line
    # ● = unread, 📎 = has attachments. Default folder Inbox, max 25.
    # Folders: display names or aliases (inbox, archive/archiv, sent,
    # drafts, trash, junk/spam — English and German aliases built in).

outlook-scan search [--max N] "query"
    # server-side full-text search across ALL folders, relevance-ranked

outlook-scan get [--save DIR [--attachments]] "MESSAGE-ID"
    # full message as markdown (headers, attachment names, plain-text body)
    # --save DIR writes .md file; --attachments additionally downloads files

outlook-scan attachments [--save DIR] "MESSAGE-ID"
    # list attachments (name, size, kind); with --save: download them

outlook-scan thread [--save DIR] "MESSAGE-ID-or-CONVERSATION-ID"
    # entire conversation across all folders, chronological, one document

outlook-scan folders | status | login

All read commands accept --json for structured output.

Read the full file on GitHub · 133 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. 2mo ago First seen · 133 lines · 52 tokens per session scan A 3867279c8384

Subscribe to this mod's changes

outlook-scan is a skill published in the GitHub repository crux/outlook-scan (0 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 1,508 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

mail-muncher

Give an agent or script its own read-only mailbox as files on disk. Works with any IMAP server (Fastmail, iCloud, Gmail, Proton Bridge, work and self-hosted accounts) or with the Gmail API. Use when the user wants email in an agent workflow, wants to archive or export mail, wants to monitor an inbox for specific…

craigjmidwinter/mail-muncher · 139 tokens

octo-messaging

Messaging domain — send/edit/sync messages, read receipts, message search (search/all/files/media/around/groups, in-channel or cross-channel), groups and threads (User Bot), and event polling. Covers App Bot DM-only constraints. Load after octo-shared.

Mininglamp-OSS/octo-cli · 59 tokens

octo-mail

OCTO Agent Mail operations for reading, searching, policy-aware sending, preparing drafts, and checking delivery status exclusively through octo-cli.

Mininglamp-OSS/octo-cli · 32 tokens

amq-spec

Use two agents to research a design independently and converge on one specification through AMQ. Trigger for collaborative design or messages labeled workflow:spec; use amq-cli for ordinary coordination.

avivsinai/agent-message-queue · 40 tokens

incremental-approach

Build in verified increments rather than one speculative block: smallest viable change first, verify, then extend; prototype the risky part before committing to a design; batch edits to one file into a single operation. Load when planning a large or multi-file change, when uncertain which of several approaches will…

Goldziher/ai-rulez · 77 tokens

pixiv-cli-docs

Edit pixiv-cli documentation, AGENTS.md, client bridges, repository maintenance skills, or the distributed product skill. Use when commands, APIs, configuration, architecture, testing, or contributor workflows change and their documentation must stay accurate and portable.

FlanChanXwO/pixiv-cli · 54 tokens