Back to list
laststance

git-diff

by laststance

0🍴 0📅 Jan 15, 2026

SKILL.md


name: git-diff description: Display git changes in GitHub-style unified diff format with colored terminal output. Shows both staged (--cached) and unstaged changes with two-column line numbers, red/green highlighting, and chunk markers. Use when reviewing code changes, preparing commits, or comparing file modifications. Triggers on "git diff", "show changes", "what changed", or "review diff". allowed-tools: Bash, Read

git-diff

Display git changes in GitHub-style unified diff format.

Execution

Run the Python script to display formatted diff:

python3 scripts/github_diff.py [optional-path]

Output Format

  • File headers: Dark background with filepath
  • Line numbers: Two columns (old | new)
  • Deletions: Red background with - marker
  • Additions: Green background with + marker
  • Context: Neutral with both line numbers
  • Chunk markers: Cyan @@ -n,m +n,m @@ headers

Sections

  1. Staged Changes (git diff --cached) - shown first if present
  2. Unstaged Changes (git diff) - working directory modifications

Examples

# Show all changes
python3 scripts/github_diff.py

# Filter by path
python3 scripts/github_diff.py src/components/

Requirements

  • Python 3.6+
  • Git installed and in PATH
  • Terminal with ANSI color support

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon