Todo updater

From huangruiteng/CS-Notes · View interactive version

Todo updater is an AI agent skill from the GitHub repository huangruiteng/CS-Notes. 使用Todos Web Manager的API来更新todo状态,避免直接编辑todos.json导致的语法错误。

How to use this skill

Skill file

Todo Updater Skill

使用Todos Web Manager的API来更新todo状态,避免直接编辑todos.json导致的语法错误。

功能特性

安装与使用

前置条件

  1. 确保Todos Web Manager的server.py正在运行
  2. 确保可以访问 http://localhost:5000

使用方法

方式一:更新todo状态
python3 main.py <task_id> <new_status> [progress]

示例:

# 更新todo状态为completed
python3 main.py todo-20260225-008 completed

# 更新todo状态为completed,并设置进度
python3 main.py todo-20260225-008 completed "✅ 已完成!"

# 更新todo状态为in-progress
python3 main.py todo-20260225-008 in-progress
方式二:从stdin读取JSON更新todo
cat update.json | python3 main.py <task_id>

update.json示例:

{
  "status": "completed",
  "progress": "✅ 已完成!",
  "completed_at": "2026-02-25T18:20:00.000000"
}

API说明

更新任务状态

更新任务

注意事项

  1. 如果Todos Web Manager的server.py没有运行,会提示连接失败
  2. 启动server.py的命令:cd .trae/web-manager && python3 server.py
  3. 如果API调用失败,可以考虑直接编辑todos.json,但要非常小心,确保JSON语法正确

相关技能

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.