Skip to main content

diff-scope

Determine which git diff to analyze based on the user's request. Supports current diff, most recent commit, or current branch.

ソース情報

リポジトリ
jamiebrynes7/dotfiles
ソースの最終更新活動
2026年3月1日 13:45
検出された SKILL.md の言語
英語
スター
0
フォーク
0

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
diff-scope
description
Determine which git diff to analyze based on the user's request. Supports current diff, most recent commit, or current branch.
cc:user-invocable
false
cc:allowed-tools
Bash(git diff:*), Bash(git merge-base:*), Bash(git rev-parse:*)
# Diff Scope Determine which git diff to analyze based on the user's request. ## Current diff (default) Use when the user mentions "current changes", "my diff", "uncommitted changes", or does not specify a scope. ```bash git diff HEAD ``` This combines both staged and unstaged changes against HEAD. ## Most recent commit Use when the user mentions "last commit", "most recent commit", or "previous commit". ```bash git diff HEAD~1..HEAD ``` ## All commits on the current branch Use when the user mentions "branch changes", "all commits", "changes since main", or "this branch". First, detect the default branch: ```bash git rev-parse --verify main 2>/dev/null && echo main || echo master ``` Then diff against it using the merge-base: ```bash git diff $(git merge-base <default-branch> HEAD)..HEAD ``` --- If the selected diff is empty, STOP and tell the user there are no changes to analyze.
GitHubで見る