Install
openclaw skills install todo-master用于本地待办管理的技能,支持基于 Python CLI 和 SQLite 存储待办;首次必须由用户确认数据目录(默认使用当前 skill 目录下的 data,或指定一个已存在的绝对路径);支持添加待办、快速添加今日/明日待办、查看今日待办、按状态/优先级/关键字筛选查看全部待办、查看单条、更新、完成、重开、归档,并通过数据库 schema migration 保护升级后的已有数据。
openclaw skills install todo-master脚本入口:
python3 ./todo-master/scripts/todo.py
主要文件:
./todo-master/config.json<data_dir>/todos.sqlite3./todo-master/requirements.txt默认数据目录:
./todo-master/data运行环境:
如需按统一流程安装,可执行:
python3 -m pip install -r ./todo-master/requirements.txt
首次使用前必须先让用户确认数据目录:
python3 ./todo-master/scripts/todo.py init --default
python3 ./todo-master/scripts/todo.py init --data-dir /absolute/existing/path
规则:
--default 会使用当前 skill 目录下的 data/--data-dir 必须是一个已存在的绝对路径init 和 show-config 外不要执行其他命令查看当前配置:
python3 ./todo-master/scripts/todo.py show-config
添加普通待办:
python3 ./todo-master/scripts/todo.py add --title "准备周报" --content "汇总本周项目进展" --priority 4
python3 ./todo-master/scripts/todo.py add --title "整理材料" --content "补齐投标附件" --priority 5 --due 2026-03-20
python3 ./todo-master/scripts/todo.py add --title "联系客户" --content "确认下周演示时间" --priority 3 --due 2026-03-20T18:30
快速添加今日/明日待办:
python3 ./todo-master/scripts/todo.py add-today --title "回邮件" --content "回复合作方案" --priority 3
python3 ./todo-master/scripts/todo.py add-tomorrow --title "开复盘会" --content "准备会议提纲" --priority 4
查看今日待办(按今天到期):
python3 ./todo-master/scripts/todo.py list-today
python3 ./todo-master/scripts/todo.py list-today --json
查看全部待办:
python3 ./todo-master/scripts/todo.py list-all
python3 ./todo-master/scripts/todo.py list-all --json
python3 ./todo-master/scripts/todo.py list-all --status open --min-priority 4
python3 ./todo-master/scripts/todo.py list-all --keyword "周报" --limit 10
python3 ./todo-master/scripts/todo.py list-all --overdue
查看单条:
python3 ./todo-master/scripts/todo.py show --id <todo_id>
python3 ./todo-master/scripts/todo.py show --id <todo_id> --json
更新、完成、重开、归档:
python3 ./todo-master/scripts/todo.py update --id <todo_id> --title "新标题" --priority 5
python3 ./todo-master/scripts/todo.py update --id <todo_id> --due 2026-03-21T18:00
python3 ./todo-master/scripts/todo.py update --id <todo_id> --clear-due
python3 ./todo-master/scripts/todo.py done --id <todo_id>
python3 ./todo-master/scripts/todo.py reopen --id <todo_id>
python3 ./todo-master/scripts/todo.py archive --id <todo_id>
查看统计:
python3 ./todo-master/scripts/todo.py stats
config.json 只保存数据目录和数据库文件名PRAGMA user_version 管理 schema 版本title、content、priority 都必填priority 只能是 1 到 5list-today 的语义是“今天到期的待办”archive 是保留数据的软归档,不是物理删除