Pular para o conteúdo
Skillpedia
Código em geral33 mil · #9144

review-pr

O que ela faz

Esta skill guia o agente na revisão de todos os commits de um pull request ou branch com a ferramenta code-review-graph. É voltada para desenvolvedores e revisores que trabalham com pull requests.

Quando usar

  • ✓Quando você quer uma revisão estruturada de um pull request antes do merge.
  • ✓Quando precisa verificar se mudanças em APIs públicas atualizaram todos os seus chamadores.
  • ✓Quando quer um resumo de risco cobrindo todos os commits de uma branch.

Link da skill

https://github.com/tirth8205/code-review-graph/blob/staging/skills/review-pr/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/tirth8205/code-review-graph/blob/staging/skills/review-pr/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

“Você pode revisar a branch feature-login em relação à main e me dizer os riscos?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente compara a branch com a main, verifica funções arriscadas e seus chamadores e testes, e depois lê os arquivos de maior impacto.

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

Texto original do autor, em inglês, direto do GitHub.

Review PR

Review all commits of a pull request or branch against its base branch.

Steps

  1. Identify the changes. With a branch name run git diff --name-only main...<branch>; otherwise diff the current branch against main (or master). Use that ref as base below.
  2. Call get_minimal_context_tool(task="review PR", base="main"). If it returns status: not_ready, call build_or_update_graph_tool() and continue.
  3. Call detect_changes_tool(base="main", detail_level="minimal") for risk-scored changed functions, test gaps and affected flows across the whole branch.
  4. For high-risk functions call query_graph_tool(pattern="callers_of", target="<function>") and query_graph_tool(pattern="tests_for", target="<function>"). Flag public API changes whose callers were not updated.
  5. Call get_review_context_tool(base="main") for source snippets, or get_impact_radius_tool(base="main") for the full dependent list, only when step 3 leaves a high-risk item unclear.
  6. Read the changed source of the highest-impact files first. Do not load whole files unless the change needs it.

Output

## PR Review: <title>

### Summary
<1-3 sentences>

### Risk
- Overall: Low / Medium / High
- Blast radius: <n> files, <m> functions
- Test coverage: <covered> of <changed> changed functions

### Files
#### <path>
- Changes: <what>
- Impact: <who depends on it>
- Issues: <bugs, style, concerns>

### Missing Tests
- <function> in <file>

### Recommendations
1. <action>

Tips

  • Use semantic_search_nodes_tool to find related code the PR may have missed.
Perguntas frequentes

Qual branch base ela usa?

Ela usa a branch que você indicar, ou compara a branch atual com main ou master.

Como é a saída?

É uma revisão estruturada com resumo, nível de risco, arquivos e contagens de cobertura de testes.

Ela sinaliza mudanças em APIs?

Sim. Ela sinaliza mudanças em APIs públicas cujos chamadores não foram atualizados.

Detalhes

Descrição original do autor

Review a PR or branch diff using the knowledge graph for full structural context. Outputs a structured review with blast-radius analysis.

repo: tirth8205/code-review-graph

Popularidade

Estrelas no GitHub
33 mil
Posição no ranking
#9144
Licença
MIT
Atualizada em
29/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas