Todoist Manager — Todoist 管理器
v2Manage Todoist tasks, projects, labels, and comments via the todoist 命令行工具 wr应用er. Use when a user asks to 添加 tasks, 列出 todos, complete items, manage projects, or interact with their Todoist account.
运行时依赖
安装命令
点击复制技能文档
Todoist 命令行工具
Manage Todoist via the REST API v2.
设置up 获取 API 令牌: Todoist → 设置tings → Integrations → Developer → API 令牌 设置 环境 variable: 导出 TODOIST_API_令牌="your_令牌_here"
Make 命令行工具 executable: chmod +x ~/clawd/技能s/todoist/scripts/todoist
命令行工具 Location ~/clawd/技能s/todoist/scripts/todoist
Quick Reference Tasks # 列出 all tasks todoist tasks
# 列出 with 过滤器 todoist tasks --过滤器 "today" todoist tasks --过滤器 "overdue" todoist tasks --过滤器 "#Work" todoist tasks --project PROJECT_ID
# Quick views todoist today todoist overdue todoist upcoming
# 获取 single task todoist task TASK_ID
# 添加 task todoist 添加 "Buy groceries" todoist 添加 "Call mom" --due tomorrow todoist 添加 "Meeting prep" --due "today 3pm" --priority 4 todoist 添加 "Review PR" --project PROJECT_ID --labels "work,urgent" todoist 添加 "Write docs" --description "Include examples"
# 更新 task todoist 更新 TASK_ID --content "New title" todoist 更新 TASK_ID --due "next monday" todoist 更新 TASK_ID --priority 3
# Complete / reopen / 删除 todoist complete TASK_ID todoist reopen TASK_ID todoist 删除-task TASK_ID
Projects # 列出 projects todoist projects
# 获取 project todoist project PROJECT_ID
# 创建 project todoist 添加-project "Work" todoist 添加-project "Personal" --color blue --favorite
# 更新 project todoist 更新-project PROJECT_ID --name "New Name" todoist 更新-project PROJECT_ID --color red
# 删除 project todoist 删除-project PROJECT_ID
Sections # 列出 sections todoist sections todoist sections PROJECT_ID
# 创建 section todoist 添加-section --name "In 进度" --project PROJECT_ID
# 删除 section todoist 删除-section SECTION_ID
Labels # 列出 labels todoist labels
# 创建 label todoist 添加-label "urgent" todoist 添加-label "blocked" --color red
# 删除 label todoist 删除-label LABEL_ID
Comments # 列出 comments todoist comments --task TASK_ID todoist comments --project PROJECT_ID
# 添加 comment todoist 添加-comment "Need more 信息" --task TASK_ID
# 删除 comment todoist 删除-comment COMMENT_ID
过滤器 Syntax
Todoist supports powerful 过滤器 queries:
过滤器 Description today Due today tomorrow Due tomorrow overdue Past due 7 days Due in next 7 days no date No due date #ProjectName In specific project @label Has label p1, p2, p3, p4 Priority level as签名ed to: me As签名ed to you 创建d: today 创建d today
Combine with & (and) or | (or):
todoist tasks --过滤器 "today & #Work" todoist tasks --过滤器 "overdue | p1"
Due Date Strings
Natural language due dates:
today, tomorrow, yesterday next monday, next week in 3 days every day, every weekday every monday at 9am Jan 15, 2026-01-20 today at 3pm Priority Levels Value Meaning 1 Normal (default) 2 Medium 3 High 4 Urgent 输出
All commands return JSON. Pipe to jq for 格式化ting:
todoist tasks | jq '.[] | {id, content, due: .due.string}' todoist today | jq -r '.[].content'
Notes Requires curl and jq All 输出 is JSON for easy scripting Task IDs are numeric strings (e.g., "8765432109") Project IDs are also numeric strings