pr

A command for creating a draft pull request from the current Git branch. A pull request is a proposal to merge reviewed code into another branch.

In plain words
What is it for?
It can identify the repository and current branch, select a target branch, check remote branches, and use GitHub authentication to create the draft pull request.
Why use it?
It standardizes the information and checks needed to open a draft change for review.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/naverpaydev/naverpay-plugins/pr
Clone the repo
git clone --depth 1 https://github.com/NaverPayDev/naverpay-plugins
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,842 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00010 $0.03842
Opus 5 $0.00005 $0.01921
Sonnet 5 $0.00002 $0.00768
Haiku 4.5 $0.00001 $0.00384

Measured yesterday against content hash a9b0e7f9c663, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/git-commands/commands/pr.md · 484 lines

How it starts

The opening of the file, as written. The whole thing — 484 lines — stays where its author put it; the contents beside it link to each section on GitHub.

⛔ 절대 금지

  • PR 제목/설명에 "by Claude Code", "Generated with Claude", "Co-Authored-By: Claude" 등 Claude 관련 문구를 절대 포함하지 말 것
  • PR 내용 끝에 서명이나 출처를 추가하지 말 것

Pull Request 명령어

현재 브랜치에서 현재 저장소의 대상 브랜치로 드래프트 Pull Request를 생성합니다.

프로세스

  1. 현재 저장소 및 브랜치 정보 가져오기

    • git rev-parse --show-toplevel을 실행하여 저장소 루트 가져오기
    • git branch --show-current를 실행하여 현재 브랜치명 가져오기
    • git remote get-url origin을 실행하여 저장소 URL 가져오기
    • origin URL에서 owner/organization과 저장소명 파싱
    • 현재 디렉토리가 git 저장소 내부인지 확인
    • 대상 브랜치가 아닌지 확인 (같은 브랜치로 PR 불가)
  2. 저장소 식별자 파싱

    • 지원 형식:
      • HTTPS: https://{host}/{owner}/{repo}.git
      • HTTPS (.git 없음): https://{host}/{owner}/{repo}
      • SSH: git@{host}:{owner}/{repo}.git
    • {owner} 추출 (사용자 또는 organization 가능)
    • {repo} 추출 (저장소명)
  3. 대상 브랜치 결정

    • 인자: $ARGUMENTS (예: /pr develop$ARGUMENTSdevelop)
    • 인자가 있으면 해당 브랜치를 대상으로 사용
    • 인자가 없으면 기본값 사용: main
    • 대상 브랜치가 원격에 존재하는지 확인
  4. GitHub 토큰 확인

    • ghcli가 사용 가능하다면
      • gh auth status --hostname {host} 으로 로그인 상태 조회
      • gh auth token --hostname {host} 으로 로그인 토큰 조회
    • gh cli가 사용 불가능하다면 github token 찾기
      • .env 파일의 환경 변수에서 토큰 찾기: GITHUB_PERSONAL_ACCESS_TOKEN
      • git config에서 토큰 찾기: git config --global github.token
      • 찾을 수 없으면 Personal Access Token 생성 안내
  5. 변경사항 분석

    • git fetch origin <target>을 실행하여 최신 상태 확인
    • git log origin/<target>..<current> --oneline을 실행하여 커밋 확인
    • git diff origin/<target>...<current> --stat으로 파일 변경사항 확인
    • git diff origin/<target>...<current>로 상세 diff 확인
    • 변경사항을 분석하여 PR 제목과 설명 생성
  6. PR 내용 생성

    중요: "by Claude Code"나 "Co-Authored-By: Claude" 같은 Claude 관련 문구 포함하지 말아야 합니다 중요: 모든 PR 내용은 한국어로 작성해야 합니다

    중요: 반드시 .github/PULL_REQUEST_TEMPLATE.md를 읽고 해당 형식에 맞춰 PR 본문을 작성해야 합니다. 중요: 템플릿에 포함된 HTML 주석(<!-- ... -->)은 반드시 그대로 보존해야 합니다. 주석을 제거하거나 수정하지 마세요.

    제목 형식:

    • 단일 커밋인 경우: 해당 커밋 메시지를 제목으로 사용
    • 여러 관련 커밋인 경우: 주요 목적 요약
    • 50자 이하로 유지
    • 설명은 한국어로 작성 (예: 사용자 인증 시스템 구현)

Read the full file on GitHub · 484 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 484 lines · 10 tokens per session scan A a9b0e7f9c663

Subscribe to this mod's changes

pr is a command published in the GitHub repository NaverPayDev/naverpay-plugins (2 stars, last pushed 3mo ago), licensed MIT. It adds 10 tokens to every session and 3,842 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.