agentleFS
djc00pdjc00p/gh-issue-writer/SKILL.md

gh-issue-writer

Skill0 starsChanged 27 days agoMITView on GitHub

Draft well-structured GitHub issues from a description, error, or idea. Supports bug reports, feature requests, enhancements, and tasks. Optionally submits directly via the GitHub CLI or API. Use when someone says "write a GitHub issue", "open an issue for", "file a bug", "create a feature request", or describes a problem that needs to be tracked.

  • Sends data out

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. OmniJeff/claude-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask (or infer from context):

    line 19
  2. Distinctive:

    If the user gives you enough context, proceed without asking — draft and show for confirmation.

    line 26
  3. Distinctive:

    Use the appropriate template below.

    line 32
  4. Distinctive:

    No vague words ("fix thing", "update stuff")

    line 128
  5. Distinctive:

    Ask: "Does this look right?

    line 170
  6. Distinctive:

    If the user says "submit", "create it", "go ahead", or similar:

    line 183
  7. Distinctive:

    Before presenting the draft, verify:

    line 215

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

gh-issue-writer

Draft clear, actionable GitHub issues from a brief description, error message, or idea. Covers bug reports, feature requests, enhancements, and tasks.


Step 1 — Understand the Input

Ask (or infer from context):

  1. What type of issue? Bug | Feature Request | Enhancement | Task | Question
  2. What repo? (detect from git remote get-url origin if in a git dir, otherwise ask)
  3. What happened / what's wanted? (the raw description, error, or idea)
  4. Optional: Labels, assignee, milestone, environment details

If the user gives you enough context, proceed without asking — draft and show for confirmation.


Step 2 — Draft the Issue

Use the appropriate template below. Fill every field; omit sections only if genuinely not applicable.

Bug Report

## Description
<!-- Clear, one-paragraph summary of the problem. -->

## Steps to Reproduce
1.
2.
3.

## Expected Behavior
<!-- What should have happened? -->

## Actual Behavior
<!-- What actually happened? Include error messages verbatim. -->

## Environment
- OS:
- Browser / Runtime / Version:
- Relevant config or dependencies:

## Logs / Screenshots
<!-- Paste relevant logs, stack traces, or attach screenshots. -->

## Additional Context
<!-- Anything else that might help: related issues, recent changes, workarounds tried. -->

Feature Request

## Problem / Motivation
<!-- What problem does this solve? Why does it matter? -->

## Proposed Solution
<!-- Describe the feature clearly. What would it look like? How would it work? -->

## Alternatives Considered
<!-- Other approaches you thought about and why you ruled them out. -->

## Acceptance Criteria
- [ ]
- [ ]

## Additional Context
<!-- Mockups, related issues, prior art, links. -->

Enhancement (improvement to existing behavior)

## Current Behavior
<!-- What does it do now? -->

## Desired Behavior
<!-- What should it do instead? -->

## Why This Matters
<!-- Impact: who benefits, how much, how often? -->

## Suggested Implementation
<!-- Optional: any technical ideas or constraints. -->

Task / Chore

## What needs to be done
<!-- Clear, specific description of the work. -->

## Why / Context
<!-- Why is this needed now? What does it unblock? -->

## Definition of Done
- [ ]
- [ ]

Step 3 — Write a Strong Title

Title format by type:

TypePatternExample
BugBug: <what fails> on <where>Bug: 500 on POST /login when payload missing field
FeatureFeature: <capability> for <who/where>Feature: CSV export for admin reports
EnhancementEnhance: <what> — <improvement>Enhance: error messages — add field-level detail
TaskTask: <verb> <thing>Task: upgrade Stripe SDK to v16

Rules:

  • Under 72 characters
  • No vague words ("fix thing", "update stuff")
  • Specific: what + where, not just what

Step 4 — Suggest Labels & Metadata

Recommend labels based on type and content:

SignalSuggested Labels
Bugbug, needs-repro
Featureenhancement, feature-request
High impact / blockingpriority:high
Needs more infoneeds-info
Good for contributorsgood first issue
Securitysecurity
Performanceperformance
Docsdocumentation

Also suggest:

  • Assignee: who owns this area of the codebase?
  • Milestone: which release or sprint does this target?

Step 5 — Present for Review

Show the complete draft:

**Title:** <title>

**Type:** Bug / Feature / Enhancement / Task
**Suggested labels:** bug, priority:high
**Suggested assignee:** (if known)

---
<full issue body>
---

Ask: "Does this look right? I can adjust the title, add details, or submit it directly."


Step 6 — Optional: Submit

Prerequisites for submission:

  • gh CLI (authenticated via gh auth login) — preferred path
  • GH_TOKEN env var — required for the curl API fallback
  • git — used to detect the repo from git remote get-url origin

Drafting (Steps 1–5) works without any of these.

If the user says "submit", "create it", "go ahead", or similar:

Via GitHub CLI (preferred)

gh issue create \
  --repo owner/repo \
  --title "<title>" \
  --body "<body>" \
  --label "bug,priority:high" \
  --assignee "@me"

Via GitHub API (fallback if gh isn't available)

curl -s -X POST \
  -H "Authorization: Bearer $GH_TOKEN" \
  -H "Accept: application/vnd.github+json" \
  https://api.github.com/repos/{owner}/{repo}/issues \
  -d '{
    "title": "<title>",
    "body": "<body>",
    "labels": ["bug"],
    "assignees": []
  }'

On success, output the issue URL. On error, show the response and offer to retry.


Quality Checklist

Before presenting the draft, verify:

  • Title is specific and under 72 chars
  • For bugs: repro steps are numbered and minimal
  • Expected vs actual behavior is clearly separated
  • Environment section filled (OS, version, runtime)
  • No vague language ("sometimes", "doesn't work", "weird behavior")
  • Logs/errors quoted verbatim, not paraphrased
  • Ends with a clear ask or next step

Tips for Better Issues

Do:

  • Quote error messages exactly — don't summarize them
  • Include the minimal repro — what's the smallest thing that triggers the bug?
  • Link related issues with #<number>
  • Mention what you've already tried

Don't:

  • "Works on my machine" without environment details
  • Multiple unrelated problems in one issue
  • Vague titles like "Login broken" or "Feature request"
  • Screenshot of code instead of pasted text

See Also

Safe Submission

Issue content is user-supplied text. Never interpolate it into a shell command string or hand-write it into JSON.

Do not build shell commands by string concatenation. A title or body containing quotes, backticks, $(...), or newlines can break out of the argument and execute unintended commands. Pass values as separate arguments:

# WRONG - interpolates user text into a shell string
gh issue create --title "$TITLE" --body "$BODY"

# RIGHT - write the body to a file and let gh read it
BODY_FILE=$(mktemp)
trap 'rm -f "$BODY_FILE"' EXIT
cat > "$BODY_FILE" <<'ISSUE_BODY_EOF'
...issue body text goes here...
ISSUE_BODY_EOF

gh issue create \
  --repo "OWNER/REPO" \
  --title "Short issue title" \
  --body-file "$BODY_FILE"

For the curl fallback, serialize the JSON with a real JSON encoder rather than pasting placeholders into a JSON literal, and validate the repository identifier before sending:

# WRONG - hand-written JSON with interpolated values
curl -s -X POST "https://api.github.com/repos/OWNER/REPO/issues" \
  -H "Authorization: Bearer $GH_TOKEN" \
  -d '{"title": "<title>", "body": "<body>"}'

# RIGHT - serialize with python so quoting and newlines are handled correctly
python3 - "$OWNER" "$REPO" "$TITLE" "$BODY_FILE" <<'PY_EOF'
import json, os, sys, urllib.request
owner, repo, title, body_file = sys.argv[1:5]
if not re.fullmatch(r"[A-Za-z0-9._-]+", owner) or not re.fullmatch(r"[A-Za-z0-9._-]+", repo):
    sys.exit("invalid owner/repo identifier")
with open(body_file, encoding="utf-8") as f:
    body = f.read()
payload = json.dumps({"title": title, "body": body}).encode()
req = urllib.request.Request(
    f"https://api.github.com/repos/{owner}/{repo}/issues",
    data=payload,
    headers={"Authorization": f"Bearer {os.environ['GH_TOKEN']}",
             "Accept": "application/vnd.github+json",
             "Content-Type": "application/json"},
)
print(urllib.request.urlopen(req).read().decode())
PY_EOF

Before submitting, always confirm with the user: the target repository (verify OWNER/REPO), the exact title, the full body, labels, and assignees. Scrub secrets, API keys, tokens, and internal hostnames from the body first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.