# Triage

Triage GitHub issues by applying type, effort, priority, and area labels.

- Repository: https://github.com/coleam00/Archon (23799 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-10-31
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add coleam00/Archon --skill triage -g -a claude-code -y`
Codex: `npx skills add coleam00/Archon --skill triage -g -a codex -y`
Cursor: `npx skills add coleam00/Archon --skill triage -g -a cursor -y`
Gemini CLI: `npx skills add coleam00/Archon --skill triage -g -a gemini-cli -y`

## Description

Triage GitHub issues by applying type, effort, priority, and area labels. Runs in an isolated context to avoid polluting the main conversation with issue details. Delegates to a specialized triage agent with label validation hooks.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Triage GitHub Issues

Triage issues for this repository by applying appropriate labels.

## Repository Context

- **Current repo**: !`gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "unknown"`
- **Open issues**: !`gh issue list --state open --json number --jq 'length' 2>/dev/null || echo "?"`
- **Existing labels**: !`gh label list --json name -q '.[].name' 2>/dev/null | head -20 || echo "none found"`

---

## Scope

Determine which issues to triage based on the arguments: **$ARGUMENTS**

| Argument | Behavior |
|----------|----------|
| (empty) | Only unlabeled issues (default) |
| `unlabeled` | Only issues without any labels |
| `all` | All open issues |
| `N` | Specific issue (e.g., `67`) |
| `N-M` | Range of issues inclusive (e.g., `60-67`) |

## Process

1. **Fetch available labels**, run `gh label list --json name,description` to understand
   the label taxonomy. Labels are organized into type, effort, priority, and area categories.

2. **Fetch target issues**, based on the scope above. For each issue, fetch the full body:
   ```bash
   gh issue view {number} --json number,title,body,labels
   ```

3. **For each issue**:
   - Read the title and full body carefully
   - If needed, explore the codebase (`Glob`, `Grep`, `Read`) to understand the affected code
   - Classify: one type, one effort, one priority, one or more areas
   - Track relationships with other issues (duplicates, related, blocking)
   - Apply labels:
     ```bash
     gh issue edit {number} --add-label "type,effort/level,P#,area.domain"
     ```
   - Skip issues that already have complete labeling (type + effort + priority + area)
   - For partially labeled issues, only add missing label categories

4. **Output a triage summary**:

   ```
   ## Triage Summary

   | Issue | Title | Labels Applied | Reasoning |
   |-------|-------|----------------|-----------|
   | #67 | ... | bug, effort/low, P1, core.config | ... |

The rest: https://github.com/coleam00/Archon/blob/HEAD/.claude/skills/triage/SKILL.md
