Loading...
Loading...
Compare original and translation side by side
/prd/prdWhat should I base the Issues on?
A. Auto-detect: scan tasks/ for recent PRDs and SPECs
B. Specific PRD file (e.g., tasks/prd-priority-system.md)
C. Specific SPEC file (e.g., tasks/spec-priority-system.md)
D. Both PRD and SPEC (best: PRD for requirements, SPEC for technical contracts)
E. Paste requirements directly我应该基于什么来生成Issue?
A. 自动检测:扫描tasks/目录下最近的PRD和SPEC文件
B. 指定PRD文件(例如:tasks/prd-priority-system.md)
C. 指定SPEC文件(例如:tasks/spec-priority-system.md)
D. 同时使用PRD和SPEC(最佳方案:PRD提供需求,SPEC提供技术约定)
E. 直接粘贴需求内容Issue #N: [Title]
---
Description: [From US description, with context]
Acceptance Criteria:
- [ ] [From US acceptance criteria]
- [ ] ...
Dependencies: [None / Issue #X]
Type: [backend / frontend / fullstack / ui / infra]
Priority: [high / medium / low]
SPEC Reference: [Section X.Y — only if SPEC available]📋 Generated N Issues from [PRD/SPEC]:
#1: Add priority field to database (backend, high)
#2: Display priority indicator on task cards (frontend, high) — depends on #1
#3: Add priority selector to task edit (frontend, medium) — depends on #1
#4: Filter tasks by priority (frontend, medium) — depends on #1, #2
Please review. You can:
- Remove issues: "remove #3"
- Merge issues: "merge #2 and #3"
- Add issues: "add an issue for sorting by priority"
- Adjust: "change #2 priority to high"
- Confirm: reply OK to proceedIssue #N: [标题]
---
描述: [来自用户故事的描述,包含上下文信息]
验收标准:
- [ ] [来自用户故事的验收标准]
- [ ] ...
依赖关系: [无 / Issue #X]
类型: [backend / frontend / fullstack / ui / infra]
优先级: [high / medium / low]
SPEC引用: [第X.Y节 —— 仅当有SPEC文件时填写]📋 从[PRD/SPEC]生成了N个Issue:
#1: 为数据库添加优先级字段(backend,high)
#2: 在任务卡片上显示优先级标识(frontend,high)—— 依赖#1
#3: 在任务编辑页面添加优先级选择器(frontend,medium)—— 依赖#1
#4: 按优先级筛选任务(frontend,medium)—— 依赖#1、#2
请审核。你可以:
- 删除Issue:"remove #3"
- 合并Issue:"merge #2 and #3"
- 添加Issue:"add an issue for sorting by priority"
- 调整内容:"change #2 priority to high"
- 确认创建:回复OK继续执行Choose where to create these Issues:
A. GitHub (via gh CLI)
B. Local (save as .md files)
C. Baidu iCafe (via icafe-cli)
Your choice:选择创建Issue的平台:
A. GitHub(通过gh CLI)
B. 本地(保存为.md文件)
C. 百度iCafe(通过icafe-cli)
你的选择:ghgh issue create --title "[Title]" --body "[Description + Acceptance Criteria]" --label "[type]" --label "priority: [priority]"--labelghgh issue create --title "[标题]" --body "[描述 + 验收标准]" --label "[类型]" --label "priority: [优先级]"--labelWhere should I save the Issue files? (default: .autoresearch/issues)mkdir -pissue-NNN-[slug].md# [Title]
## Description
[Description from Issue]
## Acceptance Criteria
- [ ] [criterion 1]
- [ ] [criterion 2]
## Dependencies
[None / Issue #X]
## Type
[backend / frontend / fullstack / ui / infra]
## Priority
[high / medium / low]Issue文件保存到哪里?(默认路径:.autoresearch/issues)mkdir -pissue-NNN-[slug].md# [标题]
## 描述
[来自Issue的描述]
## 验收标准
- [ ] [验收标准1]
- [ ] [验收标准2]
## 依赖关系
[无 / Issue #X]
## 类型
[backend / frontend / fullstack / ui / infra]
## 优先级
[high / medium / low]Please provide the iCafe space prefix code (--space):Target branch for iCode CR? (default: master)icafe-cliicafe-cli card create --space [SPACE] --title "[Title]" --description "[Description + Acceptance Criteria]" --cardtype "[Task/Bug/Story]"typebugBuguifrontendStoryTaskpriority高中低请提供iCafe空间前缀码(--space参数):iCode CR的目标分支?(默认:master)icafe-cliicafe-cli card create --space [SPACE] --title "[标题]" --description "[描述 + 验收标准]" --cardtype "[Task/Bug/Story]"typebugBuguifrontendStoryTaskpriority高中低✅ Issue creation complete!
Source: [PRD/SEC path]
Mode: [GitHub / Local / Baidu iCafe]
Issues created: N✅ Issue创建完成!
来源:[PRD/SPEC路径]
模式:[GitHub / 本地 / 百度iCafe]
已创建Issue数量:N
---
---| Scenario | Handling |
|---|---|
| No PRD/SPEC found in tasks/ | Ask user to provide file path or paste requirements |
| PRD has no User Stories | Derive Issues from Functional Requirements instead |
| SPEC has Issue Mapping (Section 10.2) | Use it as primary source, cross-reference with PRD |
| Show error, suggest |
| Show error, suggest installation, offer to switch to Local mode |
| Issue folder does not exist for Local mode | Auto-create the folder |
| User declines Issue creation | Print the Issue list as a text summary, let user create manually later |
| 场景 | 处理方式 |
|---|---|
| tasks/目录下未找到PRD/SPEC文件 | 询问用户提供文件路径或直接粘贴需求 |
| PRD中没有用户故事 | 从功能需求中推导Issue |
| SPEC包含Issue映射(第10.2节) | 将其作为主要依据,交叉参考PRD内容 |
GitHub模式下 | 显示错误,建议执行 |
百度模式下未安装 | 显示错误,建议安装,并提供切换到本地模式的选项 |
| 本地模式下Issue文件夹不存在 | 自动创建该文件夹 |
| 用户拒绝创建Issue | 将Issue列表打印为文本总结,供用户后续手动创建 |
/prd → /prd-to-spec (optional) → /to-issues → /goal → /review-it → /ship-it
│ │ │ │
│ Requirements │ Technical design │ Tickets │ Implementation
│ (what) │ (how) │ (units) │ (code)/prd → /prd-to-spec(可选) → /to-issues → /goal → /review-it → /ship-it
│ │ │ │
│ 需求定义 │ 技术设计 │ 任务工单 │ 代码实现
│ (做什么) │ (怎么做) │ (执行单元) │ (代码)