Triage GitHub issues through a label-based state machine with interactive grilling sessions. Use when user wants to triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.
Triage issues in the current repo using a label-based state machine. Infer the repo from git remote. Use gh for all GitHub operations.
Every comment or issue posted to GitHub during triage must include the following disclaimer at the top of the comment body, before any other content:
> *This was generated by AI during triage.*
.out-of-scope/| Label | Type | Description |
|---|---|---|
bug | Category | Something is broken |
enhancement | Category | New feature or improvement |
needs-triage | State | Maintainer needs to evaluate this issue |
needs-info | State | Waiting on reporter for more information |
ready-for-agent | State | Fully specified, ready for AFK agent |
ready-for-human | State | Requires human implementation |
wontfix | State | Will not be actioned |
Every issue should have exactly one state label and one category label. If an issue has conflicting state labels (e.g. both needs-triage and ready-for-agent), flag the conflict and ask the maintainer which state is correct before doing anything else. Provide a recommendation.
| Current State | Can transition to | Who triggers it | What happens |
|---|---|---|---|
unlabeled | needs-triage | Skill (on first look) | Issue needs maintainer evaluation. Skill applies label after presenting recommendation. |
unlabeled | ready-for-agent | Maintainer (via skill) | Issue is already well-specified and agent-suitable. Skill writes agent brief comment, applies label. |
unlabeled | ready-for-human | Maintainer (via skill) | Issue requires human implementation. Skill writes a brief comment summarizing the task, applies label. |
unlabeled | wontfix | Maintainer (via skill) | Issue is spam, duplicate, or out of scope. Skill closes with comment (and writes .out-of-scope/ for enhancements). |
needs-triage | needs-info | Maintainer (via skill) | Issue is underspecified. Skill posts triage notes capturing progress so far + questions for reporter. |
needs-triage | ready-for-agent | Maintainer (via skill) | Grilling session complete, agent-suitable. Skill writes agent brief comment, applies label. |
needs-triage | ready-for-human | Maintainer (via skill) | Grilling session complete, needs human. Skill writes a brief comment summarizing the task, applies label. |
needs-triage | wontfix | Maintainer (via skill) | Maintainer decides not to action. Skill closes with comment (and writes .out-of-scope/ for enhancements). |
needs-info | needs-triage | Skill (detects reply) | Reporter has replied. Skill surfaces to maintainer for re-evaluation. |
An issue can only move along these transitions. The maintainer can override any state directly (see Quick State Override below), but the skill should flag if the transition is unusual.
The maintainer invokes /github-triage then describes what they want in natural language. The skill interprets the request and takes the appropriate action.
Example requests:
When the maintainer asks for an overview, query GitHub and present a summary grouped into three buckets:
needs-triage issues — maintainer needs to evaluate or continue evaluating.needs-info issues with new activity — the reporter has commented since the last triage notes comment. Check comment timestamps to determine this.Display counts per group. Within each group, show issues oldest first (longest-waiting gets attention first). For each issue, show: number, title, age, and a one-line summary of the issue body.
Let the maintainer pick which issue to dive into.
Before presenting anything to the maintainer:
.out-of-scope/*.md files and check if this issue matches or is similar to a previously rejected conceptTell the maintainer:
.out-of-scope/concept-name.md — we rejected this before because X. Do you still feel the same way?"Then wait for the maintainer's direction. They may:
If the issue is categorized as a bug, attempt to reproduce it before starting a grilling session. This will vary by codebase, but do your best:
needs-infoThe reproduction attempt informs the grilling session and the agent brief. A confirmed reproduction with a known code path makes for a much stronger brief.
If the issue needs to be fleshed out before it's ready for an agent, interview the maintainer to build a complete specification.
Depending on the outcome:
.out-of-scope/, post a comment linking to it, then close the issue (see OUT-OF-SCOPE.md)When the maintainer explicitly tells you to move an issue to a specific state (e.g. "move #42 to ready-for-agent"), trust their judgment and apply the label directly.
Still show a confirmation of what you're about to do: which labels will be added/removed, and whether you'll post a comment or close the issue. But skip the grilling session entirely.
If moving to ready-for-agent without a grilling session, ask the maintainer if they want to write a brief agent brief comment or skip it.
When moving an issue to needs-info, post a comment that captures the grilling progress and tells the reporter what's needed:
## Triage Notes
**What we've established so far:**
- point 1
- point 2
**What we still need from you (@reporter):**
- question 1
- question 2
Include everything resolved during the grilling session in "established so far" — this work should not be lost. The questions for the reporter should be specific and actionable, not vague ("please provide more info").
When triaging an issue that already has triage notes from a previous session: