Loading...
Loading...
Compare original and translation side by side
| Flag | Description |
|---|---|
| Create local work-order only, skip GitHub issue creation |
| Create work-order from existing GitHub issue #N |
| Create work-order from existing PRP (auto-populates context) |
work-order| 标志 | 说明 |
|---|---|
| 仅创建本地工单,跳过GitHub Issue创建 |
| 从现有GitHub Issue #N创建工单 |
| 从现有PRP创建工单(自动填充上下文) |
work-orderdocs/blueprint/--from-issue--from-prpgh--no-publishdocs/blueprint/--from-issue--from-prpgh--no-publish--from-prp NAME--from-prp NAME--from-prp NAMEcat docs/prps/$NAME.md--from-prp NAMEcat docs/prps/$NAME.md--from-issue N--from-issue N--from-issue Ngh issue view N --json title,body,labels,number042-...gh issue comment N --body "Work-order created: \`docs/blueprint/work-orders/NNN-task-name.md\`"
gh issue edit N --add-label "work-order"--from-issue Ngh issue view N --json title,body,labels,number042-...gh issue comment N --body "工单已创建:\`docs/blueprint/work-orders/NNN-task-name.md\`"
gh issue edit N --add-label "work-order"docs/blueprint/feature-tracker.jsongit statusgit log -5 --onelinedocs/blueprint/feature-tracker.jsongit statusgit log -5 --onelineNNN-brief-task-description.mdname: blueprint-work-order
---
id: WO-NNN
created: {YYYY-MM-DD}
status: pending
implements: # Source PRP or PRD
- PRP-NNN
relates-to: # Related documents
- ADR-NNNN
github-issues:
- N
---NNN-简要任务描述.mdname: blueprint-work-order
---
id: WO-NNN
created: {YYYY-MM-DD}
status: pending
implements: # 来源PRP或PRD
- PRP-NNN
relates-to: # 相关文档
- ADR-NNNN
github-issues:
- N
---[test_command][test_command][test_command][test_command][test_command][test_command]
name: blueprint-work-order
---
name: blueprint-work-order
---docs/blueprint/work-orders/NNN-task-name.mddocs/blueprint/work-orders/NNN-task-name.md--no-publish--no-publishgh issue create \
--title "[WO-NNN] [Task Name]" \
--body "## Work Order: [Task Name]
**ID**: WO-NNN
**Local Context**: \`docs/blueprint/work-orders/NNN-task-name.md\`gh issue create \
--title "[WO-NNN] [任务名称]" \
--body "## 工单:[任务名称]
**ID**:WO-NNN
**本地上下文**:\`docs/blueprint/work-orders/NNN-task-name.md\`
Capture issue number and update work-order file:
```bash
捕获Issue编号并更新工单文件:
```bash
Update the `**GitHub Issue**:` line in the work-order file with the issue number.
将工单文件中的`**GitHub Issue**:`行更新为获取到的Issue编号。docs/blueprint/feature-tracker.jsondocs/blueprint/feature-tracker.jsonjq '.tasks.pending += [{"id": "WO-NNN", "description": "[Task name]", "source": "PRP-NNN", "added": "YYYY-MM-DD"}]' \
docs/blueprint/feature-tracker.json > tmp.json && mv tmp.json docs/blueprint/feature-tracker.jsonjq '.tasks.pending += [{"id": "WO-NNN", "description": "[任务名称]", "source": "PRP-NNN", "added": "YYYY-MM-DD"}]' \
docs/blueprint/feature-tracker.json > tmp.json && mv tmp.json docs/blueprint/feature-tracker.jsondocs/blueprint/manifest.json{
"id_registry": {
"documents": {
"WO-NNN": {
"path": "docs/blueprint/work-orders/NNN-task-name.md",
"title": "[Task Name]",
"implements": ["PRP-NNN"],
"github_issues": [N],
"created": "{date}"
}
},
"github_issues": {
"N": ["WO-NNN", "PRP-NNN"]
}
}
}docs/blueprint/manifest.json{
"id_registry": {
"documents": {
"WO-NNN": {
"path": "docs/blueprint/work-orders/NNN-task-name.md",
"title": "[Task Name]",
"implements": ["PRP-NNN"],
"github_issues": [N],
"created": "{date}"
}
},
"github_issues": {
"N": ["WO-NNN", "PRP-NNN"]
}
}
}Work-order created!
ID: WO-NNN
Work-Order: 003-jwt-token-generation.md
Location: docs/blueprint/work-orders/003-jwt-token-generation.md
GitHub Issue: #42 (or "Local only" if --no-publish)
Traceability:
- Implements: PRP-002 (OAuth Integration)
- Related: ADR-0003 (Session Storage)
Objective: [Brief objective]
Context included:
- Files: [List files]
- Tests: [Number of tests specified]
- Dependencies: [Key dependencies]
Ready for execution:
- Can be executed by subagent with isolated context
- TDD workflow enforced (tests specified first)
- Clear success criteria defined
- PR should use "Fixes #42" to auto-close issue
- Commit messages should use: feat(WO-NNN): description工单已创建!
ID:WO-NNN
工单文件:003-jwt-token-generation.md
位置:docs/blueprint/work-orders/003-jwt-token-generation.md
GitHub Issue:#42(如果使用--no-publish则显示"仅本地")
可追溯性:
- 实现:PRP-002(OAuth集成)
- 相关:ADR-0003(会话存储)
目标:[简要目标]
包含的上下文:
- 文件:[文件列表]
- 测试:[指定的测试数量]
- 依赖项:[关键依赖项]
已准备好执行:
- 可由Subagent使用隔离上下文执行
- 强制TDD工作流(先指定测试)
- 定义明确的成功标准
- PR应使用"Fixes #42"以自动关闭Issue
- 提交信息应使用:feat(WO-NNN): 描述question: "Work-order ready. What would you like to do?"
options:
- label: "Execute this work-order (Recommended)"
description: "Start working on the task with TDD workflow"
- label: "Create another work-order"
description: "Generate the next task from pending items"
- label: "Delegate to subagent"
description: "Hand off for isolated execution"
- label: "I'm done for now"
description: "Exit - work-order is saved and ready"/project:continue/blueprint:work-orderquestion: "工单已准备好。您想要执行什么操作?"
options:
- label: "执行此工单(推荐)"
description: "按照TDD工作流开始处理任务"
- label: "创建另一个工单"
description: "从待处理项生成下一个任务"
- label: "委托给Subagent"
description: "移交以进行隔离执行"
- label: "我现在完成了"
description: "退出 - 工单已保存并准备就绪"/project:continue/blueprint:work-order| Condition | Action |
|---|---|
| No PRDs exist | Guide to write PRDs first |
| No tasks in feature-tracker | Ask for current phase/status |
| Task unclear | Ask user what to work on next |
| Warn and fallback to |
Issue already has | Warn, ask to update or create new |
| 条件 | 操作 |
|---|---|
| 无PRD存在 | 引导先编写PRD |
| 功能追踪器中无任务 | 询问当前阶段/状态 |
| 任务不明确 | 询问用户下一步要处理什么 |
| 警告并回退到 |
Issue已带有 | 警告,询问是否更新或创建新工单 |
Fixes #Ncompleted/Fixes #Ncompleted/work-ordergh label create work-order --description "AI-assisted work order" --color "0E8A16"work-ordergh label create work-order --description "AI-assisted work order" --color "0E8A16"--no-publish--no-publish