email-to-calendar
Extract calendar events from emails and create calendar entries. Supports two modes: (1) Direct inbox monitoring - scans all emails for events, or (2)…
от lxyeternal★ 68 звёзд на GitHub
Установить email-to-calendar в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
CRITICAL RULES - READ BEFORE PROCESSING ANY EMAIL
- NEVER CALL
gogDIRECTLY - ALWAYS use wrapper scripts (create_event.sh,email_read.sh, etc.). Directgogcalls bypass tracking and cause duplicates. THIS IS NON-NEGOTIABLE.- IGNORE CALENDAR NOTIFICATIONS - DO NOT process emails from
[email protected](Accepted:, Declined:, Tentative:, etc.). These are responses to existing invites, NOT new events. Runprocess_calendar_replies.shto archive them.- ALWAYS ASK BEFORE CREATING - Never create calendar events without explicit user confirmation in the current conversation
- CHECK IF ALREADY PROCESSED - Before processing any email, check
processed_emailsin index.json- READ CONFIG FIRST - Load and apply
ignore_patternsandauto_create_patternsbefore presenting events- READ MEMORY.MD - Check for user preferences stored from previous sessions
- INCLUDE ALL CONFIGURED ATTENDEES - When creating/updating/deleting events, always include attendees from config with
--attendeesflag (and--send-updates allif supported)- CHECK TRACKED EVENTS FIRST - Use
lookup_event.sh --email-idto find existing events before calendar search (faster, more reliable)- TRACK ALL CREATED EVENTS - The
create_event.shscript automatically tracks events; use tracked IDs for updates/deletions- SHOW DAY-OF-WEEK - Always include the day of week when presenting events for user verification
⛔ FORBIDDEN: DO NOT USE
gogCOMMANDS DIRECTLY ⛔WRONG:
gog calendar create ...orgog gmail ...RIGHT:"$SCRIPTS_DIR/create_event.sh" ...or"$SCRIPTS_DIR/email_read.sh" ...Direct CLI calls bypass event tracking, break duplicate detection, and cause duplicate events. ALL operations MUST go through the wrapper scripts in
scripts/.
Email to Calendar Skill
Extract calendar events and action items from emails, present them for review, and create/update calendar events with duplicate detection and undo support.
First-time setup: See SETUP.md for configuration options and smart onboarding.
Reading Email Content
IMPORTANT: Before you can extract events, you must read the email body. Use the wrapper scripts.
SCRIPTS_DIR="$HOME/.openclaw/workspace/skills/email-to-calendar/scripts"
# Get a single email by ID (PREFERRED)
"$SCRIPTS_DIR/email_read.sh" --email-id "<messageId>"
# Search with body content included
"$SCRIPTS_DIR/email_search.sh" --query "in:inbox is:unread" --max 20 --include-body
Note on stale forwards: Don't use newer_than:1d because it checks the email's original date header, not when it was received. Process all UNREAD emails and rely on the "already processed" check.
Workflow
0. Pre-Processing Checks (MANDATORY)
SCRIPTS_DIR="$HOME/.openclaw/workspace/skills/email-to-calendar/scripts"
CONFIG_FILE="$HOME/.config/email-to-calendar/config.json"
INDEX_FILE="$HOME/.openclaw/workspace/memory/email-extractions/index.json"
# Start activity logging
"$SCRIPTS_DIR/activity_log.sh" start-session
# Check email mode
EMAIL_MODE=$(jq -r '.email_mode // "forwarded"' "$CONFIG_FILE")
# Check if email was already processed
EMAIL_ID="<the email message ID>"
if jq -e ".extractions[] | select(.email_id == \"$EMAIL_ID\")" "$INDEX_FILE" > /dev/null 2>&1; then
"$SCRIPTS_DIR/activity_log.sh" log-skip --email-id "$EMAIL_ID" --subject "Subject" --reason "Already processed"
exit 0
fi
# Load ignore/auto-create patterns
IGNORE_PATTERNS=$(jq -r '.event_rules.ignore_patterns[]' "$CONFIG_FILE")
AUTO_CREATE_PATTERNS=$(jq -r '.event_rules.auto_create_patterns[]' "$CONFIG_FILE")
1. Find Emails to Process
DIRECT mode: Scan all unread emails for event indicators (dates, times, meeting keywords).
FORWARDED mode: Only process emails with forwarded indicators (Fwd:, forwarded message headers).
2. Extract Events (Agent does this directly)
Read the email and extract events as structured data. Include for each event:
- title: Descriptive name (max 80 chars)
- date: Event date(s)
- day_of_week: For verification
- time: Start/end times (default: 9 AM - 5 PM)
- is_multi_day: Whether it spans multiple days
- is_recurring: Whether it repeats (and pattern)
- confidence: high/medium/low
- urls: Any URLs found in the email (REQUIRED - always look for registration links, info pages, ticketing sites, etc.)
- deadline_date: RSVP/registration/ticket deadline date (if found)
- deadline_action: What user needs to do (e.g., "RSVP", "get tickets", "register")
- deadline_url: Direct link for taking action (often same as event URL)
URL Extraction Rule: ALWAYS scan the email for URLs and include the most relevant one at the BEGINNING of the event description.
2.1 Deadline Detection
Scan the email for deadline patterns that indicate action is required before the event:
Common Deadline Patterns:
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- BOOT.md
- CHANGELOG.md
- CONTRIBUTING.md
- SETUP.md
- _meta.json
- package.json
- references/extraction-patterns.md
- references/gog-commands.md
- references/workflow-example.md
- scripts/activity_log.sh
- scripts/add_pending.sh
- scripts/calendar_delete.sh
- scripts/calendar_search.sh
- scripts/changelog.sh
- scripts/check_duplicate.sh
- scripts/create_event.sh
- scripts/delete_tracked_event.sh
- scripts/disposition_email.sh
- scripts/email_modify.sh
- scripts/email_read.sh
- scripts/email_search.sh
- scripts/email_send.sh
- scripts/list_pending.sh
- scripts/lookup_event.sh
- scripts/process_calendar_replies.sh
- scripts/run_tests.sh
- scripts/track_event.sh
- scripts/undo.sh
- scripts/update_invite_status.sh
- scripts/update_tracked_event.sh
- scripts/utils/__init__.py
- scripts/utils/activity_ops.py
- scripts/utils/calendar_ops.py
- scripts/utils/changelog_ops.py
- scripts/utils/common.py
- scripts/utils/date_parser.py
- scripts/utils/disposition_ops.py
- scripts/utils/email_ops.py
- scripts/utils/event_tracking.py
- scripts/utils/invite_ops.py
FAQ
Что делает скилл email-to-calendar?
Extract calendar events from emails and create calendar entries. Supports two modes: (1) Direct inbox monitoring - scans all emails for events, or (2) Forwarded emails - processes emails you forward to a dedicated address. Features smart onboarding, event tracking, pending invite reminders, undo support, silent activity logging, deadline detection with separate reminder events, email notifications for action-required items, and provider abstraction for future extensibility.
Как установить скилл email-to-calendar?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл email-to-calendar запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…