Mail Triage Agent — AI skill for Claude Code
Filters incoming email by sender/keyword, checks the sender's trust, analyzes it with your chosen AI provider (Claude, OpenAI, Gemini, or any OpenAI-compatible API), and prepares reply drafts for you.
How to install Mail Triage Agent
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open RutkayAzizAksu/mail-triage-agent and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Mail Triage Agent does
Filters incoming email by sender/keyword, checks the sender's trust, analyzes it with your chosen AI provider (Claude, OpenAI, Gemini, or any OpenAI-compatible API), and prepares reply drafts for you to review and send.
Alternatives in AI
- Snip — CLI proxy that reduces LLM token usage by 60-90% 425 ★
- Gh PR Review — GitHub CLI extension that adds full inline PR review comment support — view, navigate, reply to, and resolve r 174 ★
- Grux — Open source AI agent for macOS (MIT) 29 ★
README
Mail Triage Agent
[](https://github.com/RutkayAzizAksu/mail-triage-agent/actions/workflows/ci.yml) [](LICENSE) [](https://www.python.org/downloads/) [](.env.example)
A small, self-hosted agent that watches your inbox for emails from senders or containing keywords **you** choose, analyzes each match with an LLM, and writes a report + a draft reply for you to review, edit, and send. Nothing is sent automatically — every reply goes out only when you run `send` yourself.
Works with **any standard IMAP/SMTP mail provider** — Gmail, Outlook / Microsoft 365, Yahoo, iCloud, Zoho, or most corporate mail servers — and lets you **bring your own AI provider and API key**: Anthropic Claude, OpenAI, Google Gemini (free tier available), or literally any other OpenAI-compatible API (Groq, OpenRouter, a local Ollama server, ...). It's a plain Python script you run on your own machine; your mail and API keys never leave your computer except for the two connections it makes on your behalf: your mail server (IMAP/SMTP) and your chosen AI provider's API (to analyze the email text).
Features
- Filter by sender or keyword, so only the mail you actually care about gets analyzed.
- Pick your own AI provider in
.env: Anthropic Claude, OpenAI, Google Gemini (has a free tier), or any other OpenAI-compatible API — Groq, OpenRouter, a local Ollama server, whatever you'd rather use. - Before it drafts anything, it checks the sender: SPF/DKIM/DMARC authentication, a Reply-To that doesn't match the From address, a display name impersonating a known brand. The verdict goes in the report and feeds into the draft.
- Analysis gives you a summary, category, priority, and suggest
Related Skills
AI Email Assistant
AI-powered triage for a shared team inbox. Uses IMAP + Claude — not a vendor API or MCP — so it works with any
Spam Agent
AI-powered Gmail spam agent built with Python and LangChain. Sender rules plus Claude classify each email as k
Microsoft Graph AI Inbox Assistant
Claude reads new Outlook mail via Microsoft Graph, logs requests to an Excel Online table, files attachments t
Garbage Man
Provider-neutral email review and future-mail cleanup for AI agents
Gmail Agent Shield
Email filters and agent instructions that defend OpenClaw, Claude Code, and similar agentic AI systems against
Support Skills
Customer support skills for Claude Code and AI agents. Ticket triage, SLA tracking, sentiment detection, custo
Related Agents
Provider Debugger
Diagnose live-provider compatibility failures for Kimi, GLM, and other OpenAI-compatible endpoints
Job Outreach Us
Berk's job search, US outreach (Flow 2). The scheduled sender sends ONE queued cold e-mail to a US university
Triage Agent
Given a structured list of emails (thread_id, sender, subject, body) handed to it by the fetch agent, decides