Issue create
Don't file first. Search and inspect before composing.
Dedup pre-flight
Open and closed — omitting --state searches both:
gh search issues "<keywords>" --repo <owner>/<repo> --limit 20
Read near-matches with gh api repos/:owner/:repo/issues/<N>. Decide:
- Same outcome already open — update the existing one
(
mcp__github__issue_write with method: update for the body,
mcp__github__add_issue_comment for new context). Don't file a new
one.
- Same outcome closed for stale reasons — reopen it
(
mcp__github__issue_write, method: update, state: open) with a
comment citing what changed. Don't file a new one.
- Adjacent (same area, different angle) — file new, cite the
existing in Additional context; consider an
issue-links edge.
- Partially covers — narrow the new issue to the uncovered
slice; cross-reference both ways.
- Nothing close — file new.
If torn, surface the call rather than silently pick.
Detect repo conventions
ls .github/ISSUE_TEMPLATE/ 2>/dev/null
# REST reads — see ~/.claude/CLAUDE.md "GitHub API budget".
gh api 'repos/:owner/:repo/labels?per_page=100' --jq '.[].name'
gh api repos/:owner/:repo/milestones \
--jq '.[] | "\(.number)\t\(.title)"' # open only — can't assign a closed one
gh api 'repos/:owner/:repo/issues?per_page=5&state=all' \
--jq '.[].title' # skim recent house style
Template present → read it and fill its fields into the body.
Templates encode the project's required fields; don't bypass with a
freeform body.
Standard structure (no template)
- Title — statement true when done. Active voice, outcome.
"Profile writes persist across API restarts in Firestore",
not "Fix profile persistence".
- Summary — 1-2 sentences. What this delivers.
- Motivation — what problem, dependency, or opportunity drives
it. Cite the trigger (PR review, incident, related issue).
- Scope — concrete changes, specific enough to start without
guessing. Bullets, not prose.
- Acceptance criteria — measurable conditions,
- [ ] task-list.
- Additional context — links, screenshots, related issues, only
when they help. Skip the section if empty.
Optimise for tokens — no filler, no restated headings, no "this
issue tracks the work to..." preambles.
Labels and milestones
- Pick existing labels. Don't invent inline — if nothing fits, skip
or raise the label question separately.
- Milestone: assign if one fits the outcome (convergence test —
closing the issue advances the milestone's description). Unset
otherwise. Never use milestones as labels.
- Creating a new milestone →
milestones skill.
- Relating to other issues/PRs →
issue-links skill, after submit.
Submit
Filing creates shared state — propose the body before submitting on
any non-obvious choice (scope, label call, dedup verdict).
File with mcp__github__issue_write (method: create):
labels — array of existing label names.
milestone — the number from the listing above, not the title.
Procedure
- Search open + closed; decide update / reopen / new / link.
- Detect template; else prepare standard structure.
- Fetch labels and milestones; pick fitters or skip.
- Compose; surface non-obvious choices.
- Submit; capture URL.
- Apply cross-edges via
issue-links if related.
1---2name: issue-create3description: File a new GitHub issue in the checked-out repo — search first for duplicates/adjacent issues to update or reference, detect the repo's issue template if any, then compose title/body/labels/milestone matching house style. Use when asked to file, create, open, report, or track an issue.4metadata:5 source: https://skillmd.com/skills/alunduil/issue-create6---78# Issue create910Don't file first. Search and inspect before composing.1112## Dedup pre-flight1314Open *and* closed — omitting `--state` searches both:1516```bash17gh search issues "<keywords>" --repo <owner>/<repo> --limit 2018```1920Read near-matches with `gh api repos/:owner/:repo/issues/<N>`. Decide:2122- **Same outcome already open** — update the existing one23 (`mcp__github__issue_write` with `method: update` for the body,24 `mcp__github__add_issue_comment` for new context). Don't file a new25 one.26- **Same outcome closed for stale reasons** — reopen it27 (`mcp__github__issue_write`, `method: update`, `state: open`) with a28 comment citing what changed. Don't file a new one.29- **Adjacent** (same area, different angle) — file new, cite the30 existing in *Additional context*; consider an `issue-links` edge.31- **Partially covers** — narrow the new issue to the uncovered32 slice; cross-reference both ways.33- **Nothing close** — file new.3435If torn, surface the call rather than silently pick.3637## Detect repo conventions3839```bash40ls .github/ISSUE_TEMPLATE/ 2>/dev/null4142# REST reads — see ~/.claude/CLAUDE.md "GitHub API budget".43gh api 'repos/:owner/:repo/labels?per_page=100' --jq '.[].name'44gh api repos/:owner/:repo/milestones \45 --jq '.[] | "\(.number)\t\(.title)"' # open only — can't assign a closed one46gh api 'repos/:owner/:repo/issues?per_page=5&state=all' \47 --jq '.[].title' # skim recent house style48```4950Template present → read it and fill its fields into the body.51Templates encode the project's required fields; don't bypass with a52freeform body.5354## Standard structure (no template)5556- **Title** — statement true when done. Active voice, outcome.57 *"Profile writes persist across API restarts in Firestore"*,58 not *"Fix profile persistence"*.59- **Summary** — 1-2 sentences. What this delivers.60- **Motivation** — what problem, dependency, or opportunity drives61 it. Cite the trigger (PR review, incident, related issue).62- **Scope** — concrete changes, specific enough to start without63 guessing. Bullets, not prose.64- **Acceptance criteria** — measurable conditions, `- [ ]` task-list.65- **Additional context** — links, screenshots, related issues, only66 when they help. Skip the section if empty.6768Optimise for tokens — no filler, no restated headings, no "this69issue tracks the work to..." preambles.7071## Labels and milestones7273- Pick existing labels. Don't invent inline — if nothing fits, skip74 or raise the label question separately.75- Milestone: assign if one fits the outcome (convergence test —76 closing the issue advances the milestone's description). Unset77 otherwise. Never use milestones as labels.78- Creating a new milestone → `milestones` skill.79- Relating to other issues/PRs → `issue-links` skill, after submit.8081## Submit8283Filing creates shared state — propose the body before submitting on84any non-obvious choice (scope, label call, dedup verdict).8586File with `mcp__github__issue_write` (`method: create`):8788- `labels` — array of existing label names.89- `milestone` — the *number* from the listing above, not the title.9091## Procedure92931. Search open + closed; decide update / reopen / new / link.942. Detect template; else prepare standard structure.953. Fetch labels and milestones; pick fitters or skip.964. Compose; surface non-obvious choices.975. Submit; capture URL.986. Apply cross-edges via `issue-links` if related.