difit

📁 yoshiko-pg/difit 📅 12 days ago
92
总安装量
85
周安装量
#4611
全站排名
安装命令
npx skills add https://github.com/yoshiko-pg/difit --skill difit

Agent 安装分布

kimi-cli 82
gemini-cli 82
amp 82
github-copilot 82
codex 82
opencode 82

Skill 文档

This skill requests a code review from the user using the difit command. If the user leaves review comments, they are printed to stdout when the difit command exits. When review comments are returned, continue work and address them. If the server is shut down without comments, treat it as “no review comments were provided.”

Commands

  • Review the HEAD commit: difit
  • Review uncommitted changes before commit: difit .

Basic Usage

difit <target>                    # View single commit diff
difit <target> [compare-with]     # Compare two commits/branches

Single commit review

difit          # HEAD (latest) commit
difit 6f4a9b7  # Specific commit
difit feature  # Latest commit on feature branch

Compare two commits

difit @ main         # Compare with main branch (@ is alias for HEAD)
difit feature main   # Compare branches
difit . origin/main  # Compare working directory with remote main

Special Arguments

difit supports special keywords for common diff scenarios:

difit .        # All uncommitted changes (staging area + unstaged)
difit staged   # Staging area changes
difit working  # Unstaged changes only

Constraints

Can only be used inside a Git-managed directory.