Todoist Due Drafts 标志

Todoist Due Drafts

社区
mgonto
todoist-due-drafts

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.

Add to TypingMind

概览

发布者mgonto
代码仓库executive-assistant-skills
技能名称todoist-due-drafts
星标数
121
复刻数
14
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 mgonto 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Todoist Due Drafts AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/mgonto/executive-assistant-skills/tree/main/todoist-due-drafts
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mgonto/executive-assistant-skills.git /tmp/executive-assistant-skills
mkdir -p .claude/skills
cp -r /tmp/executive-assistant-skills/todoist-due-drafts .claude/skills/todoist-due-drafts
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Todoist Due Drafts,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Todoist Due Drafts。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Todoist Due Drafts 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Todoist Due-Today Email Drafts

Config — read before starting

Read ../config/user.json (resolves to ~/executive-assistant-skills/config/user.json). Extract and use throughout:

  • primary_email, work_email — Gmail accounts
  • whatsapp — for notification delivery
  • workspace — absolute path to OpenClaw workspace
  • signature — email signature

Debug Logging (MANDATORY)

Read ../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.

Steps

1. Get today's due tasks from Todoist

bash
source {user.workspace}/.env
todoist-cli today --json

Also check overdue tasks:

bash
todoist-cli list --filter "overdue" --json

2. Identify email/ping tasks

Filter for tasks whose content matches outreach intent:

  • Keywords: ping, email, follow up, follow-up, send, reach out, text, message, intro, connect, check in, nudge, reply, respond, draft
  • Pattern: any task that implies sending a communication to a specific person

Skip tasks that are clearly NOT outreach (e.g. "review doc", "read report", "build proposal").

3. For each outreach task, draft the email

Read and follow ~/executive-assistant-skills/email-drafting/SKILL.md for all drafting rules.

For each task:

  1. Identify the recipient: Extract person/company name from task content + description
  2. Pull meeting context (if available): If the task description references a meeting name, date, or was created by the action-items cron (check for Granola citation links or meeting metadata in description), retrieve the transcript via Granola/Grain. If no meeting reference exists in the task, skip directly to step 3 — draft from email history and task content alone.
    bash
    # 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:
    bash
    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.
  3. Search email history: Find the latest thread with this person across both Gmail accounts to get context, their email address, and the right account to reply from. If no prior thread exists with this recipient, default to {user.work_email} for professional/business contacts or {user.primary_email} for personal contacts. When ambiguous, use {user.work_email}.
  4. Determine email type: follow-up, ping/check-in, intro, send-doc, etc.
  5. Draft the email: Create a Gmail draft on the correct account (the one with the existing thread). If it's a reply, use --thread-id to keep it in the same thread.
  6. Use all context together: Combine the meeting transcript (what was actually discussed), task description, and email history to write a specific, contextual draft. Never write generic follow-ups — reference concrete topics from the conversation.
Draft rules
  • Mirror the language of the existing thread (English or Spanish)
  • Keep it short — these are follow-ups and pings, not essays
  • Sign with {user.signature}
  • If the task says "ping" or "check in" — write a brief, friendly nudge
  • If the task says "send [thing]" — draft the email with the attachment reference (or attach if path is known)
  • If the task says "intro" — follow intro format from email-drafting skill
  • If recipient email can't be found — report it, don't skip silently

4. Notify via WhatsApp

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).

5. Infrastructure

bash
python3 {user.workspace}/scripts/cron_canary.py ping todoist-due-drafts

Error handling

  • If todoist-cli fails: notify via WhatsApp "⚠️ Todoist due-drafts failed: ", ping canary, exit.
  • If Granola/Grain lookup fails for a task: continue without meeting context — draft from email history + task content only.
  • If Gmail draft creation fails for one task: continue with remaining tasks, report failures in the notification.
  • If no .env file or token expired: report "⚠️ Todoist token unavailable — check agent-secrets lease" and exit.

Rules

  • Don't complete the tasks — just draft and notify. User decides when to send.
  • Before drafting, check if user already replied: 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.
  • Check for existing drafts before creating: 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."
  • Overdue outreach tasks get a ⚠️ prefix in the notification.

常见问题

Todoist Due Drafts AI 技能有什么作用?

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.

为什么在 TypingMind 中使用 Todoist Due Drafts?

因为您只需安装一次,就能搭配任何模型使用。Todoist Due Drafts 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Todoist Due Drafts?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/mgonto/executive-assistant-skills/tree/main/todoist-due-drafts。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Todoist Due Drafts?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Todoist Due Drafts 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Todoist Due Drafts 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Todoist Due Drafts AI 技能免费吗?

mgonto 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇