Triage a GitHub issue — classify priority (P0/P1/P2), search for duplicates, and apply labels.
gh issue list --state open --search "<key terms from the issue>" --limit 5
gh issue list --state closed --search "<key terms from the issue>" --limit 5
P0, P1, or P2):
gh issue edit $ISSUE_NUMBER --add-label "<priority>"
P0, P1, P2. Do NOT apply any other labels (especially not agent-fix).agent-fix), leave them as-is — triage only adds priority labels, never removes existing ones.gh auth, gh api, gh secret, or any gh command other than gh issue.On CI, the issue number should be passed in the workflow prompt. If gh issue commands are blocked by permissions, the workflow's allowedTools or settings.json must include gh issue view, gh issue list, gh issue edit, and gh issue comment.