/executive-assistant-skills:todoist-due-draftsfrom executive-assistant-skills
Check Todoist for tasks due today (and overdue) that involve pinging, emailing, or following up with someone. Auto-draft the emails using meeting context and notify via WhatsApp. Use when running the daily due-drafts cron, or when user asks to process email tasks from Todoist.
Ships in executive-assistant-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read ../config/user.json (resolves to ~/executive-assistant-skills/config/user.json).
Extract and use throughout:
primary_email, work_email — Gmail accountswhatsapp — for notification deliveryworkspace — absolute path to OpenClaw workspacesignature — email signatureRead ../config/DEBUG_LOGGING.md for the full convention. Use python3 {user.workspace}/scripts/skill_log.py todoist-due-drafts <level> "<message>" ['<details>'] at every key step. Log BEFORE and AFTER every external call (todoist-cli, gog, mcporter). On any error, log the full command and stderr before continuing.
source {user.workspace}/.env
todoist-cli today --json
Also check overdue tasks:
todoist-cli list --filter "overdue" --json
Filter for tasks whose content matches outreach intent:
ping, email, follow up, follow-up, send, reach out, text, message, intro, connect, check in, nudge, reply, respond, draftSkip tasks that are clearly NOT outreach (e.g. "review doc", "read report", "build proposal").
Read and follow ~/executive-assistant-skills/email-drafting/SKILL.md for all drafting rules.
For each task:
# Find the meeting in Granola
mcporter call granola list_meetings --args '{"time_range": "custom", "custom_start": "<meeting-date>", "custom_end": "<meeting-date+1>"}'
# Query for what was discussed with this person
mcporter call granola query_granola_meetings --args '{"query": "What did {user.name} discuss with <recipient> and what did he promise or commit to do?", "document_ids": ["<meeting_id>"]}'
Then cross-check with Grain for the full transcript:
mcporter call grain.list_attended_meetings --args '{}'
# Note: Grain's schema does not support `start_date`/`end_date` filters. Call with empty args and filter the results manually by `start_datetime` to match the meeting date range.
mcporter call grain.fetch_meeting_transcript --args '{"meeting_id": "<grain_meeting_id>"}'
When meeting context is available, the email draft must reflect what was actually said — not just the task title. Look for: specific commitments, timelines discussed, names/projects mentioned, tone of the conversation, and any docs/links promised.{user.work_email} for professional/business contacts or {user.primary_email} for personal contacts. When ambiguous, use {user.work_email}.--thread-id to keep it in the same thread.{user.signature}Send a single WhatsApp message to {user.whatsapp} with:
📬 *Due-today drafts*
<N> email drafts created from today's Todoist tasks:
1. **<recipient>** — <one-line intent> (draft in <account>)
2. ...
Review and send when ready.
If tasks exist but none are outreach-type, report:
📋 *Due-today tasks (no drafts needed)*
<list of today's tasks — quick reference>
If no tasks due today → NO_REPLY (skip notification entirely).
python3 {user.workspace}/scripts/cron_canary.py ping todoist-due-drafts
todoist-cli fails: notify via WhatsApp "⚠️ Todoist due-drafts failed: ", ping canary, exit..env file or token expired: report "⚠️ Todoist token unavailable — check agent-secrets lease" and exit.gog --account <account> --no-input gmail search "to:<recipient> in:sent newer_than:14d" --json. If recent sent mail exists in the same thread, skip drafting and note "already replied" in the notification.gog --account <account> --no-input gmail drafts --json. If a draft already exists for the same thread (matching thread ID or recipient + subject), skip and note "draft already exists."Scans Todoist for due and overdue tasks that involve outreach (pinging, emailing, following up), auto-drafts contextual emails using meeting transcripts and email history, and notifies via WhatsApp.
todoist-cli installed with valid API token in workspace .envgog CLI configured with both Gmail accountsmcporter with Granola and Grain MCP connections for meeting context lookupuser.jsonskill_log.py and cron_canary.py scriptsSee the Steps section above (Steps 1 through 5) for the full execution workflow.
# The skill runs todoist-cli to find due tasks, identifies outreach items,
# pulls meeting context from Granola/Grain, drafts emails via gog, and notifies.
# Example WhatsApp output:
# "2 email drafts created from today's Todoist tasks:
# 1. Sarah Chen — follow-up on advisory scope (draft in work account)
# 2. David Park — intro to Marcos (draft in personal account)"
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/action-items-todoistExtract action items from today's Granola/Grain meetings, create Todoist tasks, complete fulfilled tasks, and draft meeting-triggered follow-up emails. Use when running the daily action items cron, post-meeting cron, or when user asks to process meeting action items. NOT for general email drafting without meeting context./email-draftingDraft email replies for Gonto's Gmail accounts ([email protected], [email protected]). Handles intro acceptances, scheduling intent, thanks/ack, and positive short replies. Use when user asks to draft or reply to an email, or when Gmail webhook triggers arrive for auto-draft classification. Draft-only mode — never sends automatically./executive-digestGenerate the daily executive digest — a single WhatsApp summary of everything needing attention: stalled scheduling, pending intros, unanswered emails, promised follow-ups, open Todoist tasks, and upcoming calendar events. Use when running the daily digest cron, or when user asks for a status digest, daily summary, "what's pending", or "catch me up"./meeting-prepPrepare briefings for today's meetings — attendee research, email history, past meeting notes, LinkedIn, and company context. Use when running the daily meeting prep cron, or when user asks to prepare for meetings, review who they're meeting with, or get context on upcoming calls.npx claudepluginhub flight505/skill-forge --plugin executive-assistant-skills