Skip to content
Back to skills

Triage Backlog

ASecurity

Prune and re-decide an EXISTING GitHub issue backlog: verifies which open issues are already fixed or superseded, clusters the rest by root cause, proposes ONE disposition each and executes only what the owner confirms. ALWAYS reach for this when the user wants to prune, triage, groom, re-decide, or take stock of open issues, or says the queue never shrinks: "triage the backlog", "clean up the open issues", "what should we close?", « fais le tri dans les issues », « le backlog ne descend jama...

  • 4 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 9, 2026
ai-agentsrustgogit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 18, 2026

npx -y skills add phmatray/ai-migration-kit --skill triage-backlog --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Triage Backlog?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Triage Backlog
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/phmatray-triage-backlog/badge)](https://www.skillsdirectory.com/skills/phmatray-triage-backlog)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: triage-backlog
description: >-
  Prune and re-decide an EXISTING GitHub issue backlog: verifies which open issues are already fixed
  or superseded, clusters the rest by root cause, proposes ONE disposition each and executes only
  what the owner confirms. ALWAYS reach for this when the user wants to prune, triage, groom,
  re-decide, or take stock of open issues, or says the queue never shrinks: "triage the backlog",
  "clean up the open issues", "what should we close?", « fais le tri dans les issues », « le
  backlog ne descend jamais ». Does NOT apply to filing a NEW issue (create-issue), building one
  (implement-issue), landing a PR (merge-pr), or migration follow-ups in report.json
  (review-followups).
license: MIT
compatibility: >-
  Requires an authenticated gh CLI with issue-write access. Reads the committed repo profile
  (.claude/skills/repo-profile.md) generated by init, and applies the shared filing bar
  (skills/_shared/filing-bar.md) to items already in the queue. Never closes anything without
  explicit owner confirmation.
metadata:
  author: Philippe Matray
  suite: tagout
---

# Triage the backlog

## What this does

`create-issue` opens work, `implement-issue` builds it, `merge-pr` lands it — and `merge-pr` Step 6
opens more, because landing a PR is when deferred work becomes visible. That is a lifecycle with
three inlets and no outlet: every issue that ever leaves the queue leaves through a PR, so the queue
can only drain at the speed of implementation, while implementation is itself what fills it.

This skill is the outlet. It reads the open backlog, works out which items are still real work,
which are duplicates of a job already tracked, which were quietly fixed by something else, and which
were **observations that got filed as commitments** — then puts a single proposed disposition per
item in front of the owner and executes what they confirm.

The doctrine comes from `review-followups`, which has always had this outlet for migration reports:
closing by decision is *"a legitimate, documented state, never a silent deletion"* — the precedent
being *"not pursued by decision, not by lack of capability"*. This skill applies that same idea to
GitHub issues, where until now the only documented way out was to build the thing.

## Autonomy contract

Unlike its siblings, this skill is **not** hands-off, and deliberately so. See
[ADR 0005](../../docs/adr/0005-the-lifecycle-skills-run-hands-off-triage-backlog-does-not.md) for why:
its irreversible act (closing an issue) is a judgement about intent, and intent belongs to the owner —
unlike a merge, which is gated by CI, something objective saying yes. A fleet that could close its own
backlog would report a drained queue it drained by declining it.

So: **propose everything, execute only what's confirmed.** Investigation, clustering, verification
and the proposal all run without asking. The confirmation is one batched pass, not a question per
issue — a triage that interrogates gets abandoned halfway, and a half-triaged backlog is worse than
an untriaged one because now nobody knows which half was reviewed.

Stop for a genuine blocker: `gh` unauthenticated or lacking issue-write rights, or a repo with no
open issues (say so — that is a good report, not an error).

Two things this skill never does, confirmed or not:

- **Close an issue that work is in flight on.** An open PR referencing it, an assignee, or an
  `auto-dev` worker holding it means someone is mid-job; closing it destroys their context and the
  PR lands orphaned. Exclude these from the proposal entirely (Step 3) rather than proposing them.
- **Close as "done" what was never verified.** If the claim is that a merged PR already fixed it,
  the evidence is the diff or the passing test, not the PR title. Unverifiable → propose `keep`.

## Inputs

- **Scope** (optional) — a label, a search, or a count (`/triage-backlog`, `triage-backlog enhancement`,
  `triage-backlog --oldest 20`). Default: every open issue.
- **`--dry-run`** (optional) — produce the proposal and stop, changing nothing. Useful for a first
  look at a queue nobody has triaged before.

## Checklist

Create a task per item and work them in order.

1. **Preconditions & scope** — profile, auth, and which issues are in scope.
2. **Gather the backlog with its signals** — one query, plus the lineage and age each item carries.
3. **Exclude what's in flight** — anything with an open PR, an assignee, or a worker on it.
4. **Verify state before judging content** — which are already fixed, superseded, or stale.
5. **Cluster by root cause** — the same clustering `merge-pr` 6a does, over the whole queue.
6. **Propose one disposition per cluster** — apply the filing bar retroactively; present one table.
7. **Execute the confirmed dispositions** — each with its documented reason, then read back.
8. **Recap** — the shared closing shape: the tally, and whether the queue is actually draining.

---

## How to read this skill

**One step file at a time, when you reach it — never all up front.** Every token loaded here is
re-read on every later turn of a session that stops for the owner between steps, so the step bodies
live under `references/steps/` and the contract and checklist above are the whole of what loads
with the skill. Open a step when its checklist item starts; the shared references it names load the
same way, from inside that step.

- Step 1 — [`references/steps/01-preconditions-and-scope.md`](references/steps/01-preconditions-and-scope.md) · reads [`_shared/preconditions.md`](../_shared/preconditions.md), [`_shared/prior-rejections.md`](../_shared/prior-rejections.md)
- Step 2 — [`references/steps/02-gather-the-backlog.md`](references/steps/02-gather-the-backlog.md) · reads [`_shared/untrusted-input-boundary.md`](../_shared/untrusted-input-boundary.md)
- Step 3 — [`references/steps/03-exclude-in-flight.md`](references/steps/03-exclude-in-flight.md)
- Step 4 — [`references/steps/04-verify-state.md`](references/steps/04-verify-state.md) · reads [`_shared/prior-rejections.md`](../_shared/prior-rejections.md), [`_shared/untrusted-input-boundary.md`](../_shared/untrusted-input-boundary.md)
- Step 5 — [`references/steps/05-cluster-by-root-cause.md`](references/steps/05-cluster-by-root-cause.md)
- Step 6 — [`references/steps/06-propose-dispositions.md`](references/steps/06-propose-dispositions.md) · reads [`_shared/filing-bar.md`](../_shared/filing-bar.md)
- Step 7 — [`references/steps/07-execute.md`](references/steps/07-execute.md) · reads [`_shared/prior-rejections.md`](../_shared/prior-rejections.md), [`create-issue/references/tracking-issue.md`](../create-issue/references/tracking-issue.md)
- Step 8 — [`references/steps/08-recap.md`](references/steps/08-recap.md) · reads [`_shared/recap.md`](../_shared/recap.md) with its [Boundary findings block](../_shared/recap.md#the-boundary-findings-block)

---

## Notes on quality

- **Closing is a decision, not a cleanup.** The comment that goes with it is doing the real work: it
  turns "we didn't get to this" into "we decided not to", which is a thing a project can stand
  behind and revisit. A close with no reason is just a deletion with extra steps.
- **The bar is applied to clusters, never to lone symptoms.** Judging five related items separately
  gets all five closed as individually-not-worth-it, when the job behind them was worth doing. Cluster
  first — Step 5 is not optional decoration.
- **Don't triage what you didn't verify.** Step 4 exists because "I think this is stale" and "the
  file it names is gone" look identical in a proposal table and are not the same claim. Say which one
  you have.
- **A growing queue is usually an inlet problem.** If a pass has to close a third of the backlog, the
  filing bar upstream isn't being applied — fix that, or the same pass runs again next month with the
  same numbers. Report it rather than absorbing it quietly.
- **Nothing here reaches into `migration/report.json`.** Migrated repos' follow-up queues belong to
  the `review-followups` skill, which updates them at the source. Two skills writing the same queue is the
  parallel-list failure that skill exists to prevent.

Files in this skill

  • SKILL.md23.6 KB
  • scripts/rejected-adrs.sh18.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.