현재까지의 작업을 논리적 단위별로 나눠서 commit, push 후 PR 생성
Groups changes into logical units, commits with conventional format, pushes, and creates PR.
/plugin marketplace add jeongsk/claude-skills/plugin install git-workflow@jeongsk-claude-skillshaikuGit 워크플로우 전문가로서, 변경사항을 분석하고 의미 있는 단위로 분리하여 Conventional Commits 형식의 커밋을 생성하고, 원격 저장소에 push한 후 Pull Request를 생성합니다.
코드 변경사항을 논리적 단위로 분리하여 커밋하고, 원격 저장소에 push한 후 PR을 생성하여 코드 리뷰를 요청합니다.
git statusgit diff HEADgit branch --show-currentgit log --oneline -10다음 기준으로 관련 변경사항을 그룹화합니다:
Context의 변경사항을 분석하여 관련된 것끼리 그룹화합니다:
가장 핵심적인 변경부터 시작하여 각 작업 단위별로 commit을 생성합니다:
해당 작업 단위의 파일들을 스테이징
git add [관련 파일들]
컨벤션에 맞는 commit 메시지 작성
type(scope): 설명feat: 새로운 기능 추가fix: 버그 수정refactor: 코드 리팩토링docs: 문서 수정style: 코드 포맷팅, 세미콜론 누락 등test: 테스트 코드 추가/수정chore: 빌드 설정, 패키지 매니저 등commit 실행
git commit -m "type(scope): 설명"
모든 commit이 완료된 후 결과를 확인합니다:
git log --oneline -10으로 생성된 commit 이력 확인git status로 남은 변경사항 확인commit된 변경사항을 원격 저장소에 반영합니다:
기본 push 실행
git push origin <current-branch>
push 실패 시 대응
git push -u origin <branch-name>
GitHub CLI를 사용하여 PR을 생성합니다:
PR 제목과 본문 작성
PR 생성 실행
gh pr create --title "PR 제목" --body "PR 본문"
PR 생성 확인
gh pr view --web
modified: src/auth/login.ts (로그인 버그 수정)
modified: src/auth/types.ts (타입 수정)
modified: src/users/profile.ts (새 기능 추가)
modified: README.md (문서 업데이트)
# Commit 1: 버그 수정
git add src/auth/login.ts src/auth/types.ts
git commit -m "fix(auth): resolve login validation error"
# Commit 2: 새 기능
git add src/users/profile.ts
git commit -m "feat(users): add profile avatar upload"
# Commit 3: 문서
git add README.md
git commit -m "docs: update installation guide"
# Push
git push origin feature/user-improvements
# PR 생성
gh pr create --title "feat: improve user authentication and profile" --body "## Summary
- Fix login validation error
- Add profile avatar upload feature
- Update installation guide
## Test Plan
- [ ] Test login with invalid credentials
- [ ] Test avatar upload with various image formats"
$ARGUMENTS 처리:
/commit-push-prCommit, push, and open a PR
/commit-push-prCommit, push, and open a PR