スキル一覧に戻る
hyper-light

git-diff

by hyper-light

Multi-agent modular terminal client for those who like control.

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: git-diff description: Show changes between two commits or between a commit and the working tree. Returns file-by-file diff information including additions, deletions, and change hunks. allowed-tools: Bash metadata: category: git version: 1.0.0

Git Diff Skill

This skill shows changes between two commits or between a commit and the working tree, providing detailed diff information for each changed file.

Usage

The git-diff skill compares two points in the repository history and returns detailed information about what changed.

Parameters

ParameterTypeRequiredDefaultDescription
from_commitstringYes-Starting commit reference (hash, branch, tag, HEAD~n)
to_commitstringNoHEADEnding commit reference
pathstringNo-Filter diff to specific file or directory

Commit References

You can use various formats for commit references:

  • Full commit hash: abc123def456...
  • Short hash: abc123
  • Branch name: main, feature/auth
  • Tag: v1.0.0
  • Relative: HEAD~1, HEAD~3
  • Range: Compare between any two references

Example Usage

Show changes in the last commit:

Show diff from HEAD~1 to HEAD

Show changes between branches:

Show diff from main to feature/auth

Show changes for a specific file:

Show diff from HEAD~5 to HEAD for path /src/main.go

Result Format

The diff result includes:

  • List of changed files with:
    • File path (and old path if renamed)
    • Status (A=Added, M=Modified, D=Deleted, R=Renamed)
    • Number of additions and deletions
    • Change hunks with line numbers
  • Total additions across all files
  • Total deletions across all files

Status Codes

CodeMeaning
AAdded - New file
MModified - Existing file changed
DDeleted - File removed
RRenamed - File moved/renamed
CCopied - File copied

Best Practices

  1. Use relative references (HEAD~n) for recent changes
  2. Filter by path for large diffs
  3. Compare against main/master to see feature changes
  4. Check both additions and deletions for context

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です