Agent skill

Difit Review

by yoshiko-pg in yoshiko-pg/difit

A skill for reviewing a specific diff and showing the findings as comments inside difit (the 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/.codex/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
~764 tokens
SKILL.md length
375 words
Files
2
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

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

  • Review branch diffs
  • SKILL.md covers Overview and Steps
  • Calls pnpm
  • Then preload findings

What it does

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

Its SKILL.md is about 760 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 Technical documentation. It works with GitHub and pnpm. 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

  • Review branch diffs
  • Then preload findings
  • Code explanations into difit with --comment before launching it for the user

Example prompts

  • “/difit-review”

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:

    • pnpm

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

  • Network

    No URLs in SKILL.md. Its commands use pnpm, 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 764 tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 375 words of instructions outside code blocks.

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

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). 375 words, ~764 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
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.
metadata.internal
true

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.

In this local repository copy, use pnpm run dev instead of the installed difit command.

Steps

The final command typically looks like this:

bash
pnpm run dev <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.
  • pnpm run dev launch options
    • Use pnpm run dev <target> [compare-with] to specify the target diff.
    • Do not insert -- after pnpm run dev in this repository. pnpm run dev -- ... breaks argument parsing here.
    • For uncommitted changes use pnpm run dev ., for working tree changes use pnpm run dev working, and for staged changes use pnpm run dev staging.
    • For stdin input, use a form such as diff -u file1.txt file2.txt | pnpm run dev.
  • 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 .codex/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—~764Automated safety check: PassMIT
Releaseemanuelcasco/pi-mono-extensions106—~2.3kAutomated safety check: PassMIT
Chinese Indie Dev1c7/chinese-independent-developer62k—~8.7kAutomated safety check: PassNone
Update .NET OS Packagesdotnet/core22k—~2.3kAutomated safety check: PassMIT
Verdaccio Pull Request Workflowverdaccio/verdaccio18k—~1.9kAutomated safety check: PassMIT
Beautify GitHub Readmeoil-oil/beautify-github-readme1.8k—~4.1kAutomated safety check: PassMIT

Similar skills

  • Release

    emanuelcasco/pi-mono-extensions

    Release a new version of pi-extensions: bump individual package versions (independent mode), update CHANGELOGs and READMEs, create per-package git tags, publish a GitHub release, and publish…

    106 GitHub stars~2.3k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Chinese Indie Dev

    1c7/chinese-independent-developer

    处理 1c7/chinese-independent-developer 仓库的项目提交. An agent skill from 1c7/chinese-independent-developer.

    62k GitHub stars~8.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    Audits and updates os-packages.json files listing the Linux packages each .NET release needs per distro, then regenerates the Markdown from the JSON.

    22k GitHub stars~2.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.

    18k GitHub stars~1.9k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Beautify GitHub Readme

    oil-oil/beautify-github-readme

    Redesign GitHub README homepages or create project-native pure SVG, hybrid SVG-composed PNG/WebP, and opt-in animated GIF assets.

    1.8k GitHub stars~4.1k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Official

    Audits and updates the supported-os.json files for .NET releases, checking them against upstream lifecycle data and regenerating the markdown with the release-notes tool.

    22k GitHub stars~4.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

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

    3.2k GitHub stars~1.2k 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?

A skill for reviewing a specific diff and showing the findings as comments inside difit (the diff viewer). Difit Review is an agent skill from yoshiko-pg/difit. A skill for reviewing a specific diff and showing the findings as comments inside difit (the diff viewer).

When should I use Difit Review?

Difit Review fits situations like: review branch diffs; then preload findings; code explanations into difit with --comment before launching it for the user.

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 (.codex/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 (.codex/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 (pnpm).

Does Difit Review access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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 764 tokens (SKILL.md is roughly 3.1k 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: Release (emanuelcasco/pi-mono-extensions, 106 stars), Chinese Indie Dev (1c7/chinese-independent-developer, 62k stars), Update .NET OS Packages (dotnet/core, 22k stars) and Verdaccio Pull Request Workflow (verdaccio/verdaccio, 18k 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.