Draft repository-compliant GitHub issues with the `gh` CLI.
skillsy install jaesung-jung/foldericonmaker@gh-issueDraft or create GitHub issues by following the current repository's templates, lint rules, and live labels.
Use files under .github/ as the source of truth and use the gh CLI for live GitHub metadata and issue creation or editing.
Prefer gh over connector tools for this skill.
Do not hardcode the repository name or assume issue rules.
Prefer commands such as:
repo="$(gh repo view --json nameWithOwner -q .nameWithOwner)"
rg --files .github | rg 'ISSUE_TEMPLATE|issue_template|issue'
rg --files .github/workflows | rg 'issue|title|lint'
gh label list --repo "$repo" --limit 200
Use the current repository contents to determine:
Before drafting or revising an issue, inspect:
.github/ISSUE_TEMPLATE/ or equivalent paths.github/ISSUE_TEMPLATE/config.yml when present.github/workflows/If the repository has frontmatter-based issue forms or multiple Markdown templates, choose the template that best matches the request.
If a workflow enforces a title pattern, follow it exactly.
Select the issue type supported by the repository, not by this skill.
Common mappings:
When the repository exposes explicit categories such as Bug, Feature, and Task, use them exactly.
When the request is ambiguous, prefer:
Always query labels with gh before recommending or applying them.
Do not assume label names from memory.
Required step:
gh label list --repo "$repo" --limit 200
Label selection rules:
P0 to P3, priority:*, severity:*, critical, high, medium, and low.When editing an existing issue, inspect current labels first and add only the missing ones unless the user asked you to replace labels.
Prefer commands such as:
gh issue view <number> --repo "$repo" --json labels
gh issue edit <number> --repo "$repo" --add-label "<label>"
Use the actual template headings and required fields from the repository.
If the repository uses GitHub issue forms with structured prompts, mirror the expected sections in the generated body as closely as possible.
gh label list.Prefer commands such as:
gh issue create --repo "$repo" --title "<title>" --body-file <file> --label "<label>"
gh issue edit <number> --repo "$repo" --title "<title>" --body-file <file>
gh issue edit <number> --repo "$repo" --add-label "<label>"
When adding more than one label, pass multiple --label or --add-label flags as needed.
When asked to draft an issue, provide:
Type: <selected issue type or template>
Title: <repository-compliant title>
Recommended labels:
- <label>
- <label>
Body:
<full issue body that matches the repository template>
If gh is unavailable, still provide the final title, body, and recommended labels so the issue can be created without rewriting.