todo_list
Use this skill to persist local work items instead of keeping them only in chat context.
Workflow
- - Run commands from
{baseDir}/scripts/todo_list.py. - Store data in
~/.work_report_summary/todo_list.db by default. - Override the database path with
TODO_LIST_DB_PATH only for tests or when the user explicitly wants a different file. - Prefer
--json whenever the command output will be used in a follow-up step. - Keep completed items visible in active lists until the user asks to archive them.
- Treat archived items as terminal history. Do not update their progress after archiving.
- Use
delete only when the user explicitly wants permanent removal. Prefer archive when the user means "move to history". - Before running
delete, ask for one more explicit confirmation from the user. Permanent deletion should be confirmed, not inferred.
Natural-Language Patterns
Map common user requests to the deterministic CLI instead of keeping task state only in conversation memory.
- - Add planned work when the user says things like:
帮我记一下今天要做周报
新增一个任务:整理 demo,计划 3 步
记个 todo:修登录页 bug
- - Update progress when the user says things like:
这个任务我做了 2 步
把周报进度更新到 60%
这个任务今天先完成一半
- - Mark complete when the user says things like:
这个任务做完了
把第 3 个任务标记完成
周报已经完成
- - List or review current work when the user says things like:
看看我现在还有什么没做
列出今天的 todo
我有哪些已经完成但还没归档的任务
- - Summarize when the user says things like:
汇总一下我今天做了多少
看下整体进度
给我一个当前完成情况
- - Archive only when the user explicitly asks to archive or move finished work into history:
把这个任务归档
把已完成任务都归档
- - Delete only when the user explicitly asks to permanently remove a task:
把这个任务删掉
永久删除第 3 个任务
这个 todo 不要了,直接删除
- - If the user asks to delete, confirm once more before actually deleting.
When the user does not specify an exact task id, identify the task by title or recent context first, then run the CLI with the resolved id.
Core Commands
python {baseDir}/scripts/todo_list.py --json add --title "Prepare weekly report" --planned-amount 3 --unit sections --details "Collect wins and blockers"
python {baseDir}/scripts/todo_list.py --json progress --id 1 --increment 1 --note "Finished the metrics section"
python {baseDir}/scripts/todo_list.py --json complete --id 1
python {baseDir}/scripts/todo_list.py --json list --status active
python {baseDir}/scripts/todo_list.py --json archive --id 1
- - Archive by exact title:
python {baseDir}/scripts/todo_list.py --json archive --title "Prepare weekly report"
- - Archive all completed tasks:
python {baseDir}/scripts/todo_list.py --json archive --all-completed
- - Delete a task permanently:
python {baseDir}/scripts/todo_list.py --json delete --id 1 --confirm
python {baseDir}/scripts/todo_list.py --json delete --title "Prepare weekly report" --confirm
INLINECODE36
References
- - Read
{baseDir}/references/commands.md for full CLI shapes and example flows. - Read
{baseDir}/references/chat_reference.md for natural-language examples and intent-to-command mapping. - Read
{baseDir}/references/storage.md when changing the SQLite schema, default path, or environment-variable behavior.
todo_list
使用此技能持久化保存本地工作项,而不是仅保留在聊天上下文中。
工作流程
- - 从 {baseDir}/scripts/todolist.py 运行命令。
- 默认将数据存储在 ~/.workreportsummary/todolist.db。
- 仅在测试或用户明确需要不同文件时,通过 TODOLISTDB_PATH 覆盖数据库路径。
- 当命令输出将用于后续步骤时,优先使用 --json。
- 在用户要求归档之前,保持已完成项目在活动列表中可见。
- 将已归档项目视为终态历史记录。归档后不再更新其进度。
- 仅在用户明确要求永久删除时使用 delete。当用户表示移至历史记录时,优先使用 archive。
- 在执行 delete 之前,向用户再次明确确认。永久删除应经过确认,而非推断。
自然语言模式
将常见用户请求映射到确定性 CLI,而不是仅在对话记忆中保留任务状态。
帮我记一下今天要做周报
新增一个任务:整理 demo,计划 3 步
记个 todo:修登录页 bug
这个任务我做了 2 步
把周报进度更新到 60%
这个任务今天先完成一半
这个任务做完了
把第 3 个任务标记完成
周报已经完成
看看我现在还有什么没做
列出今天的 todo
我有哪些已经完成但还没归档的任务
汇总一下我今天做了多少
看下整体进度
给我一个当前完成情况
- - 仅在用户明确要求归档或将已完成工作移至历史记录时执行归档:
把这个任务归档
把已完成任务都归档
把这个任务删掉
永久删除第 3 个任务
这个 todo 不要了,直接删除
当用户未指定确切任务 ID 时,首先通过标题或近期上下文识别任务,然后使用解析出的 ID 运行 CLI。
核心命令
python {baseDir}/scripts/todo_list.py --json add --title 准备周报 --planned-amount 3 --unit 章节 --details 收集成果和阻碍
python {baseDir}/scripts/todo_list.py --json progress --id 1 --increment 1 --note 完成了指标章节
python {baseDir}/scripts/todo_list.py --json complete --id 1
python {baseDir}/scripts/todo_list.py --json list --status active
python {baseDir}/scripts/todo_list.py --json archive --id 1
python {baseDir}/scripts/todo_list.py --json archive --title 准备周报
python {baseDir}/scripts/todo_list.py --json archive --all-completed
python {baseDir}/scripts/todo_list.py --json delete --id 1 --confirm
python {baseDir}/scripts/todo_list.py --json delete --title 准备周报 --confirm
python {baseDir}/scripts/todo_list.py --json summary
参考资料
- - 阅读 {baseDir}/references/commands.md 了解完整 CLI 格式和示例流程。
- 阅读 {baseDir}/references/chat_reference.md 了解自然语言示例和意图到命令的映射。
- 更改 SQLite 模式、默认路径或环境变量行为时,阅读 {baseDir}/references/storage.md。