Logo: Pr Triage

Pr Triage

Communautéit
dmoka
pr-triage

Triage open PRs: which need attention first, and why. Read every open pull request in a repo, judge how much of a reviewer's attention each one needs (critical, high, medium, low) from what the change actually does, and order the queue most-attention-first — each judgement pointing at the line that drives it, each PR linked to a full reading tour. Renders one self-contained HTML queue plus JSON for agents. Use when the user asks which PR to review first, what needs attention in the PR queue, has too many open PRs, or mentions PR triage, review backlog, or review priority.

Iwwersiicht

Editeurdmoka
Repositoryskills
Skill-Nummpr-triage
Stären
21
Forks
2
Matgeliwwert Dateien
14
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 14 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    dmoka huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Pr Triage an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/dmoka/skills/tree/main/skills/pr-triage
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dmoka/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/pr-triage .claude/skills/pr-triage
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Pr Triage an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Pr Triage automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Pr Triage net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

PR triage

A review queue sorted by age or size sends people to the wrong PR first. A 900-line rename is harmless; a one-token change to a price is not. This skill reads every open PR, decides how heavy each change really is, and orders the queue so the PRs that need real attention come first. Nobody configures anything.

It points attention; it never approves. The last PR in the queue still gets read. Every judgement names the line that drives it, and every PR links to a reading tour built from the same data, so a reviewer can check the judgement in one click.

Scripts sit in scripts/ beside this file (Node ≥ 18, zero dependencies, gh logged in). If you fetched this over HTTP, fetch scripts/*.mjs and the files in references/ as raw text with curl -sSL.

The loop

  1. Check the logins. node scripts/preflight.mjs prints one row per repo, with the install link or login command for each row not ready. Never ask for a token or run a login; pass the command to the user. Done when a row is ready; otherwise report BLOCKED with the table.
  2. Compute. node scripts/triage.mjs (add --repo owner/name outside the repo). For every open PR it writes .pr-review/tour-<n>.json — files, noise, FACT items, reading order, the author's words — and it writes .pr-review/triage.json listing them, fetches every PR head once into origin/<head> for the judges, and renders the unjudged page. No model is involved. A repo list gives one queue (Many repos). Rerunning replaces the reports and pages, judgements included, and removes those of PRs that closed — judge after the last run. More than 20 open PRs: say how many, and ask before judging them all.
  3. Judge each PR on its own. For each tour-<n>.json, read that PR — gh pr diff <n>, noise skimmed, surrounding code at the PR head (git fetch origin <head> then git show "origin/<head>:<path>" — never FETCH_HEAD, which parallel judges overwrite) — and write .pr-review/tour-<n>.notes.json in the format of references/notes.md, with the attention block. Then node scripts/annotate.mjs .pr-review/tour-<n>.json .pr-review/tour-<n>.notes.json — it writes the checked notes into tour-<n>.json — and fix the notes until it passes. Use one fresh sub-agent per PR when you can, in parallel, each given only the judge brief below. A judge that has read the other PRs grades on a curve. Without sub-agents, judge them one by one and judge each on its own merits.
  4. Order the queue. Read every PR's attention. Write .pr-review/triage.notes.json: { "summary": "...", "order": [7, 6, ...] } — the key of each PR in triage.json (many repos: "dmoka-ticket-bay-7"), most attention first, by level, across all repos. Within a level, apply these in order and stop at the first that separates two PRs: irreversible before reversible; live code before code nothing calls yet; a PR that conflicts with others (overlaps) before one that does not; older before newer. The summary is two or three sentences on the queue as a whole; use overlaps in triage.json (files two or more PRs change) for conflicts between PRs. node scripts/annotate.mjs .pr-review/triage.json .pr-review/triage.notes.json checks every PR is placed once, judged, and never below a lower level.
  5. Render. node scripts/render.mjs .pr-review/triage.json writes .pr-review/review.html: one file holding the queue and every tour, with a sidebar per tour and instant switching (#/pr/7). No server, safe to publish as a CI artifact. Look at the queue before you report — in a browser if you have one (python3 -m http.server -d .pr-review when file:// is blocked; with no browser, open the file with headless Chrome --dump-dom and check the same). Check: no PR shows "not judged", the order matches your notes, and each evidence link opens its tour at the right line.
  6. Report in chat: the path to review.html, then the queue — level, PR, what happened, why — critical and high in full, the rest as one line each.

Judge brief

Fill in the absolute paths and HEAD_BRANCH (pr.head in tour-N.json), and hand this, and nothing else, to each judge:

Judge pull request #N in the git repo at REPO (run commands there). Read SKILL_DIR/references/notes.md and follow it. Read the PR with gh pr diff N and gh pr view N; read surrounding code at the PR head with git show "origin/HEAD_BRANCH:<path>" — it is already fetched; do not run git fetch. Never check out a branch — others share this checkout. Skim noise; when the author claims something about it ("formatting only"), check the claim with any tool you like. Write REPO/.pr-review/tour-N.notes.json, including the attention block, then run node SKILL_DIR/scripts/annotate.mjs REPO/.pr-review/tour-N.json REPO/.pr-review/tour-N.notes.json; it copies your checked notes into tour-N.json. Fix your notes until it passes. Do not touch GitHub or any other file. Reply with your attention block.

Many repos: N is the PR key. The judge reads with the tour's read.diff, read.show and read.grep (not gh, not origin/...) and its intent.

Many repos

  • Config: ~/.config/pr-triage/repos.jsonc (Windows: %USERPROFILE%\.config\pr-triage\repos.jsonc), JSON with comments: { "repos": ["github:<owner>/<repo>", ...] }. No file: the current repo; --repo ignores it. gitlab:/azure: entries: "not supported yet", skipped.
  • Login check (step 1), per repo: git and gh installed, logged in, can read the repo. Only ready repos are triaged; the page lists the rest first.
  • Cache: ~/.cache/pr-triage/github/<owner>/<repo>, a partial clone (--filter=blob:none), no working tree. Each run fetches every open PR head into refs/pr-triage/pr/<n>, updates the default branch and deletes the refs of closed PRs. It never touches your checkouts; a broken one is cloned again. Delete it: node scripts/triage.mjs --clean-cache [github:<owner>/<repo>].
  • Keys: a PR is <owner>-<repo>-<n> (dmoka-ticket-bay-33) in file names, links and the queue order; each card shows its repo.

Hard rules

  • Judge the change, not its size, title, or author. Read the diff before you judge. A title can hide a change; that is a reason for more attention.
  • No verdicts. Attention is an order to read in. Never call a PR "safe", "LGTM", "fine", "ready to merge", or "nothing to review". The gate refuses the common phrasings; the rule covers the rest.
  • Every level above low points at a line, with a verbatim code fragment the gate checks. No line, no judgement.
  • Read-only on GitHub. Never comment, label, approve, request changes, assign, or merge. Outputs live in .pr-review/; if neither .gitignore nor .git/info/exclude covers it, suggest adding it.

What the ranking cannot see

  • Whether the code works. Nobody ran it. A judge reads; tests run.
  • Everything a reader misses. Models catch a minority of the issues a careful human finds. A low level means "nothing stood out to a reader", never "checked".
  • Context outside the repo: deadlines, who is waiting, what the business cares about this week. Say so when it would change the order.
  • Stability. Two runs can place PRs within a level differently. The levels themselves should not move; if they do, the evidence line says why.

Done means

  • triage.json passed annotate.mjs, and so did every tour's notes.
  • review.html exists and opens every PR's tour from the queue.
  • The chat report gives the queue with levels and reasons, most attention first.
  • Nothing on GitHub changed.

Gotchas

  • Never git fetch into the cache: triage.mjs already fetched every head, and parallel fetches collide on refs.

The intent map inside each tour, its search order for the author's intent, and the fresh-session rule are adapted from Matt Pocock's code-review skill (MIT).

Last verified: 2026-09-28 with Hermes v0.21.5 (the morning cron job on dmoka/ticket-bay)

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Pr Triage?

Triage open PRs: which need attention first, and why. Read every open pull request in a repo, judge how much of a reviewer's attention each one needs (critical, high, medium, low) from what the change actually does, and order the queue most-attention-first — each judgement pointing at the line that drives it, each PR linked to a full reading tour. Renders one self-contained HTML queue plus JSON for agents. Use when the user asks which PR to review first, what needs attention in the PR queue, has too many open PRs, or mentions PR triage, review backlog, or review priority.

Firwat Pr Triage op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Pr Triage besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Pr Triage an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/dmoka/skills/tree/main/skills/pr-triage an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Pr Triage benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Pr Triage benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Pr Triage domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Pr Triage gratis?

Jo. dmoka huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇