triage-issue — Claude Code command for GitHub issue triage
The triage-issue Claude Code command sorts GitHub issues and changes their labels. It runs for a new issue or after a comment to update lifecycle labels.
LicenseRef-Proprietary ★ 156,584 updated 2026-10-24
.claude/commands/triage-issue.mdWhat triage-issue does
The command reads an issue and changes its labels. For a new issue, it picks a category, adds relevant technical labels, and can search open issues for duplicates. For a comment event, it reviews the conversation and updates lifecycle labels. It never posts comments.
The available labels come from ./scripts/gh.sh label list; the command does not create labels. It requires the gh CLI plus ./scripts/gh.sh and ./scripts/edit-issue-labels.sh. Only bugs get needs-repro or needs-info. Each new issue receives exactly one category: bug, enhancement, question, invalid, or duplicate.
What it helps with
- categorize new GitHub issues
- find duplicates among open issues
- remove stale lifecycle labels after a comment
- flag bugs that need reproduction steps or more details
Example prompts for the agent
- Triage this new GitHub issue and assign its labels:
/triage-issue. - Review the issue conversation and update its lifecycle labels:
/triage-issue. - Search for open duplicates and label this issue if one matches:
/triage-issue.
How to install triage-issue
Manually: put the files in place
.claude/commands/triage-issue.mdCall it with /triage-issue. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/triage-issue.mdCall it with /prompts:triage-issue. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/triage-issue.prompt.mdManually: put the files in place
.gemini/commands/triage-issue.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about triage-issue
How do I install triage-issue in Claude Code?
Save the command as .claude/commands/triage-issue.md.
What does triage-issue do?
It analyzes GitHub issues, then adds or removes labels. It does not post comments.
What does triage-issue require?
It requires the gh CLI and the ./scripts/gh.sh and ./scripts/edit-issue-labels.sh scripts.