Triage

From redpanda-data/ui-harness · View interactive version

Triage is an AI agent skill from the GitHub repository redpanda-data/ui-harness. Triage issues through a state machine of triage roles. Works with GitHub (`gh`) and Jira (`acli`). Use when user wants to triage issues, review incoming bugs/features, prepare issues for an AFK agent, investigate a bug and file a ticket with a TDD fix plan, or manage issue workflow.

How to use this skill

Skill file

Triage

Move issues on tracker through small state machine of triage roles.

When explore codebase, use project domain glossary so titles, comments, agent briefs match project language. Respect ADRs in area touched.

AI Disclaimer

Every comment posted to tracker during triage must start with:

> *This was generated by AI during triage.*

Issue Tracker

Detect by git remote -v + repo conventions:

Both present (GitHub repo + Jira tickets) -> ask which user want file/triage against.

Roles

Two category roles:

Five state roles:

Every triaged issue carry exactly one category role + one state role. Conflicting states -> flag and ask before act.

Canonical role names. Actual label/status strings in tracker may differ -- when differ, infer from existing labels/statuses on project, ask once, remember within session.

Reference docs

Invocation

User invoke /triage and describe want in natural language. Examples:

Interpret and act.

Show what needs attention

Query tracker. Present three buckets, oldest first:

  1. Unlabeled / no-status -- never triaged
  2. needs-triage -- evaluation in progress
  3. needs-info with reporter activity since last triage notes -- need re-evaluation

Show counts + one-line summary per issue. Let maintainer pick.

Triage a specific issue

  1. Gather context. Read full issue (body, comments, labels/status, reporter, dates). Parse prior triage notes so resolved questions not re-asked. Explore codebase using project domain glossary, respect ADRs in area. Read .out-of-scope/*.md -- surface any prior rejection resembling issue.
  1. Recommend. Tell maintainer category + state recommendation with reasoning, plus brief codebase summary relevant to issue. Wait for direction.
  1. Reproduce (bugs only). Before grill, attempt repro: read reporter steps, trace code, run tests or commands. Report what happened -- successful repro with code path, failed repro, or insufficient detail (strong needs-info signal). Confirmed repro make much stronger agent brief. For root-cause investigation + TDD fix plan, see REFERENCE.md#tdd-fix-plan-mode.
  1. Grill (if needed). Issue need flesh out -> run /grill-me for a fast grill or /grill-with-docs when domain language/ADRs matter.
  1. Apply the outcome:

Quick state override

User say "move #42 to ready-for-agent" -> trust them, confirm what about to do (role changes, comment, close), then act. Skip grill. If move to ready-for-agent without grill session, ask whether want agent brief written.

Resuming a previous session

Prior triage notes exist on issue -> read them, check whether reporter answered outstanding questions, present updated picture before continue. Don't re-ask resolved questions.

State Machine

Full transition table: REFERENCE.md#state-machine.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.