vibediff
/vibediff
Control VibeDiff code review instances — fetch review comments, reply to threads, create comments, resolve/reopen threads, and manage review state. Use when the user says /vibediff, "check vibediff", "get review comments", "reply to review comment", "resolve vibediff comment", or when working on code changes that have active VibeDiff review comments.
- Author
- meain ↗
- Repository
- dotfiles ↗
- Licence
- MIT
- Last repository change
- 08.10.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 17
No signals detected. Repository changed on 08.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: vd.py
What it does and when to use it
Control VibeDiff code review instances — fetch review comments, reply to threads, create comments, resolve/reopen threads, and manage review state. Use when the user says /vibediff, "check vibediff", "get review comments", "reply to review comment", "resolve vibediff comment", or when working on code changes that have active VibeDiff review comments.
Triggers from the description
Original author description
Control VibeDiff code review instances — fetch review comments, reply to threads, create comments, resolve/reopen threads, and manage review state. Use when the user says /vibediff, "check vibediff", "get review comments", "reply to review comment", "resolve vibediff comment", or when working on code changes that have active VibeDiff review comments.
How it works
- When to use
- Helper script (use this first)
- How it works
- Directory registry
- Common operations
- Comment object structure
- Workflow patterns
- Notes
SKILL.md preview
---
name: vibediff
description: >
Control VibeDiff code review instances — fetch review comments, reply to
threads, create comments, resolve/reopen threads, and manage review state.
Use when the user says /vibediff, "check vibediff", "get review comments",
"reply to review comment", "resolve vibediff comment", or when working on
code changes that have active VibeDiff review comments.
---
# VibeDiff Integration
Interact with VibeDiff code review instances - fetch review comments, reply to threads, resolve comments, and manage review state.
## When to use
- User says "check vibediff", "get review comments", "vibediff review", "reply to review comment"
- User asks to resolve/close VibeDiff comments
- Working on code changes that have active VibeDiff review comments
- User mentions VibeDiff by name or asks about review feedback
## Helper script (use this first)
`vd.py` in this skill directory wraps the common chores. It defaults `--dir` to the cwd and uses `VIBEDIFF_URL` (default `http://localhost:8888`).
```bash
VD=~/.claude/skills/vibediff/vd.py
$VD comments # open threads in the cwd repo, with replies
$VD comments --rev trswtrqn # filter by revision prefix (jj change id)
$VD comments --author user # only threads a human started
$VD comments --all --json # include resolved threads, as JSON (with replies)
$VD reply <id> "Fixed in wip abc" # reply as agent:claude; --resolve also resolves
$VD reply <id> - < msg.txt # reply text from stdin (multi-line)
$VD post --rev <change-id> --file path/to/x.go --line 42 [--line-end 44] [--name reviewer] "text"
$VD resolve <id>... / $VD reopen <id>...
$VD revisions [--limit 10]
```
Replies must include `directory` even though the API inherits the other fields. Without it the server answers `400 directory is required`, and it's easy to miss when the output is discarded. The script always sends it, and exits non-zero with the server's message on any HTTP error.
A human reply can sit under an agent's root comment, so `comments --author user` (which filters on the root author) can miss it. To catch every thread a human touched, check `comments` without `--author`.
## How it works
VibeDiff runs as a local HTTP server (default port 8888) that can review **multiple repositories** at once. Directory is a **per-request parameter** — there is no server-side "current directory" state. Each API call must include the `directory` query param (or body field for POSTs).
Each instance provides:
- REST API for comments, diffs, and revisions (all require `directory`)
- Directory registry for managing known repos
- WebSocket for real-time updates (messages include `directory`)
- MCP server for agent integration
### Finding the running instance and active directories
```bash
# Check VibeDiff is up and list registered directories
curl http://localhost:8888/api/directories
# Instance-specific docs (always check if API behavior seems wrong)
curl http://localhost:8888/docs
# If on a different port, search all listening ports
lsof -iTCP -sTCP:LISTEN
```
The `/docs` endpoint provides instance-specific API documentation with the current base URL, registered projects, and endpoint reference.
## Directory registry
### List registered directories
```bash
curl http://localhost:8888/api/directories
# ["\/path\/to\/repo-a", "\/path\/to\/repo-b"]
```
### Register a new directory
```bash
curl -X POST http://localhost:8888/api/directories \
-H 'Content-Type: application/json' \
-d '{"directory":"/path/to/repo"}'
# Returns: {"directory":"/path/to/repo","backend":"jj"}
```
### Get backend info for a directory
```bash
curl 'http://localhost:8888/api/directory?directory=/path/to/repo'
# {"directory":"/path/to/repo","backend":"git"}
```
## Common operations
### Fetch review comments
All comment endpoints require `?directory=...`.
```bash
DIR="/path/to/repo"
# All comments for a directory
curl "http://localhost:8888/api/review/comments?directory=$DIR"
# Open comments only (across all directories — no dir param needed)
curl http://localhost:8888/api/review/comments/open
# Filter by revision
curl "http://localhost:8888/api/review/comments?directory=$DIR&revision=abc123xyz"
# Filter by file
curl "http://localhost:8888/api/review/comments?directory=$DIR&file=path/to/file.go"
```
### Reply to comments
**Important**: When replying (setting `parentId`), only provide `content`, `author`, and `parentId`. The API automatically inherits `file`, `line`, `lineEnd`, `revision`, and `directory` from the parent comment.
```bash
curl -X POST http://localhost:8888/api/review/comment \
-H 'Content-Type: application/json' \
-d '{
"content": "Your reply text here",
"author": "agent",
"authorName": "explainer",
"parentId": "parent-comment-id"
}'
```
Always set `"author": "agent"` when creating replies. Optionally set `authorName` (max 50 chars) to tag which kind of agent posted the comment (e.g. `"explainer"`) — the UI renders it as `agent:<authorName>`.
### Create new comment
```bash
curl -X POST http://localhost:8888/api/review/comment \
-H 'Content-Type: application/json' \
-d '{
"directory": "/path/to/repo",
"file": "path/to/file.go",
"line": 42,
"lineEnd": 44,
"content": "Comment text",
"author": "agent",
"revision": ""
}'
```
`directory` is required for root comments. Leave `revision` empty for working-copy comments. Always set `"author": "agent"`.
### Resolve/reopen comments
```bash
# Resolve
curl -X POST http://localhost:8888/api/review/comment/{id}/resolve
# Reopen
curl -X POST http://localhost:8888/api/review/comment/{id}/reopen
```
No `directory` param needed — the server looks it up from the stored comment.
### Get diff and revisions
All diff/revision endpoints require `?directory=...`.
```bash
DIR="/path/to/repo"
# Current working copy diff
curl "http://localhost:8888/api/diff?directory=$DIR"
# Diff for specific revision
curl "http://localhost:8888/api/diff?directory=$DIR&revision=abc123"
# List recent revisions
curl "http://localhost:8888/api/revisions?directory=$DIR&limit=10"
```
**jj repos**: VibeDiff uses **jj change IDs**, not git commit hashes. Always resolve a revision to its change ID before using it as a `revision` parameter:
```bash
# Get change ID for a specific revision
jj log --no-graph -r '<rev>' --template 'change_id' -R $DIR
# Get change ID for working copy
jj log --no-graph -r '@' --template 'change_id' -R $DIR
```
Confirm via `GET /api/revisions` — the `id` field is always the jj change ID.
## Comment object structure
```json
{
"id": "a1b2c3d4",
"directory": "/path/to/repo",
"file": "internal/git/parser.go",
"line": 42,
"lineEnd": 44,
"content": "Why is this offset by one?",
"author": "user",
"authorName": "",
"status": "open",
"parentId": "",
"revision": "",
"commit": "abc1234",
"createdAt": "2026-06-16T15:04:05Z"
}
```
`authorName` is optional and typically only set on agent comments/replies (see above).
Replies have `parentId` set. All comments in the API response are flat — group by `parentId` to build threads.
## Workflow patterns
### Address review comments
1. List registered directories to find the repo: `GET /api/directories`
2. Fetch open comments: `GET /api/review/comments?directory=...`
3. Make code changes to address feedback
4. Reply to each comment explaining the fix
5. Optionally resolve the thread
### Review summary
1. Get registered directories
2. Fetch current diff and open comments for the target directory
3. Provide summary of changes and outstanding feedback
## Notes
- VibeDiff stores comments in `~/.config/vibediff/comments/<sha256-of-path>.json`
- Comments are scoped to revisions via the `revision` field
- The `directory` field on a comment tells the server where to save it — always include it for root comments
- Only one MCP session allowed per instance
- WebSocket at `/api/ws` — messages include a `directory` field so clients can filter by repo
- Full API docs at `/docs` endpoint
Files in this package (2)
- SKILL.md 8 KB
- vd.py 6 KB
Versions
The database has no other skills named vibediff.
Database snapshot: 13.11.2026 · package version 4a8445ad6562 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100vibediff-review
Run /code-review on the current diff and post the findings as inline comments in VibeDiff, tagged as agent:reviewer. Use when the user says /vibediff-review, "review and post to vibediff", "code review this into vibediff", or asks for a code review to show up as VibeDiff… - 100vibediff-explain
Explain a jj revision by fetching its diff and adding explanatory comments in VibeDiff to document WHY changes were made. Use when the user says /vibediff-explain, "explain this commit in vibediff", "add comments to vibediff", "explain this revision in vibediff", or asks to… - 100review-pr-comments
Fetch PR review comments via gh CLI, classify them (valid & fix / valid & skip / invalid), fix the valid ones, reply and resolve the threads, and fix any CI failures. Invoke only when the user types /review-pr-comments — never auto-trigger. - 90github:pr-comments
Fetch, reply to, and resolve review threads on a GitHub pull request. Use when checking what review feedback needs addressing, whether threads are resolved, replying to review comments, or clearing AI-reviewer threads after acting on them. - 100pr-comment-resolving
Find and address all unresolved GitHub PR review comments on the current branch's pull request. Use when the user asks to resolve, address, respond to, or reply to PR review feedback — whether from humans, CodeRabbit, Copilot, Claude Code reviewer, or any other source. Triggers… - 100gh-review-comments
List, reply to, resolve, and create GitHub PR review comment threads using gh CLI scripts. Use when managing code review feedback, replying to reviewer remarks, resolving review conversations, creating reviews with line-level comments, or bulk-processing threads by author.