antfu-create-pr
하는 일
이 스킬은 AI가 현재 브랜치에서 GitHub 풀 리퀘스트를 준비하고 열도록 합니다. 리뷰어가 모든 파일을 읽지 않아도 이해할 수 있는 제목과 본문을 작성합니다.
사용하는 경우
- ✓코드 변경을 마쳤고 GitHub에 풀 리퀘스트를 열고 싶을 때.
- ✓리뷰어를 위해 풀 리퀘스트 제목과 설명을 작성하고 싶을 때.
- ✓변경이 사용자 화면을 바꿔서 리뷰어에게 변경 전후 스크린샷이 필요할 때.
스킬 링크
https://github.com/antfu/skills/blob/main/skills/antfu-create-pr/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“현재 브랜치의 풀 리퀘스트를 열어 주세요. 명확한 제목과 변경 내용을 짧게 설명하는 본문을 붙여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 브랜치와 모든 변경 사항을 확인하고, 관련 테스트를 실행한 뒤, 동작과 그 이유를 설명하는 풀 리퀘스트를 작성합니다. 시각적 변경에는 변경 전후 이미지를 추가합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Create Pull Request
Open a PR that a reviewer can understand from the body alone. Explain the changed behavior and why, not the list of changed files. Keep the body proportional to the change: a one-line fix gets a few sentences, a cross-module feature gets tables and diagrams.
Workflow
- Inspect the repo:
git status, current branch, remotes, default branch,.github/PULL_REQUEST_TEMPLATE*, andAGENTS.md/CONTRIBUTING.mdfor PR rules. - Compute the merge base against the target branch and record the exact
base...headrange the PR publishes. If the branch is stacked on another unmerged branch, target that branch and describe only this PR's own changes. - Read the full diff. Separate runtime code from generated files, lockfiles, and snapshots. Trace changed code to its entry points, callers, and external boundaries so architecture claims are backed by file paths or symbols.
- Classify the PR (feature, fix, refactor, chore, docs) and decide which optional body sections earn their place. See pr-body.
- Run the checks that match the changed surfaces (focused tests, typecheck, lint). Record the exact commands and results.
- If the diff changes user-visible UI, capture before/after evidence. See visual-evidence.
- Review the commit history and reshape it into atomic Conventional Commits. See Commits.
- Write the body to a temporary file. Push the branch. Create the PR with
gh pr create --title ... --body-file ...(add--attachfor each screenshot; newerghcan upload local images and videos from the CLI, see Attaching files with GitHub CLI). Use--draftwhen checks are still running or the work is not review-ready. - Open the created PR and verify title, base, head, rendered tables, diagrams, and images.
- Address review comments: fix each confirmed issue, run focused checks, push, reply with evidence, and resolve the thread.
Title
Use Conventional Commits, matching how the repo already writes commit messages:
feat(scope): add retry to upload client
fix(scope): avoid double submit on enter
refactor: extract diff parsing from cli
chore(deps): update vite to v8
docs: clarify worktree setup
- Lowercase, imperative, no trailing period, under ~70 characters.
- Scope is the package, module, or feature name the repo already uses. Omit it when the change is repo-wide.
- Squash-merge repos turn the title into the commit message; write it as the commit you want in history.
Commits
Each commit does one logical thing and uses a Conventional Commits message. A reviewer should be able to read git log --oneline as the story of the change and review commit by commit.
# Good: each commit is self-contained
feat(api): add task creation endpoint with validation
feat(ui): add task creation form component
feat(ui): connect form to api and add loading state
test(tasks): cover task creation (unit + integration)
# Bad: everything mixed together
feat: add task feature, fix sidebar, update deps, refactor utils
- Keep unrelated fixes, dependency bumps, and drive-by refactors out of the branch; open separate PRs for them.
- Before pushing, review the history and split or squash local commits (
git rebase -i <base>) until each one stands alone and builds. - Do not rewrite commits that are already pushed and under review; add new commits instead.
Body
Required in every PR:
## Summary: the problem or capability first, then what changed and why this approach. Mention if the PR is stacked and on what.- Linked issues:
closes #123/fixes #123/refs #123so GitHub links and auto-closes. ## Verification: exact commands run and their results, plus anything left unverified.
Optional, only when it helps the reviewer:
## Change map: table of module, before, after, reason. Use for changes across several modules or ownership boundaries. Never a raw file list.## Architecture and behavior: a Mermaid flow, sequence, or state diagram when ordering, async work, or state transitions changed. For a fix, pair aBeforeandAfterdiagram at the same abstraction level.## Boundaries and risks: table of invariant, failure mode, protection, evidence. Use when there are real failure modes, migrations, or external effects.## Visual changes: before/after image table for UI changes.- `## Rollout and follow-u
자주 묻는 질문
GitHub 접근 권한이 필요한가요?
네. GitHub에 풀 리퀘스트를 열기 때문에, 먼저 저장소에 접근할 수 있어야 합니다.
커밋을 정리해 주나요?
네. 커밋 기록을 검토하고, 작고 명확한 커밋으로 다시 정리할 수 있습니다.
프로젝트 규칙을 따르나요?
네. 작성하기 전에 프로젝트의 풀 리퀘스트 템플릿과 기여 안내를 확인합니다.
상세 정보
작성자의 원본 설명
Create a reviewable GitHub pull request from the current branch with a Conventional Commits title, a concise evidence-based body, and before/after screenshots for UI changes. Use when asked to open, create, publish, or prepare a PR.
repo: antfu/skills
인기도
- GitHub 스타
- 6.0k
- 순위
- #14435
- 라이선스
- MIT
- 업데이트
- 2026. 10. 30.
댓글
- …
이 저장소의 다른 스킬
antfu-issue-triage
6.0k에이전트가 열린 GitHub 이슈와 풀 리퀘스트를 살펴 중복과 이미 해결된 항목을 찾고, 실행 전에 사용자에게 먼저 묻도록 돕습니다.
antfu-query
6.0k에이전트가 계획을 한 번에 한 단계씩 질문해, 함께 명확하고 검증된 이해에 이르도록 돕습니다.
antfu-simplify
6.0k에이전트가 코드 변경을 필요 없는 부분을 빼고 가장 작고 올바른 형태로 줄이도록 돕습니다.
antfu
6.0k에이전트에게 파일 구조부터 도구 선택까지, Anthony Fu가 선호하는 JavaScript와 TypeScript 습관을 가르칩니다.