Todoist

From malue-ai/dazee-small · View interactive version

Todoist is an AI agent skill from the GitHub repository malue-ai/dazee-small. Manage Todoist tasks and projects via REST API.

How to use this skill

Skill file

Todoist 任务管理

通过 Todoist REST API 管理任务、项目和标签。

使用场景

前置条件

需要设置环境变量 TODOIST_API_TOKEN:

  1. 访问 https://todoist.com/app/settings/integrations/developer → 复制 API Token
  2. 设置:export TODOIST_API_TOKEN="your-token"

执行方式

获取任务

curl -s "https://api.todoist.com/rest/v2/tasks" \
  -H "Authorization: Bearer $TODOIST_API_TOKEN" | python3 -m json.tool

过滤今天的任务:

curl -s "https://api.todoist.com/rest/v2/tasks?filter=today" \
  -H "Authorization: Bearer $TODOIST_API_TOKEN"

创建任务

curl -s -X POST "https://api.todoist.com/rest/v2/tasks" \
  -H "Authorization: Bearer $TODOIST_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content":"任务内容","due_string":"tomorrow","priority":3}'

priority:1(普通)→ 4(紧急)。due_string 支持自然语言("tomorrow", "next monday", "every day")。

完成任务

curl -s -X POST "https://api.todoist.com/rest/v2/tasks/{task_id}/close" \
  -H "Authorization: Bearer $TODOIST_API_TOKEN"

获取项目

curl -s "https://api.todoist.com/rest/v2/projects" \
  -H "Authorization: Bearer $TODOIST_API_TOKEN"

输出规范

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.