/grey-matter:triagefrom grey-matter
Move external requests (issues, PRs) and internal tkt tickets through triage roles: categorise, verify with real evidence, grill if needed, and write agent-ready briefs. Use when the user asks to triage issues or tickets, or when adopt-project seeds a board from raw items.
Ships in grey-matter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Move work through a small state machine of triage roles. There are two surfaces, and the key idea is the adapter between them:
Triage is the adapter. When an external request is worth acting on, triage mints a tkt ticket that references it (the issue/PR URL plus the details pulled in), and that ticket becomes the internal unit of work: categorised, verified, groomed, and closed via tkt close like any other. The external item is never the thing we close work against; a ticket points at it.
A PR is a request with attached code: same roles, same machine, with the deltas marked "for a PR" below. Its final disposition (respond, ask for more, accept and merge, decline and close) is a user-guided action at the end, not something the agent does on its own.
Every comment the agent posts to the external surface during triage must begin with this disclaimer, as a fixed part of the comment template, never an afterthought:
> *This was generated by AI during triage.*
.out-of-scope/ knowledge base worksTwo category roles (the tkt kind: tag): bug (something is broken), enhancement (new feature or improvement).
Five state roles (the tkt triage: tag):
needs-triage: maintainer needs to evaluateneeds-info: waiting on the reporter for more informationready-for-agent: fully specified, ready for an AFK agentready-for-human: needs human implementationwontfix: will not be actionedFor a PR, the states read against the referencing ticket and its attached diff: ready-for-agent means a brief is attached and an agent should take the next step on the diff; ready-for-human means a human should take it (typically the merge).
Every triaged ticket carries exactly one kind: and one triage: tag. If two state signals conflict, flag it and ask the maintainer before doing anything else. The canonical role names and their tkt tag strings live in docs/agents/tkt-conventions.md (the kind: and triage: axes); if that mapping isn't present, tell the user to run /init-project.
State transitions: a fresh ticket goes to triage:needs-triage first; from there to needs-info, ready-for-agent, ready-for-human, or wontfix. needs-info returns to needs-triage once the reporter replies. The maintainer can override at any time; flag transitions that look unusual and ask before proceeding.
This repo uses tkt as its internal tracker and GitHub (via gh) as its external surface. That is the only binding this skill assumes today; a repo on a different external surface rebinds through the issue-tracker doc (the tracker-abstraction work is tracked separately and does not block this skill). Two live jobs run on current tooling:
triage: states.gh, mint a referencing tkt ticket, run the flow against that ticket, and end with a user-guided action on the external item.The maintainer invokes /triage and describes what they want in natural language. Interpret and act. Examples:
Present buckets, oldest first:
triage:needs-triage tickets: tkt query for tickets missing a triage: tag or carrying needs-triage.triage:needs-info with reporter activity since the last triage notes: needs re-evaluation.gh issue list, gh pr list), tagged [issue]/[PR] in the display. Surface only external-authored PRs for discovery (a collaborator's in-flight PR is not triage work); an explicitly named PR is always triaged regardless of author.Show a count and one-line summary per item, and let the maintainer pick.
Whether the maintainer names a tkt ticket or an external issue/PR, the flow is the same once a ticket exists. For an external item, step 0 mints the ticket first.
(External only) Mint the referencing ticket. Read the full issue/PR with gh (gh issue view <n> --comments, or for a PR gh pr view <n> --comments and gh pr diff <n>). Create a tkt ticket that references it: tkt new <slug> --title "...", with the issue/PR URL and a pulled-in summary (request, author, and for a PR what the diff does) in the body. This ticket is now the unit of work; the external item is linked, not duplicated-as-truth.
Gather context. Read the ticket and any prior triage notes so you don't re-ask resolved questions. Explore the codebase using the domain glossary (GLOSSARY.md) and respect ADRs in the area. Run two checks:
wontfix (step 5)..out-of-scope/*.md and surface any that resembles this request. Do not auto-apply it (see step 5).Recommend. Tell the maintainer your kind: and triage: recommendation with reasoning, plus a brief codebase summary relevant to the request (including whether it's already implemented). Wait for direction.
Verify the claim, with real evidence. Before any grilling, check that the claim holds up, and back it with actual command output, not prose:
ready-for-agent until verified).ready-for-agent; absence of real evidence is a needs-info signal, never a pass. A claim you say you verified without captured output is not verified.Grill (if needed). If the request needs fleshing out, call the Skill tool twice, for "grilling" and "domain-modeling" (or "game-modeling" when the subject is a game system, per the app/game split in docs/agents/tkt-conventions.md). Grill per the grilling skill's rhythm (one question at a time by default), sharpening domain terms and updating GLOSSARY.md/ADRs inline as decisions land. Capture resolved points in the ticket so the work isn't lost.
Apply the outcome (tag the ticket; the agent recommends terminal/negative states and the maintainer confirms before any close or external action):
ready-for-agent: write an agent brief into the ticket (AGENT-BRIEF.md) and tag triage:ready-for-agent.ready-for-human: same brief structure, noting why it can't be delegated (judgement calls, external access, design decisions, manual testing). Tag triage:ready-for-human.needs-info: post triage notes (template below) to the ticket, and to the external item if there is one. Tag triage:needs-info.wontfix: tag triage:wontfix and close the ticket (tkt close <id> --resolution "..."). The comment depends on why:
.out-of-scope/ (that KB is for rejected requests, not built ones, or it poisons the dedup check)..out-of-scope/, link to it from the comment, then close (OUT-OF-SCOPE.md).needs-triage: apply the tag; optional comment if there's partial progress.(External only) Final action on the request, user-guided. The tkt ticket's own done-state is tkt close. The external item's disposition is a separate action the maintainer directs: respond, ask for more info, accept and merge, or decline and close. Recommend the action, wait for the maintainer's call, then execute it with gh (gh issue comment, gh pr comment, gh pr merge, gh issue close), every posted comment carrying the disclaimer. Never merge, close, or decline an external request on your own authority.
.out-of-scope/ matching is surface-and-confirmWhen step 1 finds a resembling .out-of-scope/ entry, do not apply wontfix yourself. Semantic similarity is where an agent over-generalises and silently dismisses a legitimately different request. Instead: state the behavioral delta between the new request and the stored rejection ("the prior rejection was about X; this asks for Y, which differs in Z"), surface it to the maintainer, and let them confirm, reconsider, or distinguish. Only on an explicit confirm does the request join the existing file's prior-requests list and close.
If the maintainer says "move tkt 42 to ready-for-agent", trust them: confirm what you're about to do (tag changes, comment, close) and act. Skip grilling. If moving to ready-for-agent with no grilling session, ask whether they want an agent brief first.
> *This was generated by AI during triage.*
## Triage Notes
**What we've established so far:**
- point 1
- point 2
**What we still need from you (@reporter):**
- question 1
- question 2
Capture everything resolved during grilling under "established so far" so the work isn't lost. Questions must be specific and actionable, not "please provide more info".
If prior triage notes exist on the ticket or external item, read them, check whether the reporter has answered any outstanding questions, and present an updated picture before continuing. Don't re-ask resolved questions.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
51 skills in this plugin
/adopt-projectAdopt a brownfield repo into grey-matter: characterize its as-is model, subsume existing agent config, seed a triaged board, and wire plumbing./changelogMaintain CHANGELOG.md in Keep a Changelog format with user-facing entries. Use when recording what changed for a release, updating the Unreleased section, or asked to write/update the changelog./cheat-sheetList every skill in this set by category with a one-line description. Use when the user wants a quick reference card of available skills, asks "what skills are there", or "list all commands".npx claudepluginhub smileynet/grey-matter --plugin grey-matter