Pular para o conteúdo
Skillpedia
Código em geral12 mil · #11525

prepare-branch-context

O que ela faz

Esta skill faz a sua IA ler as alterações feitas na sua branch de código atual, além do pull request relacionado e dos comentários dele. Ela é para desenvolvedores que querem que a IA se atualize antes de trabalhar em uma tarefa.

Quando usar

  • ✓Quando você volta a uma branch de código e quer que a IA se atualize sobre o que ela muda.
  • ✓Quando você pede à sua IA que explique o que há em uma branch antes de uma revisão.
  • ✓Quando você quer que a IA leia os comentários do pull request antes de continuar o trabalho.

Link da skill

https://github.com/trycompai/crm/blob/release/.agents/skills/prepare-branch-context/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/trycompai/crm/blob/release/.agents/skills/prepare-branch-context/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

“Me atualize sobre o que há nesta branch antes de fazermos qualquer alteração.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill executa comandos do git para comparar a sua branch com a main, lê o histórico de commits e o pull request, e depois apresenta um resumo curto.

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

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

Prepare Branch Context

Build a comprehensive understanding of the current branch so you can handle followup requests with full context.

Steps

  1. Identify the current branch and base branch:

    git branch --show-current
    git merge-base HEAD main
    
  2. Gather the diff from main:

    git diff main...HEAD --stat
    git diff main...HEAD
    

    Read through the full diff carefully. Understand what files were changed, added, or removed, and what the changes do.

  3. Review the commit history on this branch:

    git log main..HEAD --oneline
    

    Read commit messages to understand the progression of changes.

  4. Check for a related PR:

    gh pr list --head "$(git branch --show-current)" --json number,title,body,url,state,comments --jq '.[0]'
    

    If a PR exists, read its title, description, and comments for additional context (acceptance criteria, discussion, review feedback).

  5. Summarize your understanding to the user:

    • What this branch does (high-level purpose)
    • Key files and areas of the codebase affected
    • Notable decisions or patterns visible in the changes
    • Any open review comments or discussion from the PR
    • Current state (clean, uncommitted changes, etc.)
  6. Signal readiness: Tell the user you're ready for followup questions or tasks related to this branch.

Rules

  • Do NOT make any changes to files. This skill is read-only.
  • Read the actual diff content, not just the stat summary. You need to understand the code changes.
  • If there's no PR, that's fine — just skip that step and note it.
  • If the diff is very large, focus on understanding the overall structure first, then read key files in detail.
  • Keep the summary concise but thorough enough that you could confidently make changes to this branch.
  • If the branch is main or has no divergence from main, tell the user there's nothing to analyze.
Perguntas frequentes

Esta skill precisa da ferramenta de linha de comando do GitHub?

Sim. Ela usa o comando gh para encontrar o pull request relacionado, então essa ferramenta precisa estar instalada.

O que a IA informa de volta?

Ela resume o objetivo da branch, os principais arquivos afetados, decisões relevantes, comentários de revisão em aberto e o estado atual do trabalho.

Ela altera algum código?

Os passos listados apenas leem informações sobre a branch, como o diff, o histórico e o pull request.

Detalhes

Descrição original do autor

Analyze the current branch's diff from main and related PR to build context for followup requests. Triggers on "prepare context", "branch context", "catch me up", "what's on this branch".

repo: trycompai/crm

Popularidade

Estrelas no GitHub
12 mil
Posição no ranking
#11525
Licença
MIT
Atualizada em
01/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas