현재 브랜치의 변경사항을 분석하여 PR 설명을 자동 생성합니다. "PR 작성", "PR 생성" "PR 만들어줘" 등의 요청 시 사용합니다.
현재 브랜치와 base 브랜치 간의 커밋 변경사항을 분석하고, .github/pull_request_template.md 템플릿을 참고하여 Pull Request를 작성합니다.
다음 순서대로 base 브랜치를 확인하세요:
git --no-pager log --first-parent --oneline -10 HEAD | grep -m1 "Merge branch" | sed -n "s/.*into \([^']*\)$/origin\/\1/p"
into <branch> 부분에서 현재 브랜치가 분기된 부모 브랜치를 찾습니다Merge branch 'feat/daou-integration-4' into feat/daou-integration-5 → origin/feat/daou-integration-5가 base1단계에서 결과가 없으면, reflog에서 브랜치가 생성된 커밋을 찾고 해당 커밋이 속한 브랜치를 확인하세요:
# 현재 브랜치 이름
CURRENT_BRANCH=$(git --no-pager rev-parse --abbrev-ref HEAD)
# 브랜치 생성 시점의 커밋 해시
CREATION_COMMIT=$(git reflog show $CURRENT_BRANCH | tail -1 | awk '{print $1}')
# 해당 커밋이 속한 remote 브랜치 중 현재 브랜치가 아닌 것
git --no-pager branch -r --contains $CREATION_COMMIT | grep -v $CURRENT_BRANCH | head -1
2단계에서도 결과가 없으면 origin/master (또는 origin/main)를 기본값으로 사용하세요.
주의: master를 무조건 기본값으로 가정하지 마세요. 반드시 위 명령어들로 먼저 확인하세요.
git --no-pager 옵션을 꼭 사용해주세요.git --no-pager diff <base-branch>...HEAD.github/pull_request_template.md 파일의 구조와 형식을 반드시 따라야 함.github/pull_request_template.md)을 먼저 확인git --no-pager diff <base-branch>...HEAD로 변경사항 분석gh pr create --title "<제목>" --base <base-branch> --body "<본문>"으로 PR 생성## 배경
> Linear: [TICKET-123](https://linear.app/team/issue/TICKET-123)
<비즈니스 맥락: 왜 이 변경이 필요한지 1-2문장>
## 작업 내용
- <사용자 관점의 동작 변경 또는 디자인 의도 1>
- <사용자 관점의 동작 변경 또는 디자인 의도 2>
- <사용자 관점의 동작 변경 또는 디자인 의도 3>
## 참고사항
- <관련 문서, 주의사항 등>
주의: 불릿에 코드 스니펫, 함수 시그니처, 파일 경로 나열을 포함하지 말 것. 구현 세부는 diff가 말해주므로 "왜 / 어떤 효과" 관점으로만 요약.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer