Triages one, several or all untriaged tracker issues: type, code area, duplicates and possible security reports, as a report for human review. Once approved, applies a type label (`bug` or `enhancement`), a `state/*` label and a plain-language comment for the reporter, or moves a feature request to Discussions where the project wants that. A `decisions` run walks through issues waiting on a maintainer. Use to classify a backlog, or one issue before acting on it. Owns its tracker comment forma...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Issue Triage?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mattbrailsford-issue-triage)
---
name: issue-triage
description: >-
Triages one, several or all untriaged tracker issues: type, code area, duplicates and
possible security reports, as a report for human review. Once approved, applies a type
label (`bug` or `enhancement`), a `state/*` label and a plain-language comment for the
reporter, or moves a feature request to Discussions where the project wants that. A `decisions` run walks through
issues waiting on a maintainer. Use to classify a backlog, or one issue before acting on
it. Owns its tracker comment format, its rule for handling
security reports, and when to split an issue.
user-invocable: true
argument-hint: "[issue ID | ID range | decisions | leave blank for whole tracker]"
---
# issue-triage
Read the room on a bug tracker before anyone commits to fixing anything. Classifies, checks
for duplicates, points at the likely code, and flags anything that smells like a security
report — then hands back a report. The tracker is the only record of what's been triaged,
and nothing is written to it until the user says so.
## Scope
- IN: fetch, classify, find the likely code area, duplicate-check, security-flag, report,
draft a comment for the reporter, and apply the state labels, comments, or closes the user
approves.
- OUT: any tracker write the user hasn't approved, proving a bug's cause, writing fixes,
planning a feature. Once a triaged issue turns into real work, hand off to `issue-resolve`.
## Preflight
1. **Resolve the tracker.** Read `CLAUDE.md` for an `## Issue tracker` section (type,
location, access method). If it's missing, run the interview below and append the section —
don't guess a tracker or invent an API to call.
2. Note whether the tracker lives in this repo or elsewhere (a separate GitHub repo, a Jira
project, an Azure DevOps org) — the `Location` line answers that. Every fetch uses it
explicitly; never assume the tracker is wherever `origin` points.
3. Resolve the access method, in order of preference: an already-connected MCP server for that
tracker type, else its CLI (`gh` for GitHub, `jira` CLI, `az boards`), else a documented
REST call. Record whichever one actually worked in `## Issue tracker` so the next run skips
this detection step.
4. Resolve the label names and where feature requests go: the defaults in Type labels below and
`issue-labels`' State labels, or what `CLAUDE.md` records under `## Issue tracker`. If that section
exists but has no `Type labels`, `State labels` or `Feature requests` line, ask just that
interview question and add the line. If a mapping has no entry for one of the labels, ask
about just that label.
5. Resolve which issues this run covers, from the argument:
- One ID → that issue, whatever its labels. Naming an issue means re-triage it.
- A range (e.g. `120-135`) → every ID in that range that still exists and is open.
- `decisions` → every open `state/needs-decision` issue, handled by the Decision run
below instead of the normal dispatch.
- No argument → every open issue with no state label, plus:
- every `state/needs-info` issue the reporter has replied to since the label went on,
or that has gone quiet for longer than the needs-info timeout;
- every `state/blocked` issue whose blocker has since closed;
- every open `state/in-progress` issue that `issue-labels`' script (`check --all`) says
is out of step, for its fix.
### Interview (only if `## Issue tracker` is missing from `CLAUDE.md`)
Ask in one batch:
1. **Tracker type** — GitHub Issues, Jira, Azure DevOps Boards, or other (name it).
2. **Location** — the repo/project/org identifier, and whether it's the same repo as the
source code or a separate one.
3. **Access** — is there an MCP server already connected for it, or should this use the CLI or
a token from the environment?
4. **State labels** — does the tracker already have labels or tags for triage state? If so,
map them onto the states in `issue-labels`' State labels. If not, may this create the default
`state/*` ones? Creating them is a tracker write, so it waits for a yes.
5. **Type labels** — use GitHub's default `bug` and `enhancement` labels, or map them onto
the tracker's own type labels? If the tracker has neither, may this create them?
6. **Feature requests** — do they stay on the tracker, or go somewhere else first, such as
GitHub Discussions (and which category) or a forum?
Append the answers to `CLAUDE.md`:
```markdown
## Issue tracker
- Type: <type>
- Location: <repo/project/org — note explicitly if separate from the source repo>
- Access: <MCP server name | CLI command | REST endpoint>
- Type labels: default <!-- or a mapping, e.g. enhancement → type/feature -->
- State labels: default <!-- or a mapping, e.g. ready → status/accepted -->
- Feature requests: issues <!-- or where they go, e.g. GitHub Discussions, Ideas category -->
- Needs-info timeout: 30 days
- Hold label: none <!-- or the label that keeps a merged PR back from shipping, e.g. flag/held -->
- Release tags: none <!-- or the tag pattern and when it's made, e.g. v{version}, after deploy -->
```
`Hold label` and `Release tags` aren't asked in the interview; `issue-labels` asks for them
the first time a merged fix needs one.
## The dedup pre-pass (only when more than one issue is in scope)
Parallel subagents in the same batch can't see each other's output, so run one cheap,
deterministic check first, before spawning anything: pull just the title (and error
text/stack trace, if the tracker's list view shows one) for every issue in scope, and
exact- or near-exact-match them against each other.
This is a literal text comparison, not a judgment call — flag pairs, don't resolve them.
Attach the flag ("possibly a duplicate of #N") to whichever subagent prompt(s) it applies to;
the subagent still investigates and makes the final call, since a matching title or stack
trace is a hint, not a fact.
## Dispatch
**One issue in scope:** dispatch a single `issue-triager` subagent (Agent tool,
`subagent_type: issue-triager`) and wait for its report.
**More than one:** the main thread is the orchestrator. It does not fetch, classify, or judge
any issue itself — it dispatches one `issue-triager` subagent per issue and only aggregates.
Batch the dispatches (parallel Agent tool calls in one message); cap concurrency around 8–10
at a time rather than firing the whole scope at once. For a large whole-tracker run, tell the
user the issue count and the batch plan before starting — a few hundred open issues means a
few hundred subagent calls, and that's worth flagging before it runs.
Every dispatch gets: the issue ID, the tracker's type/location/access method, the repo path,
any dedup-pre-pass hint for that issue, why it's back if it already had a state label (a
reply, the needs-info timeout, or a closed blocker), the "What counts" list from Security
reports below, the Type labels section with this project's label names and `Feature requests`
line, the "Which state" rules from Picking the state, the `Hold label` (or none), Splitting an issue, and the Tracker comments
section.
The triager searches the tracker itself, open and closed, for earlier duplicates. It also
checks whether an open pull request is already linked to the issue (GitHub: the issue's
"Development" links or a cross-reference in its timeline), opened by the reporter or another
outside contributor, and reports it if so. With none linked, it searches open PRs for one
that fixes the issue anyway, and reports it as a clear match (the PR names the issue, or
fixes all of the same problem) or a possible one.
## Aggregating and reporting
1. Collect every subagent's report.
2. Pull anything flagged as a possible security report into its own short list, handled as
Security reports below says.
3. Build one combined table for everything else: issue, type, likely area, priority/urgency,
duplicate-of (if any), recommended action, one-line why (written following
`plain-writing`). When a triager reports a linked open PR from the reporter or another
outside contributor, the recommended action is "Review with `pr-review` #<PR>" and the
state is `state/in-progress`, not a fix route: the fix already exists, so nobody should
build a second one. A clear match the triager found unlinked gets the same, and its
writes include the link, made as `pr-review`'s "Link the issue it fixes" says. A
possible match is only named in the why, for the user to check.
4. Next to each recommended action, show the tracker write it maps to (`issue-labels`' State labels):
the type label, the state label, close or move, any area label fix the triager found, and
the comment the triager drafted. A label fix is a tracker write like any other, applied only on approval.
5. Write the drafts to the drafts file (below) and show the security list (if non-empty) in
chat only. Nothing gets written back to the tracker until the user says which
recommendations to apply. Then apply exactly those, and report what was written.
## The drafts file
Tracker updates waiting for the user's yes go in one file, so they can be read, commented on
and approved in a preview instead of scrolling past in chat.
- **Where.** `.umbraco-devkit/issues/DRAFTS.md` in this worktree. Before writing it, create
`.umbraco-devkit/.gitignore` holding `*` if it isn't there, so nothing in the folder is
committed. Other files in the issues folder belong to other skills; leave them alone.
- **What.** The drafts from Aggregating and reporting, or the drafted answers from a
decision run: one section per issue, headed `## #<number>` alone so other files can link
to `DRAFTS.md#<number>`, then the issue's title, the table's columns for it, and its
drafted comment written out in full. Replace the file with each new batch.
Never put a security report in it: the preview sends the file's text to GitHub to draw it.
- **Ask.** Give the file's path, for anyone who'd rather read it in an editor, and offer to
open the folder in `markdown-preview`, scoped to it, with comments on. Follow its
"Offering a preview" section for when to ask. If it's open, ask for approval on
`DRAFTS.md` as its "Approval" section says.
- **Answer.** A comment on a row changes that draft or drops it, handled as
`markdown-preview`'s "Review comments" section says. The user approves on the page or says
yes in chat, either one. A yes in chat that names some rows applies only those.
- **Apply** exactly what was approved, then empty the file to "Nothing waiting."
## Decision run
For issues triage has already sorted, where the only thing missing is the maintainer's call.
No subagents: the notes already hold the facts, so the main thread reads each issue itself.
1. For each issue in scope, read its latest `Notes for the decision` and everything posted
since: new comments, reaction counts, newly linked duplicates.
2. Show one table: issue, need, size, risks, suggestion, and what's new since the notes. Put
anything new that changes the picture (a lot more demand, a workaround someone found) in
the suggestion, and say so. Suggest a split only as Splitting an issue below allows.
3. Ask the user for an answer per issue:
- **Yes** → `state/ready`.
- **Yes, another way** → `state/ready`, with the other way as what was agreed.
- **No** → close as not planned.
- **Not yet** → no change, no comment. It comes back on the next decision run.
4. Draft each answer's label and comment, following Tracker comments below, into the
drafts file. Apply exactly the ones the user approves, as The drafts file says.
## Splitting an issue
The goal of working a tracker is to clear it. Splitting an issue, or moving part of a fix
into a new issue, adds tracker work, so the default is one issue, fixed whole. This applies
wherever an issue's work gets divided: a triage or decision suggestion, the start of a fix,
and follow-ups found during one.
Split only when one of these holds, and name which:
- a part needs a decision only someone else can make. If the user can make the call, ask
them now and keep the part in, so the work can go on. A triager can't ask, so it writes
the question into its notes for the decision run instead of suggesting a split;
- a part has a different cause or need, so it would be its own issue if reported alone;
- a part has to ship apart from the rest: a breaking change held for the next major, a
database change that can't go in a patch release, or another version line.
These aren't reasons: keeping a PR small, "out of scope", "can do later", a part needing
more design, or one part depending on another issue (that's an order to work in).
A split is for tracking, never for putting work off. Each part keeps the state the whole
had, unless a reason above says otherwise, and is drafted ready to work: its cause and fix
written down, never just "look into this". Show each split with its reason, and apply it
only on the user's yes.
## Type labels
Every issue that stays open after triage gets one type label, saying what kind of issue it
is. The state label says where it's stuck. They're separate: the type stays the same while
the state moves on.
| Label | For |
|---|---|
| `bug` | Something that doesn't work the way it's meant to |
| `enhancement` | A request for something new, or a change to how something is meant to work |
- These are GitHub's default labels, so most repos already have them. Use the names in
`Type labels` under `## Issue tracker` when the project maps them onto its own.
- A report of a "bug" in something that works as designed is an `enhancement`. Say so kindly
in the comment for the reporter.
- A wrong type label already on the issue is swapped, not added to.
- Support questions, duplicates, security reports, and issues to close get no type label.
- Never create a type label the tracker doesn't have without the user's yes.
**Feature requests elsewhere.** When `Feature requests` under `## Issue tracker` names a place
other than the tracker, such as GitHub Discussions or a forum, an `enhancement` goes there
instead of getting a state label:
- On GitHub, the move is the issue's "Convert to discussion" button. It keeps the reporter
as the author and carries the comments over. GitHub's API can't do it, so once the user
approves, post the comment, then tell the user to click the button, with the issue's link
and the category to pick.
- Anywhere else, close the issue as not planned, with the comment linking to the place.
- It stays on the tracker, sorted by "Which state" below, when someone on the team opened it
or a maintainer has already agreed to it.
- `Feature requests: issues`, or no line at all, keeps every request on the tracker.
## Picking the state
The state labels, what each means, and how they change after triage belong to
`issue-labels`. Triage picks the first one an issue gets.
**Already fixed?** Check this first. If a merged change already fixes the issue, it is
ready to ship, and `issue-labels`' Label lifecycle applies: close it as fixed with the
"Already fixed" comment below, naming the change and the release that has it, or "not
released yet". The one exception is a merged PR carrying the `Hold label`: the issue stays
open with `state/in-progress`, and the comment says it's merged and held back.
**Which state.** Pick the first that fits:
1. `state/needs-info` only when the missing piece is something only the reporter can give:
their steps, versions, setup, data, or what they expected. Don't use it for anything that
reading the code or trying a repro could answer. That's investigation work, not the
reporter's. Before asking them to go check something (a log message, a setting, a response
body), confirm in the code that it's actually there to find. A question built on an
unchecked assumption ("there's probably something in the log, can you check?") wastes the
reporter's time if the code never logs it.
2. `state/blocked` when the fix can't happen in this project until something outside it
changes: a CMS bug with no package workaround planned, or a dependency's release. Link
what it's waiting on. If a workaround in the package is planned, it isn't blocked.
3. `state/needs-decision` for an issue that asks for something new, or a change to how
something is meant to work, that's clear enough to plan but that nobody has agreed to do. Triage doesn't make
that call. The user can make it while approving the report: yes means `state/ready`, no
means a close as not planned. The label is for when they don't decide yet.
4. `state/ready` only when there's nothing left to prove or decide. A bug is ready once
`investigate-bug` has proven its cause, or when the report and the code together leave no
doubt (a wrong label, a broken link, an error message pointing at the exact line). An
`enhancement` is ready once it's been agreed and has enough detail to plan.
5. `state/needs-investigation` for any other real-looking bug. When in doubt between this and
`state/ready`, pick this. `investigate-bug` moves it on: to `state/ready` once the cause
is proven, to `state/needs-info` if only the reporter can fill a gap, or to a close if it
isn't a bug.
- Duplicates and issues to close don't get a label. Close them with the tracker's own reason
(duplicate, not planned) where it has one, plus a comment naming the duplicate or the why.
- Every label change and close gets a drafted comment, as Tracker comments below says.
- A `state/needs-info` issue with no reply from the reporter for longer than the
`Needs-info timeout` in `## Issue tracker` (30 days if it isn't set) gets a drafted close
as not planned.
## Tracker comments
This section is the plugin's one statement of how to write to an issue. `issue-triager`,
`investigate-bug`, and `issue-resolve` all point here.
Triage is also how the reporter hears back. Every label change or close gets one comment,
drafted for the user to approve, with up to two parts, in this order:
1. **For the reporter.** Written following `plain-writing`, for someone who
uses the package but has never seen its source. Leave it out when someone on the team
opened the issue. Cut it down to what's new when a maintainer has already told the
reporter the same thing in a comment; never post a second version of their reply. No file paths, class names, or stack
frames unless the reporter used them first. Say what was understood, what happens next,
and what's needed from them, if anything. Thank them where it fits. Never promise a fix
date or a release.
2. **Notes.** The technical record for whoever picks the issue up next; without it, the
findings are lost when the chat ends. Each outcome below gives the notes' title and
fields. Fold the notes away where the tracker can, so the reporter sees one line they can
skip: on GitHub, a `<details>` block with `<summary><title></summary>` and a blank line
after it, so the Markdown inside still renders. Where the tracker has no collapsible
block, use the title as a heading.
Rules for the notes:
- Every field comes from something actually checked. Write "none found" or "not checked"
rather than leave a field out or guess at it.
- Add only what's new since the issue's last notes. Link back to them rather than repeat
them.
- They're public even when folded, so leave out roadmap, commercial, or customer detail.
**Triage and investigation in one pass.** When an issue is triaged and investigated before
anything is posted, it gets one comment, not two: the outcome investigation reached, with
triage's findings (type, area, duplicates checked) folded into that outcome's notes.
### By outcome
**`state/needs-info`**
- Reporter: exactly what's missing and why it's needed, asked as questions they can answer
without the code (steps, versions, a screenshot, a log message and where to find it),
checked as "Which state" says.
- Notes, `Notes for the next look`:
- **Known so far:** the symptom and setup as reported.
- **Checked:** what triage or investigation already looked at, and what it ruled out.
- **Missing:** each question asked, and what its answer would rule in or out.
- **Likely area:** from a search of the code, or "none found".
**`state/needs-investigation`**
- Reporter: it's been read and will be looked into, but isn't confirmed as a bug yet.
- Notes, `Notes for the investigation`:
- **Symptom:** expected versus actual, quoting any error word for word.
- **Where it runs:** CMS version, package version, database, browser, as reported.
- **Likely area:** from a search of the code, or "none found".
- **Related:** similar issues, open or closed, and how they differ.
- **Start with:** the first thing to check, and why.
**`state/needs-decision`**
- Reporter: the request is understood and waiting on a maintainer's decision. Don't hint at
the answer; the suggestion goes in the notes.
- Notes, `Notes for the decision`:
- **Need:** what the reporter is trying to do, which may differ from the feature they
asked for.
- **Demand:** linked duplicates and related issues, and their reaction counts.
- **Today:** any workaround, setting, or extension point that already gets close.
- **Already covered:** whether the CMS or another package does this.
- **Size:** small, medium, or large, with the code area it would touch.
- **Risks:** a breaking change, new public API to maintain, work on each supported CMS
major, a performance cost.
- **Other ways:** a smaller or different way to meet the need, such as an extension point.
- **Questions first:** anything to settle before it could be planned.
- **Suggestion:** do it, do another way, or don't, with the one or two reasons that weigh
most. Label it as a suggestion; the maintainer decides. Word a "don't" kindly, since the
reporter can read it.
**`state/blocked`**
- Reporter: what it's waiting on, with a link, and that it moves once that's fixed.
- Notes, `Notes on the blocker`:
- **Waiting on:** the upstream issue or release, linked.
- **Why here can't fix it:** the cause, and why it sits outside the project.
- **Workarounds weighed:** each one, and why it wasn't planned.
- **Unblocked when:** the version or change to watch for, and how to check it landed.
- **Then:** what's left to do here once it has.
**`state/ready`**
- Reporter: it's confirmed, what was found in plain terms, and that it's queued for a fix.
For a feature request, that it's agreed. If it was agreed another way, say plainly what
will be built instead and why.
- Notes, `Notes for the fix`. For a bug:
- **Repro:** exact steps, or the test that shows it.
- **Cause:** the cause, at file and line, and the check that proved it.
- **Same cause elsewhere:** each place, or "none found".
- **Suggested fix:** one or two lines, and the test that should guard it.
- **Size:** a quick fix or the full pipeline, and why.
- For an agreed feature request:
- **Agreed:** what the maintainer said yes to, and anything they ruled out.
- **Scope:** what's in and out, and the code area it touches.
- **Questions left:** anything still to settle while planning.
**`state/in-progress`** (drafted by `issue-resolve`, or by triage for a community PR)
- Reporter: work on a fix has started. For a community PR, that a fix is open in it, linked,
and will be reviewed.
- Notes, `Notes on the work`:
- **Route:** a quick fix, the pipeline, or a community PR, and why.
- **Where:** the branch, and the plan folder if there is one.
- **New findings:** anything learned since the ready notes, such as `investigate-bug`'s
report if it ran just now.
**Fix landed** (drafted by `issue-resolve`)
- Reporter: what changed, in their terms.
- Notes, `Notes on the fix`:
- **Change:** the commit or PR, linked, and the area it touched.
- **Verified by:** the repro run through the real entry point, and its result, or "not
verified end to end" and why.
- **Guarded by:** the test that now covers it.
- **Left out:** anything deliberately not fixed, and any follow-up issues.
**Already fixed**
- Reporter: it's fixed, and the version to upgrade to. If no release has it yet, say it's
fixed and will be in an upcoming release, without promising a date.
- Notes, `Notes on the fix`:
- **Change:** the commit or PR that fixed it, linked.
- **Released in:** the version, or "not released yet".
**Duplicate**
- Reporter: a link to the earlier issue to follow instead.
- No notes. Add anything new this report showed to the earlier issue instead.
**Close**
- Reporter: why, kindly. For a support question, answer it or point to the docs or forum.
For a feature request turned down, give the reason and any workaround that exists today.
- Notes, `Notes on the close`, only when it was looked into:
- **Checked:** what was tried, such as the setup it failed to reproduce on.
- **Reopen if:** what new detail would make it worth another look.
**Moved out of the tracker** (Feature requests elsewhere, under Type labels)
- Reporter: thank them, and say feature ideas are talked through in that place first, where
others can add their own use case and vote. Say where to find it. Give any workaround that
exists today. Don't hint at whether it will be built.
- No notes. The idea starts fresh where it lands.
**Needs-info timeout close**
- Reporter: there was no reply, so it's closed for now, and replying with the detail will
reopen it.
- No notes. The needs-info notes already say what's missing.
A security report never gets a comment (Security reports below).
## Security reports
This section is the plugin's one statement of this rule. `issue-triager`, `issue-resolve`,
`investigate-bug`, `quick-fix` and `change-build` all point here.
**What counts.** An issue or symptom that reads like a real vulnerability: auth bypass, an
action allowed without permission, data shown to someone who shouldn't see it, injection or
injected script running, secret or credential exposure, remote code execution, a CVE
reference, or similar.
**What to do.**
- Stop. Don't triage, investigate, or fix it as normal work.
- Tell the user, naming the issue but not detailing it, and point them at the
responsible-disclosure process: the "Report a vulnerability to" line of `CLAUDE.md`'s
`## Security process` section, or, with none, say the project hasn't set one. Once the
security team confirms it, `advisory-fix` fixes it. If the user says it's already
reported and confirmed (a security ticket or GHSA id), hand over to `advisory-fix` with
that id now.
- Never put it in a public commit, PR, comment, or issue, and never draft a public response
to it. A public reference to an unpatched vulnerability is a leak, not a fix.
- Never quote exploit detail into a report, log, or plan file.
- Never label it, in this tracker or any other public place, and never record it in a file.
The chat is the only place it appears. With no label, it stays untriaged and gets flagged
again on the next run, which is the reminder that it's still open.
## Rules
- Read-only against the codebase. The only files this skill writes are the `## Issue tracker`
section of `CLAUDE.md`, when it or one of its lines is missing, and the drafts file. The tracker is written to only as the next rule
allows.
- Never post a comment, apply a label, or close an issue without the user picking that action
explicitly — issue by issue, or as a stated "apply all." A draft is the default output, not
an action.
- If the tracker is unreachable (auth, network, wrong location), stop and say so. Don't triage
a stale cached copy or guess at an issue's content.
## Hand off
A triaged issue that turns into real work goes to `issue-resolve` next, with its ID. That
picks `quick-fix`, `change-build` or the pipeline, and drafts the tracker reply once the fix lands. A
`state/needs-investigation` issue can go to `investigate-bug` first instead, to prove it
before anyone commits to a fix. An issue with a linked open PR goes to `pr-review` with that
PR number instead — name the skill explicitly, never a generic "review the PR(s)", since a
busy install can drop skill descriptions from the listing and a bare mention won't route. To
clear the whole tracker, `issue-backlog` runs triage and investigation in one pass, then
builds and merges the approved fixes. This skill stops at "here's what I'd do," it doesn't start building.
- **If another skill started this one**, return the report and the drafts, and stop. That
skill decides what to apply and what runs next.
- **Otherwise**, once the approved updates are applied, offer one next step for each issue
left at `state/needs-investigation`: "Want me to investigate #<n> to find the cause and
the best fix?", running `investigate-bug` with the ID on a yes.