微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📅

零依赖智能邮件日程管家

afrexai-email-to-calendar · vv1.0.0
专业技能 安全 S 级 作者 1kalin 公开目录收录
下载 1.8k 安装 779 收藏 4.1k 浏览 19.5k
下载 zip

简介

AfrexAI 出品的纯文档型邮件事件提取框架,无需外部依赖,可将任意邮件智能解析为结构化日历事件,帮助用户零遗漏管理日程与截止日期。

原始描述

Extract calendar events, deadlines, action items, and follow-ups from emails. Works with any calendar provider (Google, Outlook, Apple, Notion, etc.). No external dependencies — pure agent intelligence. Use when the user forwards an email, asks to check inbox for events, or wants to extract structured scheduling data from any text.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/afrexai-email-to-calendar/
其它 Agent解压到它自己的 skills 目录,目录名用 afrexai-email-to-calendar

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

Email → Calendar Extraction Engine 技能综合分析

核心用法

该技能是一个纯提示词驱动的智能日历提取引擎,能够从任意文本(尤其是转发的邮件、粘贴的邮件内容或收件箱中)中精准识别并提取结构化的日历事件。它不仅能解析硬性事件(如明确时间的会议)和截止日期,还能处理软性事件(如“下周找个时间”)、定期会议、行动项、旅行信息(航班、酒店)以及隐含的截止日期。提取后,技能会以清晰的编号列表呈现结果(包含标题、时间、地点、参与人、来源引文和置信度),并支持用户交互式选择并创建到 Google、Outlook、Apple 或 Notion 等日历中。

显著优点

  1. 高精度提取与智能分类:框架定义了严格的提取模板和信心度评分标准,能有效区分硬事件、截止日期和模糊提议,并从中识别出需采取行动的待办事项(如 RSVP 注册)。
  2. 全流程闭环管理:覆盖了从信息解析、重复事件检测(通过 memory/ 日志文件)、冲突标记、用户确认到最终在多种日历服务中创建的完整流程。
  3. 出色的边缘案例处理:对时区转换、日期歧义(如 02/03)、TBD 时间、事件取消/改期、定期会议的例外情况以及 .ics 附件解析均有细致的处理方案。
  4. 零外部依赖,攻击面小:作为纯 Markdown 提示词技能,它不含任何可执行代码脚本或第三方 API 调用,依赖项极为干净,运行安全性高。
  5. 个性化与批处理能力:支持扫描整个收件箱并生成按周汇总的预览,同时能跟踪用户偏好(如默认时区、自动创建模式),实现个性化服务。

潜在缺点或局限性

  1. 依赖 Agent 底层能力:该技能完全是一个操作指南,其最终表现(如自然语言理解的准确性)高度依赖于运行它的 AI Agent 的基础模型能力。
  2. 信息来源可信度较低(T3):该技能由个人开发者维护,属于社区项目,信任级别为 T3。虽然当前版本通过了安全审计,但缺乏大型机构或公司背书。
  3. 存在商业推广链接:README 中包含指向付费商业包的推广链接,可能对部分用户造成干扰,但与核心功能无关。
  4. 法律合规性模糊:由于未声明任何开源许可证(如 MIT、Apache-2.0),直接使用可能存在潜在的法律风险。
  5. 数据生命周期管理缺失:技能在 memory/ 目录自动创建的跟踪和偏好文件没有提供明确的用户删除指引,数据清理机制不完善。

适合的目标群体

  • 繁忙的职场人士:每天处理大量会议邀请、任务委派和项目截止日期电子邮件的管理者、项目协调员和行政人员。
  • 自由职业者或创业者:需要自行管理多方日程,希望从个人和工作邮件中高效提取所有待办事项和行程的用户。
  • 经常出行的人士:能从航班、酒店和租车确认邮件中自动提取并创建带有提醒的完整行程表。
  • 追求自动化的工作流构建者:希望将重复性邮件处理工作部分自动化,但不需要复杂 API 开发的技术爱好者。

使用可能存在的常规风险

  1. 性能与资源风险:该技能为“大型代码技能”,虽无可执行脚本,但提示词内容较长(415行)。在批处理模式下扫描大量邮件时,可能会增加 Agent 的上下文窗口压力和处理时间。
  2. 依赖项风险:技能本身是零外部依赖,但若要实现其声明的全部功能(如自动创建谷歌日历事件),则依赖于存在 gog 等特定命令行工具或操作系统 API(如 Apple 的 osascript),若 Agent 运行环境不满足这些前置条件,高级功能将无法使用。
  3. 隐私与数据驻留:技能会在 Agent 的 memory/ 目录下创建日志和偏好文件以记录用户的事件和设置。虽然这是功能所需,且审计确认为低风险,但用户应了解这些数据的存在及其存储方式。
  4. 版本更新风险:鉴于其 T3 级来源,后续版本更新可能引入未预料的功能变更或代码,建议用户在使用新版本前留意其变化。

技能正文


name: afrexai-email-to-calendar version: 1.0.0 description: > Extract calendar events, deadlines, action items, and follow-ups from emails. Works with any calendar provider (Google, Outlook, Apple, Notion, etc.). No external dependencies — pure agent intelligence. Use when the user forwards an email, asks to check inbox for events, or wants to extract structured scheduling data from any text.

Email → Calendar Extraction Engine

Turn emails into structured calendar events with zero missed deadlines.

Quick Start

When you receive an email (forwarded, pasted, or from inbox):

  1. Parse — Extract every time-relevant item using the framework below
  2. Classify — Score each item by type and confidence
  3. Present — Show structured results with numbered selection
  4. Create — Use the user's calendar tool to create confirmed events
  5. Follow up — Track deadlines and send reminders

1. Extraction Framework

What to Look For

Scan every email for ALL of these categories:

Category Signals Priority
Hard Events "meeting at", "call on", "event on", specific date+time 🔴 High
Deadlines "due by", "submit before", "RSVP by", "register by", "expires" 🔴 High
Soft Events "sometime next week", "let's meet soon", "planning for March" 🟡 Medium
Recurring "every Monday", "weekly", "monthly", "standing meeting" 🟡 Medium
Action Items "please review", "can you send", "follow up on", "action required" 🟡 Medium
Travel/Logistics Flight numbers, hotel confirmations, check-in times, gate info 🔴 High
Implicit Deadlines Event is Feb 20 → ticket deadline is likely 1-2 weeks before 🟡 Medium

Extraction Template

For each item found, extract:

- title: "Descriptive name (max 80 chars)"
  type: event | deadline | action_item | travel | recurring
  date: "YYYY-MM-DD"
  day_of_week: "Monday"  # Always include for verification
  time_start: "14:00"    # 24h format, default 09:00 if unclear
  time_end: "15:00"      # Default: start + 1h for meetings, all-day for deadlines
  timezone: "America/New_York"  # Extract from email headers or content
  is_all_day: false
  is_multi_day: false     # If true, include end_date
  end_date: null
  recurrence: null        # "weekly" | "biweekly" | "monthly" | "MWF" | custom RRULE
  location: null          # Physical address or video link
  url: null               # Registration link, event page, or action URL
  attendees: []           # Names/emails mentioned
  confidence: high | medium | low
  source_quote: "exact text from email that indicates this event"
  notes: "any context the user should know"
  deadline_action: null   # "RSVP" | "register" | "buy tickets" | "submit"
  deadline_url: null      # Direct link to take action
  reminder_minutes: 30    # Suggested reminder (15 for calls, 60 for travel, 1440 for deadlines)

Confidence Scoring

Confidence Criteria
High Explicit date + time + clear event type. E.g. "Meeting on Feb 15 at 2pm"
Medium Date but no time, or time but approximate date. E.g. "next Tuesday afternoon"
Low Vague reference. E.g. "we should catch up soon", "sometime in March"

Smart Defaults

  • No time given for meeting → 09:00-10:00 (mark confidence: medium)
  • No time given for deadline → 23:59 (end of day)
  • No timezone → Use user's default timezone, note assumption
  • "Morning" → 09:00, "Afternoon" → 14:00, "Evening" → 18:00, "EOD" → 17:00
  • "Next week" → Following Monday (mark confidence: medium)
  • Multi-day event → Set is_multi_day: true, include start and end dates

2. Email Classification

Before extracting, classify the email:

Email Type How to Handle
Calendar notification (from calendar-notification@google.com, outlook, etc.) SKIP — these are responses to existing events
Newsletter/marketing Extract only if contains relevant event dates
Personal/work email Full extraction
Travel confirmation Extract ALL logistics: flights, hotels, car rentals, check-ins
Meeting invite (ICS attachment or structured invite) Extract directly, high confidence
Thread/reply Only extract NEW events, not ones from quoted text
Forwarded email Process the forwarded content, note original sender

Ignore Patterns (Skip These)

  • Automated calendar responses (Accepted, Declined, Tentative)
  • Unsubscribe confirmations
  • Read receipts
  • Auto-replies / Out of office
  • Spam/promotional (unless user explicitly forwards it)

3. Presentation Format

Always present extracted items in this format:

📧 From: [sender] | Subject: [subject] | Date: [received date]

Found [N] calendar items:

1. 🔴 **Team Standup** — Mon Feb 17, 9:00-9:30 AM EST
   📍 Zoom (link in email) | 👥 Alice, Bob, Charlie
   🔁 Recurring: Every weekday
   ✅ Confidence: High

2. 🔴 **Project Deadline: Q1 Report** — Fri Feb 28, EOD
   ⚠️ ACTION REQUIRED: Submit report
   🔗 [Submission portal](url)
   ⏰ Suggested reminder: 3 days before
   ✅ Confidence: High

3. 🟡 **Team Lunch** — "sometime next week"
   📍 TBD
   ⚠️ Confidence: Medium — date needs confirmation

---
Reply with numbers to create (e.g. "1, 2"), "all", or "none".
Type "edit 3" to modify before creating.

Presentation Rules

  1. Always show day of week — humans verify dates by day name
  2. Group by date when >5 items
  3. Flag conflicts — if new event overlaps existing calendar
  4. Highlight deadlines with ⚠️ and days remaining
  5. Show source quote for medium/low confidence items
  6. Never auto-create without user confirmation

4. Calendar Creation

After user confirms, create events using their calendar tool:

Google Calendar (via gog or API)

gog calendar create \
  --title "Event Title" \
  --start "2026-02-17T09:00:00-05:00" \
  --end "2026-02-17T10:00:00-05:00" \
  --description "Extracted from email: [subject]" \
  --location "Zoom link or address"

Apple Calendar (via osascript)

osascript -e 'tell application "Calendar"
  tell calendar "Work"
    make new event with properties {summary:"Event Title", start date:date "Monday, February 17, 2026 at 9:00:00 AM", end date:date "Monday, February 17, 2026 at 10:00:00 AM", description:"Extracted from email", location:"Zoom"}
  end tell
end tell'

Notion / Other

  • Format as structured data and use the appropriate API
  • Or output as .ics file the user can import anywhere

ICS Export (Universal)

BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
DTSTART:20260217T090000
DTEND:20260217T100000
SUMMARY:Event Title
DESCRIPTION:Extracted from email
LOCATION:Zoom link
END:VEVENT
END:VCALENDAR

5. Duplicate Detection

Before creating any event, check for duplicates:

  1. Search calendar for events on the same date with similar title (fuzzy match)
  2. Check tracking file — maintain a log of created events:
// memory/email-calendar-log.json
{
  "created_events": [
    {
      "email_id": "msg-123",
      "email_subject": "Team Offsite",
      "event_title": "Team Offsite",
      "event_date": "2026-02-17",
      "calendar_event_id": "cal-456",
      "created_at": "2026-02-13T10:00:00Z"
    }
  ]
}
  1. If duplicate found: Show user and ask — "This looks similar to [existing event]. Skip, update, or create anyway?"

6. Deadline & Reminder Engine

Deadline Patterns to Detect

Pattern Example Action
RSVP deadline "RSVP by Feb 10" Create reminder 3 days before
Registration "Register by March 1" Create reminder 1 week before
Early bird "Early bird ends Feb 15" Create reminder 2 days before
Ticket sales "Tickets on sale until..." Create reminder + calendar event
Submission "Submit proposal by..." Create reminder 3 days before
Expiration "Offer expires..." Create reminder 1 day before

Reminder Strategy

  • >30 days away: Remind 1 week before
  • 7-30 days away: Remind 3 days before
  • <7 days away: Remind 1 day before
  • Deadlines with URLs: Include the action URL in the reminder
  • Create reminder as separate calendar event: "⚠️ DEADLINE: [action] for [event]"

7. Travel Email Handling

Travel confirmations get special treatment:

Extract ALL of these:

  • ✈️ Flights: airline, flight #, departure/arrival times+airports, terminal, gate, confirmation #
  • 🏨 Hotels: name, address, check-in/out times, confirmation #
  • 🚗 Car rentals: company, pickup/dropoff times+locations, confirmation #
  • 📋 Transfers: shuttle times, train bookings

Create these calendar events:

  1. Flight departure — include terminal, gate, flight # in description
  2. Flight arrival — for connecting flights too
  3. Hotel check-in — with address and confirmation #
  4. Hotel check-out — with reminder to pack
  5. Car pickup/dropoff — with location details

Travel-specific reminders:

  • Flight: 3 hours before (domestic), 4 hours before (international)
  • Hotel check-out: Morning of departure
  • Include all confirmation numbers in event descriptions

8. Batch Processing

When scanning an inbox for events:

  1. Fetch unread emails (or emails from last N days)
  2. Filter out noise — apply ignore patterns
  3. Extract from each — run extraction framework
  4. Deduplicate across emails — same event mentioned in multiple threads
  5. Sort by date — nearest first
  6. Present grouped summary:
📬 Inbox Scan: 47 unread → 12 with calendar items → 18 events found

THIS WEEK (Feb 13-19):
1. 🔴 Sprint Review — Thu Feb 13, 3:00 PM
2. 🔴 1:1 with Manager — Fri Feb 14, 10:00 AM
...

NEXT WEEK (Feb 20-26):
5. 🟡 Team Lunch — date TBD (mentioned in 2 emails)
...

DEADLINES:
⚠️ Q1 Report — Due Feb 28 (15 days) → [Submit here](url)
⚠️ Conference RSVP — Due Feb 20 (7 days) → [RSVP](url)

9. Edge Cases

Situation How to Handle
Multiple timezones in one email Extract each event in its stated timezone, convert to user's TZ for display
"TBD" or "TBA" times Create all-day event, flag for follow-up
Cancelled events Check if already in calendar → offer to delete
Rescheduled events Find original → offer to update (not create new)
Recurring with exceptions Note specific exception dates in description
Date ambiguity (02/03 = Feb 3 or Mar 2?) Use email's locale/origin for MM/DD vs DD/MM, ask if unclear
Events in quoted/forwarded text Only process if user explicitly forwarded it
Attachments with .ics files Parse ICS directly — highest confidence source
"Save the date" emails Create tentative event, mark as placeholder
Conference with multiple sessions Extract all sessions as separate events with shared description

10. Session Memory

Track user preferences across sessions:

# memory/email-calendar-prefs.yaml
default_timezone: "America/New_York"
default_calendar: "Work"
default_reminder_minutes: 30
auto_create_patterns:
  - "standup"
  - "1:1"
ignore_patterns:
  - "newsletter"
  - "marketing"
preferred_format: "12h"  # or "24h"
travel_reminder_hours: 3

Update preferences when user corrects you or states a preference.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

productivityofficeautomationcontent-mediadocs

同类 Skill