← 返回 Skills 市场
27
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install laosi-quick-todo
功能描述
待办清单 - 最轻的任务管理,语音添加、划掉完成、进度统计、优先级排序,本地JSON存储
使用说明 (SKILL.md)
Quick Todo - 待办清单
激活词: 待办 / 任务 / todo / 加一个任务
功能
- 语音/文字快速添加任务
- 标记完成 / 删除任务
- 优先级排序(high / medium / low)
- 进度统计(完成/待办/总数)
- 本地 JSON 持久化
Python 实现
import os, json
from datetime import datetime
TASKS_FILE = os.path.join(os.path.dirname(__file__), "quick_tasks.json")
class QuickTodo:
def __init__(self):
os.makedirs(os.path.dirname(TASKS_FILE), exist_ok=True)
self.tasks = self._load()
def _load(self):
if os.path.exists(TASKS_FILE):
with open(TASKS_FILE, encoding="utf-8") as f:
return json.load(f)
return []
def _save(self):
with open(TASKS_FILE, "w", encoding="utf-8") as f:
json.dump(self.tasks, f, ensure_ascii=False, indent=2)
def add(self, task: str, priority: str = "medium", due: str = None) -> dict:
"""添加新任务"""
item = {
"id": len(self.tasks) + 1,
"task": task,
"priority": priority,
"done": False,
"created": datetime.now().isoformat(),
"due": due,
"completed_at": None
}
self.tasks.append(item)
self._save()
return item
def done(self, task_id: int) -> bool:
"""标记完成"""
for t in self.tasks:
if t["id"] == task_id:
t["done"] = True
t["completed_at"] = datetime.now().isoformat()
self._save()
return True
return False
def delete(self, task_id: int) -> bool:
"""删除任务"""
before = len(self.tasks)
self.tasks = [t for t in self.tasks if t["id"] != task_id]
if len(self.tasks) \x3C before:
self._save()
return True
return False
def list(self, filter_done: bool = None, priority: str = None) -> list:
"""查看任务,支持筛选"""
results = self.tasks
if filter_done is not None:
results = [t for t in results if t["done"] == filter_done]
if priority:
results = [t for t in results if t["priority"] == priority]
# 排序:待办优先、高优先级优先
results.sort(key=lambda t: (
t["done"],
{"high": 0, "medium": 1, "low": 2}.get(t["priority"], 3),
t["created"]
))
return results
def stats(self) -> dict:
"""进度统计"""
total = len(self.tasks)
done_count = sum(1 for t in self.tasks if t["done"])
pending = total - done_count
return {
"total": total,
"done": done_count,
"pending": pending,
"progress": f"{done_count}/{total}",
"pct": round(done_count / total * 100, 1) if total > 0 else 0
}
# 使用示例
todo = QuickTodo()
todo.add("学习Transformer架构", priority="high")
todo.add("写周报", priority="medium", due="2026-05-30")
todo.add("整理书签", priority="low")
# 查看待办
for t in todo.list(filter_done=False):
pri = {"high": "🔴", "medium": "🟡", "low": "⚪"}[t["priority"]]
print(f"[{t['id']}] {pri} {t['task']}")
# 标记完成
todo.done(1)
# 查看统计
s = todo.stats()
print(f"进度: {s['done']}/{s['total']} ({s['pct']}%)")
命令行用法
# 添加一个高优先级任务
python -c "from quick_todo import QuickTodo; QuickTodo().add('读FlashAttention论文', priority='high')"
# 标记完成
python -c "from quick_todo import QuickTodo; QuickTodo().done(1)"
# 查看统计
python -c "from quick_todo import QuickTodo; print(QuickTodo().stats())"
数据格式
[
{
"id": 1,
"task": "学习Transformer架构",
"priority": "high",
"done": true,
"created": "2026-05-28T10:00:00",
"due": null,
"completed_at": "2026-05-28T11:30:00"
}
]
使用场景
- 日常任务: 早上列今天要做的事,做完一条说一声
- 购物清单: 去超市前快速列清单
- 项目追踪: 拆分大任务为小步骤,逐项攻克
- GTD工作流: 收集→整理→执行 的轻量实现
依赖
- Python 3.8+
- 无第三方依赖
安全使用建议
Installers should understand that the skill may create or update a local quick_tasks.json file for todo items. Consider using more specific phrasing when invoking it, especially before delete or mark-complete actions.
能力评估
Purpose & Capability
The described capability is lightweight task management: add, list, complete, delete, sort by priority, and show stats. The embedded Python matches that purpose.
Instruction Scope
The activation phrases include broad terms like todo and task, which could trigger accidentally, but the resulting actions are limited to the disclosed todo list.
Install Mechanism
The artifact contains only a SKILL.md file, declares no third-party dependencies, and includes example Python code rather than an executable installer.
Credentials
The skill uses local file I/O for its own quick_tasks.json data store, which is proportionate to a local todo manager.
Persistence & Privilege
It persists todo items locally in JSON as disclosed; there is no evidence of background execution, privilege escalation, credential use, or external data transfer.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install laosi-quick-todo - 安装完成后,直接呼叫该 Skill 的名称或使用
/laosi-quick-todo触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Quick Todo 1.0.0 - 初始版本发布
- 支持语音和文字方式快速添加待办任务
- 可标记任务完成、删除任务
- 提供高/中/低优先级排序,自动按待办和优先级排序显示
- 实现进度统计,包括完成数、总数和百分比
- 任务数据本地 JSON 文件持久化,无需额外依赖
元数据
常见问题
待办清单 是什么?
待办清单 - 最轻的任务管理,语音添加、划掉完成、进度统计、优先级排序,本地JSON存储. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 27 次。
如何安装 待办清单?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install laosi-quick-todo」即可一键安装,无需额外配置。
待办清单 是免费的吗?
是的,待办清单 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
待办清单 支持哪些平台?
待办清单 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 待办清单?
由 534422530(@534422530)开发并维护,当前版本 v1.0.0。
推荐 Skills