Triage

From bholmesdev/hubble.md · View interactive version

Triage is an AI agent skill from the GitHub repository bholmesdev/hubble.md. Triage an incoming GitHub, Jira, Linear, or other issue-tracker issue against the current codebase and related issues, then return a structured decision with exactly one triage state. Use whenever the user asks to triage, classify, assess, prioritize, or label an issue for implementation readiness,

How to use this skill

Skill file

Triage

Assess the issue passed in the user's prompt and decide exactly one triage state:

The goal is to route work honestly, not to make every issue appear actionable. Base the decision on evidence from the issue tracker, current checkout, and related issues.

This is a read-only analysis: inspect the issue and codebase but do not mutate the tracker. Return the structured decision described in step 5; the caller applies the label and comment.

Workflow

1. Identify the issue and tracker

Extract the issue URL, key, or number from the prompt. Determine whether it belongs to GitHub Issues, Jira, Linear, or another tracker.

If the prompt does not identify one issue unambiguously, ask the user for the issue rather than guessing.

2. Fetch tracker context

Read the issue using the best available integration, in this order:

  1. A relevant MCP server or native tracker tool
  2. The tracker's authenticated CLI, such as gh
  3. The tracker's API or web page

Fetch:

Do not classify solely from the title. Do not expose credentials or secrets while fetching tracker data.

3. Inspect the current codebase

Confirm the current checkout is the relevant repository. Search the codebase for the affected feature, behavior, terminology, and likely implementation area.

Assess:

Prefer targeted searches and reads. This is triage, not implementation: do not edit product code.

4. Choose one state

Use the following rubric. When evidence sits between states, choose Needs discussion.

Ready to implement

Choose when:

Small bugs with clear reproduction steps and straightforward improvements usually belong here.

Duplicate

Choose when another issue already tracks the same underlying behavior and scope. Require concrete tracker evidence; similar symptoms or overlapping implementation areas alone are not enough.

Needs discussion

Choose when neither implementation nor duplicate status is clear:

5. Return the result

Pick the tracker label that matches the chosen state, preferring an existing label with the same meaning and the tracker's established naming and casing (for example ready-to-implement, needs-discussion, or duplicate).

Return a single raw JSON object as your final response — no prose and no markdown code fences:

{
  "state": "Ready to implement | Duplicate | Needs discussion",
  "label": "exact tracker label matching the chosen state",
  "duplicate_of": "canonical issue URL or tracker key when state is Duplicate; otherwise null",
  "comment": "markdown body for the issue"
}

Write comment as reporter-facing markdown: a short lead sentence with the decision, then the evidence-based rationale, using a brief bullet list where it aids readability. For Needs discussion, end with the concrete questions and open decisions from step 4. For Duplicate, lead with Duplicate of <duplicate_of>, using the exact duplicate_of value from the result, and briefly state why it covers this report. Because comment is a JSON string, encode every line break as \n (a literal newline would make the JSON invalid).

Guardrails

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.