Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

gh-create-issue

БесплатноБез исполняемых скриптовНе проверен

Use when user wants to create a GitHub issue for the current repository. Must read and follow the repository's issue template format.

CherryHQот CherryHQ★ 54 038 звёзд на GitHub

Об этом скилле

GitHub Create Issue

Use this skill when the user requests to create an issue. Must follow the repository's issue template format.

Workflow

Step 1: Determine Template Type

Analyze the user's request to determine the issue type:

  • If the user describes a problem, error, crash, or something not working -> Bug Report
  • If the user requests a new feature, enhancement, or additional support -> Feature Request
  • If the user is asking a question or needs help with something -> Questions & Discussion
  • If the user describes engineering work with no user-facing behavior change (a follow-up deferred from a pull request, technical debt, refactoring, tooling or CI work) -> Engineering Task
  • Otherwise -> Others

Engineering Task is not a GitHub issue form and is not offered to regular users. Only select it when the request clearly describes internal engineering work.

If unclear, ask the user which template to use. Do not default to "Others" on your own.

Eligibility Check (Engineering Task only)

Engineering Task is meant for maintainers and collaborators with write access. This is a request, not an access control — nothing prevents anyone from calling gh issue create directly, and this skill does not try to. The check below is here so that a contributor without write access learns that early and gets pointed somewhere more useful.

Before collecting any information, read the authenticated user's permission level:

repo="$(gh repo view --json nameWithOwner --jq .nameWithOwner)"
user="$(gh api user --jq .login)"
permission="$(gh api "repos/$repo/collaborators/$user/permission" --jq .permission 2>/dev/null)"
case "$permission" in
  admin | write) echo "eligible" ;;
  *) echo "not eligible" ;;
esac

Only admin and write are eligible (maintain reports as write). Always compare the returned value: on a public repository this endpoint answers read for any user, including one who is not a collaborator at all, so a successful call proves nothing on its own. Do not use repos/{owner}/{repo}/collaborators/{user} here — it answers 204 for read- and triage-only collaborators, who are not the intended audience for this template.

If the result is anything else, do not use this template. Explain that it is meant for maintainers with write access, politely ask the contributor to use one of the public templates instead, and offer to help them file it there — their report is welcome, just not under this template. Do not quietly switch templates while keeping the Engineering Task labels or issue type.

Step 2: Search for Existing Reports

The public templates ask the reporter to confirm they searched pinned, open, and closed issues and discussions. That checkbox is a claim made in the user's name, so search before collecting information, for every template:

repo="$(gh repo view --json nameWithOwner --jq .nameWithOwner)"
gh api graphql -F owner="${repo%/*}" -F name="${repo#*/}" -f query='
  query($owner: String!, $name: String!) {
    repository(owner: $owner, name: $name) {
      pinnedIssues(first: 10) { nodes { issue { number title url } } }
    }
  }'
gh issue list --state all --search "<keywords>" --limit 10 --json number,title,state,stateReason,url
gh discussion list --state all --search "<keywords>" --limit 10 --json number,title,closed,url

The search is done once 3–5 keyword sets, drawn from the symptom or the request and the affected feature, have each been run and their results read. All words in one query must match, so split a query that finds nothing into single terms before concluding there is no match.

When a result covers the same thing:

  • Open issue or discussion: show it to the user and recommend a comment there that adds only what it lacks. File only if the user decides the new report is distinct, and link the existing one in the body.
  • Closed issue: its stateReason decides how the new issue reads. COMPLETED means it was fixed, so a recurrence is a regression: reference it and give the version where the problem returned. NOT_PLANNED means the direction was declined: tell the user, and file only if they have a new argument, which the body must address.

Tick each template checklist item only after doing what it states. Leave any you could not verify unticked and name them in the Step 5 preview.

Step 3: Read the Selected Template

  1. Read the corresponding template file from .github/ISSUE_TEMPLATE/ directory.
  2. Identify required fields (validations.required: true), title prefix (title), labels (labels, if present), and issue type (type, if present).

For Engineering Task, read references/engineering-task.md instead — it lives outside .github/ISSUE_TEMPLATE/ on purpose and carries its own title prefix, labels, issue type, and body structure.

Step 4: Collect Information

Based on the selected template, ask the user for required information only. Follow the template's required field

Полный SKILL.md на GitHub

Установить gh-create-issue в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/engineering-task.md

FAQ

Что делает скилл gh-create-issue?

Use when user wants to create a GitHub issue for the current repository. Must read and follow the repository's issue template format.

Как установить скилл gh-create-issue?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл gh-create-issue запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить gh-create-issue с