Conventional Commit 형식의 PR 타이틀과 템플릿 기반 설명을 자동 생성합니다
This skill helps create well-formatted Pull Requests with conventional commit titles and organized descriptions based on the project's PR template.
First, check the current state:
# Run in parallel
git status
git branch --show-current
git log origin/develop..HEAD --oneline
Verify:
develop)Analyze all commits in the current branch:
# Get commit list
git log origin/develop..HEAD --pretty=format:"%h|%s|%b"
# Get overall diff statistics
git diff origin/develop..HEAD --stat
# Get detailed changes for understanding
git diff origin/develop..HEAD
PR 생성 전 필수 검증을 수행합니다. 하나라도 실패하면 PR 생성을 중단합니다.
패키지명 자동 감지:
변경된 파일 경로에서 패키지명을 추출합니다:
# 변경된 파일 목록에서 패키지 경로 추출
git diff origin/develop..HEAD --name-only | grep -oP 'apps/[^/]+' | sort -u
apps/remotes-goal → @flex-apps/remotes-goalapps/remotes-evaluation → @flex-apps/remotes-evaluation검증 명령어:
# 감지된 각 패키지에 대해 실행
yarn turbo run type-check --filter=@flex-apps/{package-name}
yarn turbo run lint --filter=@flex-apps/{package-name}
yarn turbo run test --filter=@flex-apps/{package-name}
결과 처리:
test 스크립트 미존재): 경고만 표시하고 진행Use Conventional Commit format:
<type>(<scope>): <subject>
Critical Rules:
Scope Selection Guide: Identify scope from:
remotes-goal, payroll, user-profile)auth, api, deps)remotes- prefix when possibleSubject Writing Guide:
Good Examples:
feat(goal): 목표 데이터 엑셀 내보내기 기능 추가fix(auth): 토큰 만료 처리 오류 수정refactor(user-profile): search-with-approval API 사용chore(deps): react-query v5 업데이트Bad Examples:
refactor: 경력/학력/가족 조회 API를 search-with-approval로 변경 (no scope, too long, implementation details)Fix bug (no scope, not specific)feat: 사용자를 위한 새로운 기능 추가 (no scope)refactor(remotes-user-profile): 기존 search API를 search-with-approval로 변경하여 승인 처리 개선 (too long, too detailed)Read the pull request template:
# Find PR template in current repo
find . -name "pull_request_template.md" -path "*/.github/*"
Analyze changes to fill template sections:
For standard template sections:
개요 (Overview)
as-is
to-be
design (if applicable)
slack (if applicable)
Analysis approach:
# Get GitHub username for assignment
gh api user --jq '.login'
Or use the mcpgithubget_me tool to get user information.
PR 생성 직전, 현재 대화를 리뷰하여 학습 포인트를 메시지로 사용자에게 전달합니다. (PR 본문에 넣지 않음)
수집 대상:
Claude가 다르게 접근한 부분: 사용자가 Claude의 코드나 접근 방식을 수정/거부한 경우
사용자가 명시한 학습 포인트: "이건 기억해", "이건 배운 점이야", "앞으로는 이렇게 해" 등 명시적 언급
출력 형식:
## 학습 포인트 정리
### Claude가 다르게 접근한 부분
- [상황]: [Claude의 접근] → [사용자의 수정]
- ...
### 사용자가 명시한 포인트
- [내용]
- ...
> CLAUDE.md에 반영할 내용이 있다면 알려주세요.
규칙:
Use the GitHub MCP tool:
mcp__github__create_pull_request({
owner: "<repo-owner>",
repo: "<repo-name>",
title: "<conventional-commit-title>",
head: "<current-branch>",
base: "develop",
body: "<filled-pr-template>",
draft: false,
});
Then assign to the user:
# Assign PR to user
gh pr edit <pr-number> --add-assignee @me
After creating the PR:
After PR creation, you may optionally run a code review using the code-review plugin if installed:
/code-review:code-review with the newly created PR URLThe description should follow this structure:
# 📝 변경 사항
## 개요
[Brief summary of what this PR does and why]
## as-is
[Current state/behavior before this PR]
- [Specific issue or limitation 1]
- [Specific issue or limitation 2]
## to-be
[New state/behavior after this PR]
- [Improvement or change 1]
- [Improvement or change 2]
# 🔗 같이 보면 좋아요
## design
[Figma or design links, if applicable]
## slack
[Slack thread links for context, if applicable]
Title:
feat(goal): add excel export functionality
Description:
# 📝 변경 사항
## 개요
목표 데이터를 Excel 파일로 내보낼 수 있는 기능을 추가했습니다.
## as-is
- 목표 데이터를 외부로 추출하려면 수동으로 복사/붙여넣기 해야 했습니다.
- 대량의 데이터를 다루기 어려웠습니다.
## to-be
- Excel 내보내기 버튼을 클릭하면 현재 필터된 목표 데이터를 Excel 파일로 다운로드할 수 있습니다.
- 모든 컬럼과 포맷이 유지됩니다.
- 에러 처리 및 성공 알림이 포함되어 있습니다.
# 🔗 같이 보면 좋아요
## design