/goal-workflow-skills:to-issuesfrom goal-workflow-skills
Decomposes PRD and/or SPEC documents into vertically-sliced, implementable issues with blocking edges, then creates them on GitHub or locally.
Ships in goal-workflow-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Decompose a PRD and/or technical SPEC into small, independently demoable Issues, each sized to fit a single fresh context window, then create them in your chosen platform. Works standalone — you don't need to have run /prd first.
Every Issue this skill produces is agent-ready by construction: a fresh session that has never seen your PRD/SPEC can pick it up and finish it.
This is the rule that matters most, and the one models break most often.
The test for every Issue: "What can I demo when this is done?" If the answer is a layer ("the database has a priority column") rather than a behaviour ("a user can set a task's priority and see it persist"), it is a horizontal slice — re-slice it.
Sizing floor: if the whole change fits in one context window, you don't need Issues at all. Say so and point the user straight at /goal.
Keep this skill in the same context window as
/prd-to-spec. Don't clear or compact between them, or the SPEC has to be re-fetched and may truncate.
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.
Before slicing features, look for prefactoring: mechanical groundwork that makes the feature Issues small and safe — extracting a shared helper, widening a type, adding a seam, moving a file. Order this work first, as its own Issue(s), so the feature tickets that depend on it stay thin.
If you find none, skip this step. Don't invent busywork.
Generate the Issue list. Rules:
Falsifiable acceptance criteria. For each criterion, name the observation that would show it false, and confirm it would fail at the commit the implementer starts from. Reject three shapes: a criterion already true at the base commit, one that can only be satisfied by work another Issue owns, and one that merely restates the request. A vertical slice delivers behaviour that didn't exist before, so it should be red at the base commit by construction.
Issue format:
Issue #N: [Title — a behaviour, not a layer]
---
Description: [What behaviour this delivers, end to end, and why]
Demo path: [The one thing you can show working when this lands]
Acceptance Criteria:
- [ ] [Falsifiable — names an observation that fails at the base commit]
- [ ] ...
Blocked by: [None / Issue #X, #Y]
Priority: [high / medium / low]
SPEC Reference: [Section X.Y — contracts only, no file paths; only if SPEC available]
Present the breakdown as a numbered list and quiz the user before publishing anything. Over-decomposition and accidental horizontal slicing are the two most common failures — this step catches both.
📋 Generated N Issues from [PRD/SPEC], in dependency order:
#1: Extract task-mutation helper (prefactoring) — Blocked by: none
#2: A user can set a task's priority and see it persist — Blocked by: #1
demo: open a task, pick High, reload, still High
#3: A user can filter the task list to one priority — Blocked by: #2
demo: select High, list shows only High tasks
#4: A user can sort the task list by priority — Blocked by: #2
demo: click Sort, tasks reorder High→Low
Review before I create anything:
- Granularity: too fine? "merge #3 and #4". Too coarse? "split #2".
- Demo path: any Issue whose demo is a layer, not a behaviour, is mis-sliced — tell me.
- Edges: are the "Blocked by" links real? Any missing or spurious?
- Adjust: "change #2 priority to high", "add an issue for a priority badge"
- Confirm: reply OK to proceed
Wait for confirmation before creating any Issues.
Choose where to create these Issues:
A. GitHub (via gh CLI, with native blocking links and optional sub-issues)
B. Local (one markdown file per Issue, dependency-ordered)
Your choice:
Prerequisites: gh CLI installed and authenticated, v2.94+ for --parent / --blocked-by.
Create blockers first so their Issue numbers exist before any Issue that depends on them. Capture each returned number.
Actions:
gh issue create \
--title "[Title]" \
--body "[Description + Demo path + Acceptance Criteria + SPEC Reference]" \
--label "priority: [priority]" \
--blocked-by [comma-separated blocker numbers, if any] \
--parent [spec issue number, if creating as sub-issues]
--blocked-by for edges. Only fall back to a "Blocked by #X" line in the body if the tracker rejects the flag.--parent <spec_issue> so these become sub-issues of it. To wire a parent after the fact: gh issue edit <parent> --add-sub-issue <n>.--label flag.Ask user:
Where should I save the Issue files? (default: .autoresearch/issues/[feature-slug])
Actions:
mkdir -p if it doesn't exist. One folder per feature keeps parallel agents from racing on a shared file.NN-[slug].md (zero-padded, NN is a real ticket ID so /goal 03 works):
# [Title — a behaviour]
## Description
[What behaviour this delivers, end to end, and why]
## Demo path
[The one thing you can show working when this lands]
## Acceptance Criteria
- [ ] [Falsifiable criterion 1]
- [ ] [Falsifiable criterion 2]
## Blocked by
[None / #NN, #NN]
## Priority
[high / medium / low]
## SPEC Reference
[Section X.Y — contracts only; omit if no SPEC]
One shape breaks the tracer-bullet rule: a wide refactor — a single mechanical change (rename a column, retype a shared symbol) whose blast radius fans across the whole codebase, so one edit breaks thousands of call sites and no vertical slice can land green.
Sequence it as expand → migrate → contract instead:
Where even the batches can't stay green alone, have them share an integration branch and all block a final integrate-and-verify Issue; green is promised only there.
✅ Issue creation complete!
Source: [PRD/SPEC path]
Mode: [GitHub / Local]
Issues created: N (in dependency order)
# | Title (behaviour) | Blocked by | Identifier
---|------------------------------------------|------------|------------
1 | Extract task-mutation helper | — | #42 / 01-*.md
2 | Set & persist task priority | #1 | #43 / 02-*.md
3 | Filter task list by priority | #2 | #44 / 03-*.md
4 | Sort task list by priority | #2 | #45 / 04-*.md
Frontier (no open blockers, start now): #1
💡 Dispatch is manual — one Issue per fresh session, cleared between them.
Count the Issues with no open blockers, open that many sessions, implement with /goal:
/goal 42 # GitHub mode
/goal 01-*.md # Local mode
Note: /goal may not auto-close the ticket — update its state yourself when done.
| Scenario | Handling |
|---|---|
| Whole change fits one context window | Say so; skip Issues, point at /goal directly |
| 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 |
| Model produced one-per-layer Issues | Catch at the quiz: any Issue whose demo is a layer gets re-sliced vertically |
| Model over-decomposed (12 tickets for a 3-line change) | Quiz step: ask to merge; if the whole thing fits one window, skip Issues |
| Wide mechanical refactor | Use the expand → migrate → contract sequence above |
gh too old for --blocked-by / --parent | Fall back to "Blocked by" body line; suggest upgrading gh to v2.94+ |
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 per-feature folder |
| User declines Issue creation | Print the dependency-ordered list as a text summary for manual creation later |
/prd → /prd-to-spec (optional) → /to-issues → /goal → /review-it → /ship-it
│ │ │ │
│ Requirements │ Technical design │ Vertical │ Implementation
│ (what) │ (how) │ tickets │ (code)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub smallnest/goal-workflow --plugin goal-workflow-skills22 skills in this plugin
/article-iconsIllustrate 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 with icons./code-to-specReverse-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 this project do./debug-itDisciplined bug diagnosis, performance regression forensics, and root-cause fixing: build a tight red-capable feedback loop -> minimise -> rank 3-5 falsifiable hypotheses -> instrument -> attack failed premises -> fix root causes -> lock down with regression test and proof. Triggers on: /debug-it, debug this, diagnose bug, root cause, perf regression, 排查 bug, 根因定位, 诊断问题, 性能退化排查./design-itUse when turning a requirement, spec, or feature brief into a single self-contained HTML design document in a fixed house style — one styled HTML page with a table-of-contents, architecture/sequence SVG diagrams, code/SQL/YAML blocks, callout boxes, an aligned-decisions (已对齐结论) panel, test cases, and a code index. Reuse for any new 需求/设计文档 that should look identical every time./graphGraph 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 worktree, with a fan-in barrier between waves. Triggers on: graph, graph engineering, build a graph, task graph, dependency graph, DAG, parallel implement, 并发实现, 并行实现, 任务图, 把任务变成图, fan-out fan-in, superstep, dynamic workflow./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", "去机器味", "降低AI率", "过AIGC检测"
Other plugins' skills for the same job