difit-dev
Ask the user for a code review through difit after code changes in this repository, using `pnpm run dev`.
Review a specific diff (branch, commit, or GitHub PR) and show the findings as comments inside difit, the local diff viewer. Explicit opt-in only — use when the user explicitly names difit, asks to open or annotate the review in the difit viewer, or invokes this skill by name.
$ npx -y skills add yoshiko-pg/difit --skill difit-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/difit-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Review a specific diff (branch, commit, or GitHub PR) and show the findings as comments inside difit, the local diff viewer. Explicit opt-in only — use when the user explicitly names difit, asks to open or annotate the review in the difit viewer, or invokes this skill by name.
name: difit-review description: Review a specific diff (branch, commit, or GitHub PR) and show the findings as comments inside difit, the local diff viewer. Explicit opt-in only — use when the user explicitly names difit, asks to open or annotate the review in the difit viewer, or invokes this skill by name. For ordinary requests to review code, diffs, commits, branches, or pull requests, review normally and respond in the conversation without launching difit.
difit opens an external browser UI and starts a long-running local server, so launching it must be explicit opt-in:
This skill launches a requested git diff in a viewer that is easy for humans to read. At the same time, the agent can attach arbitrary comments via the `--comment` option. This comment mechanism is well suited for code review findings and code explanations. Before running commands, choose `<difit-command>` using the following rule:
The final command typically looks like this:
<difit-command> <target> [compare-with] \
--comment '{"type":"thread","filePath":"src/foobar.ts","position":{"side":"old","line":102},"body":"line 1\nline 2"}' \
--comment '{"type":"thread","filePath":"src/example.ts","position":{"side":"new","line":{"start":36,"end":39}},"body":"Range comment for L36-L39"}'The detailed procedure is as follows.
1. Identify the target diff and review its contents.
2. Attach the prepared comments and launch difit — or reuse a running server.
3. Share the difit URL and finish the response.
A lightweight command-line tool that spins up a local web server to display Git commit diffs in a GitHub-like Files changed view
Repo: yoshiko-pg/difit
Ask the user for a code review through difit after code changes in this repository, using `pnpm run dev`.
Ask the user for a code review by opening the changes in difit, a local diff viewer. Explicit opt-in only — use when the user names difit, asks to open or show…