Agent skill · Workflow & Productivity

deepagents-todolist

Using TodoListMiddleware for task planning and tracking progress with the write_todos tool in Deep Agents for complex multi-step workflows.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill deepagents-todolist --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/agent/deepagents-todolist/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# deepagents-todolist (JavaScript/TypeScript) ## 概述 TodoListMiddleware 通过 `write_todos` 工具为代理提供任务规划和进度跟踪功能。它自动包含在每个深度代理中,帮助代理将复杂的多步骤任务分解为可管理的部分。 ## 何时使用 TodoList 中间件 | 使用 TodoList 的场景 | 跳过 TodoList 的场景 | |------------------|-------------------| | 需要协调的复杂多步骤任务 | 简单的单动作任务 | | 进度可见性很重要的长时间运行操作 | 快速操作(< 3 步) | | 可能需要计划调整的任务 | 固定的、预定义的工作流 | ## 基本用法 ### 默认配置(自动包含) ```typescript import { createDeepAgent } from "deepagents"; // TodoListMiddleware 默认包含在内 const agent = await createDeepAgent({}); // 代理将自动使用 write_todos 处理复杂任务 const result = await agent.invoke({ messages: [{ role: "user", content: "创建一个 TypeScript 网络爬虫,提取产品数据,存储到数据库中,并生成报告。" }] }); ``` ### 自定义 TodoList 中间件 ```typescript import { createAgent, todoListMiddleware } from "langchain"; const agent = createAgent({ model: "claude-sonnet-4-5-20250929", middleware: [ todoListMiddleware({ systemPrompt: `使用 write_todos 工具来规划您的工作: 1. 将任务分解为 3-5 个主要步骤 2. 开始时将任务标记为 'in_progress' 3. 完成后将任务标记为 'completed' 4. 如果计划发生变化,更新列表 `, }), ], }); ``` ## 决策表:Todo List 模式 | 任务类型 | Todo List 策略 | 示例 | |-----------|-------------------|---------| | 顺序步骤 | 预先创建所有待办事项,按顺序完成 | 构建应用:设置 → 编码 → 测试 → 部署 | | 探索式任务 | 根据需要添加待办事项 | 研究:初始搜索 → 后续跟进 → 综合 | | 并行工作 | 允许多个 "i

What's inside
Steps it walks through
  1. 概述
  2. 何时使用 TodoList 中间件
  3. 基本用法
  4. 默认配置(自动包含)
  5. 自定义 TodoList 中间件
  6. 决策表:Todo List 模式
  7. 代码示例
  8. 示例 1:顺序任务分解
  9. 示例 2:自定义 TodoList 指令
  10. 示例 3:访问 Todo 状态
  11. 边界
  12. 代理可以使用 TodoLists 做什么
  13. 代理不能做什么
  14. 注意事项
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the deepagents-todolist skill do?

Using TodoListMiddleware for task planning and tracking progress with the write_todos tool in Deep Agents for complex multi-step workflows.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill deepagents-todolist --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going