Create and triage GitHub issues from repository evidence. Trigger: issue creation, bug reports, feature requests, or issue approval.
70
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Use this skill when creating, drafting, triaging, or approving an issue in the current GitHub repository.
Discover the repository's actual contribution workflow before proposing or publishing an issue. Templates, labels, approval gates, and Discussions support are repository policy, not universal GitHub behavior.
Run read-only checks first:
gh auth status
REPO="$(gh repo view --json nameWithOwner -q .nameWithOwner)"
REPO_URL="$(gh repo view --json url -q .url)"
HOST="${REPO_URL#*://}"
HOST="${HOST%%/*}"
gh repo view --json nameWithOwner,url,hasDiscussionsEnabled,hasIssuesEnabled,isBlankIssuesEnabled
git ls-files CONTRIBUTING.md CONTRIBUTING.* .github/CONTRIBUTING.md .github/ISSUE_TEMPLATE
gh api --hostname "$HOST" --paginate "repos/$REPO/labels?per_page=100" --jq '.[].name'Also inspect:
CONTRIBUTING.md and README.md;.github/ISSUE_TEMPLATE;.github/ISSUE_TEMPLATE/config.yml when present;Stop and ask for repository context if authentication, repository resolution, verification that REPO and HOST are non-empty, required metadata is unavailable, hasIssuesEnabled is false, or policy discovery fails. Never continue from failed discovery into issue publication.
A no-template fallback is allowed only when isBlankIssuesEnabled is explicitly true. Otherwise follow discovered contact links or stop and ask; never publish.
After discovery and review, build optional label arguments using only labels that exist and repository policy permits the actor to apply:
LABEL_ARGS=()
# Repeat for each reviewed, permitted discovered label.
LABEL_ARGS+=(--label "$LABEL")An empty array applies no label; do not invent labels.
Describe the problem or request in one sentence and derive a short search query.
Search open and closed issues:
gh issue list --repo "$HOST/$REPO" --state all --search "$QUERY" --limit 1000If 1000 results are returned or completeness remains uncertain, narrow the search, use read-only API discovery, or stop and ask before publishing.
If an issue already covers the same behavior, comment there instead of creating a duplicate.
Choose a repository-provided template only when its purpose matches the report.
Fill every required template field from known evidence. Ask for missing facts rather than inventing them.
Apply labels only when they exist and repository guidance establishes who should apply them.
Publish only after the title, body, target repository, and selected template or fallback have been reviewed, and the pre-submission privacy review below has passed.
Pre-submission privacy review is mandatory. Scan every issue body immediately before gh issue create. The scan replaces — never deletes — environment-specific data with explicit placeholders so the reproduction still teaches:
| Category | Replace with | Example (before → after) |
|---|---|---|
| Private project names | <project-name> | my-private-project-b → <project-name> |
| Usernames | <user> | C:\Users\my-real-username\go\bin → C:\Users\<user>\go\bin |
| Hostnames | <hostname> | devbox-macbook.local → <hostname> |
| Home paths | /home/<user> or C:\Users\<user> | (covered above) |
| API keys, tokens, passwords | <token> / <password> | ghp_abc123... → <token> |
| Internal ports / hostnames | <host>:<port> | 10.0.0.42:5432 → <host>:<port> |
Do NOT redact intentionally public identifiers: tool names (gentle-ai, engram, go, node, python), package names, public documentation URLs, generic example domains (example.com, localhost). Keep reproduction structure with placeholders — never redact an example into nothingness.
Rule of thumb: if the reader can run the reproduction step after you replace every identifier with its placeholder, the sanitization is correct. If a step becomes impossible (because the placeholder consumed a needed value), that step needs the value — and you should mark it <value-required> and explain in the body what the user should fill in.
Do not guess a template filename. If multiple templates could apply and repository guidance does not distinguish them, stop and ask which one to use.
.yml and .yaml files are GitHub Issue Forms. Do not parse or render their schema. Open the web issue chooser and stop for human completion:
gh issue create --repo "$HOST/$REPO" --web "${LABEL_ARGS[@]}".md files are Markdown templates. Read the matching template, complete it from known evidence into a reviewed BODY_FILE, then publish it:
gh issue create --repo "$HOST/$REPO" --title "$TITLE" --body-file "$BODY_FILE" "${LABEL_ARGS[@]}"When the repository permits issue creation, provides no matching template, and isBlankIssuesEnabled is explicitly true, prepare a structured body with these sections:
Publish the reviewed fallback explicitly:
gh issue create --repo "$HOST/$REPO" --title "$TITLE" --body "$BODY" "${LABEL_ARGS[@]}"If blank issues are not explicitly enabled, follow discovered contact links or stop and ask. Never publish a no-template fallback.
Treat labels and approval gates as conditional:
Use Discussions only when hasDiscussionsEnabled is true and repository guidance routes the question there. Otherwise follow documented support/contact links or ask the user where the question belongs. Never link to another repository's Discussions page.
Before approving or closing an issue, verify:
If any point is uncertain, keep the issue in the repository's review state and request the smallest missing evidence.
a245f26
Also appears in
last in sync Jul 24, 2026
last in sync Jul 24, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.