# triage-issue

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.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 156584 repo stars
- Author: anthropics · official Anthropic repository
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/anthropics/claude-code/tree/HEAD/.claude/commands/triage-issue.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/triage-issue

## What it 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`.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/triage-issue.md` — Call it with /triage-issue. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/triage-issue.md` — Call it with /prompts:triage-issue. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/triage-issue.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/triage-issue.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/anthropics/claude-code/tree/HEAD/.claude/commands/triage-issue.md

## When to use it
- 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
- 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`.

## Similar
- [issue-triage](https://affpapa.org/en/nevibecode/skills/issue-triage.md) — skill · ★ 92149 repo stars
- [Issue Triage Agent](https://affpapa.org/en/nevibecode/agents/issue-triage-agent.md) — subagent · ★ 1627 repo stars
- [triage-issue-local](https://affpapa.org/en/nevibecode/skills/triage-issue-local.md) — skill · ★ 720 repo stars
- [github-triage](https://affpapa.org/en/nevibecode/skills/sammcj-github-triage.md) — skill · ★ 173 repo stars
- [oss-issue-triage](https://affpapa.org/en/nevibecode/skills/oss-issue-triage.md) — skill · 13400 installs
- [code-review](https://affpapa.org/en/nevibecode/commands/code-review.md) — command · 5537 installs
- [review-pr](https://affpapa.org/en/nevibecode/commands/review-pr.md) — command · ★ 47914 repo stars
- [maker-setup](https://affpapa.org/en/nevibecode/commands/maker-setup.md) — command · ★ 47914 repo stars

From the same set: [anthropics/claude-code](https://affpapa.org/en/nevibecode/by/anthropics/claude-code.md) — 2 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
