Create PR to develop branch

VerifiedCaution

Create a pull request from the current branch to develop using git and gh CLI.

Sby Skills Guide Bot
DevelopmentIntermediate
007/23/2026
Claude Code
#git#pr#github#workflow

Recommended for

Our review

Automatically creates a Pull Request to develop from the current branch, extracting the issue number and formatting the title and body.

Strengths

  • Full automation of PR creation with issue linking
  • Fetches issue title and body via GitHub CLI
  • Structured markdown body with change summaries and test checklist
  • Auto-pushes if branch is not yet on remote

Limitations

  • Works only with GitHub (requires gh CLI)
  • Branches must follow the pattern '{type}/issue-{num}/...' to link an issue
  • Target branch is always 'develop' with no flexibility
When to use it

When you are working on a feature or fix in a properly named branch and want to quickly open a PR against develop.

When not to use it

If the target branch is not 'develop' or the project uses a different platform than GitHub.

Security analysis

Caution
Quality score85/100

The skill interacts with remote repositories by pushing the current branch and creating a pull request. While it does not perform destructive actions, it could accidentally publish un-reviewed code if misused. No malicious intent is present.

Findings
  • Uses git push to push to remote repository. Pushing untested code could lead to unintended changes.
  • Automates PR creation via gh, which modifies the remote repository.

Examples

Create PR for feature branch
Run the PR creation skill for the current branch.
Create PR with issue link
Create a pull request from this branch to develop, linking to the issue if present.
Generate PR with test checklist
Generate a PR with a test checklist and change summary using the pr skill.

name: pr description: 현재 브랜치에서 develop 브랜치로 PR 생성 tools: Bash argument-hint: ""

다음 순서로 PR을 생성해:

  1. 아래 명령어를 병렬 실행해서 현재 상태를 파악해:

    • git branch --show-current (현재 브랜치명)
    • git log develop..HEAD --oneline (develop 이후 커밋 목록)
    • git diff develop...HEAD --stat (변경된 파일 목록)
  2. 현재 브랜치명에서 이슈 번호와 형태를 추출해:

    • 브랜치 패턴: {형태}/issue-{번호}/{내용}
    • 이슈 번호를 찾으면 gh issue view {번호} 로 이슈 제목과 본문을 가져와.
  3. PR 제목과 본문을 작성해:

    • 제목: 반드시 #{이슈번호} {이슈 제목} 형식. 이슈 번호를 절대 빠뜨리지 마.
      • 이슈 없으면 커밋 내역 기반으로 한국어 제목 작성 (이슈번호 생략)
    • 본문 (마크다운):
      • ## 이슈 섹션을 본문 최상단에 추가 — Closes #{이슈번호} (이슈가 있을 때만)
      • ## 변경 사항 — 변경된 내용을 불릿으로 간결하게 정리
      • ## 테스트 — 확인해야 할 항목 체크리스트 (- [ ])

    본문 형식 예시:

    ## 이슈
    Closes #62
    
    ## 변경 사항
    - ...
    
    ## 테스트
    - [ ] ...
    
  4. 원격에 아직 푸시되지 않은 경우 git push -u origin {브랜치명} 먼저 실행해.

  5. gh pr create --base develop --title "#{이슈번호} {이슈제목}" --body "..." 로 PR을 생성해.

    • HEREDOC을 사용해서 본문 포맷이 깨지지 않게 해.
    • PR 제목 생성 전 반드시 확인: 제목이 #숫자로 시작하는지 검증할 것.
  6. 결과를 아래 형식으로 출력해:

    PR 생성 완료
    
    #{이슈번호} {PR 제목}
    {PR URL}
    
    타겟: {브랜치명} → develop
    

주의사항:

  • 타겟 브랜치는 항상 develop
  • force push 금지
  • PR 제목은 반드시 #{이슈번호}로 시작해야 함 — 이슈 번호 누락 절대 금지
Related skills