diff-review
Skill by ClickHouse
Lets an assistant open pending code changes in a browser diff review before a commit or pull request. It collects the user's line comments and returns them as JSON for the assistant to address.
Install diff-review
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ClickHouse/ClickHouse /tmp/ClickHouse && mkdir -p ~/.claude/skills && cp -r /tmp/ClickHouse/.claude/skills/diff-review ~/.claude/skills/diff-reviewRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ClickHouse/ClickHouse /tmp/ClickHouse && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ClickHouse/.claude/skills/diff-review ~/.gemini/antigravity-cli/skills/diff-reviewAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The diff-review skill lets a user read and review code changes in a browser before anything is committed or pushed. It starts a local server on localhost:3000 that renders the working-tree diff with @pierre/diffs CodeView and opens the user's browser. The UI is vendored, so it needs no network access and no third-party CDN sees the diff.
The server waits for the user's line comments and an overall verdict, then writes them to a JSON file. The assistant must read and address every comment before committing. The skill suits users who want a browser review of pending or committed branch changes, including through an SSH-forwarded port. If nobody opens the page within 120 seconds, the server exits on its own.
Written from the project's SKILL.md and checked against it.
What it can do
- Browser diff reviewRenders the working-tree diff in a local browser UI on localhost:3000.
- Line commentsCollects comments on new or old file lines plus an overall verdict as JSON.
- SSH port forwardingPrints an ssh -L command so the user can review from their own machine.
- Base selectionThe --base option sets the ref to diff against, and --committed reviews branch work only.
- Automatic exitExits after 120 seconds if no browser opens the review page.
What you need
- Node.js
- A git repository
- A browser on the same machine or access through an SSH-forwarded port
Try asking
- Open a browser review of my pending changes before I commit.
- Review my committed branch work in the browser before I open a PR.
- Address the line comments I left in the browser review.
Good to know
- Exits with code 4 after 120 seconds if no one opens the page, unless --force is used.
- Exits with code 3 when there is nothing to review against the chosen base.
- Uses port 3000 by default, and a stale server may need to be stopped first.
- Meant for sessions where a user is present to open a browser.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/diff-review/SKILL.md, .claude/skills/diff-review/server.mjs, .claude/skills/diff-review/vendor/node_async_hooks.mjs, .claude/skills/diff-review/vendor/node_buffer.mjs, .claude/skills/diff-review/vendor/node_events.mjs, .claude/skills/diff-review/vendor/node_process.mjs, .claude/skills/diff-review/vendor/node_tty.mjs. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
server.mjs17 KB -
ui.html16 KB -
vendor/README.md2 KB -
vendor/node_async_hooks.mjs3 KB
Show all 10 files
-
vendor/node_buffer.mjs28 KB -
vendor/node_events.mjs12 KB -
vendor/node_process.mjs8 KB -
vendor/node_tty.mjs685 B -
vendor/pierre-diffs-1.2.12.mjs.gz1753 KB
Alternatives to diff-review
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
diff-review: common questions
Does my diff go to a third-party service?
No. The UI is self-contained and vendors @pierre/diffs, so no third-party CDN sees the diff.
Can I review changes from my own machine over SSH?
Yes. When the machine looks remote, the server prints the ssh -L port-forwarding command to run on your machine.
What does the --committed option do?
It diffs base..HEAD and ignores the working tree, so uncommitted or untracked edits stay out of the review.
How do I install diff-review?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is diff-review free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is diff-review safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to diff-review?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
