Catalogue / github-issues
github-issues
MITSignedUse when filing a bug, requesting a feature, creating an issue, or updating issue details. Manages issues on GitHub (and GitLab via glab) with templates, formatting, and auto-assignment.--- name: github-issues description: Use when filing a bug, requesting a feature, creating an issue, or updating issue details. Manages issues on GitHub (and GitLab via glab) with templates, formatting, and auto-assignment. license: MIT allowed-tools: Read Bash(git remote get-url origin) Bash(gh:*) Bash(glab:*) model: haiku effort: medium compatibility: Requires a GitHub (gh) or GitLab (glab) remote; GitHub is best-supported (issue types, sub-issues, templates); a GitHub MCP server is optional and unlocks typed issue-field support metadata: short-description: Create and manage issues. ---
You create, update, query, and comment on GitHub (or GitLab) issues.
Rules Overview
| Rule | Impact | File | |------|--------|------| | Issue title | HIGH | rules/issue-title.md | | Template adherence | MEDIUM | rules/template-adherence.md | | No checklists | MEDIUM | rules/no-checklists.md | | Agent brief | MEDIUM | rules/agent-brief.md |
CLI vs MCP Precedence
Use the CLI (gh/glab) for every operation it natively supports — it is the default interface throughout this skill. For operations with no native CLI subcommand (currently: issue fields — structured priority/effort/date/custom metadata on issues — and sub-issue reordering, covered in the workflow below), fall back in this order:
- GitHub MCP server tools, if such a server is connected. In Claude Code its tools are typically named
mcp__github__*(list_issue_fields,issue_read,issue_write), but the name depends on how the server was registered — detect by capability, not exact ID. Never assume the server is available. This skill does not pre-approve any MCP tools — the host prompts for permission, so the user decides whether to allow them. - `gh api` against the REST API, sending
-H "X-GitHub-Api-Version: 2026-03-10":
- List fields:
gh api orgs/{org}/issue-fields(needsread:org) — returns each field's numericid,name,data_type(text,number,date,single_select,multi_select), andoptions[].name - Read an issue's values:
gh api repos/{owner}/{repo}/issues/{number}/issue-field-values - Add or update values without touching others:
POSTto the same path with--input -and a body of{"issue_field_values":[{"field_id":1,"value":"High"}]}. Single-select takes the option name, multi-select an array of names, number a number, dateYYYY-MM-DD PUTto the same path replaces all field values on the issue — avoid it unless that is the intent- Clear one field:
DELETE repos/{owner}/{repo}/issues/{number}/issue-field-values/{field_id}(404 if the field has no value)
- Graceful skip: complete the rest of the operation, report which fields could not be set, and note that connecting the GitHub MCP server unlocks typed issue-field support.
Workflow
- Determine action: create, update, query, or comment
- Detect the remote host from
git remote get-url origin(github.com → gh, gitlab.com → glab; default GitHub) and use that CLI throughout. Get owner/repo (or group/project) info. GitHub-only features — organisation issue types, issue fields, sub-issues, and.github/ISSUE_TEMPLATE/— do not exist on GitLab: on GitLab skip the issue-type, issue-field, and sub-issue steps and use.gitlab/issue_templates/instead, with a description task list standing in for sub-issues when the user wants child work tracked (the exceptionrules/no-checklists.mdallows) - Check for issue templates in the host's conventional location: on GitHub
.github/ISSUE_TEMPLATE/or.github/; on GitLab.gitlab/issue_templates/ - List available organisation issue types (fails for user-owned repos — expected, proceed without)
- List available issue fields (organisation-level, inherited by repositories) via the CLI vs MCP precedence above — no native CLI subcommand exists, so use the MCP server or
gh api(fails for user-owned repos — expected, proceed without). Organisations get four defaults: Priority (single-select: Urgent, High, Medium, Low), Effort (single-select: High, Medium, Low), Start date, and Target date. Treat them as likely-present but still discover them at runtime — an organisation may have renamed, removed, or added options - For creation or update:
- For updates: fetch the current issue first
- When issue types are available, select the most appropriate type (e.g. Bug for defects, Feature for new functionality, Task for general work)
- When the user specifies field values (priority, effort, dates, custom), set them via the CLI vs MCP precedence above — values must match the field's declared type (single-select option name, text, number,
YYYY-MM-DDdate) - When Priority and Effort exist but the user did not specify them, propose a value for each from the issue's content — severity and blast radius for Priority, expected scope of the change for Effort — and say what you picked. Leave a field unset rather than guessing when the issue is too vague to judge; do not set dates unless the user asks
- Generate title following
rules/issue-title.md - Generate body following template if found (see
rules/template-adherence.md), otherwise use clear structured format; either way followrules/no-checklists.md - When the work is concrete enough to start on, end the body with an agent brief per
rules/agent-brief.md; skip it when the starting point or verification is not known - For creation: self-assign. On GitHub,
gh issue create --assignee @me(MCP: look up the authenticated user and include them in assignees). On GitLab,@meis a list filter rather than a valid assignee — resolve the username first withglab api user --jq .username, thenglab issue create --assignee <username> - If the user specifies a parent issue, link the created/updated issue as a sub-issue:
gh issue create --parent <number>orgh issue edit <number> --parent <number>
- For parent/sub-issue management (
ghtakes issue numbers or URLs; the MCP tools and REST API address the parent by issue number but take the child's numericid):
- To list sub-issues:
gh issue view <parent> --json subIssues,subIssuesSummary - To add a sub-issue:
gh issue edit <parent> --add-sub-issue <child>[,<child>] - To remove a sub-issue:
gh issue edit <parent> --remove-sub-issue <child>, orgh issue edit <child> --remove-parent - To reorder sub-issues (no CLI flag):
gh api -X PATCH repos/{owner}/{repo}/issues/{parent_number}/sub_issues/prioritywithsub_issue_idplusafter_idorbefore_id— the URL takes the parent's issue number, while those three body fields take issueids, not numbers - When creating multiple related issues, prefer structuring them as a parent with sub-issues rather than flat independent issues
- For queries:
- Fetch a specific issue by number
- Inspect sub-issue hierarchy on a parent issue
- Search issues for filters, keywords, and cross-repo lookups
- Filter by issue-field values (MCP
field_filtersor the API; no native CLI equivalent — degrade gracefully per the precedence above) - List repository issues
- For comments:
- Fetch issue context first when needed
- Add the comment to the issue
- Display a summary with issue links and what changed
Validation
- For titles: follow
rules/issue-title.md - For body with template: follow
rules/template-adherence.md - For body lists: follow
rules/no-checklists.md - For an agent brief: follow
rules/agent-brief.md— only facts known from the conversation or the codebase, never invented paths or commands - For labels: only use labels that already exist in the repository
- For fields: only set fields that already exist in the organisation or repository; never invent field names or single-select options
- For assignees: only assign valid repository collaborators
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 7.9 kB | 7fd88e47bbad |
| SKILVAULT_SOURCE.json | 1.5 kB | 17c7bf5f61ea |
| THIRD_PARTY_NOTICES.md | 1.1 kB | d0583266825e |
| rules/agent-brief.md | 2.9 kB | a97c3b3847e2 |
| rules/issue-title.md | 545 B | a6a16b2d8039 |
| rules/no-checklists.md | 589 B | 6ee2453faa4d |
| rules/template-adherence.md | 971 B | bf5e555fcbbc |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 297c53136041 | 28 Nov 2026 |
Locking a skill to one version needs Pro.