/to-issues
Decompose a PRD and/or SPEC into implementable Issues and create them in your chosen platform (GitHub or Local). Use after /prd (and optionally /prd-to-spec) to turn requirements into actionable tickets. Triggers on: create issues, to-issues, 创建issue, 拆解issue, 生成卡片, 创建卡片,
$ npx -y skills add smallnest/goal-workflow --skill to-issues --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/to-issues
Context preview
The summary Claude sees to decide when to auto-load this skill.
Decompose a PRD and/or SPEC into implementable Issues and create them in your chosen platform (GitHub or Local). Use after /prd (and optionally /prd-to-spec) to turn requirements into actionable tickets. Triggers on: create issues, to-issues, 创建issue, 拆解issue, 生成卡片, 创建卡片,
SKILL.md
to-issues.SKILL.mdname: to-issues
description: "Decompose a PRD and/or SPEC into implementable Issues and create them in your chosen platform (GitHub or Local). 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."
user-invocable: true
to-issues — PRD/SPEC to Issues
Decompose a PRD and/or technical SPEC into small, independent, implementable Issues, then create them in your chosen platform. Works standalone — you don't need to have run `/prd` first.
---
The Job
1. **Locate input** — find a PRD or SPEC file (auto-detect or user-specified) 2. **Decompose into Issues** — break User Stories into implementable tickets 3. **Review with user** — present Issue list for approval and adjustment 4. **Choose platform** — GitHub / Local 5. **Create Issues** — create all tickets and print summary
---
Step 1: Locate Input
Find the input document:
What 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
If auto-detecting, list available files and let the user choose.
If both PRD and SPEC are available, use the SPEC's Section 10.2 (Issue Mapping) as the primary guide, supplemented by PRD's User Stories. If only PRD is available, generate Issues directly from User Stories.
---
Step 2: Decompose into Issues
Based on the input document(s), generate a list of Issues. Follow these rules:
- **One Issue per User Story** — each US-XXX becomes at least one Issue
- **Split large stories** — if a US has 5+ acceptance criteria or spans frontend + backend, split into 2-3 smaller Issues with clear dependencies
- **Merge tiny stories** — if a US has only 1-2 trivial criteria, merge it with a related US into a single Issue
- **Each Issue must be independently implementable** — a single agent session should be able to complete it
- **Number Issues sequentially** starting from 1
- **If SPEC is available** — enrich Issues with SPEC references (API endpoints, data model sections, error handling contracts)
**Issue format:**
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]
**Present the Issue list for review:**
📋 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 proceed
Wait for user confirmation before creating any Issues.
---
Step 3: Choose Creation Mode
After user confirms the Issue list, ask:
Choose where to create these Issues:
A. GitHub (via gh CLI)
B. Local (save as .md files)
Your choice:
---
Step 4: Mode-Specific Creation
Mode A: GitHub
**Prerequisites:** `gh` CLI installed and authenticated.
**Actions:** 1. For each Issue, run:
gh issue create --title "[Title]" --body "[Description + Acceptance Criteria]" --label "[type]" --label "priority: [priority]"
2. If labels don't exist, create them first or skip the `--label` flag 3. Report created Issue numbers and URLs
Mode B: Local
**Ask user:**
Where should I save the Issue files? (default: .autoresearch/issues)
**Actions:** 1. If the specified folder does not exist, create it with `mkdir -p` 2. For each Issue #N, save a file named `issue-NNN-[slug].md` (zero-padded to 3 digits):
# [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]
3. Report created file paths
---
Step 5: Summary Report
After all Issues are created, print a summary:
✅ Issue creation complete!
Source: [PRD/SEC path]
Mode: [GitHub / Local]
Issues created: N
# | Title | Identifier
---|------------------------------------------|------------
1 | Add priority field to database | #42 (GitHub) / issue-001-*.md (Local)
2 | Display priority indicator | #43 / issue-002-*.md
3 | Add priority selector | #44 / issue-003-*.md
4 | Filter tasks by priority | #45 / issue-004-*.md
💡 Tip: Now implement each Issue with /goal:
/goal 42 # GitHub mode
/goal issue-001-*.md # Local mode
---
Edge Cases & Fallback
| 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 | | `gh` CLI not authenticated for GitHub mode | Show error, suggest `gh auth login`, 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 |
---
Relationship to Other Skills
/prd → /prd-to-spec (optional) → /to-issues → /goal → /review-it
Read more
name: to-issues description: "Decompose a PRD and/or SPEC into implementable Issues and create them in your chosen platform (GitHub or Local). 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." user-invocable: true
to-issues — PRD/SPEC to Issues
Decompose a PRD and/or technical SPEC into small, independent, implementable Issues, then create them in your chosen platform. Works standalone — you don't need to have run `/prd` first.
---
The Job
1. **Locate input** — find a PRD or SPEC file (auto-detect or user-specified) 2. **Decompose into Issues** — break User Stories into implementable tickets 3. **Review with user** — present Issue list for approval and adjustment 4. **Choose platform** — GitHub / Local 5. **Create Issues** — create all tickets and print summary
---
Step 1: Locate Input
Find the input document:
What 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
If auto-detecting, list available files and let the user choose.
If both PRD and SPEC are available, use the SPEC's Section 10.2 (Issue Mapping) as the primary guide, supplemented by PRD's User Stories. If only PRD is available, generate Issues directly from User Stories.
---
Step 2: Decompose into Issues
Based on the input document(s), generate a list of Issues. Follow these rules:
- **One Issue per User Story** — each US-XXX becomes at least one Issue
- **Split large stories** — if a US has 5+ acceptance criteria or spans frontend + backend, split into 2-3 smaller Issues with clear dependencies
- **Merge tiny stories** — if a US has only 1-2 trivial criteria, merge it with a related US into a single Issue
- **Each Issue must be independently implementable** — a single agent session should be able to complete it
- **Number Issues sequentially** starting from 1
- **If SPEC is available** — enrich Issues with SPEC references (API endpoints, data model sections, error handling contracts)
**Issue format:**
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]
**Present the Issue list for review:**
📋 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 proceed
Wait for user confirmation before creating any Issues.
---
Step 3: Choose Creation Mode
After user confirms the Issue list, ask:
Choose where to create these Issues: A. GitHub (via gh CLI) B. Local (save as .md files) Your choice:
---
Step 4: Mode-Specific Creation
Mode A: GitHub
**Prerequisites:** `gh` CLI installed and authenticated.
**Actions:** 1. For each Issue, run:
gh issue create --title "[Title]" --body "[Description + Acceptance Criteria]" --label "[type]" --label "priority: [priority]"
2. If labels don't exist, create them first or skip the `--label` flag 3. Report created Issue numbers and URLs
Mode B: Local
**Ask user:**
Where should I save the Issue files? (default: .autoresearch/issues)
**Actions:** 1. If the specified folder does not exist, create it with `mkdir -p` 2. For each Issue #N, save a file named `issue-NNN-[slug].md` (zero-padded to 3 digits):
# [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]
3. Report created file paths
---
Step 5: Summary Report
After all Issues are created, print a summary:
✅ Issue creation complete! Source: [PRD/SEC path] Mode: [GitHub / Local] Issues created: N # | Title | Identifier ---|------------------------------------------|------------ 1 | Add priority field to database | #42 (GitHub) / issue-001-*.md (Local) 2 | Display priority indicator | #43 / issue-002-*.md 3 | Add priority selector | #44 / issue-003-*.md 4 | Filter tasks by priority | #45 / issue-004-*.md 💡 Tip: Now implement each Issue with /goal: /goal 42 # GitHub mode /goal issue-001-*.md # Local mode
---
Edge Cases & Fallback
| 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 | | `gh` CLI not authenticated for GitHub mode | Show error, suggest `gh auth login`, 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 |
---
Relationship to Other Skills
/prd → /prd-to-spec (optional) → /to-issues → /goal → /review-it
An AI-driven development workflow — from PRD to shipped code, all within Claude Code.
Other skills on goal-workflow-skills.
- /article-icons
Illustrate an article (Markdown, HTML, etc.) with animated-style icons from itshover.com/icons. Fetches icons as clean inline SVG and places them at section headings, key concepts, lists, and callouts. Triggers on: /article-icons, 配图, 给文章配图标, add icons to article, illustrate
Open skill - /code-to-spec
Reverse-engineer a SPEC document from an existing project. Analyzes code, config, tests, and structure to produce a comprehensive specification. Triggers on: code-to-spec, reverse spec, generate spec, 逆向规格, 生成规格文档, 生成设计文档, 生成设计方案, extract spec, document this project, what does
Open skill - /graph
Graph engineering for parallel task execution: convert a task, PRD, SPEC, or issue set into a dependency graph (DAG), layer it into supersteps, then implement each independent node concurrently with subagents — each node runs /goal → /review-it → /ship-it in an isolated git
Open skill - /humanize-it
对指定文档进行去 AI 味的改写。自动选择最合适的人性化策略(humanizer-zh / humanize-chinese / technical-writing), 迭代改写直到效果达标或迭代 42 次为止。适用于中文文本的去 AI 化处理,包括通用文章、技术文档、学术论文等。 Use when user says: "humanize this", "去AI味", "降AIGC", "人性化改写", "改成人话", "去除AI痕迹", "humanize document", "make text human-like", "去机器味",
Open skill - /insight-diagram
为任意项目生成 UML 图、架构图和流程图。分析代码库后让用户选择要生成的图表类型,使用 architecture-diagram skill 渲染为 HTML+SVG,保存到 docs/ 目录。适用于任何软件项目的文档可视化。
Open skill - /listenhub-tts
使用 ListenHub API 将文本转换为语音(TTS)。支持三种模式:快速合成(/v1/tts)、 多角色脚本(/v1/speech)、长文本流式合成(/v1/flow-speech/episodes)。 音色未指定时自动获取音色列表供用户选择,默认使用 chat-girl-105-cn(晓曼)。 Use when user says: "tts", "text to speech", "语音合成", "文字转语音", "朗读", "生成语音", "生成音频", "转音频", "text to audio"
Open skill

