/workflows:tuicr optional: PR number/URL, "working tree", "all files", a revset, or a file pathfrom workflows
Launches tuicr TUI for reviewing GitHub/GitLab PRs, commit ranges, working trees, or individual files with persistent inline annotations. Also reads annotations back and can write replies into the session.
Ships in workflows. 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; scripts run unread.
What this skill carries — grep references/ for any subject the names below miss:
!d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"
Review a PR (or the working tree, a commit range, or a file) with inline annotations in the tuicr
TUI, then read the annotations back and address them. tuicr auto-detects the VCS. Unlike a one-way
capture tool, tuicr persists the review session to disk and exposes it to agents both ways:
Claude reads your notes with tuicr review comments and can write replies back into the same
session — that you see live in the TUI — with tuicr review add.
--file)If the user asks about tuicr (config, sessions, keybindings, install) rather than requesting a review, consult the reference files and answer directly — do not launch the TUI.
references/install.md — how tuicr is installed (nixpkgs) and the launcherreferences/config.md — config file, themes, session storagereferences/usage.md — commands, keybindings, the agent read/write JSON contractIf the user says "read my tuicr review", "address the annotations I just made", "what did I flag" — they ran tuicr outside this flow and want the stored annotations processed. Skip the launch: resolve the session slug (Step 3) and go straight to Step 3.5 classification.
c), then quits (q).tuicr review comments --session <slug>, classifies, and addresses each.tuicr review add (stamped as the agent).command -v tuicr && tuicr --version
herdr tab list # the launcher hosts the TUI in a herdr tab; this confirms a live server
If missing, tuicr is in nixpkgs — add tuicr to ~/nix/modules/shared/packages.nix and rebuild
(cd ~/nix && nix run .#build-switch), or for a one-off run set
TUICR=$(nix build --no-link --print-out-paths nixpkgs#tuicr)/bin/tuicr. See references/install.md.
Map $ARGUMENTS to tuicr's flags (always append --no-update-check):
| User intent | tuicr args |
|---|---|
PR number 70 / PR or MR URL | pr 70 (run from inside the repo, or pass the URL) |
| "working tree" / uncommitted | -w |
| commit range / revset | -r <revset> (e.g. -r main..HEAD) |
| "all files" | -A |
a file/dir path (docs/plan.md) | --file docs/plan.md |
| a PR, narrowed to one path | pr 70 --path src/app.rs |
If nothing is specified and the repo has uncommitted changes, default to -w; on a clean feature
branch, offer -r <main>..HEAD. Ask only when genuinely ambiguous.
The launcher opens tuicr in a new herdr tab (labeled tuicr), and blocks until the user quits.
The tab is created unfocused and revealed only once tuicr has painted, so it appears already
loaded rather than as a blank shell. Run it in the repo directory:
"${CLAUDE_SKILL_DIR}/scripts/launch-tuicr.sh" pr 70 --no-update-check
IMPORTANT — long-running command: it blocks for the whole review. Set the Bash tool timeout
to the maximum your harness allows (e.g. 1800000). Do not use run_in_background. On a clean
quit the launcher prints TUICR_RC=0.
herdr tab create +
herdr pane run) — running tuicr inline or with the ! prefix fails with No such device or address (os error 6). Always go through the launcher.q), the launcher returns and closes the review tab.jq is missing). Don't
assume ghostty is installed — herdr is the supported path.1 = tuicr not on PATH, 2 = no herdr server and no ghostty.If the Bash tool times out before the launcher returns, tuicr is still open. Do NOT relaunch. Tell the user "let me know when you've quit tuicr", then continue at Step 3 once they reply.
Resolve the session slug for what you just reviewed, then read its comments:
# slug for the most-recently-updated session in this repo (PR slugs look like gh:owner/repo/pr/70):
"${CLAUDE_SKILL_DIR}/scripts/resolve-session.sh" # newest session for the cwd repo
"${CLAUDE_SKILL_DIR}/scripts/resolve-session.sh" 70 # narrow to a PR number
tuicr review comments --session "gh:edwinhu/workflows/pr/70"
tuicr review comments prints a clean JSON array. Each item carries path, start_line,
end_line, side (new/old), comment_type, lifecycle_state (local_draft for un-exported
notes), and content. An empty array ([]) means the user quit without annotating → go to Step 7.
See references/usage.md for the exact schema.
Split each annotation's content into two buckets (case-insensitive):
?? (two or more ?) anywhere, OR starts with explain,
remind, describe, what is, what are, how does, how do, clarify. The user wants an
answer, not a code change.For explanation requests: answer each (read the referenced code, write a clear explanation) and reply into the session so the answer shows up in the TUI next to the note:
tuicr review add --session "<slug>" --username "Claude Opus 4.8" --type note \
--target-file src/app.rs --line 42 --side new "Explanation: this mutex guards the write path because …"
Then relaunch (Step 6) so the user can read the reply and follow up. Carry any code-change directives from the same batch forward to Step 4.
If all annotations are code-change directives, go straight to Step 4.
Enter plan mode (EnterPlanMode). List each code-change annotation with its path:line and the
change you propose. Get approval before editing code.
After approval, edit the source. Each annotation is a directive — fix the actual code at
path/start_line.
When a reply is useful (you deviated from the request, or want to note what you did), write it back so it appears in the TUI, stamped as the agent:
tuicr review add --session "<slug>" --username "Claude Opus 4.8" --type note \
--target-file src/app.rs --line 42 --side new "Done — switched to errors.Is(); kept the wrap for context."
Use --type suggestion for a concrete proposed edit, --type note for a comment. Omit
--target-file/--line for a review-level note. There is no review remove subcommand — to
delete a draft you added, edit the session JSON directly (path is in tuicr review list).
Relaunch with the same target so the user sees the fixes and can add more annotations:
"${CLAUDE_SKILL_DIR}/scripts/launch-tuicr.sh" pr 70 --no-update-check
Read the session again (Step 3). New annotations → back to Step 3.5. No new annotations → Step 7.
Fact — for a PR review, do NOT
git pushthe PR branch until the review loop is done. tuicr keys a PR session by the PR's currenthead_sha. Pushing new commits moves the head, so the nexttuicr pr <N>opens a fresh session and the prior annotations + your replies are orphaned (the data survives in the oldsessions/*.jsonbut is unlinked frompr <N>— the user just sees an empty review). Local commits are safe; only pushing moves the head. So relaunch to show replies, gather follow-ups, and close the loop first; push once. Telling the user their notes are "in the TUI" after a push, when the reopen shows nothing, is worse than not replying at all.
When tuicr review comments returns [] (or only notes you already addressed), the review is
complete. Tell the user. If they want to publish, tuicr can export to GitHub or the clipboard from
the TUI (or --stdout to print) — see references/usage.md.
User: "review PR 70 with tuicr"
→ launch-tuicr.sh pr 70 --no-update-check (opens tuicr in a new herdr tab, focused)
→ user annotates handler.rs:43 "use errors.Is() instead of ==", quits
→ resolve-session.sh 70 → gh:edwinhu/workflows/pr/70
→ tuicr review comments --session gh:edwinhu/workflows/pr/70 → [{path:"handler.rs",start_line:43,content:"use errors.Is()…"}]
→ classify: code-change directive
→ plan mode: "handler.rs:43 — replace == with errors.Is()"; user approves
→ edit handler.rs
→ tuicr review add --session … --username "Claude Opus 4.8" --target-file handler.rs --line 43 "Done — errors.Is()."
→ relaunch pr 70 → user sees fix + reply, quits without new annotations
→ review complete
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tui-code-review, pr-review, annotation, code-review-tool, tuicr
86 skills in this plugin
/afkUse when the user says '/afk', 'afk', 'going to bed', 'I'm going to sleep', 'work autonomously', 'work on this overnight', 'don't ask me questions', 'while I'm away', or 'do whatever you think is best'. NOT for questions about overnight returns, rates or anything financial; NOT for asking how the mode works./ai-anti-patternsALWAYS load before finalizing ANY written prose, and whenever text is suspected of being machine-written - "does this sound like AI", "make this sound human", "clean up the AI-isms", "did a bot write this", "check this draft before I send it", "review this for AI tells", "this reads like ChatGPT", "review this for mannered prose", "is this too writerly", "is this student paper AI-generated", or before handing back any draft, memo, email, or article you wrote. Use proactively even if the user never mentions AI writing./batch-routerUse when the user says 'bulk LLM job', 'batch job', 'submit a batch job', 'run this prompt over all the documents', 'process thousands of PDFs', 'extract fields from every filing', 'code each filing', 'label / annotate these documents', 'hand-code these', 'have agents read each document', 'which batch provider', 'cheapest way to run this over N rows', 'spend my API credits', 'Claude or OpenAI or Gemini for this batch', or needs any per-row LLM extraction, classification or enrichment over many inputs./bib-manageALWAYS use when a manuscript's BIBLIOGRAPHY is the thing being fixed, or when a cite's PDF turns out to be wrong — 'link my bib entries to the PDFs', 'which sources am I missing a PDF for', 'audit my sources.bib', 'my bib entry has no file field', 'fetch the Federal Register PDFs', 'why can't pincite find this source'. WRONG FILE: 'is this PDF the published version or the preprint', 'this PDF is a book review, not the book', 'the file field points at the wrong paper', 'the PDF doesn't match the citation'. METADATA: 'reconcile my bib against Paperpile', 'these entries were extracted by a model, check them', 'fix the metadata in sources.bib', 'my bib has no DOIs and the fields look wrong', 'pull the real author/journal/volume from my library', 'where did this bib entry's metadata come from'. PAGE RANGES: 'does my bib have page ranges', 'my bib only has start pages', 'backfill the page ranges', 'pull the pages from the DOI', 'add DOIs to my bibliography'. Use proactively before any pincite run — pincite resolves footnotes through `file = {...}` and silently skips entries that lack one. NEGATIVE ROUTING: the page number inside a footnote is pincite, but whether that footnote's PDF is the version of record or the wrong document is THIS skill, mid-pincite-run included; whether a cited source says what the footnote claims is source-verify; Bluebook FORM is bluebook or bluebook-audit; finding or downloading a paper is fetch-paper or paperpile./blaw-edgar-searchUse when the user wants to search SEC filings or exhibits on Bloomberg Law — 'search EDGAR on Bloomberg Law', 'BLAW EDGAR search', 'find exhibits with this clause', 'which 8-Ks attach a consulting agreement', 'pull the Bloomberg Law results list', 'capture the BLAW results' — or needs exhibit-level phrase search with proximity operators that the SEC and WRDS full-text routes handle badly./bluebookALWAYS use for ANY legal citation question, even if the user never says 'Bluebook' - 'cite this case', 'how do I cite a statute', 'is this footnote formatted right', 'id. or supra here', 'cite a law review article', 'what signal goes here', 'format these footnotes', 'short form for this cite', 'block quote this', 'where does the ellipsis go', 'is this quote altered right', or writing or checking any citation or quotation in a legal manuscript. NOT for auditing a whole manuscript's footnotes (use bluebook-audit) and NOT for rendering these rules in Typst (use docx-typst).Claude Code refuses to install this plugin
As a github or url source: Failed to clone repository: fatal: clone of '[email protected]:edwinhu/bmll-skill.git' into submodule path 'skills/bmll' failed
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job