todo
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTODO Scanner
待办事项扫描器
Scan a codebase for incomplete work and maintain a living grouped by feature clusters ready for input. Do NOT implement anything — only inventory and organise.
TODO.md/prd扫描代码库查找未完成工作,维护按功能集群分组的可动态更新的文件,可直接作为的输入。请勿实现任何功能——仅做清点和整理工作。
TODO.md/prdDetect Workflow
检测工作流
- TODO.md does not exist → run Steps 1–4 (Initial Creation)
- TODO.md exists → run Steps 0–4 (Subsequent Update)
- TODO.md不存在 → 执行步骤1–4(首次创建)
- TODO.md已存在 → 执行步骤0–4(后续更新)
Step 0 — Find Completed Work (update only)
步骤0 — 查找已完成工作(仅更新时执行)
Parse from existing . Run , map commits to unchecked items, mark completed with and commit hash. Never remove unchecked items.
Last updated: YYYY-MM-DDTODO.mdgit log --since="<timestamp>" --oneline[x]解析现有中的信息。执行命令,将提交记录与未勾选的待办项匹配,用标记已完成项并标注提交哈希值。永远不要删除未勾选的待办项。
TODO.mdLast updated: YYYY-MM-DDgit log --since="<timestamp>" --oneline[x]Step 1 — Scan Codebase for Gaps
步骤1 — 扫描代码库查找缺口
Search for each category and collect findings:
- Code comments: ,
TODO,FIXME,HACK,XXXPLACEHOLDER - Mock data: Hardcoded arrays, ,
faker,seedin non-test filesmock - Placeholder components: Empty bodies,
<div>, stub templates<!-- TODO --> - Missing pages: Routes referencing nonexistent files
- Untested code: Source files with no corresponding test file
- Empty/stub files: Files under 5 lines, empty function bodies
- Design references: Mockups, wireframes in ,
docs/,designs/assets/
按以下类别搜索并收集结果:
- 代码注释: 、
TODO、FIXME、HACK、XXXPLACEHOLDER - 模拟数据: 非测试文件中的硬编码数组、、
faker、seed相关内容mock - 占位符组件: 空主体、
<div>、存根模板<!-- TODO --> - 缺失页面: 路由引用了不存在的文件
- 未测试代码: 没有对应测试文件的源代码文件
- 空/存根文件: 行数少于5行的文件、空函数体
- 设计参考: 、
docs/、designs/目录下的原型图、线框图assets/
Step 2 — Check PRDs
步骤2 — 检查PRD
Read . Annotate groups with — don't duplicate already-spec'd features.
tasks/prd-*.md> PRD exists读取文件。给对应分组标注——不要重复录入已经有需求说明的功能。
tasks/prd-*.md> PRD existsStep 3 — Group into Feature Clusters
步骤3 — 按功能集群分组
Organise findings into logical feature groups. Each group name should be descriptive enough to feed directly into .
/prd将扫描结果整理为逻辑清晰的功能分组。每个分组的名称应足够具象,可直接输入使用。
/prdStep 4 — Write / Update TODO.md
步骤4 — 写入 / 更新TODO.md
Write to project root. On update, preserve all unchecked items and update the timestamp.
markdown
undefined写入到项目根目录。更新操作时,保留所有未勾选的待办项并更新时间戳。
markdown
undefinedTODO
TODO
Last updated: YYYY-MM-DD via /todo
Last updated: YYYY-MM-DD via /todo
[Feature Group Name]
[Feature Group Name]
- Self-contained feature description ready for /prd input (app/components/Foo.vue:12)
- Completed item (via commit abc1234)
- Self-contained feature description ready for /prd input (app/components/Foo.vue:12)
- Completed item (via commit abc1234)
[Another Feature Group]
[Another Feature Group]
PRD exists:tasks/prd-feature-name.md
- Sub-task not covered by existing PRD (src/pages/bar.vue:5)
---PRD exists:tasks/prd-feature-name.md
- Sub-task not covered by existing PRD (src/pages/bar.vue:5)
---Rules
规则
- Idempotent — running twice produces the same result
- Additive only — never remove unchecked items on update
- No implementation — only inventory and organise, never write code
- PRD-aware — check and annotate groups accordingly
tasks/prd-*.md - Always timestamp — update on every run
Last updated - Source locations — include file:line for traceability
- Self-contained items — each must work as standalone
- [ ]input/prd
- 幂等性 — 运行两次得到的结果完全一致
- 仅追加内容 — 更新时永远不要删除未勾选的待办项
- 不做功能实现 — 仅做清点和整理,永远不要编写代码
- 识别PRD — 检查文件并给对应分组做相应标注
tasks/prd-*.md - 始终添加时间戳 — 每次运行都更新字段
Last updated - 标注来源位置 — 包含便于溯源
文件:行号 - 待办项独立完整 — 每个项都可作为独立的
- [ ]输入使用/prd
Checklist
检查清单
- All gap categories scanned; checked
tasks/prd-*.md - Items grouped by feature with source locations
- Each item is self-contained input
/prd - timestamp set; no unchecked items removed
Last updated
- 已扫描所有缺口类别;已检查文件
tasks/prd-*.md - 待办项已按功能分组并标注来源位置
- 每个待办项都是可独立输入的完整内容
/prd - 已设置时间戳;未删除任何未勾选的待办项
Last updated