task-planner

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Task Generator

任务生成器

Generate detailed, step-by-step task lists from specs, plans, or requirements.
根据规格说明、计划或需求生成详细的分步任务列表。

Workflow (2-Phase Process)

工作流程(两阶段流程)

Phase 1: Generate Parent Tasks

第一阶段:生成父任务

  1. Analyze the spec/plan content for functional requirements and implementation scope
  2. Create the task file at
    /tasks/tasks-[feature-name].md
  3. 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
  4. Present parent tasks to user in the output format (without sub-tasks)
  5. Tell user: "I have generated the high-level tasks. Ready to generate sub-tasks? Reply Go to proceed."
  1. 分析规格说明/计划内容中的功能需求和实现范围
  2. /tasks/tasks-[feature-name].md
    路径下创建任务文件
  3. 生成5-7个高层级父任务:
    • 始终以任务0.0开头:“创建功能分支”(除非用户明确选择跳过)
    • 根据实际情况决定额外任务的数量
  4. 以指定输出格式向用户展示父任务(不含子任务)
  5. 告知用户:“我已生成高层级任务。是否准备生成子任务?回复Go继续。”

Phase 2: Generate Sub-Tasks

第二阶段:生成子任务

  1. Wait for user to reply "Go"
  2. Break down each parent task into smaller, actionable sub-tasks
  3. Identify relevant files to create/modify (include test files)
  4. Update the task file with complete structure
  1. 等待用户回复“Go”
  2. 将每个父任务拆解为更小的可执行子任务
  3. 确定需要创建/修改的相关文件(包含测试文件)
  4. 更新任务文件,补充完整结构

Output Format

输出格式

Save to
/tasks/tasks-[feature-name].md
:
markdown
undefined
保存至
/tasks/tasks-[feature-name].md
markdown
undefined

Relevant Files

相关文件

  • path/to/file.ts
    - Brief description of why this file is relevant
  • path/to/file.test.ts
    - Unit tests for file.ts
  • path/to/component.tsx
    - Component description
  • path/to/component.test.tsx
    - Unit tests for component.tsx
  • path/to/file.ts
    - 该文件相关性的简要说明
  • path/to/file.test.ts
    - file.ts的单元测试文件
  • path/to/component.tsx
    - 组件说明
  • path/to/component.test.tsx
    - component.tsx的单元测试文件

Notes

注意事项

  • Unit tests should be placed alongside the code files they test
  • Use
    npx jest [optional/path/to/test/file]
    to run tests
  • 单元测试文件应与其对应的代码文件放在同一目录下
  • 使用
    npx jest [optional/path/to/test/file]
    运行测试

Instructions for Completing Tasks

任务完成说明

IMPORTANT: As you complete each task, check it off by changing
- [ ]
to
- [x]
. Update after completing each sub-task.
重要提示:完成每个任务后,将
- [ ]
改为
- [x]
进行标记。完成每个子任务后都要更新状态。

Tasks

任务列表

  • 0.0 Create feature branch
    • 0.1 Create and checkout new branch (
      git checkout -b feature/[feature-name]
      )
  • 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]
  • 1.0 [父任务标题]
    • 1.1 [子任务描述]
    • 1.2 [子任务描述]
  • 2.0 [父任务标题]
    • 2.1 [子任务描述]
undefined

Guidelines

指导原则

  • 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)
  • 文件识别:同时包含源文件和测试文件
  • 子任务粒度:每个子任务应能在一段专注的工作时间内完成