Todo List logo

Todo List

Community
bd-dxg
todo-list

个人待办(todolist)增删改查工具,支持项目/子任务多级嵌套、父级进度自动汇总、软删除回收站。只要用户以 "ta#" 开头发指令(如 ta#加个任务、ta#看看有什么没做完、ta#把第2条完成、ta#删除第3条、ta#还原),就必定使用本 skill 解析意图并调用脚本执行。也用于用户提到 todo/待办/任务清单/项目分期/子任务 时。

Overview

Publisherbd-dxg
Repositoryskills
Skill nametodo-list
Stars
32
Forks
4
Bundled files
1
LicenseAGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by bd-dxg on GitHub. Read the source before you install it.

Installation

Install the Todo List AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/bd-dxg/skills/tree/main/todo-list
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bd-dxg/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/todo-list .claude/skills/todo-list
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Todo List in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Todo List on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Todo List is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

todo-list(个人待办清单)

管理用户的个人待办事项,数据持久化在 ~/.todo/todo.json(跨会话、跨项目)。支持多级父子嵌套(项目→子任务→子子任务)、父级自动汇总子任务进度、软删除回收站(可还原/彻底清空)。

关键:统一入口 ta#

用户会用 ta# 开头的自然语言发起 todolist 操作,例如:

  • ta#加个任务:写周报
  • ta#看看我有哪些没做完的
  • ta#在 学习编程 下建个子任务 掌握基础语法
  • ta#把第 2 条标记完成
  • ta#删除第 3 条
  • ta#看看回收站
  • ta#还原第 2 条
  • ta#清空回收站

只要消息以 ta# 开头(即使用户没明说"待办/todo"),一律进入本 skill:解析 ta# 后面的自然语言 → 确定意图和参数 → 调用脚本执行 → 把脚本的中文输出原样汇报给用户。非 ta# 开头的内容不要触发。

执行入口

脚本固定在 C:/Users/bddxg/.agents/skills/todo-list/scripts/todo.js(字符集 UTF-8。若移动了 skill,按当前 skill 目录下的 scripts/todo.js 找)。

统一调用方式(Windows 下用反斜杠分隔亦可):

bash
node <skill目录>/scripts/todo.js <命令> <参数>

务必调用脚本执行,不要用 node -e 临场改 JSON——所有逻辑(id 分配、父子汇总、软删除、原子写入)都已在脚本内实现,临场重写既慢又易错。

脚本执行后,把它 stdout 的中文结果直接读给/展示给用户即可(脚本已处理所有回显和提示,无需二次加工)。

脚本内置交互自足能力:node todo.js help(或 -h/无参数)可查看完整用法与示例;数据文件 ~/.todo/todo.json 不存在时,脚本会自动创建并在首次操作时输出提示。当解析的脚本命令遇到困惑时,可先跑 help 确认正确写法。

意图 → 命令映射

把 ta# 后的自然语言按上表解析成脚本命令。识别序号时,用户说的「第 N 条 / N 号 / #N」对应列表里显示的层级序号(如 4.1、4.2),脚本会自动解析为内部 id。若用户用标题/描述指代某条,先跑 list 找到对应层级序号再操作。

用户意图(示例说法)脚本调用
添加顶层任务加个任务:xxx、新建议题 xxx、记一下 xxxtodo.js add --title "标题"
批量添加(推荐用于创建子任务)在 <父> 下批量建子任务、一口气加一堆todo.js batch-add --parent <父id> --title "标题1" --title "标题2" --title "标题3"
添加子任务(单条)在 <父> 下建个 xxx、加个子任务 xxxtodo.js add --parent <父id> --title "标题"
添加时带附加信息追加 --priority 高|中|低(优先级)、--due YYYY-MM-DD(截止日期)、--repeat daily|weekly|monthly(循环类型)。未提到就不传,脚本自动留空
创建循环任务每天重复:xxx、每周一写周报、每月15号还信用卡todo.js add --title "标题" --repeat daily(每日)todo.js add --title "标题" --repeat weekly --every 周一(每周)todo.js add --title "标题" --repeat monthly --every 15(每月)没指定 --due 时自动计算第一个截止日期
设置/修改循环把第 N 条改成每日重复、改为每周三todo.js edit <序号> --repeat daily|weekly|monthly修改每周需加 --every 周几,修改每月需加 --every 日
取消循环取消第 N 条的循环、第 N 条不再重复todo.js edit <序号> --repeat off
列出/查看全部看看、列出、有什么没做完的、查一下todo.js list
排序查看todo.js list --sort priority|due|id
查看单条+子任务看看第 N 条详情、查一下 xxxtodo.js show <序号>
批量完成(推荐)完成 4.1 4.2 4.3、把这3个做完todo.js batch-done 4.1 4.2 4.3
标记完成把第 N 条完成、第 N 条搞定、勾掉 xxxtodo.js done <序号>
取消完成恢复未完成、取消完成 xxxtodo.js undo <序号>
改标题改第 N 条标题为 xxx、重命名 xxxtodo.js edit <序号> --title "新标题"
设优先级给第 N 条设高优先级todo.js prio <序号> 高|中|低|无
设截止日期第 N 条截止到 2026-03-01todo.js due <序号> YYYY-MM-DD|无
删除(软删除入回收站)删掉第 N 条、移除 xxxtodo.js del <序号>
查看回收站回收站、看下已删除的todo.js trash
还原还原第 N 条、找回 xxxtodo.js restore <序号>
清空回收站清空回收站、彻底删除todo.js empty-trash

循环任务自动生成下一周期:标记完成一个循环任务时,脚本自动创建下一个周期副本,旧副本在 list 中隐藏。用 show 可查看历史副本。

批量创建子任务务必使用 batch-add:一条命令一次 load/save,避免并发冲突和顺序错乱。

示例:todo.js batch-add --parent 4 --title "子任务A" --title "子任务B" --title "子任务C" 会按参数顺序依次分配 id 并追加,保证顺序正确。

批量完成用 batch-done:todo.js batch-done 4.1 4.2 4.3 一次性完成多条。

所有操作命令均支持层级序号:done 4.1、del 4.10、show 4.5 等,无需查内部 id。

多条并列意图(ta#加一个打包上线,顺便看看今天的)可顺序执行多个脚本调用。

数据模型与规则

~/.todo/todo.json 结构(扁平数组 + parent_id 形成树,deleted 实现软删除):

json
{ "next_id": 5, "items": [
  { "id": 1, "title": "学习编程", "done": false, "parent_id": null,
    "created_at": "...", "deleted": false, "priority": null, "due_date": null },
  { "id": 2, "title": "写日报", "done": false, "parent_id": null,
    "created_at": "...", "deleted": false, "priority": null, "due_date": "2026-03-18",
    "recurrence": { "type": "daily" },
    "recurrence_group_id": "rec_xx_xxxx" }
] }

需要遵循的约束(脚本已内置,但理解它们有助于正确引导用户、准确把自然语言映射到命令):

  • 优先级 priority:高 / 中 / 低 / null(未设置)。
  • 截止 due_date:YYYY-MM-DD 或 null(未设置)。
  • 循环 recurrence:{ type: "daily" } / { type: "weekly", day: 1-7 } / { type: "monthly", date: 1-31 } / null。
  • 循环分组 recurrence_group_id:同一循环任务的不同实例共享此 id,用于关联和隐藏历史副本。
  • 父级自动汇总:有子任务的条目不能手动 done/undo,其完成状态由「所有直接子任务是否完成」自动推出,list 会显示 子任务 x/y 与完成符号。想让父级"完成",去完成它的子任务即可。
  • 软删除:del 只是标记 deleted=true(连带其整个子树);trash 看回收站,restore 还原(连带子树),empty-trash 才物理删除。
  • 循环任务规则:
    • 标记完成时自动生成下一周期副本(旧副本在 list 中隐藏,show 仍可查看)。
    • 生成副本时复制标题、优先级、父级关系、循环配置。
    • 未指定 --due 时,脚本自动计算第一个截止日期(每日→今天,每周→最近的目标日,每月→最近的目标日)。
    • undo 一个循环任务时,如果同组已有更新的副本会被拒绝,提示用户操作新副本。
  • id 自动分配、不复用;显示按创建顺序。

输出铁律(硬规则,违反 = 不合格)

1. 原样输出,绝不二次加工

脚本 stdout 的结果原样展示给用户,不得做任何重新排版、格式化、换表格、加表格、摘要、精简、美化。脚本已经精心设计了输出格式,不需要也不允许再加工。

禁止行为:

  • ✗ 把 list 的文本输出改成 Markdown 表格
  • ✗ 把脚本输出摘要成几句话
  • ✗ 给输出加上额外的 emoji、分隔线、标题
  • ✗ 对完成度做二次计算再展示

正确做法:脚本返回什么 → 用户看到什么,一字不差。

2. 简单操作零冗余

对于 list、trash、show 这类纯查询操作:

  • 不要重新读取 SKILL.md——你已经在执行上下文里了,规则你已经知道
  • 不要解析意图——看看/查看/列一下 就是 list,直接执行
  • 不要多余步骤——一条 node todo.js list 直接跑,跑完原样展示,结束

查询类操作的目标耗时:脚本执行 + 原样回显 = 结束,不做任何其他事。

3. 速度优先

用户的待办数据就在那,脚本跑一下只要几百毫秒。任何不必要的额外工具调用(重读 skill、查文档、做分析)都是浪费时间。每次操作只调用一个脚本命令,不要做多个无关调用。

边界处理

  • 用户省略优先级/截止日期 → 不传参数,保持留空,不要替用户假设默认值。
  • 用户对一个有子任务的条目说"完成" → 按脚本提示,引导其完成子任务,父级自动更新。
  • 对已删除条目再 del / 已还原条目再 restore → 脚本会给出友好报错,把报错原样汇报即可。
  • 识别到的 id 不存在 → 先 list 让用户确认编号,避免误删。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Todo List AI skill do?

个人待办(todolist)增删改查工具,支持项目/子任务多级嵌套、父级进度自动汇总、软删除回收站。只要用户以 "ta#" 开头发指令(如 ta#加个任务、ta#看看有什么没做完、ta#把第2条完成、ta#删除第3条、ta#还原),就必定使用本 skill 解析意图并调用脚本执行。也用于用户提到 todo/待办/任务清单/项目分期/子任务 时。

Why use Todo List on TypingMind?

Because you install it once and use it with any model. Todo List is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Todo List in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bd-dxg/skills/tree/main/todo-list. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Todo List?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Todo List?

As many as you like. As long as a model supports skills, you can use Todo List with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Todo List AI skill free?

Yes. It is published on GitHub by bd-dxg under the AGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇