Agent skill

Difit Review

by yoshiko-pg in yoshiko-pg/difit

Review a specific diff (branch, commit, or GitHub PR) and show the findings as comments inside difit, the local diff viewer.

MITAuto-check passedDevelopment

Install Difit Review

skills CLI
$ npx skills add yoshiko-pg/difit --skill difit-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yoshiko-pg/difit difit-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yoshiko-pg/difit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/difit-review .claude/skills/difit-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
difit-review
GitHub stars
3.2k
Token cost
~1.2k tokens
SKILL.md length
584 words
Files
2
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Review a specific diff (branch, commit, or GitHub PR) and show the findings as comments inside difit, the local diff viewer.

  • The user explicitly names difit
  • SKILL.md covers When to Use This Skill, Overview and Steps
  • Calls npx
  • Annotate the review in the difit viewer

What it does

Difit Review is an agent skill from yoshiko-pg/difit. 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.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development, covering Code review and Pull requests. It works with GitHub and Git. The repository describes itself as: A lightweight command-line tool that spins up a local web server to display Git commit diffs in a GitHub-like Files changed view. The licence is MIT.

When your agent uses it

  • The user explicitly names difit
  • Annotate the review in the difit viewer
  • Invokes this skill by name

Example prompts

  • “/difit-review”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 82a765c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Difit Review loads about 1.2k tokens when it runs. Until then it costs about 111 tokens; SKILL.md has 584 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~111
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from yoshiko-pg/difit at commit 82a765c, republished under its MIT licence (© yoshiko-pg). 584 words, ~1,163 tokens.

Download SKILL.mdSave it as .claude/skills/difit-review/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
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 Review

When to Use This Skill

difit opens an external browser UI and starts a long-running local server, so launching it must be explicit opt-in:

  • Use this skill only when the user explicitly names difit, asks to open, show, or annotate the review in the difit viewer, or invokes this skill by name.
  • Do NOT use it for ordinary review requests such as "review these changes", "use the reviewer agent", "find problems in this diff", or "review this PR/commit/branch". Perform those reviews normally and report the findings in your response.
  • When a request is ambiguous, prefer the non-difit review path.

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 difit succeeds, use difit.
  • Otherwise, use npx difit.
  • If falling back to npx difit would 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:

bash
<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.
  • 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.
  1. Attach the prepared comments and launch difit — or reuse a running server.
  • Reuse before launch
    • Keep at most one live difit server per Git root and review target. If a difit server you started earlier is still running for the same target, do not launch another or reopen its URL; add the new findings to it with <difit-command> comment add --port <port> '<json>' (same JSON shape as --comment) and let the open page pick them up.
    • If review rounds are expected to repeat, launch with --keep-alive or --background (a detached keep-alive server that prints JSON connection info such as {"port":4966,"url":"http://localhost:4966","pid":123} without auto-opening a browser), then use comment add / comment get --port <port> for later rounds.
  • 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> staged.
    • For stdin input, use a form such as diff -u file1.txt file2.txt | <difit-command>.
  • 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 --comment bodies or any command-line arguments.
  • 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.
Show full SKILL.md (29 more words)Show less
  1. 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.

© yoshiko-pg, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/difit-review of yoshiko-pg/difit.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 82a765c

Compare with similar skills

Difit Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Difit Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Difit Review this skillyoshiko-pg/difit3.2k—~1.2kAutomated safety check: PassMIT
PR Review State Fetchprisma/orm48k—~767Automated safety check: PassApache-2.0
Greploop Appsmichaelshimeles/skills1.3k1 repos~3.6kAutomated safety check: PassMIT
PR Triagertk-ai/rtk83k—~2.5kAutomated safety check: NotesApache-2.0
Address PR Feedback for ruby-gitruby-git/ruby-git1.8k—~657Automated safety check: PassMIT
ExecuTorch PR Reviewpytorch/executorch5.1k—~2.9kAutomated safety check: PassCustom licence

Similar skills

  • Official

    Fetches a pull request's canonical review state as JSON, validates it, and renders markdown, a text summary and triage target files from it using bundled scripts.

    48k GitHub stars~767 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Greploop Apps

    michaelshimeles/skills

    Loops on a large pull request, merge request or Perforce changelist, fixing Greptile findings until it scores 5/5 with no unresolved comments.

    1.3k GitHub starsUsed in 1 repo~3.6k tokens
    DevelopmentAuto-check passed
  • PR Triage

    rtk-ai/rtk

    Audits a repository's open pull requests, deep-reviews chosen ones and drafts review comments that are only posted after you approve them.

    83k GitHub stars~2.5k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Addresses unresolved pull request review threads and suppressed (low-confidence) Copilot review comments on the current branch, folds each fix into the…

    1.8k GitHub stars~657 tokensUpdated 9 days ago
    DevelopmentAuto-check passed
  • ExecuTorch PR Review

    pytorch/executorch

    Reviews ExecuTorch pull requests or local branches for what CI cannot check, using a checklist, with an optional detailed line-by-line mode.

    5.1k GitHub stars~2.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Official

    Checks a pull request for lines that undo a recent bug fix by comparing what the PR removes with what labeled bug-fix PRs added to the same files.

    23k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from yoshiko-pg/difit

  • Difit

    yoshiko-pg/difit

    Ask the user for a code review by opening the changes in difit, a local diff viewer.

    3.2k GitHub stars~1.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Difit Review

    yoshiko-pg/difit

    A skill for reviewing a specific diff and showing the findings as comments inside difit (the diff viewer).

    3.2k GitHub stars~764 tokensUpdated 1 mo ago
    Auto-check passed
  • Difit Dev

    yoshiko-pg/difit

    Ask the user for a code review through difit after code changes in this repository, using pnpm run dev.

    3.2k GitHub stars~708 tokensUpdated 1 mo ago
    Auto-check passed
  • Release

    yoshiko-pg/difit

    Execute the difit release workflow when the user says "リリース" or asks to cut a release.

    3.2k GitHub stars~688 tokensUpdated 1 mo ago
    Auto-check passed
  • Vscode Release

    yoshiko-pg/difit

    Execute the VS Code extension release workflow when the user asks to publish/release the difit VS Code extension.

    3.2k GitHub stars~518 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Difit Review

What does Difit Review do?

Review a specific diff (branch, commit, or GitHub PR) and show the findings as comments inside difit, the local diff viewer. Difit Review is an agent skill from yoshiko-pg/difit. Review a specific diff (branch, commit, or GitHub PR) and show the findings as comments inside difit, the local diff viewer.

When should I use Difit Review?

Difit Review fits situations like: the user explicitly names difit; annotate the review in the difit viewer; invokes this skill by name.

How do I install Difit Review in Claude Code?

Run `npx skills add yoshiko-pg/difit --skill difit-review -a claude-code`. Or copy the skill folder (skills/difit-review in yoshiko-pg/difit) into .claude/skills/difit-review in your project. Claude Code loads it when a task matches its description.

How do I install Difit Review in Codex?

Run `npx skills add yoshiko-pg/difit --skill difit-review -a codex`. Or copy the skill folder (skills/difit-review in yoshiko-pg/difit) into .agents/skills/difit-review in your project. Codex loads it when a task matches its description.

Can I use Difit Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yoshiko-pg/difit --skill difit-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/difit-review, .gemini/skills/difit-review, .github/skills/difit-review and .opencode/skills/difit-review in your project.

What does Difit Review need to run?

Going by SKILL.md and its folder, Difit Review needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Difit Review access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Difit Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Difit Review use?

Difit Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Difit Review use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Difit Review?

Skills that share tags, products or a category with Difit Review: PR Review State Fetch (prisma/orm, 48k stars), Greploop Apps (michaelshimeles/skills, 1.3k stars), PR Triage (rtk-ai/rtk, 83k stars) and Address PR Feedback for ruby-git (ruby-git/ruby-git, 1.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Difit Review?

yoshiko-pg (a GitHub user) maintains it in yoshiko-pg/difit, which has 3,240 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on August 28, 2026.

Source: yoshiko-pg/difit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.