get-hotmail

get-hotmail is a skill for Claude Code, Codex from idea2realClaw/myAgent. It costs 79 tokens per session (690 once invoked), scanned A, original, MIT.

A mail-reading tool for the [email protected] Outlook/Hotmail inbox. It connects through IMAP, a standard protocol for reading email, and uses Microsoft OAuth2 sign-in.

In plain words
What is it for?
Use it to list recent messages, read a selected message, search for words such as a sender or topic, and view the saved account configuration.
Why use it?
It provides a command-line way to check recent messages, read email, and search the inbox without opening a mail application.

Skill for Claude CodeCodex

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

Good fit Use it to list recent messages, read a selected message, search for words such as a sender or topic, and view the saved account configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/idea2realclaw/myagent/get-hotmail
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 idea2realClaw/myAgent --skill get-hotmail
Clone the repo
git clone --depth 1 https://github.com/idea2realClaw/myAgent

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 get-hotmail

README.md
[![agentmods](https://agentmods.dev/badge/skills/idea2realclaw/myagent/get-hotmail.svg)](https://agentmods.dev/skills/idea2realclaw/myagent/get-hotmail)
Your own site
<a href="https://agentmods.dev/skills/idea2realclaw/myagent/get-hotmail"><img src="https://agentmods.dev/badge/skills/idea2realclaw/myagent/get-hotmail.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 690 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.00079 $0.00690
Opus 5 $0.00039 $0.00345
Sonnet 5 $0.00016 $0.00138
Haiku 4.5 $0.00008 $0.00069

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

Security

Grade A, and why

get-hotmail 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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/get_hotmail.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.

skills/get-hotmail/SKILL.md · 87 lines

What it actually says

GetHotmail 邮件收取工具

概述

专用于收取 [email protected] 的邮件,支持查看最近邮件列表、阅读正文、搜索邮件。

基于 Outlook/Hotmail IMAP 协议(imap-mail.outlook.com:993)。

脚本路径

~/.workbuddy/skills/get-hotmail/scripts/get_hotmail.py

前置配置(OAuth2 授权)

首次使用需要进行 OAuth2 授权:

  1. 运行任意命令(如 inbox),脚本会显示设备授权链接和代码:

    python3 ~/.workbuddy/skills/get-hotmail/scripts/get_hotmail.py inbox 10
    
  2. 在浏览器中打开显示的授权链接:https://login.microsoft.com/device

  3. 输入显示的设备码(如 HMRM3HBAF

  4. 登录 [email protected] 并授予邮件访问权限

  5. 授权成功后,脚本会自动保存 refresh_token,之后无需重复授权

注意:微软已禁用 IMAP Basic Auth,必须使用 OAuth2 认证。

配置保存在 ~/.workbuddy/hotmail.conf,权限 600。如需重新授权,删除该文件后重试。


命令参考

查看最近邮件(默认10封)

python3 ~/.workbuddy/skills/get-hotmail/scripts/get_hotmail.py inbox
python3 ~/.workbuddy/skills/get-hotmail/scripts/get_hotmail.py inbox 20

阅读指定邮件正文

# 先从 inbox 获取邮件 ID,然后:
python3 ~/.workbuddy/skills/get-hotmail/scripts/get_hotmail.py read <邮件ID>

搜索邮件

python3 ~/.workbuddy/skills/get-hotmail/scripts/get_hotmail.py search <关键词>
python3 ~/.workbuddy/skills/get-hotmail/scripts/get_hotmail.py search "师父" 20

查看配置

python3 ~/.workbuddy/skills/get-hotmail/scripts/get_hotmail.py config

使用流程(SOP)

  1. 运行 inbox 命令获取最近邮件列表
  2. 记录需要阅读的邮件 ID
  3. 运行 read <ID> 查看正文
  4. 将重要内容汇报给师父

注意事项

  • 固定账号:[email protected],无需在命令中指定
  • 如开启两步验证,需在微软账号安全页面生成应用密码
  • 正文超过 3000 字符会自动截断
  • 配置文件 ~/.workbuddy/hotmail.conf 权限为 600,保护密码安全
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. 7d ago First seen · 87 lines · 79 tokens per session scan A b8d8b2985f51

Subscribe to this mod's changes

get-hotmail is a skill published in the GitHub repository idea2realClaw/myAgent (2 stars, last pushed 18d ago), licensed MIT. It adds 79 tokens to every session and 690 once invoked, about $0.0004 per session on Opus 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.