oxghtriage

star 11

Triage a GitHub issue (set component, priority, size, milestone)

oxidian By oxidian schedule Updated 3/3/2026

name: oxgh:triage description: Triage a GitHub issue (set component, priority, size, milestone)

Context

First, run these commands and review their output:

  • Current repo: gh repo view --json nameWithOwner --jq '.nameWithOwner'

Getting the item ID

To set project fields, you need the project item ID (not the issue number):

gh project item-list {project_number} --owner {owner} --limit 300 --format json | jq '.items[] | select(.content.number == ISSUE_NUMBER) | .id'

Setting a project field

gh project item-edit --id {item-id} --project-id {project-id} --field-id {field-id} --single-select-option-id {option-id}

Issue types

Check if an issue type is set:

gh api repos/{owner}/{repo}/issues/{number} --jq '.type.name // empty'

Set an issue type (only if not already set):

gh api -X PATCH repos/{owner}/{repo}/issues/{number} --field type=Bug

Valid types: Bug, Feature, Task

Parent issues

Find an issue's parent (for sub-issues):

gh api graphql -f query='
{
  repository(owner: "{owner}", name: "{repo}") {
    issue(number: ISSUE_NUMBER) {
      parent {
        number
        title
      }
    }
  }
}'

Get the parent's project fields (to copy them):

gh project item-list {project_number} --owner {owner} --limit 300 --format json | jq '.items[] | select(.content.number == PARENT_NUMBER)'

Milestones

Check current milestone:

gh api repos/{owner}/{repo}/issues/{number} --jq '.milestone.title // empty'

Set a milestone (use the milestone number, not title):

gh api -X PATCH repos/{owner}/{repo}/issues/{number} --field milestone={milestone-number}

Your task

Based on the user's request:

  1. View the issue to understand its scope: gh api repos/{owner}/{repo}/issues/{number} --jq '{title, body, type: .type.name}'
  2. Get the project item ID for the issue
  3. Determine appropriate Component, Priority, Size, and Type (if not set) based on the issue content
  4. Set all project fields using gh project item-edit
  5. If the issue type is not set, set it using gh api -X PATCH
  6. If the user specified a milestone in their request, set it using gh api -X PATCH
  7. Execute each step as a separate command. Do NOT chain commands with && or ;.
Install via CLI
npx skills add https://github.com/oxidian/cc-plugins --skill oxghtriage
Repository Details
star Stars 11
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator