← Back to Skills Marketplace
27
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install laosi-quick-todo
Description
待办清单 - 最轻的任务管理,语音添加、划掉完成、进度统计、优先级排序,本地JSON存储
README (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+
- 无第三方依赖
Usage Guidance
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install laosi-quick-todo - After installation, invoke the skill by name or use
/laosi-quick-todo - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Quick Todo 1.0.0 - 初始版本发布
- 支持语音和文字方式快速添加待办任务
- 可标记任务完成、删除任务
- 提供高/中/低优先级排序,自动按待办和优先级排序显示
- 实现进度统计,包括完成数、总数和百分比
- 任务数据本地 JSON 文件持久化,无需额外依赖
Metadata
Frequently Asked Questions
What is 待办清单?
待办清单 - 最轻的任务管理,语音添加、划掉完成、进度统计、优先级排序,本地JSON存储. It is an AI Agent Skill for Claude Code / OpenClaw, with 27 downloads so far.
How do I install 待办清单?
Run "/install laosi-quick-todo" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 待办清单 free?
Yes, 待办清单 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 待办清单 support?
待办清单 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 待办清单?
It is built and maintained by 534422530 (@534422530); the current version is v1.0.0.
More Skills