generate-tasks
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegenerate-tasks
generate-tasks(生成任务列表)
Category: Task Management
分类:任务管理
Usage
使用方法
bash
generate-tasks <prd-file> [--output-dir <directory>]bash
generate-tasks <prd-file> [--output-dir <directory>]Arguments
参数
- : Required - Path to the PRD file to convert
<prd-file> - : Optional - Directory for task file (default: ./tasks/)
--output-dir
- :必填 - 待转换的PRD文件路径
<prd-file> - :可选 - 任务文件的输出目录(默认值:./tasks/)
--output-dir
Execution Instructions for Claude Code
Claude Code执行说明
When this command is run, Claude Code should:
- Read the PRD file and extract metadata
- Analyze PRD content to generate a comprehensive task list
- Create task file with proper naming convention:
- For : create
*-prd.md*-prd-tasks.md - For : create
*-frd.md*-frd-tasks.md - For : create
*-simple-frd.md*-simple-frd-tasks.md
- For
- Save task file in the specified output directory (create if needed)
- 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
- Follow any additional process in the source documentation
运行此命令时,Claude Code应执行以下操作:
- 读取PRD文件并提取元数据
- 分析PRD内容以生成完整的任务列表
- 按照以下命名规范创建任务文件:
- 对于:创建
*-prd.md*-prd-tasks.md - 对于:创建
*-frd.md*-frd-tasks.md - 对于:创建
*-simple-frd.md*-simple-frd-tasks.md
- 对于
- 将任务文件保存到指定的输出目录(若目录不存在则创建)
- 更新PRD文件,添加对生成的任务文件的引用:
- 添加或更新“Implementation Tracking(实施跟踪)”章节
- 包含任务文件路径和生成日期
- 遵循源文档中的任何额外流程
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的具体任务] ...
undefinedPRD Update
PRD文件更新
Add to PRD under "Implementation Tracking" section:
markdown
undefined在PRD的“Implementation Tracking(实施跟踪)”章节中添加以下内容:
markdown
undefinedImplementation Tracking
Implementation Tracking
Task List: ./tasks/[filename]-tasks.md
Generated: 2025-01-06
Status: See task file for current progress
undefinedTask List: ./tasks/[filename]-tasks.md
Generated: 2025-01-06
Status: See task file for current progress
undefinedSource Content Location
源内容位置
The full process documentation can be found at:
claude_settings/python/shared/processes/task-generation.mdClaude Code should read this file and follow the documented process exactly.
完整的流程文档可在以下路径找到:
claude_settings/python/shared/processes/task-generation.mdClaude Code应读取此文件并严格遵循文档中记录的流程。
Example
示例
bash
undefinedbash
undefinedGenerate 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
undefinedgenerate-tasks ./drafts/feature-prd.md
undefinedImplementation Tips for Claude Code
Claude Code实现提示
- Smart Task Generation: Analyze PRD sections to create relevant tasks
- Task Grouping: Organize tasks by implementation phases
- Documentation First: Always include doc review as first subtask
- Path Management: Use relative paths for portability
- Metadata Preservation: Extract PRD title and key info for task file header
- 智能任务生成:分析PRD章节以创建相关任务
- 任务分组:按实施阶段组织任务
- 文档优先:始终将文档查阅作为第一个子任务
- 路径管理:使用相对路径以保证可移植性
- 元数据保留:提取PRD标题和关键信息用于任务文件头部