Create issue

From jellyrock/jellyrock · View interactive version

Create issue is an AI agent skill from the GitHub repository jellyrock/jellyrock. Draft a GitHub issue body for the JellyRock repo from a Reddit/Discord post or free-form bug report and submit it via forge.sh. Reads the YAML form templates under .github/ISSUE_TEMPLATE/ to know which fields are required, fills them by extracting from the input, asks for any missing required fields

How to use this skill

Skill file

/create-issue: draft and submit an issue

This repo

Contract

Goal. Turn a raw report (a forum thread, a chat message, an email, a free-form bug description, or a defect found during work) into a well-formed issue, or route it to the surface this repo actually uses for that kind of work. The skill first checks the report belongs in the issue tracker; then it wraps the repo's YAML issue forms (.github/ISSUE_TEMPLATE/*.yml) as a drafting-and-submission API: it picks the right form, fills each required field from the input, marks (never fabricates) the gaps, and submits via forge.sh issue create with the form's labels passed explicitly. A repo without forms gets the body shape this skill's ## This repo gives, else plain Markdown.

Inputs. The arguments (optional) are the source text: a forum post body, a chat message, an email, or a free-form problem description; if empty, ask the user for it. The skill reads the issue form folder, ISSUE_TEMPLATE/ under .github/ (on Forgejo also under .forgejo/, .gitea/ or docs/): its forms and its config.yml contact links, this skill's ## This repo (a routing table, a body shape, label guidance), the repo's labels, and its open and closed issues to check for duplicates.

Outputs. One of: a created issue whose body follows the chosen form (one ### {{field label}} per field, filled where the input supports it, gap-marked where it doesn't) or this repo's body shape, labeled with labels that exist in the repo, its URL printed; a comment on an existing issue when the report is a duplicate the user chose to add to; or a route to another surface (a journal entry, a project, a contact link) with the command to take it. A followup the input also implies is routed through /log.

Success criteria.

Failure modes to avoid.

When not to use.

Implementation

This skill's ## This repo holds the repo's own parts: a routing table for work the repo tracks outside its issue tracker, the body shape and title convention when the repo has no forms, label guidance beyond the forms' labels: (a regression label, labels automation owns), and anything to do after filing. Where a step needs one of them, it says so.

Step 1: Does this belong in the issue tracker?

Otherwise continue.

Step 2: Pick the form

List the form folder's *.yml (skip config.yml) and read each form's name, description and its intro markdown block: they say what each form is for (a bug, a new feature, a change to an existing one). Match the input to one; on an ambiguous call, show the top two with why and let the user pick. Read the chosen form in full: its body fields (each attributes.label, validations.required, a dropdown's options) and its labels:. Never work from a field or label list copied into this file or anywhere else.

With no forms there, use the body shape and title convention in this skill's ## This repo; with none there, a plain Markdown body (what is wrong, how to reproduce it, what done looks like).

Step 3: Search for duplicates

Before drafting, search open and closed issues with 2–3 keywords from the input, title first, then broad:

bash .claude/skills/pr/forge.sh issue list --state all --search "{{keywords}} in:title" --limit 10
bash .claude/skills/pr/forge.sh issue list --state all --search "{{keywords}}" --limit 10

Show each likely candidate in one line with its state. Before offering to link one, check it is still true (bash .claude/skills/pr/forge.sh issue view {{N}} | jq '{title, state, body}'): an issue whose premise has since changed passes the staleness on. Then ask in chat: comment (add the new context to the existing issue), link (file new and reference it in the body), or new (not a duplicate). A bug that matches a closed, fixed issue may be a regression: say so, and offer the regression label this skill's ## This repo names, if any.

Step 4: Fill the fields

Walk each required field of the form and fill it from the input, lifting the reporter's own wording verbatim. Numbered repro steps hold only what the input states, in its order; a step the form asks for that the input lacks (a navigation path, a sign-in) is one numbered line holding the gap marker, or a question to the user as below, never a guessed step. A dropdown takes one of its options exactly as written, and only when the input gives that answer; a required dropdown the input does not answer follows the gap rule below, even when the form offers "Not sure" or "Other". Fill an optional field only when the input supports it.

A required field the input does not cover: ask the user to fill it when they are the reporter or can find out; otherwise (a forwarded report whose author is not here) leave the gap marker Reporter didn't specify; needs follow-up. in the field. Show both options when it is unclear which applies; never fill a gap to satisfy the form.

Step 5: Render the title and body

Title: one line that names the defect or the change specifically (what fails, where), not the reporter's subject line; the convention in this skill's ## This repo when it has one.

Body: one ### {{field label}} per filled field, spelled exactly as the form's attributes.label, in the form's order; leave out empty optional fields, never an empty heading. For a forwarded report, end with a source line in the additional-context field (or a last paragraph without forms): Reported via {{channel}}., plus a link when the source is public. Never name the reporter. On a Forgejo repo, an issue that belongs under a tracking issue starts with Part of #{{N}} (Step 8 says why).

Write the body to "$(git rev-parse --git-dir)/issue-body.md": inside the git directory it can never be committed, and it survives a failed create.

Step 6: Labels

The labels are the chosen form's labels: (no form: the guidance in this skill's ## This repo, else none), plus any label the user asked for or Step 3 offered, and no others. A label that you think also fits is a suggestion, not a label: name it with its description on the Step 7 screen and add it only when the user says so. Check each exists; the command prints the ones the repo lacks, and nothing when all exist:

printf '%s\n' {{label}} [{{label}} …] | grep -Fxv -f <(bash .claude/skills/pr/forge.sh label list | jq -r '.[].name')

For each missing label, in this order:

  1. Use an existing label. Read bash .claude/skills/pr/forge.sh label list | jq -r '.[] | "\(.name)\t\(.description)"' and pick the one whose name and description fit what the missing label meant; show it to the user beside the label it replaces.
  2. Leave it off when nothing fits, and say so.
  3. Create it only when the user wants it and nothing existing fits: show the bash .claude/skills/pr/forge.sh label create {{name}} --description "{{text}}" command for them to run or approve. Never create a label silently.

A form that names a missing label is out of date: say so in one line, so the form gets fixed rather than worked around each time.

Step 7: Check, then confirm

When this repo's public posture is public, sweep the title and body for a home path, a person's name or email, a secret, or another repository's or host's name: grep -nEi '/home/|/Users/|@[a-z0-9.-]+\.[a-z]{2,}|BEGIN [A-Z ]*PRIVATE KEY' "$(git rev-parse --git-dir)/issue-body.md", and a read for the rest. Read each hit and remove what is private; a reporter's quoted text gets the same sweep.

Then show the user the form, the title, the labels (each replacement beside what it replaced, and each suggested label with its description), the full body, the sweep's result (the grep's hit lines and what was removed, or no hits with the command that ran; in a repo whose public posture is not public, not a public repo, so a sweep that did not run shows as a missing line), and the duplicate candidates from Step 3, and ask in chat: submit, edit: <text> (apply the change, show it again, ask again) or cancel. Never submit without submit.

Step 8: Submit

bash .claude/skills/pr/forge.sh issue create --title "{{title}}" --body-file "$(git rev-parse --git-dir)/issue-body.md" [--label {{name}} [--label {{name}} …]] [--parent {{N}}]

--parent {{N}} files it as a sub-issue of a tracking issue, when the user says it belongs under one. On a Forgejo repo (backend: forgejo in this repo's forge) there are no sub-issues, and forge.sh refuses --parent (exit 5): in its place the body starts with Part of #{{N}}, written in Step 5 so the user confirms it in Step 7.

Step 9: After

Print the issue URL; don't summarize the body. If the input also holds a followup or a decision this session should not lose, route it through /log. Then anything this skill's ## This repo asks for after filing.

Sub-agent invocation

A parent that has a report to formalize starts a sub-agent with model: "sonnet" and this Task prompt; the sub-agent drafts and returns, and the parent runs Steps 7–9 with the user:

Read .claude/skills/create-issue/SKILL.md and follow Steps 1-6 for the report inside the report tags: <report>{{source text}}</report>. Do not create an issue or a label: return the chosen form, title, labels (with any replacement and what it replaced), the body file path, the duplicate candidates, and any route Step 1 chose instead. End your report with a "Captures for /log" section: one "- <type>: <title> — <body>" bullet per journal-worthy item this work surfaced, where <type> is one of [this repo's capture types](../../../AGENTS.md#capture-types); omit the section if there are none, and never write to journals yourself. A parent writing that prompt for an Explore sub-agent (which loads no instruction files) spells the types out from the slot in place of the link.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.