util-manage-todo
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseManage Todo
待办事项管理
Purpose
目标
Manage in project root with task state tracking, TodoWrite synchronization, and ADR-governed refactor support. Primary use: Claude proactively creates/updates todos when detecting multi-step work.
./todo.md管理项目根目录下的文件,支持任务状态跟踪、TodoWrite同步,以及受ADR管控的重构支持。主要用途:当Claude检测到存在多步骤工作时,主动创建/更新待办事项。
./todo.mdCRITICAL: Todo File Location
重要提示:待办文件位置
Use for 95% of work (this skill)
./todo.md| Use This Skill | Session Todo (rare) |
|---|---|
| Bug fixes, features, refactors | Temporary spikes only |
| Multi-step work, team coordination | Throwaway research |
| Work committed to git | Quick experiments (<1hr) |
| If unsure → use this skill |
Session todos:
.claude/artifacts/YYYY-MM-DD/todos/todo-{name}.md95%的工作场景请使用(本功能)
./todo.md| 使用本功能 | 会话待办(罕见场景) |
|---|---|
| Bug修复、功能开发、重构 | 仅临时突发任务 |
| 多步骤工作、团队协作 | 一次性调研工作 |
| 需提交至Git的工作 | 快速实验(耗时<1小时) |
| 若不确定→使用本功能 |
会话待办文件路径:
.claude/artifacts/YYYY-MM-DD/todos/todo-{name}.mdWhen to Use
适用场景
Agent-Initiated (PRIMARY)
智能体主动触发(主要场景)
PROACTIVELY invoke when Claude detects:
- "I need to create a todo to track this work"
- "User has given me multiple tasks to coordinate"
- "This is complex enough to warrant tracking"
当Claude检测到以下情况时,主动调用本功能:
- "我需要创建待办事项来跟踪这项工作"
- "用户给了我多项任务需要协调"
- "这项工作复杂度较高,需要进行跟踪"
User-Initiated
用户主动触发
When user requests:
- "Create a todo for [feature]"
- "Update task [N] to [state]"
- "Track these tasks"
当用户提出以下请求时:
- "为[功能]创建待办事项"
- "将任务[N]的状态更新为[状态]"
- "跟踪这些任务"
NOT to Use
不适用场景
- Single, straightforward tasks
- Trivial operations (<3 steps)
- Purely informational requests
- 单一、简单的任务
- 琐碎操作(步骤<3)
- 纯信息查询请求
Quick Start
快速开始
Creating a Todo
创建待办事项
- Read project context
- Create with structured tasks
./todo.md - Assign states (🔴 pending by default)
- Add acceptance criteria
- Sync with TodoWrite
- 读取项目上下文
- 创建结构化任务的文件
./todo.md - 分配状态(默认🔴 待处理)
- 添加验收标准
- 与TodoWrite同步
Updating State
更新状态
- Read
./todo.md - Update task state: 🔴 → 🟡 → 🟢
- Update TodoWrite to match
- Update progress summary
- 读取文件
./todo.md - 更新任务状态:🔴 → 🟡 → 🟢
- 更新TodoWrite保持同步
- 更新进度摘要
Checking Progress
查看进度
- Read
./todo.md - Calculate completion %
- Identify blockers
- Suggest next actions
- 读取文件
./todo.md - 计算完成率%
- 识别阻塞点
- 建议下一步操作
Basic Todo Structure
基础待办事项结构
markdown
undefinedmarkdown
undefinedTodo: [Feature Name]
待办事项:[功能名称]
Date: YYYY-MM-DD
日期:YYYY-MM-DD
Objective
目标
[Clear statement of goal]
[清晰的目标说明]
Tasks
任务
Task 1: [Title]
任务1:[标题]
Status: 🔴 Not Started | 🟡 In Progress | 🟢 Complete
Priority: High | Medium | Low
Description:
What needs to be done.
Acceptance Criteria:
- Functionality implemented
- Tests pass
- Code follows conventions
状态: 🔴 未开始 | 🟡 进行中 | 🟢 已完成
优先级: 高 | 中 | 低
描述:
需要完成的工作内容。
验收标准:
- 功能已实现
- 测试通过
- 代码符合规范
Progress Summary
进度摘要
- Total: X | Completed: Y (Z%)
undefined- 总计:X | 已完成:Y(Z%)
undefinedTask States
任务状态
| State | Meaning |
|---|---|
| 🔴 Pending | Not started |
| 🟡 In Progress | Actively working |
| 🟢 Complete | Acceptance criteria met |
| ⚫ Blocked | Waiting on dependency |
| 状态 | 含义 |
|---|---|
| 🔴 待处理 | 未开始 |
| 🟡 进行中 | 正在积极推进 |
| 🟢 已完成 | 满足验收标准 |
| ⚫ 阻塞 | 等待依赖项 |
Integration Requirements (CRITICAL)
集成要求(重要)
Prevents "done but not integrated" failures.
避免“已完成但未集成”的失败情况。
The CCV Principle
CCV原则
| Phase | What It Proves |
|---|---|
| CREATION | Artifact exists |
| CONNECTION | Wired into system |
| VERIFICATION | Works at runtime |
Missing any phase = NOT complete
| 阶段 | 验证内容 |
|---|---|
| 创建(CREATION) | 确认工件已存在 |
| 连接(CONNECTION) | 确认已接入系统 |
| 验证(VERIFICATION) | 确认运行时正常工作 |
缺少任一阶段 = 未完成
Four Questions Test
四项问题测试
Before "done", answer ALL:
- How do I trigger this?
- What connects it to the system?
- What proves it runs?
- What shows it works?
标记“已完成”前,必须全部回答:
- 如何触发该功能?
- 它与系统的连接点是什么?
- 如何证明它能运行?
- 如何证明它能正常工作?
Three-Phase Todo Pattern
三阶段待办事项模式
For integration work:
markdown
undefined针对集成工作:
markdown
undefinedPhase 1: CREATION
阶段1:创建
- Create [module]
- Unit tests pass
- 创建[模块]
- 单元测试通过
Phase 2: CONNECTION
阶段2:连接
- Import in [consumer]
- Register in [system]
- Verify:
grep "module" src/
- 在[消费方]中导入
- 在[系统]中注册
- 验证:
grep "module" src/
Phase 3: VERIFICATION
阶段3:验证
- Integration test passes
- Execution logs attached
- Expected outcome observed
**See:** [references/integration-requirements.md](references/integration-requirements.md)- 集成测试通过
- 附上执行日志
- 观察到预期结果
**参考:** [references/integration-requirements.md](references/integration-requirements.md)Key Integrations
关键集成
TodoWrite Synchronization
TodoWrite同步
Rule: is source of truth
todo.mdUpdate todo.md → Update TodoWrite → Verify sync规则: 为唯一可信源
todo.md更新todo.md → 更新TodoWrite → 验证同步状态Refactor/Migration Tracking
重构/迁移跟踪
Rule: Refactors REQUIRE an ADR
- Detect refactor keywords
- Invoke skill
validate-refactor-adr - If no ADR: STOP, instruct user to create
- If ADR exists: Use enhanced template
规则: 重构工作必须有对应的ADR
- 检测重构关键词
- 调用功能
validate-refactor-adr - 若无ADR:停止操作,指导用户创建ADR
- 若有ADR:使用增强模板
Task Sizing
任务规模
Good size:
- 1-4 hours of focused work
- Clear deliverable
- Single responsibility
- Testable outcome
Too large: "Implement entire auth system"
Too small: "Add import statement"
合适的任务规模:
- 1-4小时的专注工作
- 交付成果清晰
- 单一职责
- 可测试的结果
规模过大: "实现完整的认证系统"
规模过小: "添加导入语句"
Enforcement Rules
执行规则
- No Create Without Connect — Creation needs connection tasks
- No Connect Without Verify — Connection needs verification
- No Verify Without Evidence — Attach proof when checking
- Phase 3 Blocks Completion — Cannot complete without runtime proof
- 无连接不创建 — 创建任务时必须包含连接相关任务
- 无验证不连接 — 连接任务时必须包含验证相关任务
- 无证据不验证 — 完成验证时必须附上证明材料
- 阶段3阻塞完成 — 未完成阶段3则不能标记为已完成
Supporting Files
支持文件
References
参考文档
- references/reference.md - Task states, sync protocol, refactor tracking
- references/integration-requirements.md - CCV principle, patterns
- references/reference.md - 任务状态、同步协议、重构跟踪
- references/integration-requirements.md - CCV原则、模式
Templates
模板
- templates/todo-templates.md - Five use-case templates
- templates/refactor-todo-template.md - ADR-governed refactor
- templates/integration-verification-checklist.md - Integration verification
- templates/todo-templates.md - 五种场景模板
- templates/refactor-todo-template.md - 受ADR管控的重构模板
- templates/integration-verification-checklist.md - 集成验证清单
Examples
示例
- examples/examples.md - Workflows and examples
- examples/examples.md - 工作流及示例
Red Flags
警示信号
| Anti-Pattern | Why Bad |
|---|---|
| Todos for trivial tasks | Overhead exceeds value |
| Vague descriptions | No clear acceptance criteria |
| Refactor without ADR | Violates policy |
| TodoWrite out of sync | Breaks single source of truth |
| Tasks too large/small | Poor granularity |
| Session todo for production work | Should use ./todo.md |
| 反模式 | 危害 |
|---|---|
| 为琐碎任务创建待办 | 管理成本超过价值 |
| 描述模糊 | 缺乏清晰的验收标准 |
| 无ADR的重构 | 违反规范 |
| TodoWrite不同步 | 破坏唯一可信源 |
| 任务规模过大/过小 | 颗粒度不合理 |
| 用会话待办处理生产工作 | 应使用./todo.md |
Success Metrics
成功指标
| Metric | Target |
|---|---|
| Context reduction | 80% vs agent prompts |
| Sync accuracy | 100% todo.md ↔ TodoWrite |
| ADR compliance | 100% for refactors |
| Integration verification | All Phase 3 tasks have evidence |
Version: 2.0.0 | Updated: 2025-12-07
| 指标 | 目标 |
|---|---|
| 上下文减少率 | 比智能体提示减少80% |
| 同步准确率 | todo.md ↔ TodoWrite 100%同步 |
| ADR合规率 | 重构工作100%符合ADR要求 |
| 集成验证率 | 所有阶段3任务均有验证证据 |
版本: 2.0.0 | 更新日期: 2025-12-07