一键导入
lrv
show the current changes, or other changes, in lrv code review tool
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
show the current changes, or other changes, in lrv code review tool
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | lrv |
| description | show the current changes, or other changes, in lrv code review tool |
Invoke lrv tool for code review, potentially showing the diff requested by the author (e.g. "open lrv on the diff of the entire branch" will pipe the diff from the current commit up to the main branch). On submission, fix issues without summary.
Do it like this (adapt those examples):
jj diff --git | lrv --title="One sentence description if possible" # if not commited
jj show --git -r changeid | lrv # if commited
git diff | lrv # if not commited
git diff HEAD^ | lrv # if commited
For reviewing a full branch as a series of individual commits:
lrv --series "trunk()..@" # jj revset
lrv --series "main..HEAD" # git range
The UI shows a commit strip; comments are grouped per commit in the output.
For a local LLM pre-review requested by the user, review the diff yourself
before launching lrv, write the findings as review notes JSON, and pass them
to lrv:
git diff > /tmp/lrv.diff
# write /tmp/lrv-local-review.json from that diff
lrv --file /tmp/lrv.diff --review-notes-file /tmp/lrv-local-review.json
lrv. Never run it in a sub-agent or background task, this NEEDS
to be synchronous.lrv. Do not make lrv call a model.file,
line, side, and body; optional id, author, date, source_url,
commit_idx. Use exact diff file paths; use side: "new" for comments on
changed/new code; use file: "(commit)", line: 1, side: "new" for
global comments. In series mode, set commit_idx to the zero-based commit
index. Set author to something like Local LLM review.commits array, each entry has commit_hash,
commit_message, and a comments list. Work through commits in order:
for each commit that has comments, edit it and apply all its fixes,
then jj edit back to the top of the stack before moving on.jj, this is straightforward: either jj edit the target commit
directly, or jj new on top of it, make the change, and squash it back.
In Git, agents should usually avoid interactive editors: create a fixup!
commit for the target commit, then run
GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash <base> to fold it in
non-interactively. As a fallback, with a clean worktree, an agent can check
out the target commit, edit or amend it, then replay descendants with
git cherry-pick. Conflicts are expected and need to be resolved.