generate-tasks

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

generate-tasks

generate-tasks(生成任务列表)

Category: Task Management
分类:任务管理

Usage

使用方法

bash
generate-tasks <prd-file> [--output-dir <directory>]
bash
generate-tasks <prd-file> [--output-dir <directory>]

Arguments

参数

  • <prd-file>
    : Required - Path to the PRD file to convert
  • --output-dir
    : Optional - Directory for task file (default: ./tasks/)
  • <prd-file>
    :必填 - 待转换的PRD文件路径
  • --output-dir
    :可选 - 任务文件的输出目录(默认值:./tasks/)

Execution Instructions for Claude Code

Claude Code执行说明

When this command is run, Claude Code should:
  1. Read the PRD file and extract metadata
  2. Analyze PRD content to generate a comprehensive task list
  3. Create task file with proper naming convention:
    • For
      *-prd.md
      : create
      *-prd-tasks.md
    • For
      *-frd.md
      : create
      *-frd-tasks.md
    • For
      *-simple-frd.md
      : create
      *-simple-frd-tasks.md
  4. Save task file in the specified output directory (create if needed)
  5. Update the PRD with a reference to the generated task file:
    • Add or update the "Implementation Tracking" section
    • Include task file path and generation date
  6. Follow any additional process in the source documentation
运行此命令时,Claude Code应执行以下操作:
  1. 读取PRD文件并提取元数据
  2. 分析PRD内容以生成完整的任务列表
  3. 按照以下命名规范创建任务文件:
    • 对于
      *-prd.md
      :创建
      *-prd-tasks.md
    • 对于
      *-frd.md
      :创建
      *-frd-tasks.md
    • 对于
      *-simple-frd.md
      :创建
      *-simple-frd-tasks.md
  4. 将任务文件保存到指定的输出目录(若目录不存在则创建)
  5. 更新PRD文件,添加对生成的任务文件的引用:
    • 添加或更新“Implementation Tracking(实施跟踪)”章节
    • 包含任务文件路径和生成日期
  6. 遵循源文档中的任何额外流程

Task File Format

任务文件格式

Generated task file should include:
markdown
undefined
生成的任务文件应包含以下内容:
markdown
undefined

[PRD Title] Implementation Tasks

[PRD标题] 实施任务列表

Source PRD: [relative path to PRD] Generated: [date] Total Tasks: [count] Completed: 0
源PRD:[PRD的相对路径] 生成日期:[日期] 总任务数:[数量] 已完成:0

Tasks

任务列表

  • 1.0 Setup and Configuration
    • 1.1 Review relevant documentation
    • 1.2 Set up development environment
  • 2.0 Core Implementation
    • 2.1 [Specific task based on PRD] ...
undefined
  • 1.0 搭建与配置
    • 1.1 查阅相关文档
    • 1.2 搭建开发环境
  • 2.0 核心功能开发
    • 2.1 [基于PRD的具体任务] ...
undefined

PRD Update

PRD文件更新

Add to PRD under "Implementation Tracking" section:
markdown
undefined
在PRD的“Implementation Tracking(实施跟踪)”章节中添加以下内容:
markdown
undefined

Implementation Tracking

Implementation Tracking

Task List: ./tasks/[filename]-tasks.md Generated: 2025-01-06 Status: See task file for current progress
undefined
Task List: ./tasks/[filename]-tasks.md Generated: 2025-01-06 Status: See task file for current progress
undefined

Source Content Location

源内容位置

The full process documentation can be found at:
claude_settings/python/shared/processes/task-generation.md
Claude Code should read this file and follow the documented process exactly.
完整的流程文档可在以下路径找到:
claude_settings/python/shared/processes/task-generation.md
Claude Code应读取此文件并严格遵循文档中记录的流程。

Example

示例

bash
undefined
bash
undefined

Generate tasks in default location

在默认位置生成任务

generate-tasks user-auth-frd.md
generate-tasks user-auth-frd.md

Generate tasks in specific directory

在指定目录生成任务

generate-tasks inventory-prd.md --output-dir ../tasks/
generate-tasks inventory-prd.md --output-dir ../tasks/

Generate from PRD in another directory

从其他目录的PRD生成任务

generate-tasks ./drafts/feature-prd.md
undefined
generate-tasks ./drafts/feature-prd.md
undefined

Implementation Tips for Claude Code

Claude Code实现提示

  1. Smart Task Generation: Analyze PRD sections to create relevant tasks
  2. Task Grouping: Organize tasks by implementation phases
  3. Documentation First: Always include doc review as first subtask
  4. Path Management: Use relative paths for portability
  5. Metadata Preservation: Extract PRD title and key info for task file header
  1. 智能任务生成:分析PRD章节以创建相关任务
  2. 任务分组:按实施阶段组织任务
  3. 文档优先:始终将文档查阅作为第一个子任务
  4. 路径管理:使用相对路径以保证可移植性
  5. 元数据保留:提取PRD标题和关键信息用于任务文件头部