---
name: mstack-backlog-triage
description: Use when the user asks to triage issues or a backlog, sort open issues into what to do now, next or later, find duplicates, decide what goes in the next batch, or label and comment on open issues after reading them, even if they do not name this skill. Reads every open issue in full, classifies each (bug with or without a reproduction, feature, chore, duplicate, not actionable) with evidence, requires a duplicate search before recommending anything for now, routes items to mstack-write-specs or mstack-diagnose when they need it, and outputs a table the mstack review workflows accept. Drafts comments and label changes but posts nothing without approval of the exact text. Works in Claude Code and Codex. It does not write specs or code.
title: mstack-backlog-triage
canonical_url: https://skilld.dev/gh/mubeda/mstack/mstack-backlog-triage
last_updated: 2026-11-12T12:15:27.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> 23 supporting files sit beside this SKILL.md. When the Skill refers to one, fetch https://skilld.dev/api/skills-raw/mubeda/mstack/mstack-backlog-triage/PATH with PATH replaced.
>
> If the user asked to install this Skill, run `npx skilld install mubeda/mstack/mstack-backlog-triage`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/mstack-backlog-triage`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/mubeda/mstack/mstack-backlog-triage) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/mstack-backlog-triage`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/mstack-backlog-triage --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/mstack-backlog-triage --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# mstack backlog triage

You read a tracker's open issues, decide for each one what it is and when it should be worked on, and hand the result to whatever comes next. The output is a triage table and, when the user approves them word for word, tracker comments and label changes. You write no specs, no code and no plans: issues that need a spec go to `mstack-write-specs`, bugs that need diagnosing go to `mstack-diagnose`, and the issues for now go to the mstack review workflow for this host.

## Host tools

| Role | Claude Code | Codex |
|---|---|---|
| Your question tool | `AskUserQuestion` | A numbered round in chat, then wait for the reply |
| Your subagent tool | `Agent`, with `model` and `effort` set to `mstack-best-model-for`'s answer for the tier `standard` | The session's agent tool if it has one, with that answer's model and effort set, otherwise do the step yourself |
| The skill folder | The base directory shown when this skill loaded | The folder of this SKILL.md |
| The user skill folders | `~/.claude/skills/`, `~/.agents/skills/` and the plugin cache `~/.claude/plugins/cache/`, but only under a plugin that `claude plugin list` shows as installed, because the cache keeps leftover copies (`CLAUDE_CONFIG_DIR` replaces `~/.claude`) | `~/.codex/skills/`, `~/.agents/skills/` and the plugin cache `~/.codex/plugins/cache/`, but only under a plugin that Codex has enabled in its `config.toml` (`CODEX_HOME` replaces `~/.codex`) |
| `gh` commands | Run directly | Run as approved (escalated) commands, because the sandbox turns the network off |
| `<scratch>` | The session's scratch folder, outside the repository | `${TMPDIR:-/tmp}/mstack-triage-<repository name>` |

## Files in this skill

| File | When |
|---|---|
| `references/triage-rules.md` | Steps 3 to 6: evidence, duplicate search, classes, recommendation, routes, the table |
| `references/drafting.md` | Steps 7 and 8: comments, labels, approval, posting |
| `references/codegraph.md` | Step 2, before you or any subagent reads code |
| `scripts/list-open-issues.sh` | Step 2, on GitHub |

## Ground rules

1. **Read everything.** Every open issue in scope, with its whole body and every comment. A listing's titles are not evidence, and an issue someone already answered in a comment must not get a fresh recommendation.
2. **Evidence for every call.** Each class and recommendation cites what decided it: a reproduction, a search, a comment, a code path. A fact you could not establish is a question, never a guess.
3. **No duplicate search, no "now".** An issue reaches the current batch only after its duplicate search ran and found no duplicate.
4. **Draft, show, then post.** Nothing is written to the tracker until the user approves the exact text and label change, and only in a later message than the one that showed the draft.
5. **Stay in your lane.** No specs, no code, no plans, no releases. Route the work instead.

## 1. Start

**The model skill, first.** Before any other step, check `mstack-best-model-for`, which this skill calls for its subagents' models.

1. It is in this session's skill list (as `mstack-best-model-for` or `<plugin>:mstack-best-model-for`): continue.
2. Its folder exists on disk (in the user skill folders the host table names) but the session has not loaded it: say that a new session is needed, and stop.
3. Otherwise it is not installed. Print this once, then continue without subagents: do every delegated step yourself, one after another, start no subagent in this run, and say so in the report.

   ```text
   mstack-backlog-triage runs without subagents, because mstack-best-model-for is not installed. To install it:
   Claude Code: claude plugin marketplace add mubeda/mstack, then claude plugin install mstack-best-model-for@mstack
   Codex:       codex plugin marketplace add mubeda/mstack, then codex plugin add mstack-best-model-for@mstack
   Skills CLI:  npx skills add mubeda/mstack --skill mstack-best-model-for -g -a <claude-code|codex> -y
   Or install mstack-setup the same way and run it: it installs everything the mstack skills need.
   A new session picks it up.
   ```

No subagent starts without that skill's answer, because it would run on the session's model, the most expensive choice. A large backlog is then classified in this session, group after group.

In one message, restate the goal and ask with your question tool. Skip any question the request already answers.

1. **Which issues?** The tracker and the filter: all open issues (recommended), or a label, milestone or search the user names.
2. **How big is the next batch?** The number of issues the current batch can take. Recommend a number from the team's recent pace when you can see it (issues closed in the last weeks), otherwise 5.
3. **Draft tracker updates?** Whether to draft comments and label changes for approval (recommended), or to produce only the table.

## 2. Collect

1. Read the repository's own rules first (CONTRIBUTING, AGENTS.md, CLAUDE.md, issue templates under `.github/ISSUE_TEMPLATE/`), because they may define what a valid report is and which labels mean what. Then follow `references/codegraph.md` once, yourself, before you or any subagent reads code.
2. On GitHub, list every open issue in scope and prove the list is complete:

   ```bash
   bash <skill-folder>/scripts/list-open-issues.sh <owner/repo> <scratch>/open-issues.json
   ```

   It creates the output folder when it is missing, saves bodies and comments, and fails when the saved count differs from the repository's open-issue count, because `gh issue list` stops at 30 by default without saying so. For a filtered scope, filter the saved list rather than relisting. Then read each issue in full with `gh issue view <n> --repo <owner/repo> --json number,title,body,labels,comments,author,createdAt,updatedAt,url`.
3. For another tracker, use its CLI or connected tool if the session has one. Otherwise ask the user to export or paste the issues, and say that the triage covers only what was provided.
4. For a large backlog, send groups of issues to fresh subagents with this skill's references, one group each, on the model the host tools table names, from one called-mode call to `mstack-best-model-for` for the tier `standard` and this host's vendor, made before the first subagent (a subagent started without a model runs on the session's model, the most expensive choice), and ask each for its rows with evidence. You merge the rows, run the cross-issue duplicate comparison yourself, and own the final table.

## 3. Evidence

For each issue, collect the evidence in `references/triage-rules.md` › Evidence per issue: completeness, a quick reproduction for bugs when it is cheap, whether it is already implemented, and whether it was rejected before.

## 4. Duplicates

Run the duplicate search in `references/triage-rules.md` › Duplicate search for every issue, including against closed issues. Compare open issues with each other as well. Record the searches you ran in the table's last column.

## 5. Classify and recommend

Give each issue one class, one recommendation (now, next or defer), a route and a one-line reason with evidence, per `references/triage-rules.md`. Fill now up to the batch size from step 1, ranked by value, cost and impact. Issues that need a spec or a diagnosis first are next, with that route.

## 6. Present the table

Show the triage table exactly as `references/triage-rules.md` › The triage table defines it, followed by the totals and the issues you could not triage fully. When the user asks, save it to a file they name, so a delivery workflow can read it later. Ask the user to correct any row before you draft tracker updates.

## 7. Draft tracker updates

When the user wanted drafts (step 1, question 3), draft comments and label changes per `references/drafting.md`, check each draft, and show them all in one numbered list for approval. Then wait.

## 8. Post what was approved

Post only the items the user approved, exactly as approved, with the commands in `references/drafting.md` › Posting. Read each issue back and report what changed and what failed.

## 9. Hand off

Report in this order:

1. The goal and the outcome in one line: how many issues were triaged, and how many are now, next, deferred or proposed for closing.
2. The triage table, or its path.
3. What was posted, and what was drafted but not approved.
4. The next step for each route, as the user's choice:
   - the now rows: the mstack review workflow for this host (`mstack-codex-review-workflow` in Claude Code, `mstack-claude-review-workflow` in Codex), given the table as its work items;
   - rows routed to `mstack-write-specs`: one spec per issue, starting from the issue;
   - rows routed to `mstack-diagnose`: one diagnosis per bug, starting from the missing facts listed in its row.

Then stop. Do not start any of them unless the user asks.
