Issue triage

From testdouble/han · View interactive version

Issue triage is an AI agent skill from the GitHub repository testdouble/han. Triage a raw, vague issue or bug report into a structured document that names what is known, what is missing, and what to do next. Use when an incoming issue, bug report, or problem description is too vague or incomplete for investigation or planning, and recommend the right next han skill. Does not

How to use this skill

Skill file

Project Context

As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read

that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md

probe supplies content, apply it per config-rule.md, which governs precedence

between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.

Triage Approach

constraint in this skill.

issue, mark them Unknown when not inferable. For a Feature Request, Question, or Other issue, omit them entirely when

they are not inferable (see Step 4) rather than rendering Unknown.

completes.

information the reporter omitted.

document. Hold its default audience frame: a capable reader who did not do this work and lacks the author's context.

Issue Triage

Step 0: Resolve the Issue Text

Determine the issue text from the argument:

report, then stop until they provide it.

Step 1: Classify the Issue

Determine the issue type from the report text. Choose exactly one:

Step 2: Extract What Is Known

From the report, identify:

Step 3: Identify Missing Information

List what a developer would need to reproduce or investigate this issue that is absent from the report. Common gaps by

issue type:

affected data or user accounts, frequency of occurrence

build-vs-buy choice, or which direction to take, when the reporter is asking to define or scope the problem rather

than supplying a missing fact about a direction already chosen

List only what is genuinely absent. Do not list information already present in the report. If nothing is missing, write

exactly: None - report has enough to proceed.

Step 4: Assess Severity and Reproducibility

Severity (estimate from what is known):

Reproducibility (estimate from what is known):

Omit when inapplicable. Severity and Reproducibility describe a problem that is occurring. When the issue type is

Feature Request, Question, or Other and neither is inferable from the report, omit both sections entirely rather

than rendering Unknown — the same omit-when-not-inferable pattern Step 5 applies to Suspected Areas. For a Bug,

Regression, Performance, or Security issue, always render both (as Unknown if needed); they are core to triaging a

problem.

Step 5: Identify Suspected Areas

If the report points to a specific system area, list it. Then, only to sharpen those areas, consult project context: if

the CLAUDE.md label is non-empty, read it; if the project-discovery.md label is non-empty, read it (it is the richer

system map when present). Use them to name relevant areas such as upload pipeline, authentication middleware, database

migrations, or frontend state management.

Do not infer areas the report does not point to, and never use project context to supply information the reporter

omitted. If both CLAUDE.md and project-discovery.md are absent or empty, or nothing in the report points to a

specific system area, omit the Suspected Areas section entirely and continue.

Step 6: Determine the Recommended Next Step

Decide the single recommendation using the issue type from Step 1 and the gaps from Step 3:

user-impact scope are missing, the recommendation is Clarify with reporter before proceeding. Otherwise it is

/investigate.

play, prior art, a build-vs-buy choice, or which direction to take) rather than a missing user-supplied fact, the

recommendation is /research — the problem space must be researched before the feature can be specified. Otherwise,

if the use case (job to be done) or success criteria are missing, the recommendation is

Clarify with reporter before proceeding. Otherwise, if the feature is described but not yet specified, it is

/plan-a-feature; if requirements are already specified, it is /plan-implementation.

build-vs-buy choice, or which direction to take), the recommendation is /research. Otherwise, if the report plus

project context is enough to answer it, the recommendation is Answer the question directly; no han skill needed; if

not, it is Clarify with reporter before proceeding.

Step 7: Write the Triage Report

Resolve the output path:

lowercased with non-alphanumeric runs replaced by single hyphens.

Run mkdir -p on the directory that will contain the file (for the default, mkdir -p "$HOME/.claude/triages"). Write

the report using the template at template.md, filling every section from Steps 1-6 and

writing the Step 6 result verbatim into Recommended Next Step. Omit the Suspected Areas section if Step 5 determined

nothing is inferable, and omit Severity and Reproducibility per the Step 4 omit rule.

Before presenting, run the standardized readability self-check (the shared standard is in your context from

han-communication:readability-guidance) over the document's prose regions only — never inside code fences, diagram

bodies, or citation identifiers. This skill runs no rewrite pass, so this self-check is the fidelity guard on the

output; the fidelity criterion is not optional. Confirm each criterion and fix any failure before presenting:

Run the readability rule's standardized self-check, which is already in your context from the readability-guidance

invocation above. Correct every failure before presenting. Its fidelity criterion is not optional: the standard governs

how the content is said, and drops a required fact only when the reader asked for less and losing it would not change

what they do next.

Present the completed triage report to the user. When the Recommended Next Step is a han skill (/investigate,

/research, /plan-a-feature, or /plan-implementation), state plainly that this triage report is the handoff

document — the user passes the report itself to that skill rather than re-summarizing the issue. No separate brief is

produced; the report already serves as the handoff.

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.