Todoist Manager
Todoist Manager Skill
This skill provides procedural guidance and utility scripts for interacting with the Todoist API.
Prerequisites
Configuration: The Todoist API token must be placed inside ./references/API_CONFIG.json in the todoist_api_token field. The token is NOT read from environment variables.
Core Workflows
1. Add Task
Use this for creating new to-do items. The script must support extracting task details.
Command Signature Example:
scripts/todoist_api.py add_task --content "Финализировать отчет по проекту X" --project_id "123456" --due_date "tomorrow" --priority 2
| Parameter | Description | Todoist Value Mapping |
|---|
| INLINECODE3 | The text of the task. | Required |
| INLINECODE4 |
Target project ID. | Optional |
|
due_date | Date/Time for completion (e.g., "tomorrow", "today", "next friday 10am"). | Optional (Use natural language recognized by Todoist API) |
|
priority | Urgency level (1-4). | Optional (1=High, 4=No Priority) |
2. Manage Task Status (Complete/Delete)
Use for status changes once a task ID is known.
Commands:
- - Complete: INLINECODE7
- Delete: INLINECODE8
3. Project Navigation
Use to list available projects for targeting new tasks.
Command:
- - List Projects: INLINECODE9
Note on Projects: Initial tests confirmed that the correct base URL appears to be /api/v2/. Using a real token should yield a list of projects or a 401/403 error if the token is invalid or lacks scope. The endpoint for listing projects is /projects.
Current State
The API integration script, scripts/todoist_api.py, has been created as a mock stub. It currently simulates API calls by printing the intended action and arguments to the console instead of hitting the live Todoist API.
This structure is now complete and ready for you to populate with your actual API credentials and implementation details.
Resources (optional)
Create only the resource directories this skill actually needs. Delete this section if no resources are required.
scripts/
Executable code (Python/Bash/etc.) that can be run directly to perform specific operations.
Examples from other skills:
- - PDF skill:
fill_fillable_fields.py, extract_form_field_info.py - utilities for PDF manipulation - DOCX skill:
document.py, utilities.py - Python modules for document processing
Appropriate for: Python scripts, shell scripts, or any executable code that performs automation, data processing, or specific operations.
Note: Scripts may be executed without loading into context, but can still be read by Codex for patching or environment adjustments.
references/
Documentation and reference material intended to be loaded into context to inform Codex's process and thinking.
Examples from other skills:
- - Product management:
communication.md, context_building.md - detailed workflow guides - BigQuery: API reference documentation and query examples
- Finance: Schema documentation, company policies
Appropriate for: In-depth documentation, API references, database schemas, comprehensive guides, or any detailed information that Codex should reference while working.
assets/
Files not intended to be loaded into context, but rather used within the output Codex produces.
Examples from other skills:
- - Brand styling: PowerPoint template files (.pptx), logo files
- Frontend builder: HTML/React boilerplate project directories
- Typography: Font files (.ttf, .woff2)
Appropriate for: Templates, boilerplate code, document templates, images, icons, fonts, or any files meant to be copied or used in the final output.
Not every skill requires all three types of resources.
Todoist Manager
Todoist Manager 技能
本技能提供与Todoist API交互的程序化指导和实用脚本。
前置条件
配置:Todoist API令牌必须放置在./references/APICONFIG.json文件的todoistapi_token字段中。令牌不会从环境变量中读取。
核心工作流
1. 添加任务
用于创建新的待办事项。脚本必须支持提取任务详情。
命令签名示例:
scripts/todoistapi.py addtask --content 完成项目X的最终报告 --projectid 123456 --duedate 明天 --priority 2
| 参数 | 描述 | Todoist值映射 |
|---|
| content | 任务文本。 | 必填 |
| project_id |
目标项目ID。 | 可选 |
| due_date | 完成日期/时间(例如:明天、今天、下周五上午10点)。 | 可选(使用Todoist API识别的自然语言) |
| priority | 紧急程度(1-4)。 | 可选(1=高优先级,4=无优先级) |
2. 管理任务状态(完成/删除)
在已知任务ID后用于状态变更。
命令:
- - 完成:scripts/todoistapi.py completetask --taskid 78901
- 删除:scripts/todoistapi.py deletetask --taskid 78901
3. 项目导航
用于列出可用项目以定位新任务。
命令:
- - 列出项目:scripts/todoistapi.py listprojects
关于项目的说明:初步测试确认正确的基URL似乎是/api/v2/。使用真实令牌应返回项目列表,如果令牌无效或缺少权限则返回401/403错误。列出项目的端点是/projects。
当前状态
API集成脚本scripts/todoist_api.py已创建为模拟存根。它当前通过将预期操作和参数打印到控制台来模拟API调用,而不是访问真实的Todoist API。
此结构现已完成,可供您填入实际的API凭据和实现细节。
资源(可选)
仅创建此技能实际需要的资源目录。如果不需要资源,请删除此部分。
scripts/
可直接运行以执行特定操作的可执行代码(Python/Bash等)。
其他技能的示例:
- - PDF技能:fillfillablefields.py、extractformfield_info.py - 用于PDF操作的实用程序
- DOCX技能:document.py、utilities.py - 用于文档处理的Python模块
适用场景:Python脚本、Shell脚本或任何执行自动化、数据处理或特定操作的可执行代码。
注意:脚本可在不加载到上下文的情况下执行,但仍可由Codex读取以进行修补或环境调整。
references/
旨在加载到上下文中以指导Codex流程和思考的文档和参考资料。
其他技能的示例:
- - 产品管理:communication.md、context_building.md - 详细的工作流指南
- BigQuery:API参考文档和查询示例
- 财务:架构文档、公司政策
适用场景:深度文档、API参考、数据库架构、综合指南或Codex在工作时应参考的任何详细信息。
assets/
不打算加载到上下文中,而是在Codex生成的输出中使用的文件。
其他技能的示例:
- - 品牌样式:PowerPoint模板文件(.pptx)、Logo文件
- 前端构建器:HTML/React样板项目目录
- 排版:字体文件(.ttf、.woff2)
适用场景:模板、样板代码、文档模板、图片、图标、字体或任何旨在复制或用于最终输出的文件。
并非每个技能都需要所有三种类型的资源。