據 AlphaMoat 統計,截至 2026-09,email-triage 累計下載 3,205 次、獲 2 個星標,在全部 5,078 個 AI 技能中排名第 3,551 位,在「辦公效率」分類(435 個)中排名第 258 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 104 | 3111 | 2 | - |
| SkillHub ↗ | 104 | 3205 | 2 | — |
各平台的計數口徑不同,統計時間不一致。
該指南描述透過 Ollama 分類郵件,或在其不可用時使用關鍵詞規則作為替代,並將分類及已展示狀態寫入本地 JSON 檔案。它可彙總緊急和需要回復的郵件;郵件內容可能包含敏感資訊,若使用遠端 Ollama 服務也可能離開本機。使用前應確認電子郵件授權、模型服務地址和本地狀態檔案許可權。
資料釋出於 2026-10-29
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 3205 | — | 2 |
| 2026-08 | 3013 | +2.7% | 2 |
| 2026-07 | 2934 | +5.7% | 2 |
| 2026-06 | 2775 | +5.0% | 2 |
| 2026-05 | 2642 | — | 2 |
| 2026-03 | 2062 | — | 2 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
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"]
---
# 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.
透過 MCP 在騰訊文件裡新建、編輯與管理線上文件的完整操作手冊。
在保留公式、格式和活頁簿結構的前提下建立、檢查或編輯 Excel 檔案。
處理 Word 與 DOCX 文件的作業指南,著重維持樣式、編號與版面。
透過命令列存取 Gmail、日曆、Drive、Contacts、Sheets 與 Docs。
PDF和圖片文字提取 將文件文字、表格與掃描頁識別整理為文字結果。
按主題與風格自動生成 PPT 檔案的技能。
透過 kdocs-cli 操作金山文件雲文件的官方技能。
用自然語言指令改 PDF 指定頁的小工具。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。