spawn-task
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSpawn Task Skill
Spawn Task Skill
Create detailed task prompts that another agent (or future self) can execute without additional context.
创建详细的任务提示词,让其他Agent(或未来的自己)无需额外上下文即可执行。
When to Use
适用场景
- Breaking down complex features
- Creating implementation specs
- When user says "spawn a task for..."
- Planning multi-phase work
- 拆分复杂功能
- 创建实现规范
- 当用户说“为……生成一个任务”时
- 规划多阶段工作
Task Discovery
任务信息收集
Gather from user:
- Task Description: What needs to be done?
- Priority: High / Medium / Low
- Scope: What's included/excluded?
- Timeline: Expected completion (optional)
从用户处收集以下信息:
- 任务描述:需要完成什么?
- 优先级:高 / 中 / 低
- 范围:包含/排除哪些内容?
- 时间线:预计完成时间(可选)
Current State Analysis
当前状态分析
bash
undefinedbash
undefinedCheck related files
检查相关文件
find src -name "relevant" -type f
find src -name "relevant" -type f
Check documentation
检查文档
ls docs/features/
ls docs/features/
Check GitHub issues
Check GitHub issues
gh issue list --search "[related term]"
undefinedgh issue list --search "[related term]"
undefinedTask Prompt Template
任务提示词模板
Create :
docs/tasks/[TaskName].mdmarkdown
undefined创建:
docs/tasks/[TaskName].mdmarkdown
undefined🎯 Task: [Task Name]
🎯 任务:[任务名称]
Objective: [Clear, measurable goal]
Priority: [High/Medium/Low]
Scope: [What's included/excluded]
目标: [清晰、可衡量的目标]
优先级: [高/中/低]
范围: [包含/排除哪些内容]
📋 Requirements
📋 需求
Functional Requirements
功能需求
- [REQ-001] [Requirement with acceptance criteria]
- [REQ-001] [带有验收标准的需求]
Technical Requirements
技术需求
- [TECH-001] [Technical specification]
- [TECH-001] [技术规范]
🏗️ Implementation Plan
🏗️ 实施计划
Phase 1: Setup
阶段1:准备工作
- [Setup task]
- [准备任务]
Phase 2: Core Implementation
阶段2:核心实现
- [Core task]
- [核心任务]
Phase 3: Enhancement
阶段3:功能增强
- [Enhancement task]
- [增强任务]
Phase 4: Testing & Documentation
阶段4:测试与文档
- [Testing task]
- [测试任务]
📁 Files to Create/Modify
📁 需要创建/修改的文件
| File | Action | Purpose |
|---|---|---|
| Create | [Purpose] |
| 文件 | 操作 | 目的 |
|---|---|---|
| 创建 | [目的] |
✅ Success Criteria
✅ 成功标准
Code Quality
代码质量
- TypeScript compliant (no )
any - Passes ESLint
- Unit tests with >80% coverage
- 符合TypeScript规范(无类型)
any - 通过ESLint检查
- 单元测试覆盖率>80%
Performance
性能
- Bundle size increase < 5KB
- Load time < 1.5s
- 包体积增量< 5KB
- 加载时间< 1.5秒
Functionality
功能
- All requirements implemented
- Mobile responsive
- 所有需求均已实现
- 支持移动端响应式布局
🔗 Dependencies
🔗 依赖关系
Depends on: [Other components]
Used by: [Components that use this]
依赖于: [其他组件]
被使用于: [使用此功能的组件]
🚀 Getting Started
🚀 开始执行
- Read this task prompt completely
- Review related files
- Begin with Phase 1
- Provide progress updates after each phase
undefined- 完整阅读此任务提示词
- 查看相关文件
- 从阶段1开始
- 完成每个阶段后提供进度更新
undefinedOptions After Spawning
生成任务后的选项
- A) Start implementing now
- B) Create GitHub Issue to track
- C) Save task for later
- A) 立即开始实施
- B) 创建GitHub Issue进行跟踪
- C) 保存任务供以后使用
Task Categories
任务分类
- 🆕 Feature: New functionality
- 🐛 Bug Fix: Fixing broken behavior
- ♻️ Refactor: Improving existing code
- 📚 Documentation: Writing docs
- 🆕 功能: 新功能
- 🐛 Bug修复: 修复异常行为
- ♻️ 重构: 改进现有代码
- 📚 文档: 编写文档
Priority Guidelines
优先级指南
- High: Blocking other work, user-facing bugs
- Medium: Important features, non-blocking issues
- Low: Nice-to-haves, minor improvements
- 高: 阻塞其他工作、面向用户的bug
- 中: 重要功能、非阻塞问题
- 低: 锦上添花的功能、小改进