writing-pr-descriptions
하는 일
이 스킬은 풀 리퀘스트의 글을 다듬어서 검토자가 모든 코드를 읽지 않고도 문제와 변경 내용을 이해하도록 합니다. 더 빠르고 명확한 코드 검토를 원하는 개발자를 위한 것입니다.
사용하는 경우
- ✓풀 리퀘스트를 열기 직전이라 설명을 써야 할 때.
- ✓기존 풀 리퀘스트 설명을 스크린샷과 링크를 잃지 않고 업데이트해야 할 때.
- ✓검토자가 풀 리퀘스트를 이해하기 어려워해서 글을 개선하고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/.agents/skills/writing-pr-descriptions/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 변경의 문제와 바꾼 내용을 설명하는 명확한 풀 리퀘스트 설명을 써 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
문제와 영향을 받는 사람부터 시작하며, 추측이 아니라 티켓이나 보고서 같은 실제 출처에서 가져옵니다. 그다음 눈에 보이는 효과와 핵심 변경을 설명하고, 짧고 읽기 쉽게 유지한 뒤 게시하기 전에 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Writing PR descriptions
A reviewer scans a description in seconds and decides where to spend attention. The body is a scanning surface, not an essay, and it has to stand without the diff. A body that narrates the code, or that would fit any PR equally well, teaches its reader to skip the next one.
Order decides whether they understand the change at all. Form and length only decide how fast. So get the order right first, and never buy shape at the cost of it.
Work in five passes: lead, route, cut, shape, check. Run all five. When a body already exists, pass 0 comes first.
Pass 0: keep what the body already holds
gh pr edit --body replaces the whole body, so every part of your draft that has no home is gone the moment you push it.
An existing body holds work you cannot recreate: screenshots and recordings a person uploaded, links they collected, a checkbox they ticked, a note to a named reviewer.
Read the current body and edit it, rather than writing a fresh one over the top:
gh pr view <number> --json body --jq .body > pr-body.md
# edit pr-body.md
gh pr edit <number> --body-file pr-body.md
Carry every image, video, link and ticked box into the new body, under the heading it belongs to, and add the heading when your draft has none. Replace one only when the change made it wrong, and say in the body that you replaced it.
Pass 1: lead with the need
The first line is the one line you can count on being read. You just spent an hour inside the mechanism, so the mechanism comes out first. Push it down and spend that line on the need that caused the work.
- Line 1 of Problem says who is affected and what is wrong for them today. Name the surface or workflow they were on. Four shapes cover almost every PR:
- A fix: what breaks, and for whom.
- A feature: what the person is trying to get done, and what stands in the way. "Analysts who join tables in the SQL editor recompute the same derived column in every query."
- A refactor, a chore or an enabling change: who is blocked, what it costs them, or what class of failure it removes. Nobody sees it, but somebody is waiting.
- A follow-up or a layer in a stack: what the earlier PR left undone, and what this one adds. Link that PR and assume nobody read it.
- Problem must stay true if the author picks a different solution. A missing version of your solution is not a problem: "there is no PDF export" is Changes with a "not" in it.
- Take the need from a source: the request, a linked issue, a thread, a measurement. The writer of a body often has only the diff. Never invent an actor, a cost, or a frequency to make the line read better. When no source gives the reason, say so in one line, so the reviewer knows to ask.
- If line 1 opens with a symbol, a file path, a class, or a setting, you led with the mechanism. Rewrite it.
- Size the problem in one clause where you know it: how many teams, how often, since when.
- The mechanism follows, in the order a reviewer has to check it.
- The first bullet of Changes is the change itself. Renames, regenerated snapshots and comment fixes go last.
- Every Changes bullet a person can notice says what they now see or do differently, then the mechanism under it. One user-facing line in Problem does not discharge this.
- Say in one line which part of Changes is mechanical. A reviewer cannot otherwise tell a purely internal change from a visible one you described as internal.
- If one part of the diff is riskier than the rest, name that part and say the rest is mechanical.
Most of the time you already wrote the need and put it third. Move it up rather than writing a new sentence.
Line 1 can be a bullet or a standalone sentence, whichever reads faster, but one sentence and never a paragraph.
Solution-shaped problems
❌ The dashboard has no PDF export.
✅ Account managers rebuild weekly dashboard summaries in slides to send to customers (linked request).
✅ The request asks for a PDF export of a dashboard and gives no reason. (No source states the need, so the body says that and invents nothing.)
The first good version leaves room for more than one solution. The second is honest, and it tells the reviewer what to ask before approving.
Worked example
❌ The first three bullets, as written:
- The canvas runtime posts to the host with
port?.postMessage(...), so messages sent before the port exists are silently dropped.- The host delivers the MessagePort only after the artifact iframe's load event, w
자주 묻는 질문
문제에 대한 세부 사항을 지어내나요?
아니요. 티켓이나 보고서처럼 실제 문제 출처를 사용하도록 설계되었으며, 추측하지 않습니다.
기존 스크린샷과 링크를 유지하나요?
네. 먼저 현재 설명을 읽고, 텍스트를 바꿀 때 이미지, 링크, 체크박스를 그대로 가져옵니다.
설명에 정해진 형식이 필요한가요?
아니요. 도움이 되는 곳에서만 글머리 기호, 표, 다이어그램을 사용합니다.
상세 정보
작성자의 원본 설명
Shapes a PR body so a reviewer can understand the problem and change quickly. Use ALWAYS before writing or editing a PR description, before `gh pr create` or `gh pr edit --body`, or when asked to improve a description. States who is affected and what is wrong for them in Problem, taken from a source and never invented, then the visible effect and mechanism in Changes. Selects bullets, tables, diagrams, screenshots, or collapsed blocks for each fact. Removes unnecessary detail and checks one fact per bullet, sentences under 25 words, active voice, and no idioms. Keeps the body complete without
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6820
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.