difit

View Git diffs in a browser and generate AI review prompts.

3|Updated Sep 13, 2019
One-click install
npx skills add https://github.com/MH4GF/dotfiles --skill difit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: difit
Source: https://github.com/MH4GF/dotfiles/tree/main/.claude/skills/difit
Command: npx skills add https://github.com/MH4GF/dotfiles --skill difit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a web-based git diff viewer with AI prompt generation to simplify code reviews, letting you review diffs more efficiently and generate AI-assisted feedback.

Core Features & Use Cases

  • Web UI for diffs: View uncommitted, staged, and commit diffs in a browser.
  • AI Prompt Generation: Generate review prompts and feedback for selected lines or changes.
  • Copy & Share Prompts: Copy the AI prompt to paste into your preferred AI assistant for faster code reviews.
  • Workflow: Pipe git diff or git show into bunx along with difit to launch the viewer; click lines to annotate; copy prompts for AI feedback.

Quick Start

Pipe the current diff to bunx using bash: git diff | bunx difit # run_in_background: true. Then open the browser, select lines to generate AI review prompts, and paste the prompt into your AI assistant for feedback.

Frequently Asked Questions about difit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review git diffs in a web browser instead of the terminal?

difit is a web-based git diff viewer that pipes git diff or git show output into a browser interface. Run `git diff | bunx difit` to launch an interactive viewer where you can read diffs with syntax highlighting and annotate specific lines for code review.

Can I generate AI prompts from git diffs for code review?

Yes. difit lets you select lines or sections of a diff and generates AI-assisted review prompts. Copy the generated prompt and paste it into your preferred AI tool to receive structured feedback on the changes.

What types of git changes can I view with difit?

difit handles uncommitted changes, staged changes, specific commits, and branch comparisons. Pipe any git diff or git show output into the viewer to compare versions across your repository.

How do I use difit in my code review workflow?

Pipe git diff into bunx difit, open the browser-based viewer, click lines to annotate them, then copy the generated AI prompt to share with your AI assistant or team for faster, structured code feedback.

Does difit require additional dependencies or configuration?

No dependencies are listed. difit runs via `bunx` and opens a web UI automatically. Pipe git output directly into the command with no setup required beyond having git and a modern browser available.