agentleFS
nrwlnrwl/nx/.agents/skills/triage-review-pane/SKILL.md

triage-review-pane

Skill29k starsChanged 9 days agoMITView on GitHub

Open the triage approval TUI in a side pane next to the conversation and arm the watcher that reports each decision back. Use after staging records with `triage stage`, or whenever the user asks to review, approve or go through the triage queue. Requires herdr or tmux — say so plainly if neither is running rather than falling back to something worse.

  • Pipes a download into a shell

Trending

More talk lately.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 5 mentionsApr 2026: 4 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 4 mentionsNov 2026: 1 mentionDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the nrwl/nx repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about nrwl/nx

The biggest 5 of 93 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 93

Talked about on GitHub, YouTube, Stack Overflow, Bluesky and Hacker News (93 times).

On GitHub · 26

21 more on GitHub

On YouTube · 25

20 more on YouTube

On Stack Overflow · 25

20 more on Stack Overflow

On Bluesky · 11

6 more on Bluesky

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read Codex execution conventions before following this workflow.

    line 10
  2. Distinctive:

    Do not substitute something else.

    line 48
  3. Very specific:

    Do not batch them up "to save a call" — each apply is a handful of gh invocations, and the cost of deferring is that an approval sits …

    line 133
  4. Very specific:

    When a record comes back changes-requested instead, address the note and restage it (Step 5's notify reload).

    line 136

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Read Codex execution conventions before following this workflow.

Open the triage review pane

Two jobs: put triage review where the user can act on it without losing the conversation, and arm the watcher so their decisions come back to you as notifications instead of you polling.

1. Check there is anything to review

.claude/tools/triage list

Nothing staged means nothing to open. Say so and stop — an empty TUI is a worse answer than a sentence.

The TUI itself runs under Bun, not Node: opentui reaches the terminal through Bun's FFI, and the Node build of it refuses to start. triage review checks for bun up front and prints the install line, so you do not need to check separately — but if the user has no Bun, that is the error they will see, and curl -fsSL https://bun.sh/install | bash is the fix.

2. Detect the multiplexer

echo "herdr=${HERDR_ENV:-no} tmux=${TMUX:-no}"

If neither is set, stop and tell the user. This skill only works inside herdr or tmux: a side pane needs a multiplexer to put it in, and the TUI needs a real TTY, so there is nothing sensible to degrade to. Say that in one line and hand over the command:

The review TUI needs a side pane, which only works inside herdr or tmux — neither is running here. Run pnpm triage-tui yourself and I'll pick the results up from triage feedback and triage notes.

Then arm the watcher anyway (step 4). It reads the events bus, not the pane, so it works regardless of how the TUI was started — and the user still gets their decisions reported back.

Do not substitute something else. A TUI launched in the foreground takes the session over, and one launched detached has no terminal and exits immediately.

3. Open the pane

herdr:

NEW=$(herdr pane split --current --direction right --ratio 0.45 \
      --cwd "$PWD" | sed -n 's/.*"pane_id":"\([^"]*\)".*/\1/p' | head -1)
herdr pane run "$NEW" "pnpm triage-tui; herdr pane close $NEW"

tmux:

tmux split-window -h -c "$PWD" 'pnpm triage-tui'

Four things that are easy to get wrong:

  • The new pane id is at result.pane.pane_id, not result.pane_id.
  • Use pane run. It honors live bracketed-paste mode and submits the text and Enter atomically. pane send-text and pane send-keys are low-level and non-submitting — reach for those only to drive a TUI that is already running.
  • The pane closes itself. Appending ; herdr pane close $NEW is why. Waiting on the process from outside means polling, and a poll that loses the race strands a dead pane for the rest of the session. tmux needs no equivalent — it closes a pane when its command exits.
  • Do not --focus. The user is probably still reading what you just wrote, and stealing focus mid-sentence costs them more than the keystroke it saves.

4. Arm the watcher — once

If a watcher from an earlier invocation is still running, do not arm another. It stays armed until the queue settles or its timeout expires, so a second one duplicates every notification and you cannot tell which decision was real. This skill gets re-invoked often — the pane closes itself on q, so reopening it is routine, and the watcher outlives the pane by design. Reopen the pane and reuse the running watcher.

.claude/tools/triage monitor

One line per decision as it lands: approvals, rejections, the note typed on a changes-requested, and a NOTE line each time they press n. It reads the events bus rather than diffing the records directory, so a record that archives itself on the way out — a rejection, an applied record — is still reported; the transition is on the bus before the file moves. It exits once nothing is pending, which ends the watch on its own. It also emits, rather than going quiet, if the records directory disappears mid-review: .nx-issue-triage is gitignored and several agent sessions share this checkout, so a stray clean really can delete a queue out from under a live review.

Run the monitor in a Codex shell session and retain its handle. Read incremental event output with bounded waits while the user reviews; reuse this handle when reopening the pane. If the runtime cannot retain the process, report that limitation and read triage feedback and triage notes on the next user turn. Do not promise automatic notifications after ending the turn.

5. While they review

You can push into a running TUI:

.claude/tools/triage notify reload 36775     # restaged it — reload and jump there
.claude/tools/triage notify select 36792     # point them at one
.claude/tools/triage notify message "..."    # a line in their status bar

Fire-and-forget: no TUI open is a normal state, not an error, and the record on disk stays the source of truth either way.

6. Apply as approvals land — do not wait for the queue

An approval in the TUI is the go-ahead to apply that record, immediately. That gate is the whole point of staging; waiting for a second verbal confirmation duplicates it.

Apply when approvals arrive, not when the queue settles. apply only ever touches records the reviewer approved, so running it early is safe by construction — and on a long sweep the alternative is holding finished work hostage to the slowest record in the batch. A reviewer who approves ten issues and then goes to lunch should come back to ten applied issues, not ten still waiting on the other twenty-seven.

.claude/tools/triage apply        # applies only what they approved, however few

Applied records archive themselves out of the review list, so the pending count keeps shrinking and the watcher still settles normally.

Do not batch them up "to save a call" — each apply is a handful of gh invocations, and the cost of deferring is that an approval sits unapplied for as long as the review takes.

When a record comes back changes-requested instead, address the note and restage it (Step 5's notify reload). That record is not applied until it is approved again.

.claude/tools/triage feedback     # what they asked you to change, and why

A NOTE line is not that. It is a side request about the issue — file a Linear ticket, ping someone — and it leaves the record's status alone on purpose. Do the work it asks for, and keep applying that record on its own schedule; do not wait on the note and do not restage for one.

.claude/tools/triage notes        # every note they left, oldest first

The watcher's last line tells you when everything has settled — at which point there should be nothing left to apply, because you have been applying all along.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.