difit-review
Skill2 starsChanged 6 months agoMITView on GitHub
A skill for reviewing a specific diff and showing the findings as comments inside difit (the diff viewer). Use it to review branch diffs, commit diffs, or GitHub PRs, then preload findings or code explanations into difit with `--comment` before launching it for the user.
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- yoshiko-pg/difitedited, first seen Oct 8, 2026
- TrimVis/skillstheir own version, first seen Aug 14, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- yoshiko-pg/difit★ 3.2k81% same
Wrote their own version · 1
- TrimVis/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- user-scope/AGENTS.mdAGENTS.md
- user-scope-backup-2026-07-04/CLAUDE.mdCLAUDE.md
- user-scope/CLAUDE.mdCLAUDE.md
- difitSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Before running commands, choose <difit-command> using the following rule:
- Very specific: line 14
If command -v difit succeeds, use difit.
- Very specific: line 16
If falling back to npx difit would require network access in a sandboxed environment without network permission, request escalated …
- Very specific: line 39
Use <difit-command> <target> [compare-with] to specify the target diff.
- Very specific: line 43
Use type: "thread" for each comment.
- Distinctive: line 44
Write comment bodies in the language the user is using.
- Very specific: line 45
Use position.side: "new" for lines that exist on the target side of the diff.
- Very specific: line 46
Use position.side: "old" for lines that exist only on the deleted side.
- Distinctive: line 47
Use range comments for issues that span multiple lines.
- Very specific: line 48
Never copy secrets, tokens, passwords, API keys, private keys, or other credential-like material from the diff into --comment bodies or any …
- Distinctive: line 53
If there were no comments to attach, explicitly say so.
- Distinctive: line 54
No manual verification of the launched difit page is required.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Difit Review
Overview
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:
- If
command -v difitsucceeds, usedifit. - Otherwise, use
npx difit. - If falling back to
npx difitwould require network access in a sandboxed environment without network permission, request escalated permissions and user approval before running it.
Steps
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.
- Identify the target diff and review its contents.
- Inspect the diff specified by the user. This may be a local git revision, a GitHub URL, a patch file, or something similar.
- Understand the diff normally, inspect surrounding code when needed, and think through the response required by the user's request, whether that is review findings, explanations, or something else.
- For PR reviews, inspect the PR locally and keep the review result limited to difit output. Do not post comments back to remote GitHub.
- Attach the prepared comments and launch difit.
- difit launch options
- Use
<difit-command> <target> [compare-with]to specify the target diff. - For uncommitted changes use
<difit-command> ., for working tree changes use<difit-command> working, and for staged changes use<difit-command> staging. - For stdin input, use a form such as
diff -u file1.txt file2.txt | <difit-command>.
- Use
- Comment arguments
- Use
type: "thread"for each comment. - Write comment bodies in the language the user is using.
- Use
position.side: "new"for lines that exist on the target side of the diff. - Use
position.side: "old"for lines that exist only on the deleted side. - Use range comments for issues that span multiple lines.
- Never copy secrets, tokens, passwords, API keys, private keys, or other credential-like material from the diff into
--commentbodies or any command-line arguments.
- Use
- Additional argument for files not yet added to git
- For uncommitted changes, if you decide files not yet added to git should also appear in the diff, add
--include-untracked.
- For uncommitted changes, if you decide files not yet added to git should also appear in the diff, add
- Share the difit URL and finish the response.
- If there were no comments to attach, explicitly say so.
- No manual verification of the launched difit page is required.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

