/gh-tools:create-issue [title-or-plan-text]from gh-tools
Use when the user asks to create one or more GitHub issues, file a ticket, open a bug report, write up a feature request, or break a plan/epic into trackable issues. Produces well-defined issues with clear requirements, the right level of detail, and (for implementation-ready issues) a TDD plan suitable for Superpowers pickup.
Ships in gh-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create well-defined GitHub issues that are ready to be picked up later, including by Superpowers workflows. Gather clear requirements upfront and match the level of detail to the task.
The user's request (title, description, or plan text) is the input to this skill. If the skill is
invoked as a slash command, that input is passed as $ARGUMENTS.
Iron rules:
Read the user's request and decide two things.
If the input looks like a plan with multiple workstreams, ask:
This looks like it covers multiple deliverables. Should I create:
- An epic with linked sub-issues
- A set of linked issues without a parent epic
- A single consolidated issue
And should sub-issues be created now, or only the epic with a checklist for later expansion?
If the level is not clear, ask explicitly:
Should this be a high-level issue (capture intent, defer details) or implementation-ready (ready to pick up and build)?
Wait for answers before proceeding.
Scan the raw input for a "blocked by" phrase, case-insensitive, and extract every issue number
that follows it. Store the result in an internal blockers: list[int]. Never prompt the user
for blockers — blockers are the exception, not the rule, and an extra question would annoy the
90% case that has none. If the phrase is ambiguous, skip the native link and record the
relationship in prose only (see Step 4).
Phrases that must trigger extraction:
blocked by 211blocked by issue 211blocked by #211blocked by #211 and #219blocked by 211, 219, and 223…, blocked by 211, also we need …Phrases that must not trigger extraction:
we might be blocked later — no number.this blocks 211 — inverse direction (out of scope).depends on #211 — different phrasing, not covered here.Extraction rule: find the span starting at blocked by and continuing until the next
unrelated clause (sentence end, new topic), then collect every #?\d+ inside that span. Do not
rely on a single regex — the repeated-capture form loses intermediate matches. If blockers
ends up empty, proceed as before with no change in behaviour.
Before drafting, run:
gh label list --limit 100 --json name,description,color
Then:
## Proposed Labels
- `type:feature` (exists)
- `area:api` (exists)
- `priority:medium` (exists)
## Label Gaps
The following themes have no matching label. Would you like to create them?
- `needs-adr` for issues requiring architecture decision records
- `superpowers-ready` for issues structured for Superpowers pickup
If the user approves new labels, create them with gh label create.
Skip any questions already answered in the input.
Wait for answers before proceeding.
Present a summary for confirmation.
## My Understanding
**Type**: [high-level | implementation-ready]
**Problem/Feature**: [one sentence]
**Expected Outcome**:
- [outcome 1]
- [outcome 2]
**Out of Scope**:
- [exclusions]
**Edge Cases** (implementation-ready only):
- [edge case]: [handling]
**Proposed Labels**: [list]
**Blocked by** (only if parsed from input): #<num>, #<num>
**Documentation Impact** (implementation-ready only): [files/pages to update]
## My Understanding
**Epic**: [title and one-sentence goal]
**Proposed Sub-Issues**:
1. [title] - [high-level | implementation-ready]
2. [title] - [high-level | implementation-ready]
**Dependencies**: [order or blocking relationships]
**Proposed Labels**: [list]
Ask: "Is this correct? Anything to add or change?"
Wait for confirmation.
Use gh issue create with the appropriate template below. Apply the agreed labels with --label.
If blockers (from Step 0C) is non-empty:
Append a Dependencies section to the issue body before creation so the link is visible in prose as well as in the GitHub sidebar:
## Dependencies
Blocked by #<num>.
Use a comma-separated list for multiple: Blocked by #<num>, #<num>.
After gh issue create returns the new issue number, link each blocker via the native
GitHub relationship using the addBlockedBy GraphQL mutation. Use the helper below:
link_blocker() {
local blocked_num=$1 blocker_num=$2 repo=$3
local issue_id blocker_id
issue_id=$(gh issue view "$blocked_num" --repo "$repo" --json id --jq .id)
blocker_id=$(gh issue view "$blocker_num" --repo "$repo" --json id --jq .id)
gh api graphql \
-f query='mutation($i: ID!, $b: ID!) {
addBlockedBy(input: {issueId: $i, blockingIssueId: $b}) {
issue { number } blockingIssue { number }
}
}' \
-F i="$issue_id" -F b="$blocker_id"
}
Use -F (not -f) for the ID variables so gh passes them through the GraphQL variables
payload as typed strings — idiomatic for ID! arguments.
Idempotency: if the link already exists, GitHub returns a validation error with the
string Target issue has already been taken. Treat that specific message as a no-op. Any
other failure must be reported to the user but must not abort the run — the issue is
already created and the link can be retried by hand.
For epics with sub-issues:
Part of #<epic>).## Problem Statement
[What problem are we solving, and for whom?]
## Desired Outcome
[What does success look like at a high level?]
## Value / Motivation
[Why does this matter? What is the impact of not doing it?]
## Scope
**In scope:**
- [area 1]
- [area 2]
**Out of scope:**
- [explicit exclusion]
## Open Questions
- [ ] [question needing an answer before refinement]
- [ ] [question needing an answer before refinement]
## Readiness Checklist (for refinement into implementation-ready)
- [ ] Acceptance criteria defined
- [ ] Edge cases identified
- [ ] Documentation impact assessed
- [ ] Dependencies / patterns identified
## Notes
[Context, links, references, related issues]
## Problem Statement
[Clear description of what needs to be solved]
## Expected Behaviour
- When [trigger], then [outcome]
- [additional behaviours]
## Acceptance Criteria
- [ ] [Specific, testable criterion 1]
- [ ] [Specific, testable criterion 2]
- [ ] [Specific, testable criterion 3]
## Out of Scope
- [What this issue will NOT address]
## Edge Cases
| Scenario | Expected Behaviour |
|----------|--------------------|
| [edge case] | [handling] |
## Implementation Plan (TDD)
### Phase 1: Red (Write Failing Tests)
- [ ] Test: [criterion 1 as test]
- [ ] Test: [criterion 2 as test]
- [ ] Test: [edge case 1]
- [ ] Test: [edge case 2]
### Phase 2: Green (Implement)
- Implement minimum code to pass tests
- Do not modify tests during this phase
### Phase 3: Refactor
- Clean up implementation
- Ensure all tests still pass
### Phase 4: Documentation (mandatory final step)
- [ ] [Specific doc file / handbook page / ADR to update]
- [ ] [Changelog entry if applicable]
- [ ] [README or API reference update if applicable]
## Existing Patterns to Follow
[Links to similar code, ADRs, or handbook pages]
## Notes
[Additional context, links, references]
## Epic Goal
[One-sentence overarching goal]
## Motivation
[Why this epic matters, what problem it addresses]
## Sub-Issues
- [ ] #XXX [sub-issue title] (high-level | implementation-ready)
- [ ] #XXX [sub-issue title] (high-level | implementation-ready)
- [ ] #XXX [sub-issue title] (high-level | implementation-ready)
## Dependencies / Sequencing
[Any required order or blocking relationships between sub-issues]
## Definition of Done (Epic-level)
- [ ] All sub-issues closed
- [ ] End-to-end acceptance verified
- [ ] Documentation updated across all affected areas
## Notes
[Links to source research, plans, or related work]
Issues produced by this skill are structured to be Superpowers-friendly (loose coupling, no direct invocation):
Optionally apply a superpowers-ready label (create it if it does not exist) to signal issues that
are structured for Superpowers pickup.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub glnds/glnds-cc-marketplace --plugin gh-tools2 skills in this plugin