Loading...
Loading...
Decompose a PRD and/or SPEC into implementable Issues and create them in your chosen platform (GitHub, Local, or Baidu iCafe). Use after /prd (and optionally /prd-to-spec) to turn requirements into actionable tickets. Triggers on: create issues, to-issues, 创建issue, 拆解issue, 生成卡片, 创建卡片, generate issues from PRD, issues from spec.
npx skill4agent add smallnest/goal-workflow to-issues/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 directlyIssue #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 proceedChoose where to create these Issues:
A. GitHub (via gh CLI)
B. Local (save as .md files)
C. Baidu iCafe (via icafe-cli)
Your choice:ghgh issue create --title "[Title]" --body "[Description + Acceptance Criteria]" --label "[type]" --label "priority: [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]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高中低✅ Issue creation complete!
Source: [PRD/SEC path]
Mode: [GitHub / Local / Baidu iCafe]
Issues created: N
# | Title | Identifier
---|------------------------------------------|------------
1 | Add priority field to database | #42 (GitHub) / issue-001-*.md (Local) / #22210 (iCafe)
2 | Display priority indicator | #43 / issue-002-*.md / #22211
3 | Add priority selector | #44 / issue-003-*.md / #22212
4 | Filter tasks by priority | #45 / issue-004-*.md / #22213
💡 Tip: Now implement each Issue with /goal:
/goal 42 # GitHub mode
/goal issue-001-*.md # Local mode| 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 |
/prd → /prd-to-spec (optional) → /to-issues → /goal → /review-it → /ship-it
│ │ │ │
│ Requirements │ Technical design │ Tickets │ Implementation
│ (what) │ (how) │ (units) │ (code)