Pular para o conteúdo
Skillpedia
Código em geral13 mil · #11382

calldiff

O que ela faz

Ele mostra como a cadeia de chamadas de funções mudou entre dois commits do git ou na árvore de trabalho. É para desenvolvedores que revisam mudanças e querem ver o efeito delas na forma como o programa roda.

Quando usar

  • ✓Quando você está revisando uma mudança e quer ver quais chamadas foram adicionadas ou removidas.
  • ✓Quando você precisa saber se uma função é alcançada a partir de um determinado ponto de entrada depois de uma atualização.
  • ✓Quando você quer um diff dos caminhos de execução, e não apenas do texto.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/calldiff/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Mostre como os caminhos de chamadas de funções mudaram entre a main e a minha branch atual.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente roda o comando calldiff para comparar as árvores de chamadas entre duas referências do git. Depois mostra as mudanças em um bloco de diff colorido.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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
Perguntas frequentes

Quais linguagens ele suporta?

A descrição diz que ele cobre 22 linguagens para análise de pilha de chamadas.

Preciso instalar alguma coisa?

Se o comando calldiff estiver faltando, o agente o instala globalmente com o npm.

O que ele compara se eu não informar referências?

Ele compara o HEAD com a árvore de trabalho atual, do mesmo jeito que o git diff faz.

Detalhes

Descrição original do autor

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

repo: humanlayer/humanlayer

Popularidade

Estrelas no GitHub
13 mil
Posição no ranking
#11382
Licença
Apache-2.0
Atualizada em
31/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas