Use when the existing backlog needs grooming — re-prioritising tasks, flagging stale/duplicate/conflicting items, marking what is ready vs blocked vs needs-info, and routing rejected work out of scope. Operates on task files in docs/work/backlog/ only, never a sprint's members. Do not use to create new tasks (use /task-decomposer) or to form a sprint from the groomed backlog (use /lean-doc-generator promote).
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 Triage?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aldianriski-triage)
---
name: triage
description: Use when the existing backlog needs grooming — re-prioritising tasks, flagging stale/duplicate/conflicting items, marking what is ready vs blocked vs needs-info, and routing rejected work out of scope. Operates on task files in docs/work/backlog/ only, never a sprint's members. Do not use to create new tasks (use /task-decomposer) or to form a sprint from the groomed backlog (use /lean-doc-generator promote).
argument-hint: "[ | TASK-id | \"focus — e.g. what's ready for agents\"]"
allowed-tools: Read, Write, Edit, Bash(git *), Glob, Grep
user-invocable: true
version: "0.1.0"
---
# triage
Groom the existing backlog: re-rank, flag, state, and route. **Backlog only** — the task files in
`docs/work/backlog/`; never touches a sprint's members (`todo/` · `in_progress/` · `review/`), which
are locked. Re-prioritisation and state changes are **HITL**: propose with reasons, get a
`y`, then apply.
Pipeline: `/task-decomposer` (intake) → **`/triage`** (groom + re-prioritise) → `/lean-doc-generator promote` (form sprint) → `/orchestrator` (build).
`TODO.md` present and no `docs/work/` → v1 · both present → mixed · only `docs/work/` → v2 (existence only, never content).
On v1 or mixed, name it and refuse to groom — point to `/lean-doc-generator migrate`, the only 2.x path for a v1 tree.
## When to invoke
- The backlog has grown and priorities have drifted from reality.
- Before a Sprint Promote, to surface what is genuinely ready.
- A specific task needs a state or priority decision.
- A reported bug needs intake routing (it becomes a `type: bug` work item).
## Task states (light)
A backlog task file carries `state:` in its frontmatter — orthogonal to the `autonomy:` `HITL`/`AFK`
label (which says *who* acts, not *whether it's ready*) and to the folder (which says *status*).
**Readiness is never a folder**: a `blocked` or `needs-info` task stays in `backlog/`, and no state
change is ever a `git mv`.
| state | meaning |
|---|---|
| `ready` | fully specified, has a done-when — promotable |
| `needs-info` | missing detail or an unanswered question — not promotable yet |
| `blocked` | waiting on a dependency or another task (`depends-on`) |
Rejected work is not a state — it leaves the backlog (see `.out-of-scope/`). Default when unset:
`ready` if it has a done-when, else `needs-info`.
## Flow
1. **Scan `.out-of-scope/` first** — read `${CLAUDE_SKILL_DIR}/references/out-of-scope.md` before scanning; if a backlog task resembles a prior rejection, surface it and ask before keeping it.
2. **Load** — after the layout check above (v1/mixed stops here): read every `docs/work/backlog/TASK-*.md` — frontmatter + `## Done when` + `## Assumes` (+ root `TECH-DEBT.md`). Read other folders only to resolve a `depends-on:` id or an active epic's `→ TASK-…` coverage mark; never groom them.
**Also read every `status: active` epic** (`docs/epic/EPIC-*.md`, not `archive/`; none → skip) — read-only, to run
the coverage check (STANDARD § 2, *Epic coverage*): each open `- [ ]` § Closed-when item must **end** with
`→ TASK-NNN[, TASK-MMM]` (≥1 id with a file in `backlog/` · `todo/` · `in_progress/` · `review/`) or
`→ next slice: <name>`. Unmarked, or every named id in `done/` · `cancel/` · missing = **uncovered**.
`proposed` epics are exempt; `[x]` items need nothing. **Roadmap rows too:** each `Status: active` row of `docs/product/roadmap.md`
(or `docs/roadmap.md`) — same verdicts, plus an `EPIC-NNN` mark must name an active epic (`references/epic-coverage.md` of `/lean-doc-generator`, § Source B).
3. **Bug intake** — a reported bug (or a bug-flavored backlog entry) becomes a **`type: bug` work item** (ADR-056), routed, not ranked like a feature:
- write it to `backlog/` with **`origin: triage-bug`** and the bug template's intake sections (symptom · repro · expected · actual · evidence), its evidence redacted into `docs/work/evidence/TASK-NNN/` — same id rule as `/task-decomposer` (max over `docs/work/*/TASK-*.md`, all six folders, + 1)
- known cause + trivial fix → `state: ready` only when the report or the code names what must keep working after the fix, and Done-when has a `Negative:` box citing it (the regression its test pins); otherwise `needs-info` with that missing scenario as a `- **open:**` line under `## Assumes` and no box · unknown cause / needs investigation → `- **next:** /diagnose` under `## Assumes`
- systemic / architectural → file as `TD-NNN` in root `TECH-DEBT.md` (it becomes a `type: debt` item only when scheduled)
- **stamp `origin:` on every task you file here** — a bug converted at triage never met the intake
grill, and the stamp is what stops G1 fast-pathing it on the strength of looking well-formed
- **the item is the record** — carry every load-bearing detail (repro steps especially) into it; a temp
`BUG-<slug>.md`, if one was written, is never committed (STANDARD §2) and nothing points back at it.
4. **Re-rank** — re-evaluate each task's `priority:` (P0–P3, by impact × urgency); propose moves with a one-line reason each. Sequence is then **derived** (§ Order), never hand-set.
5. **Flag** — surface **stale** (no movement / superseded), **duplicate** (same concern → merge or differentiate), **conflict** (acceptance criteria that contradict another task).
6. **State** — set `state:` `ready` / `needs-info` / `blocked`; for `needs-info` list the specific questions as `- **open:**` lines under `## Assumes`; for `blocked` name the blocker in `depends-on:` (a task) or a `- **blocked-by:**` line (anything else).
A bug does not move to `ready` without that cited `Negative:` box (step 3); until it has one it is `needs-info` with that `open:` line. A bug already `ready` is not demoted for lacking one.
7. **Route rejects** — read `${CLAUDE_SKILL_DIR}/references/out-of-scope.md` first; for work that will not be done, write an `.out-of-scope/` entry, then move the task file `backlog/ → cancel/` — `git mv` in the git case, a plain move with no git (§ Applying). A merged duplicate goes the same way, with a `## Amended <date>` line naming the survivor.
8. **Output** — the groomed backlog in derived order + a **ready-to-promote shortlist** (that order, `ready` only) + **uncovered epic conditions and roadmap rows**, one line each:
`EPIC-NNN · "<condition, ~60 chars>" · uncovered (unmarked | stale: TASK-NNN done/cancelled | missing: TASK-NNN)`; a row: `roadmap · P2a · "<outcome, ~60 chars>" · uncovered (… | stale: EPIC-NNN not active)`.
Close a gap by proposing a task (`/task-decomposer --epic`) or a `→ next slice:` mark — triage never edits the epic or roadmap.
Apply changes only after human `y`.
## Order (derived, never stored)
Folders cannot sequence, and there is **no order file** — a stored order is a second copy that
drifts from `priority:`. The backlog's order is computed each time:
1. **`priority:`** — P0 before P3.
2. **Topological over `depends-on:`** — a task never precedes a blocker still in the backlog. A
lower-priority blocker is pulled forward: it sorts at the highest priority of anything waiting on
it, directly or transitively (its own `priority:` is not rewritten). A dependency in
`done/` or `cancel/` is satisfied; one in `todo/`–`review/` is in flight (the task stays `blocked`).
3. **Task id** — numeric, as the final tie-break (`TASK-99` before `TASK-100`).
A `depends-on` cycle is a finding — report its ids; never break it silently.
## Applying (after `y`)
- **Priority / state** — edit those two lines in place, and add or remove only the `open:` /
`blocked-by:` lines under `## Assumes`; every other line stays byte-identical (`authority:` ·
`origin:` · existing assumptions · the done-when are not triage's to rewrite).
- **Cancel** — `git mv docs/work/backlog/<file> docs/work/cancel/` in its **own commit** (no git: a plain
move); any content edit (the `## Amended` note) lands in a separate commit before it (with no git: it is made before the move). A status change
never shares a commit with a content edit. Its commit messages pass through `/humanizer` embedded mode, format `plain`, unless the entire message is a fixed template (→ the humanizer skill's `references/embedded.md` § Commit messages and PR bodies).
## Hard rules
- **Backlog only** — never re-order, re-state or move a file in `todo/` · `in_progress/` · `review/` (a sprint in flight is locked). Active epics and the roadmap are read, never written.
- **Readiness is a field** — `state:` changes are frontmatter edits; the only move triage makes is `backlog/ → cancel/`.
- **No order file** — order is derived (§ Order); never write a sequence anywhere.
- **HITL** — propose re-ranks, state changes, merges, and rejections; apply only after `y`. **Unattended** (headless): the `y` can never arrive — there is no ask channel at all (`AskUserQuestion` unregistered; `dontAsk` auto-denies). Emit the proposal and **park** it (`night-run.md` Part 0); a missing `y` is a no, never a yes.
- **Never silently delete** — a removed task is moved to `cancel/` (`git mv`, or a plain move with no git; never `rm`), with an `.out-of-scope/` entry or a merge note. No task vanishes without a trail.
- **Don't re-decompose** — triage grooms existing tasks; new tasks come from `/task-decomposer`.
## Red flags
❌ **Re-prioritising the Active Sprint** — a sprint is locked; grooming is a Backlog activity.
❌ **Moving a file to say it is blocked** — readiness is `state:`; a folder is status only.
❌ **Hand-ordering the backlog** — a written order drifts from `priority:`; derive it.
❌ **Deleting a task with no trail** — route to `.out-of-scope/` or merge with a note.
❌ **Promoting a `needs-info` / `blocked` task** — only `ready` work is promotable.
❌ **Re-ranking without a reason** — every priority move carries a one-line justification.
❌ **Ignoring `.out-of-scope/`** — re-litigates settled rejections; always scan it first.