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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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
Identify the current branch and base branch:
git branch --show-current git merge-base HEAD mainGather the diff from main:
git diff main...HEAD --stat git diff main...HEADRead through the full diff carefully. Understand what files were changed, added, or removed, and what the changes do.
Review the commit history on this branch:
git log main..HEAD --onelineRead commit messages to understand the progression of changes.
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).
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.)
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
mainor 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.
댓글
- …
이 저장소의 다른 스킬
ai-elements
12k에이전트가 대화, 메시지, 도구 표시, 프롬프트 입력을 위한 기성 컴포넌트로 AI 채팅 화면을 만들도록 돕습니다.
ai-sdk
12k에이전트가 Vercel AI SDK로 텍스트 생성, 스트리밍, 도구 호출, 에이전트를 포함한 AI 기능을 만들도록 돕습니다.
better-accessibility
12k에이전트가 키보드와 스크린 리더로도 사용할 수 있도록 인터페이스를 만들며, 포커스, 레이블, ARIA, 양식을 다루도록 돕습니다.
better-auth-best-practices
12k에이전트가 TypeScript 앱에서 문서에 나온 단계에 따라 Better Auth로 로그인, 세션, OAuth, 플러그인을 설정하도록 돕습니다.