Brian Colinger

email-triage

オフィス効率化v1.0.1
作者:Brian Colinger更新日 2026-05-17全 2 バージョン · 最新版の公開日 2026-02-19@clawhub_briancolinger/email-triage
メール処理#Email

AlphaMoatによると、2026-09時点でemail-triageのダウンロード数は3,205、スター数は2で、AIスキル全体5,078件中3,551位、オフィス効率化では435件中258位です。

インストール数
104
ダウンロード数
3205
スター数
2
総合順位
#3,551
全体の上位 70% · オフィス効率化の上位 60%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗10431112-
SkillHub ↗10432052—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

Ollamaでメールを分類し、利用できない場合はキーワードルールに切り替え、分類状態と表示済み状態をローカルJSONファイルに保存する方法を説明します。緊急または返信が必要なメールを報告できます。メールには機密情報が含まれる可能性があり、リモートOllamaを使うと抜粋が端末外へ送信される場合があります。利用前にメールボックスの許可、モデルの接続先、ローカル状態ファイルの権限を確認してください。

資料公開日 2026-10-29

できること

  • 未読メールを分類し、早急な確認や返信が必要な項目を示す。
  • 未表示の重要メールのレポートを確認する。
  • 状態を保存せずにdry-runで分類を確認する。

使う場面

  • 許可されたIMAP受信箱を整理するとき。
  • メール抜粋をOllamaに送る前に、接続先とデータ処理方法を確認するとき。
  • 定期スキャンの前にローカル保存先とデータ保持を確認するとき。

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

許可されたメールを分類し、メール送信や返信などの操作は行わないでください。
このツールが読み取り・保存するメールデータを挙げ、端末外へ送られる可能性のあるものを示してください。

月次の推移

ダウンロード数3205
1971263432962026-03 · ダウンロード数 20622026-05 · ダウンロード数 26422026-06 · ダウンロード数 27752026-07 · ダウンロード数 29342026-08 · ダウンロード数 30132026-09 · ダウンロード数 320526-0326-09
スター数2
1232026-03 · スター数 22026-05 · スター数 22026-06 · スター数 22026-07 · スター数 22026-08 · スター数 22026-09 · スター数 226-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-093205—2
2026-083013+2.7%2
2026-072934+5.7%2
2026-062775+5.0%2
2026-052642—2
2026-032062—2

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

4.0 KB・ClawHub v1.0.1
---
name: email-triage
version: 1.0.1
description: IMAP email scanning and triage with AI classification via a local Ollama LLM. Scans unread emails, categorizes them as urgent, needs-response, informational, or spam, and surfaces important messages for agent consumption. Works standalone with heuristic fallback — Ollama optional but recommended.
metadata:
  openclaw:
    requires:
      bins: ["python3"]
---
すべて表示(全 89 行)
# Email Triage

Scan your IMAP inbox, classify emails into priority categories, and surface the ones that need attention. Uses a local LLM (Ollama) for intelligent classification with a rule-based heuristic fallback when Ollama is unavailable.

## Prerequisites

- **Python 3.10+**
- **IMAP-accessible email account** (Gmail, Fastmail, self-hosted, etc.)
- **Ollama** *(optional)* — for AI-powered classification. Without it, the script uses keyword-based heuristics that still work well for common patterns.

## Categories

| Icon | Category | Description |
|------|----------|-------------|
| 🔴 | `urgent` | Outages, security alerts, legal, payment failures, time-critical |
| 🟡 | `needs-response` | Business inquiries, questions, action items requiring a reply |
| 🔵 | `informational` | Receipts, confirmations, newsletters, automated notifications |
| ⚫ | `spam` | Marketing, promotions, unsolicited junk |

## Configuration

All configuration is via environment variables:

| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `IMAP_HOST` | ✅ | — | IMAP server hostname |
| `IMAP_PORT` | — | `993` | IMAP port (SSL) |
| `IMAP_USER` | ✅ | — | IMAP username / email address |
| `IMAP_PASS` | ✅ | — | IMAP password or app-specific password |
| `EMAIL_TRIAGE_STATE` | — | `./data/email-triage.json` | Path to the JSON state file |
| `OLLAMA_URL` | — | `http://127.0.0.1:11434` | Ollama API endpoint |
| `OLLAMA_MODEL` | — | `qwen2.5:7b` | Ollama model for classification |

## Directories Written

- **`EMAIL_TRIAGE_STATE`** (default: `./data/email-triage.json`) — Persistent state file tracking classified emails and surfacing status

## Commands

```bash
# Scan inbox and classify new unread emails
python3 scripts/email/email-triage.py scan

# Scan with verbose output (shows each classification)
python3 scripts/email/email-triage.py scan --verbose

# Dry run — scan and classify but don't save state
python3 scripts/email/email-triage.py scan --dry-run

# Show unsurfaced important emails (urgent + needs-response)
python3 scripts/email/email-triage.py report

# Same as report but JSON output (for programmatic use)
python3 scripts/email/email-triage.py report --json

# Mark reported emails as surfaced (so they don't appear again)
python3 scripts/email/email-triage.py mark-surfaced

# Show triage statistics
python3 scripts/email/email-triage.py stats
```

## How It Works

1. **Connects to IMAP** over SSL and fetches unread messages (up to 20 per scan).
2. **Deduplicates** by Message-ID (or a hash of subject + sender as fallback) so emails are never classified twice.
3. **Classifies** each email using Ollama if available, otherwise falls back to keyword heuristics.
4. **Stores state** in a local JSON file — tracks category, reason, and whether the email has been surfaced.
5. **`report`** surfaces only unsurfaced urgent and needs-response emails, sorted by priority.
6. **`mark-surfaced`** flags reported emails so they won't appear in future reports.
7. **Auto-prunes** state to the most recent 200 entries to prevent unbounded growth.

## Integration Tips

- **Heartbeat / cron:** Run `scan` periodically, then `report --json` to check for items needing attention.
- **Agent workflow:** `scan` → `report --json` → act on results → `mark-surfaced`.
- **Without Ollama:** The heuristic classifier handles common patterns (automated notifications, marketing, urgent keywords) well. Ollama adds nuance for ambiguous emails.
- **App passwords:** If your provider uses 2FA, generate an app-specific password for IMAP access.

オフィス効率化の人気スキル

Brian Colingerのその他のスキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。