From bopen-tools
Displays git diffs with syntax highlighting, split view, and word-level diff in terminal UI or web preview. Supports watching changes, filtering files, comparing branches, and AI-powered code review explanations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bopen-tools:critiqueThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Review git diffs with syntax highlighting, split view, and word-level diff. Show users what code was changed during a session using terminal UI or web preview.
Review git diffs with syntax highlighting, split view, and word-level diff. Show users what code was changed during a session using terminal UI or web preview.
Critique requires Bun (does not work with Node.js):
# Run directly (no install needed)
bunx critique
# Or install globally
bun install -g critique
# Unstaged changes (includes untracked files)
critique
# Staged changes only
critique --staged
# Watch mode - auto-refresh on file changes
critique --watch
# Last commit
critique HEAD
# Specific commit
critique --commit HEAD~1
critique --commit abc1234
# Combined changes from last N commits
critique HEAD~3 HEAD
# What feature-branch added vs main
critique main feature-branch
# What current branch added vs main
critique main HEAD
# Filter by glob pattern
critique --filter "src/**/*.ts"
critique --filter "src/**/*.ts" --filter "lib/**/*.js"
Generate an HTML preview viewable in a browser - ideal for sharing or detailed review:
# Generate web preview
critique --web
# Generate and open in browser
critique --web --open
# Web preview for commits
critique HEAD --web --open
critique main HEAD --web --open
The web preview provides:
Generate AI explanations of code changes. Best for reviewing AI-generated changes:
# Review unstaged changes (uses OpenCode by default)
critique review
# Use Claude Code as the AI backend
critique review --agent claude
# Review specific commits
critique review HEAD
critique review --commit HEAD~1
# Review branch diff (like a PR)
critique review main HEAD
# Include session context for better explanations
critique review --agent claude --session <session-id>
# Generate web preview of AI review
critique review --web
critique review --web --open
AI review features:
Configure as default git difftool:
git config --global diff.tool critique
git config --global difftool.critique.cmd 'critique difftool "$LOCAL" "$REMOTE"'
Then use: git difftool HEAD~1
Add to ~/.config/lazygit/config.yml:
git:
paging:
pager: critique --stdin
Since the TUI runs inside the Bash tool (hidden/folded), use one of these approaches:
Open critique in a split pane that auto-closes when done:
# Horizontal split (top/bottom)
/path/to/skills/critique/scripts/open-critique-pane.sh /path/to/repo -h
# Vertical split (side by side)
/path/to/skills/critique/scripts/open-critique-pane.sh /path/to/repo -v
Open critique in a new tab:
/path/to/skills/critique/scripts/open-critique.sh /path/to/repo
Opens in browser - works everywhere:
bunx critique --web --open
When a user asks to see what changed after Claude has made modifications:
critique --web --open for browser viewcritique review --agent claude --web --opencritique HEAD~N HEAD --web --open| Key | Action |
|---|---|
j/k or ↓/↑ | Navigate lines |
h/l or ←/→ | Switch files |
Tab | Toggle split/unified view |
q | Quit |
? | Help |
npx claudepluginhub b-open-io/claude-plugins --plugin bopen-toolsReview diffs and files with inline annotations in a terminal TUI overlay. Works with git, hg, and jj repos. Also answers usage and configuration questions.
Self-review code changes using GitHub-style visual diff viewer (difit). Add comments on specific lines in browser; comments output to Claude for applying edits via git diff.
Reviews recent git diffs and commits with brutal honesty before PRs, spotting 2am logic flaws, copy-paste artifacts, debug leftovers, hacks, and poor naming.