본문으로 건너뛰기
Skillpedia
일반 코딩12k · #11525

prepare-branch-context

하는 일

이 스킬은 AI가 현재 코드 브랜치의 변경 사항과 관련 풀 리퀘스트 및 댓글을 읽도록 합니다. 작업을 시작하기 전에 AI가 상황을 파악하기를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓브랜치로 돌아와서 AI가 무엇이 바뀌었는지 따라잡기를 원할 때.
  • ✓리뷰 전에 브랜치에 무엇이 있는지 AI에게 설명을 요청할 때.
  • ✓작업을 이어 가기 전에 AI가 풀 리퀘스트 댓글을 읽기를 원하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/trycompai/crm/blob/release/.agents/skills/prepare-branch-context/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“작업을 바꾸기 전에 이 브랜치에 무엇이 있는지 저에게 요약해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 git 명령을 실행해 브랜치를 main과 비교하고, 커밋 기록과 풀 리퀘스트를 읽은 뒤 짧은 요약을 제공합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.
자주 묻는 질문

이 스킬에는 GitHub 명령줄 도구가 필요한가요?

네. 관련 풀 리퀘스트를 찾기 위해 gh 명령을 사용하므로, 해당 도구가 설치되어 있어야 합니다.

AI는 무엇을 보고하나요?

브랜치의 목적, 주요 변경 파일, 중요한 결정, 열린 리뷰 댓글, 작업의 현재 상태를 요약합니다.

코드를 바꾸나요?

나열된 단계는 차이점(diff), 기록, 풀 리퀘스트 같은 브랜치 정보를 읽기만 합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
12k
순위
#11525
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬