本文へスキップ
Skillpedia
一般的なプログラミング13k · #11382

calldiff

できること

二つのgitのコミットまたは作業ツリーの間で、関数呼び出しの連鎖がどう変わったかを示します。変更をレビューし、その変更がプログラムの動き方にどう影響するかを見たい開発者向けです。

使う場面

  • ✓変更をレビューしていて、どの呼び出しが追加または削除されたかを見たいとき。
  • ✓更新の後に、ある関数が特定の入口から到達できるかを知りたいとき。
  • ✓テキストの差分だけでなく、実行パスの差分がほしいとき。

スキルのリンク

https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/calldiff/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/calldiff/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“mainと現在のブランチの間で、関数の呼び出しのパスがどう変わったかを見せてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、calldiffコマンドを実行し、二つのgitの参照の間で呼び出しのツリーを比べます。そして変更を、色付きの差分のブロックで示します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Installation

If the calldiff command is unavailable, install the latest version globally:

npm install -g calldiff@latest

Presenting output

Whenever showing calldiff output to the user, wrap it in a fenced diff code block so additions and removals receive colored syntax highlighting:

```diff
<calldiff output>
```

calldiff diff

Diff call stacks between two git trees

Arguments

Name Type Required Description
from string no Before ref (default: HEAD)
to string no After ref (default: working tree)
paths array no Limit to these path prefixes

Options

Flag Type Default Description
--entry unknown
--maxDepth number 12 Max call-tree depth
--from string Left / "before" tree
--to string Right / "after" tree

Examples

# HEAD vs working tree
calldiff diff

# One ref vs working tree
calldiff diff main

# Two commits / branches
calldiff diff abc123 def456

# Force entrypoints
calldiff diff main feature --entry createAgentSession

Semantics match git diff: no refs -> HEAD vs worktree; one ref -> that vs worktree; two refs -> compare those trees.


calldiff reach

Find all call paths from an entrypoint to a target symbol

Arguments

Name Type Required Description
ref string no Git ref (default: working tree)
paths array no Limit to these path prefixes

Options

Flag Type Default Description
--entry unknown Entrypoint(s): functionName or ClassName.method
--to string Target symbol to reach (functionName or ClassName.method)
--maxDepth number 12 Max call-tree depth

Examples

# Paths in the working tree
calldiff reach --entry runCheckout --to sendEmail

# Paths at a commit, limited to a directory
calldiff reach HEAD examples/checkout --entry runCheckout --to sendEmail

calldiff tree

View a call tree (no diff) for one or more entrypoints

Arguments

Name Type Required Description
ref string no Git ref (default: working tree)
paths array no Limit to these path prefixes

Options

Flag Type Default Description
--entry unknown Entrypoint(s): functionName or ClassName.method
--maxDepth number 12 Max call-tree depth

Examples

# Tree from working tree
calldiff tree --entry createAgentSession

# Tree from a commit
calldiff tree HEAD --entry PiService.createAgentSession
よくある質問

どの言語に対応していますか?

説明では、呼び出しのスタック解析のために22の言語に対応しているとされています。

何かをインストールする必要がありますか?

calldiffコマンドがない場合、エージェントはnpmでグローバルにインストールします。

参照を指定しない場合は何を比べますか?

git diffと同じように、HEADと現在の作業ツリーを比べます。

詳細

作者による元の説明

Diff call stacks across git commits for agentic code review (22 languages). Run `calldiff --help` for usage details.

repo: humanlayer/humanlayer

人気

GitHubのスター
13k
ランキング
#11382
ライセンス
Apache-2.0
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル