RutkayAzizAksu

Mail Triage Agent — AI skill for Claude Code

AI community

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

[![CI](https://github.com/RutkayAzizAksu/mail-triage-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/RutkayAzizAksu/mail-triage-agent/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Python 3.9+](https://img.shields.io/badge/python-3.9%2B-blue.svg)](https://www.python.org/downloads/) [![AI provider](https://img.shields.io/badge/AI%20provider-your%20choice-d97706.svg)](.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