comview
Use when the user has comview open, wants agent-side comview review support, or asks the agent to prepare, read, manage, or respond to comview review comments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user has comview open, wants agent-side comview review support, or asks the agent to prepare, read, manage, or respond to comview review comments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when working in a Jujutsu repository with pushed bookmarks, open pull requests, rebases, or merge/rebase conflicts.
Use when the user wants to learn comview, needs help navigating the comview TUI, or asks how to review diffs, add comments, search, watch changes, or use keybindings in comview.
| name | comview |
| description | Use when the user has comview open, wants agent-side comview review support, or asks the agent to prepare, read, manage, or respond to comview review comments. |
Comview is an interactive terminal diff viewer managed by the human. Do not run
comview or comview watch yourself unless the user explicitly wants an
interactive terminal session.
Use normal shell commands to inspect the same diff source, and use
.comview/comments.json for persisted review notes. Treat those comments as
human review input. If the user wants coaching on the TUI itself, use the
comview-guide skill.
1. Identify the diff source the user is viewing.
2. Inspect that source noninteractively (`git diff`, `git show`, `gh pr diff`, etc.).
3. Read `.comview/comments.json` when the user asks about review notes or feedback.
4. Scope comments to the current review source; skip stale or out-of-scope comments.
5. For each in-scope comment, inspect the anchor and surrounding code/diff context.
6. Classify the comment intent:
- clear action requested -> make the change;
- question/exploration/clarification -> answer from code context;
confirm before editing even if the answer suggests a fix;
- unclear whether action is requested -> ask the user before editing.
7. Treat `.comview/comments.json` as read-only.
8. If edits may affect existing comment anchors, tell the user what may need review.
Run the diff-producing command directly instead of launching comview:
git diff
git diff --staged
git show HEAD
gh pr diff 123
In Jujutsu repositories, use unified git-format output and disable pagers:
jj --no-pager diff --git
jj --no-pager show --git @
There is no jj staging area, so do not translate git diff --staged literally.
If the user is using watch mode with a custom command, inspect that same
command.
comview watch refreshes the displayed diff when the source command output
changes. It does not live-reload external edits to .comview/comments.json.
Do not edit .comview/comments.json. Let the human manage comments in comview.
Default path:
.comview/comments.json
Basic schema:
{
"version": 1,
"comments": [
{
"path": "main.go",
"body": "Comment text",
"line": 12,
"side": "RIGHT"
}
]
}
Top-level fields:
| Field | Type | Values/meaning |
|---|---|---|
version | number | Comment file format version, usually 1 |
source | object | Optional source metadata; preserve if already there |
comments | array | Comment objects; use [] for no comments |
Comment fields:
| Field | Type | Values/meaning |
|---|---|---|
path | string | Diff path, usually without a/ or b/ |
body | string | Review note text |
line | number | 1-based target line number |
side | string | RIGHT for new/context side, LEFT for deleted old side |
start_line | number | Optional 1-based range start line |
start_side | string | Optional range start side: RIGHT or LEFT |
start_column, end_column | number | Optional 1-based same-line code-column range |
commit_id, original_commit_id | string | Optional commit anchors for commit/PR diffs |
github_id | number | Optional imported GitHub comment ID |
diff_hunk | string | Optional imported GitHub diff hunk |
.comview/comments.json to understand the user's review notes."comments": null as no comments.commit_id values, unrelated paths, missing diff anchors, or
already-addressed text may be stale; explain briefly and leave those files
unchanged.side: "RIGHT" for added lines and context lines on the new side.side: "LEFT" for deleted lines on the old side.After editing files that already have comview comments:
.comview/comments.json..comview/comments.json yourself.Listing comments back to the user without doing anything with them.
Treating every comment as an edit request; code-review comments may be questions or exploration.
Editing on an ambiguous comment before confirming the human wanted a change.
Acting on every persisted comment without checking whether it belongs to the current diff or review source.
Running comview/comview watch directly and hanging the agent.
Inventing comview session ... commands; they do not exist.
Using default jj diff output; use jj --no-pager diff --git for comview.
Claiming live navigation, focus, or session context support.
Writing .comview/comments.json; treat it as read-only.
Using RIGHT for deleted-only old-side lines or LEFT for new-side lines.
Assuming comview live-reloads external comment-file edits.
Announcing that you did not edit the comment file; only mention comment-file state when it matters.