Saltar al contenido
Skillpedia
Programación general12 mil · #11525

prepare-branch-context

Qué hace

Esta skill hace que tu IA lea los cambios de tu rama de código actual, además de la solicitud de cambios relacionada y sus comentarios. Es para desarrolladores que quieren que la IA se ponga al día antes de trabajar en una tarea.

Cuándo usarla

  • ✓Cuando vuelves a una rama de código y quieres que la IA se ponga al día sobre lo que cambia.
  • ✓Cuando pides a tu IA que explique lo que hay en una rama antes de una revisión.
  • ✓Cuando quieres que la IA lea los comentarios de la solicitud de cambios antes de seguir con el trabajo.

Link de la skill

https://github.com/trycompai/crm/blob/release/.agents/skills/prepare-branch-context/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/trycompai/crm/blob/release/.agents/skills/prepare-branch-context/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Ponme al día sobre lo que hay en esta rama antes de hacer cualquier cambio.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La skill ejecuta comandos de git para comparar tu rama con main, lee el historial de commits y la solicitud de cambios, y después te da un resumen breve.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes

¿Necesita la herramienta de línea de comandos de GitHub?

Sí. Usa el comando gh para encontrar la solicitud de cambios relacionada, así que esa herramienta debe estar instalada.

¿Qué informa la IA?

Resume el propósito de la rama, los archivos principales afectados, las decisiones relevantes, los comentarios de revisión abiertos y el estado actual del trabajo.

¿Cambia algún código?

Los pasos indicados solo leen información de la rama, como el diff, el historial y la solicitud de cambios.

Detalles

Descripción original del 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

Popularidad

Estrellas en GitHub
12 mil
Posición en el ranking
#11525
Licencia
MIT
Actualizada
1/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas