task-planner
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTask Generator
任务生成器
Generate detailed, step-by-step task lists from specs, plans, or requirements.
根据规格说明、计划或需求生成详细的分步任务列表。
Workflow (2-Phase Process)
工作流程(两阶段流程)
Phase 1: Generate Parent Tasks
第一阶段:生成父任务
- Analyze the spec/plan content for functional requirements and implementation scope
- Create the task file at
/tasks/tasks-[feature-name].md - Generate 5-7 high-level parent tasks:
- Always start with task 0.0: "Create feature branch" (unless user explicitly opts out)
- Use your judgment for the number of additional tasks
- Present parent tasks to user in the output format (without sub-tasks)
- Tell user: "I have generated the high-level tasks. Ready to generate sub-tasks? Reply Go to proceed."
- 分析规格说明/计划内容中的功能需求和实现范围
- 在路径下创建任务文件
/tasks/tasks-[feature-name].md - 生成5-7个高层级父任务:
- 始终以任务0.0开头:“创建功能分支”(除非用户明确选择跳过)
- 根据实际情况决定额外任务的数量
- 以指定输出格式向用户展示父任务(不含子任务)
- 告知用户:“我已生成高层级任务。是否准备生成子任务?回复Go继续。”
Phase 2: Generate Sub-Tasks
第二阶段:生成子任务
- Wait for user to reply "Go"
- Break down each parent task into smaller, actionable sub-tasks
- Identify relevant files to create/modify (include test files)
- Update the task file with complete structure
- 等待用户回复“Go”
- 将每个父任务拆解为更小的可执行子任务
- 确定需要创建/修改的相关文件(包含测试文件)
- 更新任务文件,补充完整结构
Output Format
输出格式
Save to :
/tasks/tasks-[feature-name].mdmarkdown
undefined保存至:
/tasks/tasks-[feature-name].mdmarkdown
undefinedRelevant Files
相关文件
- - Brief description of why this file is relevant
path/to/file.ts - - Unit tests for file.ts
path/to/file.test.ts - - Component description
path/to/component.tsx - - Unit tests for component.tsx
path/to/component.test.tsx
- - 该文件相关性的简要说明
path/to/file.ts - - file.ts的单元测试文件
path/to/file.test.ts - - 组件说明
path/to/component.tsx - - component.tsx的单元测试文件
path/to/component.test.tsx
Notes
注意事项
- Unit tests should be placed alongside the code files they test
- Use to run tests
npx jest [optional/path/to/test/file]
- 单元测试文件应与其对应的代码文件放在同一目录下
- 使用运行测试
npx jest [optional/path/to/test/file]
Instructions for Completing Tasks
任务完成说明
IMPORTANT: As you complete each task, check it off by changing to . Update after completing each sub-task.
- [ ]- [x]重要提示:完成每个任务后,将改为进行标记。完成每个子任务后都要更新状态。
- [ ]- [x]Tasks
任务列表
- 0.0 Create feature branch
- 0.1 Create and checkout new branch ()
git checkout -b feature/[feature-name]
- 0.1 Create and checkout new branch (
- 1.0 [Parent Task Title]
- 1.1 [Sub-task description]
- 1.2 [Sub-task description]
- 2.0 [Parent Task Title]
- 2.1 [Sub-task description]
undefined- 0.0 创建功能分支
- 0.1 创建并切换至新分支()
git checkout -b feature/[feature-name]
- 0.1 创建并切换至新分支(
- 1.0 [父任务标题]
- 1.1 [子任务描述]
- 1.2 [子任务描述]
- 2.0 [父任务标题]
- 2.1 [子任务描述]
undefinedGuidelines
指导原则
- Target audience: Junior developer who will implement the feature
- Task style: Use imperative verbs (Create, Add, Implement, Update)
- Feature name: Derive from spec title/topic in kebab-case
- File identification: Include both source and test files
- Sub-task granularity: Each sub-task should be completable in one focused session
- 目标受众:负责实现功能的初级开发人员
- 任务风格:使用祈使动词(创建、添加、实现、更新)
- 功能名称:从规格说明标题/主题中提取,采用短横线分隔格式(kebab-case)
- 文件识别:同时包含源文件和测试文件
- 子任务粒度:每个子任务应能在一段专注的工作时间内完成